    # What is X in discrete random variable?

This section covers Discrete Random Variables, probability distribution, Cumulative Distribution Function and Probability Density Function.

A probability distribution is a table of values showing the probabilities of various outcomes of an experiment.

For example, if a coin is tossed three times, the number of heads obtained can be 0, 1, 2 or 3. The probabilities of each of these possibilities can be tabulated as shown:

 Number of Heads 0 1 2 3 Probability 1/8 3/8 3/8 1/8

A discrete variable is a variable which can only take a countable number of values. In this example, the number of heads can only take 4 values (0, 1, 2, 3) and so the variable is discrete. The variable is said to be random if the sum of the probabilities is one.

Probability Density Function

The probability density function (p.d.f.) of X (or probability mass function) is a function which allocates probabilities. Put simply, it is a function which tells you the probability of certain events occurring. The usual notation that is used is P(X = x) = something. The random variable (r.v.) X is the event that we are considering. So in the above example, X represents the number of heads that we throw. So P(X = 0) means "the probability that no heads are thrown". Here, P(X = 0) = 1/8 (the probability that we throw no heads is 1/8 ).

In the above example, we could therefore have written:

 x 0 1 2 3 P(X = x) 1/8 3/8 3/8 1/8

Quite often, the probability density function will be given to you in terms of x. In the above example, P(X = x) = 3Cx / (2)3  (see permutations and combinations for the meaning of 3Cx).

Example

A die is thrown repeatedly until a 6 is obtained. Find the probability density function for the number times we throw the die.

Let X be the random variable representing the number of times we throw the die.

P(X = 1) = 1/6 (if we only throw the die once, we get a 6 on our first throw. The probability of this is 1/6 ).

P(X = 2) = (5/6) × (1/6) (if we throw the die twice before getting a 6, we must throw something that isn't a 6 with our first throw, the probability of which is 5/6 and we must throw a 6 on our second throw, the probability of which is 1/6)

etc

In general, P(X = x) = (5/6)(x-1) × (1/6)

Cumulative Distribution Function

The cumulative distribution function (c.d.f.) of a discrete random variable X is the function F(t) which tells you the probability that X is less than or equal to t. So if X has p.d.f. P(X = x), we have:

F(t) = P(X £ t) = SP(X = x).

In other words, for each value that X can be which is less than or equal to t, work out the probability that X is that value and add up all such results.

Example

In the above example where the die is thrown repeatedly, lets work out P(X £ t) for some values of t.

P(X £ 1) is the probability that the number of throws until we get a 6 is less than or equal to 1. So it is either 0 or 1.

P(X = 0) = 0 and P(X = 1) = 1/6. Hence P(X £ 1) = 1/6

Similarly, P(X £ 2) = P(X = 0) + P(X = 1) + P(X = 2) = 0 + 1/6 + 5/36 = 11/36

In order to allow a broader range of more realistic problems Chapter 12 "Appendix" contains probability tables for binomial random variables for various choices of the parameters n and p. These tables are not the probability distributions that we have seen so far, but are cumulative probability distributions. In the place of the probability P(x) the table contains the probability

This is illustrated in Figure 4.6 "Cumulative Probabilities". The probability entered in the table corresponds to the area of the shaded region. The reason for providing a cumulative table is that in practical problems that involve a binomial random variable typically the probability that is sought is of the form P(X≤x) or P(X≥x). The cumulative table is much easier to use for computing P(X≤x) since all the individual probabilities have already been computed and added. The one table suffices for both P(X≤x) or P(X≥x) and can be used to readily obtain probabilities of the form P(x), too, because of the following formulas. The first is just the Probability Rule for Complements.

Figure 4.6 Cumulative Probabilities 1. Determine whether or not the random variable X is a binomial random variable. If so, give the values of n and p. If not, explain why not.

1. X is the number of dots on the top face of fair die that is rolled.
2. X is the number of hearts in a five-card hand drawn (without replacement) from a well-shuffled ordinary deck.
3. X is the number of defective parts in a sample of ten randomly selected parts coming from a manufacturing process in which 0.02% of all parts are defective.
4. X is the number of times the number of dots on the top face of a fair die is even in six rolls of the die.
5. X is the number of dice that show an even number of dots on the top face when six dice are rolled at once.

2. Determine whether or not the random variable X is a binomial random variable. If so, give the values of n and p. If not, explain why not.

1. X is the number of black marbles in a sample of 5 marbles drawn randomly and without replacement from a box that contains 25 white marbles and 15 black marbles.
2. X is the number of black marbles in a sample of 5 marbles drawn randomly and with replacement from a box that contains 25 white marbles and 15 black marbles.
3. X is the number of voters in favor of proposed law in a sample 1,200 randomly selected voters drawn from the entire electorate of a country in which 35% of the voters favor the law.
4. X is the number of fish of a particular species, among the next ten landed by a commercial fishing boat, that are more than 13 inches in length, when 17% of all such fish exceed 13 inches in length.
5. X is the number of coins that match at least one other coin when four coins are tossed at once.

3. X is a binomial random variable with parameters n = 12 and p = 0.82. Compute the probability indicated.

4. X is a binomial random variable with parameters n = 16 and p = 0.74. Compute the probability indicated.

5. X is a binomial random variable with parameters n = 5, p = 0.5. Use the tables in Chapter 12 "Appendix" to compute the probability indicated.

1. P(X ≤ 3)
2. P(X ≥ 3)
3. P(3)
4. P(0)
5. P(5)

6. X is a binomial random variable with parameters n = 5, p=0.3-. Use the table in Chapter 12 "Appendix" to compute the probability indicated.

1. P(X ≤ 2)
2. P(X ≥ 2)
3. P(2)
4. P(0)
5. P(5)

7. X is a binomial random variable with the parameters shown. Use the tables in Chapter 12 "Appendix" to compute the probability indicated.

1. n = 10, p = 0.25, P(X ≤ 6)
2. n = 10, p = 0.75, P(X ≤ 6)
3. n = 15, p = 0.75, P(X ≤ 6)
4. n = 15, p = 0.75, P(12)
5. n = 15, p=0.6-, P(10≤X≤12)

8. X is a binomial random variable with the parameters shown. Use the tables in Chapter 12 "Appendix" to compute the probability indicated.

1. n = 5, p = 0.05, P(X ≤ 1)
2. n = 5, p = 0.5, P(X ≤ 1)
3. n = 10, p = 0.75, P(X ≤ 5)
4. n = 10, p = 0.75, P(12)
5. n = 10, p=0.6-, P(5≤X≤8)

9. X is a binomial random variable with the parameters shown. Use the special formulas to compute its mean μ and standard deviation σ.

1. n = 8, p = 0.43
2. n = 47, p = 0.82
3. n = 1200, p = 0.44
4. n = 2100, p = 0.62

10. X is a binomial random variable with the parameters shown. Use the special formulas to compute its mean μ and standard deviation σ.

1. n = 14, p = 0.55
2. n = 83, p = 0.05
3. n = 957, p = 0.35
4. n = 1750, p = 0.79

11. X is a binomial random variable with the parameters shown. Compute its mean μ and standard deviation σ in two ways, first using the tables in Chapter 12 "Appendix" in conjunction with the general formulas μ=Σx P(x) and σ=[Σx2 P(x) ]−μ2, then using the special formulas μ=np and σ=npq.

1. n = 5, p=0.3-
2. n = 10, p = 0.75

12. X is a binomial random variable with the parameters shown. Compute its mean μ and standard deviation σ in two ways, first using the tables in Chapter 12 "Appendix" in conjunction with the general formulas μ=Σx P(x) and σ=[Σx2 P(x) ]−μ2, then using the special formulas μ=np and σ=npq.

1. n = 10, p = 0.25
2. n = 15, p = 0.1

13. X is a binomial random variable with parameters n = 10 and p=1∕3. Use the cumulative probability distribution for X that is given in Chapter 12 "Appendix" to construct the probability distribution of X.

14. X is a binomial random variable with parameters n = 15 and p=1∕2. Use the cumulative probability distribution for X that is given in Chapter 12 "Appendix" to construct the probability distribution of X.

15. In a certain board game a player's turn begins with three rolls of a pair of dice. If the player rolls doubles all three times there is a penalty. The probability of rolling doubles in a single roll of a pair of fair dice is 1/6. Find the probability of rolling doubles all three times.

16. A coin is bent so that the probability that it lands heads up is 2/3. The coin is tossed ten times.

1. Find the probability that it lands heads up at most five times.
2. Find the probability that it lands heads up more times than it lands tails up.

1. An English-speaking tourist visits a country in which 30% of the population speaks English. He needs to ask someone directions.

1. Find the probability that the first person he encounters will be able to speak English.
2. The tourist sees four local people standing at a bus stop. Find the probability that at least one of them will be able to speak English.

2. The probability that an egg in a retail package is cracked or broken is 0.025.

1. Find the probability that a carton of one dozen eggs contains no eggs that are either cracked or broken.
2. Find the probability that a carton of one dozen eggs has (i) at least one that is either cracked or broken; (ii) at least two that are cracked or broken.
3. Find the average number of cracked or broken eggs in one dozen cartons.

3. An appliance store sells 20 refrigerators each week. Ten percent of all purchasers of a refrigerator buy an extended warranty. Let X denote the number of the next 20 purchasers who do so.

1. Verify that X satisfies the conditions for a binomial random variable, and find n and p.
2. Find the probability that X is zero.
3. Find the probability that X is two, three, or four.
4. Find the probability that X is at least five.

4. Adverse growing conditions have caused 5% of grapefruit grown in a certain region to be of inferior quality. Grapefruit are sold by the dozen.

1. Find the average number of inferior quality grapefruit per box of a dozen.
2. A box that contains two or more grapefruit of inferior quality will cause a strong adverse customer reaction. Find the probability that a box of one dozen grapefruit will contain two or more grapefruit of inferior quality.

5. The probability that a 7-ounce skein of a discount worsted weight knitting yarn contains a knot is 0.25. Goneril buys ten skeins to crochet an afghan.

1. Find the probability that (i) none of the ten skeins will contain a knot; (ii) at most one will.
2. Find the expected number of skeins that contain knots.
3. Find the most likely number of skeins that contain knots.

6. One-third of all patients who undergo a non-invasive but unpleasant medical test require a sedative. A laboratory performs 20 such tests daily. Let X denote the number of patients on any given day who require a sedative.

1. Verify that X satisfies the conditions for a binomial random variable, and find n and p.
2. Find the probability that on any given day between five and nine patients will require a sedative (include five and nine).
3. Find the average number of patients each day who require a sedative.
4. Using the cumulative probability distribution for X in Chapter 12 "Appendix", find the minimum number x min of doses of the sedative that should be on hand at the start of the day so that there is a 99% chance that the laboratory will not run out.

7. About 2% of alumni give money upon receiving a solicitation from the college or university from which they graduated. Find the average number monetary gifts a college can expect from every 2,000 solicitations it sends.

8. Of all college students who are eligible to give blood, about 18% do so on a regular basis. Each month a local blood bank sends an appeal to give blood to 250 randomly selected students. Find the average number of appeals in such mailings that are made to students who already give blood.

9. About 12% of all individuals write with their left hands. A class of 130 students meets in a classroom with 130 individual desks, exactly 14 of which are constructed for people who write with their left hands. Find the probability that exactly 14 of the students enrolled in the class write with their left hands.

10. A travelling salesman makes a sale on 65% of his calls on regular customers. He makes four sales calls each day.

1. Construct the probability distribution of X, the number of sales made each day.
2. Find the probability that, on a randomly selected day, the salesman will make a sale.
3. Assuming that the salesman makes 20 sales calls per week, find the mean and standard deviation of the number of sales made per week.

11. A corporation has advertised heavily to try to insure that over half the adult population recognizes the brand name of its products. In a random sample of 20 adults, 14 recognized its brand name. What is the probability that 14 or more people in such a sample would recognize its brand name if the actual proportion p of all adults who recognize the brand name were only 0.50?

1. When dropped on a hard surface a thumbtack lands with its sharp point touching the surface with probability 2/3; it lands with its sharp point directed up into the air with probability 1/3. The tack is dropped and its landing position observed 15 times.

1. Find the probability that it lands with its point in the air at least 7 times.
2. If the experiment of dropping the tack 15 times is done repeatedly, what is the average number of times it lands with its point in the air?

2. A professional proofreader has a 98% chance of detecting an error in a piece of written work (other than misspellings, double words, and similar errors that are machine detected). A work contains four errors.

1. Find the probability that the proofreader will miss at least one of them.
2. Show that two such proofreaders working independently have a 99.96% chance of detecting an error in a piece of written work.
3. Find the probability that two such proofreaders working independently will miss at least one error in a work that contains four errors.

3. A multiple choice exam has 20 questions; there are four choices for each question.

1. A student guesses the answer to every question. Find the chance that he guesses correctly between four and seven times.
2. Find the minimum score the instructor can set so that the probability that a student will pass just by guessing is 20% or less.

4. In spite of the requirement that all dogs boarded in a kennel be inoculated, the chance that a healthy dog boarded in a clean, well-ventilated kennel will develop kennel cough from a carrier is 0.008.

1. If a carrier (not known to be such, of course) is boarded with three other dogs, what is the probability that at least one of the three healthy dogs will develop kennel cough?
2. If a carrier is boarded with four other dogs, what is the probability that at least one of the four healthy dogs will develop kennel cough?
3. The pattern evident from parts (a) and (b) is that if K+1 dogs are boarded together, one a carrier and K healthy dogs, then the probability that at least one of the healthy dogs will develop kennel cough is P(X≥1)=1−(0.992)K, where X is the binomial random variable that counts the number of healthy dogs that develop the condition. Experiment with different values of K in this formula to find the maximum number K+1 of dogs that a kennel owner can board together so that if one of the dogs has the condition, the chance that another dog will be infected is less than 0.05.

5. Investigators need to determine which of 600 adults have a medical condition that affects 2% of the adult population. A blood sample is taken from each of the individuals.

1. Show that the expected number of diseased individuals in the group of 600 is 12 individuals.
2. Instead of testing all 600 blood samples to find the expected 12 diseased individuals, investigators group the samples into 60 groups of 10 each, mix a little of the blood from each of the 10 samples in each group, and test each of the 60 mixtures. Show that the probability that any such mixture will contain the blood of at least one diseased person, hence test positive, is about 0.18.
3. Based on the result in (b), show that the expected number of mixtures that test positive is about 11. (Supposing that indeed 11 of the 60 mixtures test positive, then we know that none of the 490 persons whose blood was in the remaining 49 samples that tested negative has the disease. We have eliminated 490 persons from our search while performing only 60 tests.)

1. not binomial; not success/failure.
2. not binomial; trials are not independent.
3. binomial; n = 10, p = 0.0002
4. binomial; n = 6, p = 0.5
5. binomial; n = 6, p = 0.5

1. 0.8125
2. 0.5000
3. 0.3125
4. 0.0313
5. 0.0312

1. 0.9965
2. 0.2241
3. 0.0042
4. 0.2252
5. 0.5390

1. μ = 3.44, σ = 1.4003
2. μ = 38.54, σ = 2.6339
3. μ = 528, σ = 17.1953
4. μ = 1302, σ = 22.2432

1. μ = 1.6667, σ = 1.0541
2. μ = 7.5, σ = 1.3693

1. x0123P(x)0.01730.08670.19510.2602 x4567P(x)0.22760.13650.05690.0163 x8910P(x)0.00300.00040.0000

1. n = 20, p = 0.1
2. 0.1216
3. 0.5651
4. 0.0432 