Andom Ariables: Case 3
Andom Ariables: Case 3
1
1
1
1
92 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
3
1
RANDOM VARIABLES
1
3–8 The Hypergeometric Distribution 121
3–9 The Poisson Distribution 124
3–10 Continuous Random Variables 126
3–11 The Uniform Distribution 129
3–12 The Exponential Distribution 130
1
3–13 Using the Computer 133
3–14 Summary and Review of Terms 135
Case 3 Concepts Testing 145
LEARNING OBJECTIVES
1
After studying this chapter, you should be able to:
• Distinguish between discrete and continuous random variables.
• Explain how a random variable is characterized by its
probability distribution.
1
• Compute statistics about a random variable.
• Compute statistics about a function of a random variable.
• Compute statistics about the sum of a linear composite of
random variables.
• Identify which type of distribution a given random variable is
most likely to follow.
1
• Solve problems involving standard distributions manually using
formulas.
• Solve business problems involving standard distributions using
spreadsheet templates.
90
1
1
1
1
1
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 93
Complete Business Companies, 2009
Statistics, Seventh Edition
1
3–1 Using Statistics
Recent work in genetics makes assumptions
about the distribution of babies of the two
sexes. One such analysis concentrated on the
probabilities of the number of babies of each
sex in a given number of births. Consider the sample space made up of the 16 equally
likely points:
1
BBBB BBBG BGGB GBGG
GBBB GGBB BGBG GGBG
BGBB GBGB BBGG GGGB
BBGB GBBG BGGG GGGG
All these 16 points are equally likely because when four children are born, the sex
of each child is assumed to be independent of those of the other three. Hence the
probability of each quadruple (e.g., GBBG) is equal to the product of the proba-
1
bilities of the four separate, single outcomes—G, B, B, and G—and is thus equal to
(12)(12) (12)(12) 116.
Now, let’s look at the variable “the number of girls out of four births.” This num-
ber varies among points in the sample space, and it is random—given to chance. That’s
why we call such a number a random variable.
F
1
A random variable has a probability law—a rule that assigns probabilities to the
different values of the random variable. The probability law, the probability assign-
V
ment, is called the probability distribution of the random variable. We usually denote
the random variable by a capital letter, often X. The probability distribution will then
be denoted by P(X ).
S
CHAPTER 2
Look again at the sample space for the sexes of four babies, and remember that
1
our variable is the number of girls out of four births. The first point in the sample
space is BBBB; because the number of girls is zero here, X 0. The next four points
in the sample space all have one girl (and three boys). Hence, each one leads to the
value X 1. Similarly, the next six points in the sample space all lead to X 2; the
next four points to X 3; and, finally, the last point in our sample space gives X 4.
The correspondence of points in the sample space with values of the random variable
is as follows:
92 Chapter 3
This correspondence, when a sample space clearly exists, allows us to define a random
variable as follows:
What is this function? The correspondence between points in the sample space and
values of the random variable allows us to determine the probability distribution of X
as follows: Notice that 1 of the 16 equally likely points of the sample space leads to
X 0. Hence, the probability that X 0 is 116. Because 4 of the 16 equally likely
points lead to a value X 1, the probability that X 1 is 416, and so forth. Thus,
looking at the sample space and counting the number of points leading to each value
of X, we find the following probabilities:
P (X 0) 116 0.0625
P (X 1) 416 0.2500
P (X 2) 616 0.3750
P (X 3) 416 0.2500
P (X 4) 116 0.0625
The probability statements above constitute the probability distribution of the ran-
dom variable X the number of girls in four births. Notice how this probability law
was obtained simply by associating values of X with sets in the sample space. (For
example, the set GBBB, BGBB, BBGB, BBBG leads to X 1.) Writing the probabil-
ity distribution of X in a table format is useful, but first let’s make a small, simplifying
notational distinction so that we do not have to write complete probability statements
such as P(X 1).
As stated earlier, we use a capital letter, such as X, to denote the random variable.
But we use a lowercase letter to denote a particular value that the random variable
can take. For example, x 3 means that some particular set of four births resulted in
three girls. Think of X as random and x as known. Before a coin is tossed, the num-
ber of heads (in one toss) is an unknown, X. Once the coin lands, we have x 0 or
x 1.
Now let’s return to the number of girls in four births. We can write the probability
distribution of this random variable in a table format, as shown in Table 3–1.
Note an important fact: The sum of the probabilities of all the values of the ran-
dom variable X must be 1.00. A picture of the probability distribution of the random
variable X is given in Figure 3–1. Such a picture is a probability bar chart for the
random variable.
Marilyn is interested in the number of girls (or boys) in any fixed number of
births, not necessarily four. Thus her discussion extends beyond this case. In fact, the
1616 1.00
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 95
Complete Business Companies, 2009
Statistics, Seventh Edition
Random Variables 93
0.4 6/16
0.3
Probability
4/16 4/16
0.2
0
0 1 2 3 4
Number of girls, x
random variable she describes, which in general counts the number of “successes”
(here, a girl is a success) in a fixed number n of trials, is called a binomial random variable.
We will study this particular important random variable in section 3–3.
Figure 3–2 shows the sample space for the experiment of rolling two dice. As can be EXAMPLE 3–1
seen from the sample space, the probability of every pair of outcomes is 136. This
can be seen from the fact that, by the independence of the two dice, for example, P(6
on red die 5 on green die) P(6 on red die) P(5 on green die) (16)(16)
136, and that this holds for all 36 pairs of outcomes. Let X the sum of the dots on
the two dice. What is the distribution of x?
Figure 3–3 shows the correspondence between sets in our sample space and the Solution
values of X. The probability distribution of X is given in Table 3–2. The probability
distribution allows us to answer various questions about the random variable of interest.
Draw a picture of this probability distribution. Such a graph need not be a histogram,
used earlier, but can also be a bar graph or column chart of the probabilities of the
different values of the random variable. Note from the graph you produced that the
distribution of the random variable “the sum of two dice” is symmetric. The central
value is x 7, which has the highest probability, P (7) 636 16. This is the mode,
94 Chapter 3
X=2
1/36
X=3 X=8
2/36 5/36
X=4 X=9
3/36 4/36
X=5 X = 10
4/36 3/36
X=6 X = 11
5/36 2/36
X=7 X = 12
6/36 1/36
x P(x)
2 136
3 236
4 336
5 436
6 536
7 636
8 536
9 436
10 336
11 236
12 136
______
3636 1.00
the most likely value. Thus, if you were to bet on one sum of two dice, the best bet is
that the sum will be 7.
We can answer other probability questions, such as: What is the probability that
the sum will be at most 5? This is P (X 5). Notice that to answer this question, we
require the sum of all the probabilities of the values that are less than or equal to 5:
Similarly, we may want to know the probability that the sum is greater than 9. This is
calculated as follows:
Most often, unless we are dealing with games of chance, there is no evident sample
space. In such situations the probability distribution is often obtained from lists or
other data that give us the relative frequency in the recorded past of the various values
of the random variable. This is demonstrated in Example 3–2.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 97
Complete Business Companies, 2009
Statistics, Seventh Edition
Random Variables 95
800, 900, and Now: the 500 Telephone Numbers EXAMPLE 3–2
The new code 500 is for busy, affluent people who travel a lot: It can work with a
cellular phone, your home phone, office phone, second-home phone, up to five addi-
tional phones besides your regular one. The computer technology behind this service
is astounding—the new phone service can find you wherever you may be on the planet
at a given moment (assuming one of the phones you specify is cellular and you keep
it with you when you are not near one of your stationary telephones). What the com-
puter does is to first ring you up at the telephone number you specify as your primary TABLE 3–3
The Probability Distribution
one (your office phone, for example). If there is no answer, the computer switches to of the Number of Switches
search for you at your second-specified phone number (say, home); if you do not answer
there, it will switch to your third phone (maybe the phone at a close companion’s x P(x)
home, or your car phone, or a portable cellular phone); and so on up to five allowable 0 0.1
switches. The switches are the expensive part of this service (besides arrangements 1 0.2
to have your cellular phone reachable overseas), and the service provider wants to 2 0.3
get information on these switches. From data available on an experimental run of 3 0.2
the 500 program, the following probability distribution is constructed for the number 4 0.1
of dialing switches that are necessary before a person is reached. When X 0, the 5 0.1
person was reached on her or his primary phone (no switching was necessary); when 1.00
X 1, a dialing switch was necessary, and the person was found at the secondary
phone; and so on up to five switches. Table 3–3 gives the probability distribution for
this random variable.
A plot of the probability distribution of this random variable is given in Fig-
ure 3–4. When more than two switches occur on a given call, extra costs are incurred.
What is the probability that for a given call there would be extra costs?
Solution
P(X
2) P(3) P(4) P (5) 0.2 0.1 0.1 0.4
What is the probability that at least one switch will occur on a given call?
1 P(0) 0.9, a high probability.
values.
0.3
The values of a discrete random variable do not have to be positive whole num-
bers; they just have to “jump” from one possible value to the next without being able 0.2
to have any value in between. For example, the amount of money you make on an
investment may be $500, or it may be a loss: $200. At any rate, it can be measured 0.1
at best to the nearest cent, so this variable is discrete.
What are continuous random variables, then? 0 x
0 1 2 3 4 5
A continuous random variable may take on any value in an interval of
numbers (i.e., its possible values are uncountably infinite).
98 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
96 Chapter 3
Discrete Continuous
The values of continuous random variables can be measured (at least in theory) to
any degree of accuracy. They move continuously from one possible value to another,
without having to jump. For example, temperature is a continuous random variable,
since it can be measured as 72.00340981136 . . . °. Weight, height, and time are other
examples of continuous random variables.
The difference between discrete and continuous random variables is illustrated in
Figure 3–5. Is wind speed a discrete or a continuous random variable?
2. a P(x) = 1 (3–2)
all x
These conditions must hold because the P(x) values are probabilities. Equation 3–1
states that all probabilities must be greater than or equal to zero, as we know from
Chapter 2. For the second rule, equation 3–2, note the following. For each value x,
P(x) P(X x) is the probability of the event that the random variable equals x.
Since by definition all x means all the values the random variable X may take, and
since X may take on only one value at a time, the occurrences of these values are
mutually exclusive events, and one of them must take place. Therefore, the sum of all
the probabilities P (x) must be 1.00.
Random Variables 97
TABLE 3–4 Cumulative Distribution Function of the Number of Switches (Example 3–2)
x P(x) F(x)
0 0.1 0.1
1 0.2 0.3
2 0.3 0.6
3 0.2 0.8
4 0.1 0.9
5 0.1 1.00
1.00
We define the cumulative distribution function (also called cumulative probability function)
as follows.
Table 3–4 gives the cumulative distribution function of the random variable of
Example 3–2. Note that each entry of F(x) is equal to the sum of the corresponding
values of P(i) for all values i less than or equal to x. For example, F (3) P (X 3)
P (0) P(1) P(2) P(3) 0.1 0.2 0.3 0.2 0.8. Of course, F(5) 1.00
because F(5) is the sum of the probabilities of all values that are less than or equal to
5, and 5 is the largest value of the random variable.
Figure 3–6 shows F(x) for the number of switches on a given call. All cumulative
distribution functions are nondecreasing and equal 1.00 at the largest possible value
of the random variable.
Let us consider a few probabilities. The probability that the number of switches
will be less than or equal to 3 is given by F (3) 0.8. This is illustrated, using the
probability distribution, in Figure 3–7.
F(x)
1.00
0.9
0.8
0.7 P(3) = 0.2
0.6
0.5
0.4
0.3
0.2
0.1
0 x
0 1 2 3 4 5
100 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
98 Chapter 3
FIGURE 3–7 The Probability That at FIGURE 3–8 Probability That More than One
Most Three Switches Switch Will Occur
Will Occur
P(x)
P(x)
P(X 3) = F(3) 0.3
0.3 F(1) P(X
1) =
1 – F(1)
0.2 Total
0.2 probability = 1.00
0.1
0.1
x
0 1 2 3 4 5
0 1 2 3 4 5 x
The probability that more than one switch will occur, P(X
1), is equal to 1 F(1)
1 0.3 0.7. This is so because F (1) P (X 1), and P (X 1) P (X
1) 1 (the two
events are complements of each other). This is demonstrated in Figure 3–8.
The probability that anywhere from one to three switches will occur is P (1
X 3). From Figure 3–9 we see that this is equal to F (3) F (0) 0.8 0.1 0.7.
(This is the probability that the number of switches that occur will be less than or
equal to 3 and greater than 0.) This, and other probability questions, could cer-
tainly be answered directly, without use of F (x). We could just add the probabili-
ties: P (1) P (2) P (3) 0.2 0.3 0.2 0.7. The advantage of F (x) is that
probabilities may be computed by few operations [usually subtraction of two val-
ues of F (x), as in this example], whereas use of P (x) often requires lengthier
computations.
If the probability distribution is available, use it directly. If, on the other hand,
you have a cumulative distribution function for the random variable in question, you
may use it as we have demonstrated. In either case, drawing a picture of the proba-
bility distribution is always helpful. You can look at the signs in the probability state-
ment, such as P(X x) versus P (X x ), to see which values to include and which
ones to leave out of the probability computation.
FIGURE 3–9 Probability That Anywhere from One to Three Switches Will Occur
P(x)
F(3)
P(1 X 3) = F(3) – F(0)
0.3
F(0)
0.2
0.1
x
0 1 2 3 4 5
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 101
Complete Business Companies, 2009
Statistics, Seventh Edition
Random Variables 99
PROBLEMS
3–1. The number of telephone calls arriving at an exchange during any given minute
between noon and 1:00 P.M. on a weekday is a random variable with the following
probability distribution.
x P(x)
0 0.3
1 0.2
2 0.2
3 0.1
4 0.1
5 0.1
x P(x)
0 0.01
1 0.09
2 0.30
3 0.20
4 0.20
5 0.10
6 0.10
x(%) P(x)
0 0.10
10 0.20
20 0.35
30 0.20
40 0.10
50 0.05
1
Amy Farley, “Health and Fitness on the Road,” Travel and Leisure, April 2007, p. 182.
102 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
100 Chapter 3
3–4. An automobile dealership records the number of cars sold each day. The data
are used in calculating the following probability distribution of daily sales:
x P(x)
0 0.1
1 0.1
2 0.2
3 0.2
4 0.3
5 0.1
a. Find the probability that the number of cars sold tomorrow will be
between two and four (both inclusive).
b. Find the cumulative distribution function of the number of cars sold
per day.
c. Show that P (x) is a probability distribution.
3–5. Consider the roll of a pair of dice, and let X denote the sum of the two num-
bers appearing on the dice. Find the probability distribution of X, and find the cumu-
lative distribution function. What is the most likely sum?
3–6. The number of intercity shipment orders arriving daily at a transportation
company is a random variable X with the following probability distribution:
x P(x)
0 0.1
1 0.2
2 0.4
3 0.1
4 0.1
5 0.1
2
Jenny Anderson and Julie Creswell, “Make Less Than $240 Million? You’re Off Top Hedge Fund List,” The New York
Times, April 24, 2007, p. A1.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 103
Complete Business Companies, 2009
Statistics, Seventh Edition
fund manager in the top tier, in millions of dollars a year, is given by the following
probability distribution:
x ($ millions) P(x)
$1,700 0.2
1,500 0.2
1,200 0.3
1,000 0.1
800 0.1
600 0.05
400 0.05
a. Find the probability that the annual income of a hedge fund manager will
be between $400 million and $1 billion (both inclusive).
b. Find the cumulative distribution function of X.
c. Use F(x) computed in (b) to evaluate the probability that the annual
income of a hedge fund manager will be less than or equal to $1 billion.
d. Find the probability that the annual income of a hedge fund manager will
be greater than $600 million and less than or equal to $1.5 billion.
3–8. The number of defects in a machine-made product is a random variable X with
the following probability distribution:
x P(x)
0 0.1
1 0.2
2 0.3
3 0.3
4 0.1
x(%) P(x)
9 0.05
10 0.15
11 0.30
12 0.20
13 0.15
14 0.10
15 0.05
102 Chapter 3
3–10. The daily exchange rate of one dollar in euros during the first three months
of 2007 can be inferred to have the following distribution.3
x P(x)
0.73 0.05
0.74 0.10
0.75 0.25
0.76 0.40
0.77 0.15
0.78 0.05
Suppose a coin is tossed. If it lands heads, you win a dollar; but if it lands tails, you
lose a dollar. What is the expected value of this game? Intuitively, you know you have
an even chance of winning or losing the same amount, and so the average or expected
3
Inferred from a chart of dollars in euros published in “Business Day,” The New York Times, April 20, 2007, p. C10.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 105
Complete Business Companies, 2009
Statistics, Seventh Edition
TABLE 3–5 Computing the Expected Number of Switches for Example 3–2
x P(x) xP(x)
0 0.1 0
1 0.2 0.2
2 0.3 0.6
3 0.2 0.6
4 0.1 0.4
5 0.1 0.5
—— ——
1.00 2.3 ← Mean, E(X )
value is zero. Your payoff from this game is a random variable, and we find its
expected value from equation 3–4: E(X ) (1)(12) (1)(12) 0. The definition FIGURE 3–10
The Mean of a Discrete
of an expected value, or mean, of a random variable thus conforms with our intuition. Random Variable as a
Incidentally, games of chance with an expected value of zero are called fair games. Center of Mass for
Let us now return to Example 3–2 and find the expected value of the random vari- Example 3–2
able involved—the expected number of switches on a given call. For convenience, we
compute the mean of a discrete random variable by using a table. In the first column
of the table we write the values of the random variable. In the second column we write P(x)
the probabilities of the different values, and in the third column we write the products
xP(x) for each value x. We then add the entries in the third column, giving us E(X )
xP(x), as required by equation 3–4. This is shown for Example 3–2 in Table 3–5. 0.3
As indicated in the table, E(X ) 2.3. We can say that, on the average, 2.3
switches occur per call. As this example shows, the mean does not have to be one of 0.2
the values of the random variable. No calls have 2.3 switches, but 2.3 is the average
0.1
number of switches. It is the expected number of switches per call, although here the
exact expectation will not be realized on any call. x
As the weighted average of the values of the random variable, with probabilities 0 12 3 4 5
as weights, the mean is the center of mass of the probability distribution. This is Mean = 2.3
demonstrated for Example 3–2 in Figure 3–10.
The function h(X ) could be X 2, 3X 4, log X, or any function. As we will see shortly, equa-
tion 3–5 is most useful for computing the expected value of the special function h(X )
X 2. But let us first look at a simpler example, where h(X ) is a linear function of X. A lin-
ear function of X is a straight-line relation: h(X ) a bX, where a and b are numbers.
Monthly sales of a certain product, recorded to the nearest thousand, are believed to EXAMPLE 3–3
follow the probability distribution given in Table 3–6. Suppose that the company has
a fixed monthly production cost of $8,000 and that each item brings $2. Find the
expected monthly profit from product sales.
106 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
104 Chapter 3
TABLE 3–6 Probability Distribution of Monthly Product Sales for Example 3–3
Solution The company’s profit function from sales of the product is h(X ) 2X 8,000. Equa-
tion 3–5 tells us that the expected value of h(X ) is the sum of the values of h(X ), each
value multiplied by the probability of the particular value of X. We thus add two
columns to Table 3–6: a column of values of h(x) for all x and a column of the prod-
ucts h(x)P(x). At the bottom of this column we find the required sum E[h(X )]
all x h(x)P(x). This is done in Table 3–7. As shown in the table, expected monthly
profit from sales of the product is $5,400.
Equation 3–6 holds for any random variable, discrete or continuous. Once you
know the expected value of X, the expected value of aX b is just aE (X ) b.
In Example 3–3 we could have obtained the expected profit by finding the mean of
X first, and then multiplying the mean of X by 2 and subtracting from this the fixed
cost of $8,000. The mean of X is 6,700 (prove this), and the expected profit is there-
fore E [h(X )] E(2X 8,000) 2E (X ) 8,000 2(6,700) 8,000 $5,400, as we
obtained using Table 3–7.
As mentioned earlier, the most important expected value of a function of X is the
expected value of h(X ) X 2. This is because this expected value helps us compute the
variance of the random variable X and, through the variance, the standard deviation.
Using equation 3–7, we can compute the variance of a discrete random variable by
subtracting the mean from each value x of the random variable, squaring the result,
multiplying it by the probability P(x), and finally adding the results for all x. Let us
apply equation 3–7 and find the variance of the number of dialing switches in
Example 3–2:
2 (x )2P(x)
(0 2.3)2(0.1) (1 2.3)2(0.2) (2 2.3)2(0.3)
(3 2.3)2(0.2) (4 2.3)2(0.1) (5 2.3)2(0.1)
2.01
The variance of a discrete random variable can be computed more easily. Equa-
tion 3–7 can be shown mathematically to be equivalent to the following computa-
tional form of the variance.
Equation 3–8 has the same relation to equation 3–7 as equation 1–7 has to equa-
tion 1–3 for the variance of a set of points.
Equation 3–8 states that the variance of X is equal to the expected value of X 2
minus the squared mean of X. In computing the variance using this equation, we use
the definition of the expected value of a function of a discrete random variable, equa-
tion 3–5, in the special case h(X ) X 2. We compute x 2 for each x, multiply it by P (x),
and add for all x. This gives us E(X 2). To get the variance, we subtract from E(X 2) the
mean of X, squared.
We now compute the variance of the random variable in Example 3–2, using this
method. This is done in Table 3–8. The first column in the table gives the values of X,
the second column gives the probabilities of these values, the third column gives the
products of the values and their probabilities, and the fourth column is the product of
the third column and the first [because we get x 2P (x) by just multiplying each entry
xP(x) by x from column 1]. At the bottom of the third column we find the mean of X,
and at the bottom of the fourth column we find the mean of X 2. Finally, we perform
the subtraction E(X 2) [E(X )] 2 to get the variance of X:
106 Chapter 3
TABLE 3–8 Computations Leading to the Variance of the Number of Switches in Example 3–2
Using the Shortcut Formula (Equation 3–8)
This is the same value we found using the other formula for the variance, equa-
tion 3–7. Note that equation 3–8 holds for all random variables, discrete or otherwise.
Once we obtain the expected value of X 2 and the expected value of X, we can com-
pute the variance of the random variable using this equation.
For random variables, as for data sets or populations, the standard deviation is
equal to the (positive) square root of the variance. We denote the standard deviation
of a random variable X by or by SD(X ).
Using equation 3–10, we will find the variance of the profit in Example 3–3.
The profit is given by 2X 8,000. We need to find the variance of X in this example.
We find
Finally, we find the variance of the profit, using equation 3–10, as 22(1,610,000)
6,440,000. The standard deviation of the profit is 16,440,000 2,537.72.
a1X1 a2X2 . . . ak X k
where a1, a2, . . . , ak are constants. For instance, let X 1, X 2, . . . , X k be the random
quantities of k different items that you buy at a store, and let a1, a2, . . . , ak be their
respective prices. Then a1X1 a 2X 2 . . . ak Xk will be the random total amount
you have to pay for the items. Note that the sum of the variables is a linear compos-
ite where all a’s are 1. Also, X1 X2 is a linear composite with a1 = 1 and a2 = 1.
We therefore need to know how to calculate the expected value and variance of
the sum or linear composite of several random variables. The following results are
useful in computing these statistics.
The expected value of the sum of several random variables is the sum of the
individual expected values. That is,
E(X1 X2 . . . Xk) E(X1) E(X2) . . . E(Xk)
Similarly, the expected value of a linear composite is given by
E(a1X1 a2X2 . . . akXk) a1E(X1) a2E(X2) . . . akE(Xk)
In the case of variance, we will look only at the case where X1, X 2, . . . , Xk are
mutually independent, because if they are not mutually independent, the compu-
tation involves covariances, which we will learn about in Chapter 10. Mutual inde-
pendence means that any event Xi x and any other event Xj y are independent.
We can now state the result.
110 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
108 Chapter 3
EXAMPLE 3–4 A portfolio includes stocks in three industries: financial, energy, and consumer goods
(in equal proportions). Assume that these three sectors are independent of each other
and that the expected annual return (in dollars) and standard deviations are as fol-
lows: financial: 1,000 and 700; energy 1,200 and 1,100; and consumer goods 600 and
300 (respectively). What are the mean and standard deviation of annual dollar-value
return on this portfolio?
Solution The mean of the sum of the three random variables is the sum of the means 1,000
1,200 600 $2,800. Since the three sectors are assumed independent, the variance
is the sum of the three variances. It is equal to 7002 1,1002 3002 1,790,000. So the
standard deviation is 11,790,000 $1,337.90.
Chebyshev’s Theorem
The standard deviation is useful in obtaining bounds on the possible values of the ran-
dom variable with certain probability. The bounds are obtainable from a well-known
theorem, Chebyshev’s theorem (the name is sometimes spelled Tchebychev, Tchebysheff,
or any of a number of variations). The theorem says that for any number k greater
than 1.00, the probability that the value of a given random variable will be within k
standard deviations of the mean is at least 1 1k 2. In Chapter 1, we listed some results
for data sets that are derived from this theorem.
Chebyshev’s Theorem
For a random variable X with mean and standard deviation , and for any
number k
1,
P(|X | k) 1 1k2 (3–11)
Let us see how the theorem is applied by selecting values of k. While k does not
have to be an integer, we will use integers. When k 2, we have 1 1k 2 0.75:
The theorem says that the value of the random variable will be within a distance of
2 standard deviations away from the mean with at least a 0.75 probability. Letting
k 3, we find that X will be within 3 standard deviations of its mean with at least a
0.89 probability. We can similarly apply the rule for other values of k. The rule holds
for data sets and populations in a similar way. When applied to a sample of obser-
vations, the rule says that at least 75% of the observations lie within 2 standard devi-
ations of the sample mean x . It says that at least 89% of the observations lie within
3 standard deviations of the mean, and so on. Applying the theorem to the random
variable of Example 3–2, which has mean 2.3 and standard deviation 1.418, we find
that the probability that X will be anywhere from 2.3 2(1.418) to 2.3 2(1.418)
0.536 to 5.136 is at least 0.75. From the actual probability distribution in this exam-
ple, Table 3–3, we know that the probability that X will be between 0 and 5 is 1.00.
Often, we will know the distribution of the random variable in question, in which
case we will be able to use the distribution for obtaining actual probabilities rather
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 111
Complete Business Companies, 2009
Statistics, Seventh Edition
than the bounds offered by Chebyshev’s theorem. If the exact distribution of the
random variable is not known, but we may assume an approximate distribution, the
approximate probabilities may still be better than the general bounds offered by
Chebyshev’s theorem.
The Templates for Random Variables
The template shown in Figure 3–11 can be used to calculate the descriptive statistics of
a random variable and also those of a function h(x) of that random variable. To calcu-
late the statistics of h(x), the Excel formula for the function must be entered in cell G12.
For instance, if h(x) 5x 2 8, enter the Excel formula =5*x^2+8 in cell G12.
The template shown in Figure 3–12 can be used to compute the statistics about the
sum of mutually independent random variables. While entering the variance of the
individual X ’s, be careful that what you enter is the variance and not the standard
deviation. At times, you know only the standard deviation and not the variance. In
such cases, you can make the template calculate the variance from the standard devi-
ation. For example, if the standard deviation is 1.23, enter the formula =1.23^2,
which will compute and use the variance.
The template shown in Figure 3–13 can be used to compute the statistics about
linear composites of mutually independent random variables. You will enter the coef-
ficients (the ai’s) in column B.
A B C D E F G H I J
1 Statistics of a Random Variable Title
2
3 x P(x) F(x)
4 0 0.1 0.1 Statistics of X
5 1 0.2 0.3 Mean 2.3
6 2 0.3 0.6 Variance 2.01
7 3 0.2 0.8 Std. Devn. 1.41774
8 4 0.1 0.9 Skewness 0.30319
9 5 0.1 1 (Relative) Kurtosis -0.63132
10
11 Definition of h(x) x
12 h(x) = 8 0
13
14 Statistics of h(x)
15 Mean 44.5
16 Variance 1400.25
17 Std. Devn. 37.4199
18 Skewness 1.24449
19 (Relative) Kurtosis 0.51413
20
A B C D E F
1 Sum of Independent Random Variables
2
3 Mean Variance Std Devn.
4 X1 18.72 5.2416 2.289454
5 X2 4.9 3.185 1.784657
6 X3 2.4 2.4 1.549193
7 X4
8 X5
9 X6
10 X7
11 X8
12 X9
13 X10
14
15 Sum 26.02 10.8266 3.29038
16 Mean Variance Std Devn.
112 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
110 Chapter 3
A B C D E F G
1 Linear Composite of Independent Random Variables
2
3 Coef. Mean Variance Std Devn.
4 20 X1 18.72 5.2416 2.289454
5 10 X2 4.9 3.185 1.784657
6 30 X3 2.4 2.4 1.549193
7 X4
8 X5
9 X6
10 X7
11 X8
12 X9
13 X10
14
15 Composite 495.4 4575.14 67.63978
16 Mean Variance Std Devn.
PROBLEMS
3–11. Find the expected value of the random variable in problem 3–1. Also find the
variance of the random variable and its standard deviation.
3–12. Find the mean, variance, and standard deviation of the random variable in
problem 3–2.
3–13. What is the expected percentage of people responding to an advertisement
when the probability distribution is the one given in problem 3–3? What is the vari-
ance of the percentage of people who respond to the advertisement?
3–14. Find the mean, variance, and standard deviation of the number of cars sold
per day, using the probability distribution in problem 3–4.
3–15. What is the expected number of dots appearing on two dice? (Use the prob-
ability distribution you computed in your answer to problem 3–5.)
3–16. Use the probability distribution in problem 3–6 to find the expected number
of shipment orders per day. What is the probability that on a given day there will be
more orders than the average?
3–17. Find the mean, variance, and standard deviation of the annual income of a
hedge fund manager, using the probability distribution in problem 3–7.
3–18. According to Chebyshev’s theorem, what is the minimum probability that a
random variable will be within 4 standard deviations of its mean?
3–19. At least eight-ninths of a population lies within how many standard devia-
tions of the population mean? Why?
3–20. The average annual return on a certain stock is 8.3%, and the variance of the
returns on the stock is 2.3. Another stock has an average return of 8.4% per year and
a variance of 6.4. Which stock is riskier? Why?
3–21. Returns on a certain business venture, to the nearest $1,000, are known to fol-
low the probability distribution
x P(x)
2,000 0.1
1,000 0.1
0 0.2
1,000 0.2
2,000 0.3
3,000 0.1
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 113
Complete Business Companies, 2009
Statistics, Seventh Edition
112 Chapter 3
TABLE 3–9
Bernoulli Distribution
3–4 Bernoulli Random Variable
x P(x)
The first standard random variable we shall study is the Bernoulli random variable,
named in honor of the mathematician Jakob Bernoulli (1654–1705). It is the building
1 p
block for other random variables in this chapter. The distribution of a Bernoulli ran-
0 1p
dom variable X is given in Table 3–9. As seen in the table, x is 1 with probability p
and 0 with probability (1 p). The case where x 1 is called “success” and the case
where x 0 is called “failure.”
Observe that
E (X ) 1 * p 0 * (1 p) p
E (X 2) 12 * p 02 * (1 p) p
V (X ) E(X 2) [E(X )]2 p p 2 p(1 p)
Often the quantity (1 p ), which is the probability of failure, is denoted by the sym-
bol q, and thus V(X ) pq. If X is a Bernoulli random variable with probability of suc-
cess p, then we write X BER(p), where the symbol “” is read “is distributed as”
and BER stands for Bernoulli. The characteristics of a Bernoulli random variable are
summarized in the following box.
Bernoulli Distribution
If X BER(p), then
P(1) p; P(0) 1 p
E [X] p
V(X) p(1 p)
For example, if p 0.8, then
E [X] 0.8
V(X) 0.8 * 0.2 0.16
If the outcome of a trial can only be either a success or a failure, then the
trial is a Bernoulli trial.
The number of successes X in one Bernoulli trial, which can be 1 or 0,
is a Bernoulli random variable.
Another example is tossing a coin. If we take heads as 1 and tails as 0, then the
outcome of a toss is a Bernoulli random variable.
A Bernoulli random variable is too simple to be of immediate practical use. But
it forms the building block of the binomial random variable, which is quite useful
in practice. The binomial random variable in turn is the basis for many other useful
cases.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 115
Complete Business Companies, 2009
Statistics, Seventh Edition
00101100
the third, fifth, and sixth are good pins, or successes. The rest are failures.
In practice, we are usually interested in the total number of good pins rather than
the sequence of 1’s and 0’s. In the example above, three out of eight are good. In the
general case, let X denote the total number of good pins produced in n trials. We then
have
X X1 X2 Xn
1. The trials must be Bernoulli trials in that the outcomes can only be either
success or failure.
2. The outcomes of the trials must be independent.
3. The probability of success in each trial must be constant.
The first condition is easy to understand. Coming to the second condition, we already
saw that the outcomes of coin tosses will be independent. As an example of dependent
outcomes, consider the following experiment. We toss a fair coin and if it is heads
we record the outcome as success, or 1, and if it is tails we record it as failure, or 0. For
the second outcome, we do not toss the coin but we record the opposite of the previ-
ous outcome. For the third outcome, we toss the coin again and repeat the process
of writing the opposite result for every other outcome. Thus in the sequence of all
116 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
114 Chapter 3
outcomes, every other outcome will be the opposite of the previous outcome. We
stop after recording 20 outcomes. In this experiment, all outcomes are random and of
Bernoulli type with success probability 0.5. But they are not independent in that every
other outcome is the opposite of, and thus dependent on, the previous outcome. And
for this reason, the number of successes in such an experiment will not be binomially
distributed. (In fact, the number is not even random. Can you guess what that number
will be?)
The third condition of constant probability of success is important and can be
easily violated. Tossing two different coins with differing probabilities of success will
violate the third condition (but not the other two). Another case that is relevant to the
third condition, which we need to be aware of, is sampling with and without replacement.
Consider an urn that contains 10 green marbles (successes) and 10 red marbles (fail-
ures). We pick a marble from the urn at random and record the outcome. The prob-
ability of success is 1020 0.5. For the second outcome, suppose we replace the first
marble drawn and then pick one at random. In this case the probability of success
remains at 1020 0.5, and the third condition is satisfied. But if we do not replace the
first marble before picking the second, then the probability of the second outcome
being a success is 919 if the first was a success and 1019 if the first was a failure.
Thus the probability of success does not remain constant (and is also dependent on
the previous outcomes). Therefore, the third condition is violated (as is the second
condition). This means that sampling with replacement will follow a binomial distri-
bution, but sampling without replacement will not. Later we will see that sampling
without replacement will follow a hypergeometric distribution.
F
the probability that the number of successes in the five trials is exactly three.
First, we note that there are ( 35 ) ways of getting three successes out of five trials.
V Next we observe that each of these ( 35 ) possibilities has 0.63 * 0.42 probability of occur-
CHAPTER 4
5
P (X 3) ¢ ≤ * 0.63 * 0.42 0.3456
3
We can generalize this equation with n denoting the number of trials and p the prob-
ability of success:
n
P(X x) ¢ ≤ px(1 p)(nx) for x 0, 1, 2, . . . , n (3–12)
x
expected value of p. Hence the expected value of X must be np, that is, E(X ) np.
Furthermore, the variance of each Bernoulli random variable is p(1 p), and they
are all independent. Therefore variance of X is np(1 p), that is, V(X ) np(1 p).
The formulas for the binomial distribution are summarized in the next box, which
also presents sample calculations that use these formulas.
Binomial Distribution
If X B(n, p), then
n
P(X x) ¢ ≤ px(1 p)(nx) x 0, 1, 2, . . . , n
x
E(X) np
V(X) np(1 p)
The Template
The calculation of binomial probabilities, especially the cumulative probabilities, can
be tedious. Hence we shall use a spreadsheet template. The template that can be used
to calculate binomial probabilities is shown in Figure 3–14. When we enter the values
for n and p, the template automatically tabulates the probability of “Exactly x,” “At
most x,” and “At least x” number of successes. This tabulation can be used to solve
many kinds of problems involving binomial probabilities, as explained in the next
section. Besides the tabulation, a histogram is also created on the right. The his-
togram helps the user to visualize the shape of the distribution.
A B C D E F G H I J K L M
1
2
Binomial Distribution
3 n p Mean Variance Stdev
4 5 0.6 3 1.2 1.095445
5
6 x P(Exactly x) P(At most x) P(At least x)
7 0 0.0102 0.0102 1.0000
1 0.0768 0.0870 0.9898 P(Exactly x)
8
0.4000
9 2 0.2304 0.3174 0.9130
10 3 0.3456 0.6630 0.6826 0.3500
11 4 0.2592 0.9222 0.3370
12 5 0.0778 1.0000 0.0778 0.3000
13
14 0.2500
15 0.2000
16
17 0.1500
18
19 0.1000
20 0.0500
21
22 0.0000
23 0 1 2 3 4 5
24 x
25
26
118 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
116 Chapter 3
P (1 x 3) F (3) F(0)
PROBLEMS
3–32. Three of the 10 airplane tires at a hangar are faulty. Four tires are selected at
random for a plane; let F be the number of faulty tires found. Is F a binomial random
variable? Explain.
3–33. A salesperson finds that, in the long run, two out of three sales calls are suc-
cessful. Twelve sales calls are to be made; let X be the number of concluded sales. Is
X a binomial random variable? Explain.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 119
Complete Business Companies, 2009
Statistics, Seventh Edition
3–34. A large shipment of computer chips is known to contain 10% defective chips.
If 100 chips are randomly selected, what is the expected number of defective ones?
What is the standard deviation of the number of defective chips? Use Chebyshev’s
theorem to give bounds such that there is at least a 0.75 chance that the number of
defective chips will be within the two bounds.
3–35. A new treatment for baldness is known to be effective in 70% of the cases
treated. Four bald members of the same family are treated; let X be the number of
successfully treated members of the family. Is X a binomial random variable?
Explain.
3–36. What are Bernoulli trials? What is the relationship between Bernoulli trials
and the binomial random variable?
3–37. Look at the histogram of probabilities in the binomial distribution template
[[Link]] for the case n 5 and p 0.6.
a. Is this distribution symmetric or skewed? Now, increase the value of n to
10, 15, 20, . . . Is the distribution becoming more symmetric or more
skewed? Make a formal statement about what happens to the distribu-
tion’s shape when n increases.
b. With n 5, change the p value to 0.1, 0.2, . . . Observe particularly the
case of p 0.5. Make a formal statement about how the skewness of the
distribution changes with p.
3–38. A salesperson goes door-to-door in a residential area to demonstrate the use
of a new household appliance to potential customers. At the end of a demonstration,
the probability that the potential customer would place an order for the product is a
constant 0.2107. To perform satisfactorily on the job, the salesperson needs at least
four orders. Assume that each demonstration is a Bernoulli trial.
a. If the salesperson makes 15 demonstrations, what is the probability that
there would be exactly 4 orders?
b. If the salesperson makes 16 demonstrations, what is the probability that
there would be at most 4 orders?
c. If the salesperson makes 17 demonstrations, what is the probability that
there would be at least 4 orders?
d. If the salesperson makes 18 demonstrations, what is the probability that
there would be anywhere from 4 to 8 (both inclusive) orders?
e. If the salesperson wants to be at least 90% confident of getting at least
4 orders, at least how many demonstrations should she make?
f. The salesperson has time to make only 22 demonstrations, and she still
wants to be at least 90% confident of getting at least 4 orders. She intends
to gain this confidence by improving the quality of her demonstration and
thereby improving the chances of getting an order at the end of a demon-
stration. At least to what value should this probability be increased in
order to gain the desired confidence? Your answer should be accurate to
four decimal places.
3–39. An MBA graduate is applying for nine jobs, and believes that she has in each
of the nine cases a constant and independent 0.48 probability of getting an offer.
a. What is the probability that she will have at least three offers?
b. If she wants to be 95% confident of having at least three offers, how many
more jobs should she apply for? (Assume each of these additional appli-
cations will also have the same probability of success.)
c. If there are no more than the original nine jobs that she can apply for,
what value of probability of success would give her 95% confidence of at
least three offers?
120 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
118 Chapter 3
with x 1 trials, and we should have stopped right there. The last trial being a success,
the first x 1 trials should have had s 1 successes. Thus the formula should be
x -1 s
P(X x) ¢ ≤ p (1 p)(xs)
s - 1
The formula for the mean can be arrived at intuitively. For instance, if p 0.3, and
3 successes are desired, then the expected number of trials to achieve 3 successes
is 10. Thus the mean should have the formula s/p. The variance is given by the
formula 2 s( 1 p)p2.
A B C D E F G H I J K L M
1 Negative Binomial Distribution
2 s p Mean Variance Stdev.
3 2 0.6000 3.33333 2.22222 1.490712
4
5 x P(Exactly x) P(At most x) P(At least x)
6 2 0.3600 0.3600 1.0000 P(Exactly x)
7 3 0.2880 0.6480 0.6400 0.4
8 4 0.1728 0.8208 0.3620
0.35
9 5 0.0922 0.9130 0.1792
10 6 0.0461 0.9590 0.0870 0.3
11 7 0.0221 0.9812 0.0410
12 8 0.0103 0.9915 0.0188 0.25
13 9 0.0047 0.9962 0.0085
14 10 0.0021 0.9983 0.0036 0.2
15 11 0.0009 0.9993 0.0017 0.15
16 12 0.0004 0.9997 0.0007
17 13 0.0002 0.9999 0.0003 0.1
18 14 0.0001 0.9999 0.0001
19 15 0.0000 1.0000 0.0001 0.05
20 16 0.0000 1.0000 0.0000 0
21 17 0.0000 1.0000 0.0000 2 3 4 5 6 7 8 9 10 11
22 18 0.0000 1.0000 0.0000 x
23 19 0.0000 1.0000 0.0000
24 20 0.0000 1.0000 0.0000
122 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
120 Chapter 3
Let us return to the operator who wants to keep producing pins until he has two
good ones. The probability of getting a good one at any trial is 0.6. What is the
probability that he would produce exactly five? Looking at the template, we see that
the answer is 0.0922, which agrees with the calculation in the preceding box. We can,
in addition, see that the probability of producing at most five is 0.9130 and at least
five is 0.1792.
Suppose the operator has enough time to produce only four pins. How confident
can he be that he would have two good ones within the available time? Looking at
the template, we see that the probability of needing at most four trials is 0.8208 and
hence he can be about 82% confident.
If he wants to be at least 95% confident, at least how many trials should he be pre-
pared for? Looking at the template in the “At most” column, we infer that he should
be prepared for at least six trials, since five trials yield only 91.30% confidence and
six trials yield 95.90%.
Suppose the operator has enough time to produce only four pins and still
wants to be at least 95% confident of getting two good pins within the available
time. Suppose, further, he wants to achieve this by increasing the value of p.
What is the minimum p that would achieve this? Using the Goal Seek command,
this can be answered as 0.7514. Specifically, you set cell D8 to 0.95 by changing
cell C3.
A B C D E F G H I J K M N
1
2
Geometric Distribution
3 p Mean Variance Stdev.
4 0.6 1.666667 1.111111 1.054093
5
6 x P(Exactly x) P(At most x) P(At least x)
7 1 0.6000 0.6000 1.0000
8 2 0.2400 0.8400 0.4000 P(Exactly x)
9 3 0.0960 0.9360 0.1600 0.7
10 4 0.0384 0.9744 0.0640
11 5 0.0154 0.9898 0.0256 0.6
12 6 0.0061 0.9959 0.0102
13 7 0.0025 0.9984 0.0041 0.5
14 8 0.0010 0.9993 0.0016
9 0.0004 0.9997 0.0007 0.4
15
16 10 0.0002 0.9999 0.0003
0.3
17 11 0.0001 1.0000 0.0001
18 12 0.0000 1.0000 0.0000
0.2
19 13 0.0000 1.0000 0.0000
20 14 0.0000 1.0000 0.0000
0.1
21 15 0.0000 1.0000 0.0000
22 16 0.0000 1.0000 0.0000 0
23 17 0.0000 1.0000 0.0000 1 2 3 4 5 6 7 8 9 10
24 18 0.0000 1.0000 0.0000 x
25 19 0.0000 1.0000 0.0000
26 20 0.0000 1.0000 0.0000
F
Assume that a box contains 10 pins of which 6 are good and the rest defective. An
operator picks 5 pins at random from the 10, and is interested in the number of good
V
pins picked. Let X denote the number of good pins picked. We should first note that
this is a case of sampling without replacement and therefore X is not a binomial ran-
dom variable. The probability of success p, which is the probability of picking a good
S
CHAPTER 4
pin, is neither constant nor independent from trial to trial. The first pin picked has
0.6 probability of being good; the second has either 59 or 69 probability, depend-
ing on whether or not the first was good. Therefore, X does not follow a binomial
distribution, but follows what is called a hypergeometric distribution. In general,
when a pool of size N contains S successes and (N S ) failures, and a random sample
of size n is drawn from the pool, the number of successes X in the sample follows
124 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
122 Chapter 3
S N–S Pool
x n–x Sample
S N -S
¢ ≤¢ ≤
x n - x
P (X = x) =
N
¢ ≤
n
In this formula n cannot exceed N since the sample size cannot exceed the pool size.
There is also a minimum possible value and a maximum possible value for x,
depending on the values of n, S, and N. For instance, if n 9, S 5, and N 12, you
may verify that there would be at least two successes and at most five. In general, the
minimum possible value for x is Max(0, n N S ) and the maximum possible value
is Min(n, S ).
N - n
V(X) = np(1 - p) B R
N - 1
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 125
Complete Business Companies, 2009
Statistics, Seventh Edition
6 10 - 6
¢ ≤¢ ≤
2 5 -2
P(X = 2) = = 0.2381
10
¢ ≤
5
E(X) 5 * (610) 3.00
V(X) 5 * 0.6 * (1 0.6) * (10 5)(10 1) 0.6667
The proportion of successes in the pool, which is the ratio S/N, is the probability
of the first trial being a success. This ratio is denoted by the symbol p since it resem-
bles the p used in the binomial distribution. The expected value and variance of X are
expressed using p as
E(X ) np
N - n
V (X ) = np(1 - p) B R
N - 1
Notice that the formula for E(X ) is the same as for the binomial case. The formula for
V (X ) is similar to but not the same as the binomial case. The difference is the additional
factor in square brackets. This additional factor approaches 1 as N becomes larger and
larger compared to n and may be dropped when N is, say, 100 times as large as n. We
can then approximate the hypergeometric distribution as a binomial distribution.
124 Chapter 3
A B C D E F G H I J K L M
1
2
Hypergeometric Distribution
3 n S N Mean Variance Stdev. Min x Max x
4 5 6 9 3.333333 0.555556 0.745356 2 5
5
6 x P(Exactly x) P(At most x) P(At least x)
7 2 0.1190 0.1190 1.0000
8 3 0.4762 0.5952 0.8810 P(Exactly x)
9 4 0.3571 0.9524 0.4048 0.5
10 5 0.0476 1.0000 0.0476 0.45
11
0.4
12
13 0.35
14 0.3
15
0.25
16
17 0.2
18 0.15
19
20 0.1
21 0.05
22 0
23 2 3 4 5
24 x
25
26
good pins will be selected. How many bad pins must be removed from the pool?
Decreasing N one by one, we find that removing one bad pin is enough.
eµ µx
P (X x) x 0, 1, 2, . . .
x!
where e is the natural base of logarithms, equal to 2.71828. . . . This formula is known
as the Poisson formula, and the distribution is called the Poisson distribution. In
general, if we count the number of times a rare event occurs during a fixed interval,
then that number would follow a Poisson distribution. We know the mean np.
Considering the variance of a Poisson distribution, we note that the binomial
variance is np(1 p). But since p is very small, (1 p) is close to 1 and therefore can
be omitted. Thus the variance of a Poisson random variable is np, which happens to
be the same as its mean. The Poisson formula needs only , and not n or p.
We suddenly realize that we need not know n and p separately. All we need to
know is their product, , which is the mean and the variance of the distribution. Just
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 127
Complete Business Companies, 2009
Statistics, Seventh Edition
one number, , is enough to describe the whole distribution, and in this sense,
the Poisson distribution is a simple one, even simpler than the binomial. If X follows
a Poisson distribution, we shall write X P() where is the expected value of the
distribution. The following box summarizes the Poisson distribution.
e-x
P(X = x) = x = 0, 1, 2, . . .
x!
E(X) np
V(X) np
The Poisson template is shown in Figure 3–19. The only input needed is the
mean in cell C4. The starting value of x in cell B7 is usually zero, but it can be
changed as desired.
A B C D E F G H I J K
1
2
Poisson Distribution
3 Mean Variance Stdev.
4 8 8 2.8284271
5
6 x P(Exactly x) P(At most x) P(At least x)
7 0 0.0003 0.0003 1.0000 P(Exactly x)
8 1 0.0027 0.0030 0.9997 0.16
9 2 0.0107 0.0138 0.9970
10 3 0.0286 0.0424 0.9862 0.14
11 4 0.0573 0.0996 0.9576
12 5 0.0916 0.1912 0.9004 0.12
13 6 0.1221 0.3134 0.8088
0.1
14 7 0.1396 0.4530 0.6866
15 8 0.1396 0.5925 0.5470 0.08
16 9 0.1241 0.7166 0.4075
17 10 0.0993 0.8159 0.2834 0.06
18 11 0.0722 0.8881 0.1841
19 12 0.0481 0.9362 0.1119 0.04
20 13 0.0296 0.9658 0.0638
14 0.0169 0.9827 0.0342 0.02
21
22 15 0.0090 0.9918 0.0173 0
23 16 0.0045 0.9963 0.0082 0 1 2 3 4 5 6 7 8 9 10
24 17 0.0021 0.9984 0.0037 x
25 18 0.0009 0.9993 0.0016
26 19 0.0004 0.9997 0.0007
128 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
126 Chapter 3
will produce on average four perfect pins. We should therefore change the mean in
cell C4 to 4. What is the probability that the lathe will produce at least three perfect
pins in two days? Using the template, we find the answer to be 0.7619. If the operator
wants to be at least 95% confident of producing at least three perfect pins, how many
days should he be prepared to wait? Again, using the template, we find that the oper-
ator should be prepared to wait at least four days.
A Poisson distribution also occurs in other types of situations leading to other forms
of analysis. Consider an emergency call center. The number of distress calls received
within a specific period, being a count of rare events, is usually Poisson-distributed. In
this context, suppose the call center receives on average two calls per hour. In addition,
suppose the crew at the center can handle up to three calls in an hour. What is the prob-
ability that the crew can handle all the calls received in a given hour? Since the crew
can handle up to three calls, we look for the probability of at most three calls. From the
template, the answer is 0.8571. If the crew wanted to be at least 95% confident of han-
dling all the calls received during a given hour, how many calls should it be prepared
to handle? Again, from the template, the answer is five, because the probability of at
most four calls is less than 95% and of at most five calls is more than 95%.
FIGURE 3–20 Histogram of the Probability Distribution FIGURE 3–21 Histogram of the Probability Distribution
of Time to Complete a Task, with Time of Time to Complete a Task, with Time
Measured to the Nearest Minute Measured to the Nearest Half-Minute
P(x) P(x)
0.30
0.25
0.20
0.10 0.10
0.05
x x
1 2 3 4 5 6 1 2 3 4 5 6
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 129
Complete Business Companies, 2009
Statistics, Seventh Edition
P(x)
x
1 2 3 4 5 6
P(x)
x
1 2 3 4 5 6
f(x)
Total area under
f(x) is 1.00
x
1 2 3 4 5 6
128 Chapter 3
F(x)
1.00
F(b)
F(a)
0 x
f(x) a b
P(a X b) = Area under
f(x) between a and b = F(b) — F(a)
Area =
F(a)
x
a b
4
If you are familiar with calculus, you know that the area under a curve of a function is given by the integral of the
function. The probability that X will be between a and b is the definite integral of f (x) between these two points:
x
P (a X b) ba f (x) dx. In calculus notation, we define the cumulative distribution function as F (x) f (y) dy.
5
E(X ) x f (x)dx; V (X ) [x E(X )]2 f (x)dx.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 131
Complete Business Companies, 2009
Statistics, Seventh Edition
f (x) 1(b a) a x b
0 all other x
where a is the minimum possible value and b is the maximum possible value of X.
The graph of f (x) is shown in Figure 3–24. Because the curve of f (x) is a flat line, the
area under it between any two points x1 and x 2 , where a x1 x 2 b, will be a rectan-
gle with height 1(b a) and width (x 2 x1). Thus P(x1 X x 2 ) (x 2 x1)(b a).
If X is uniformly distributed between a and b, we shall write X U(a, b).
The mean of the distribution is the midpoint between a and b, which is (a b)2.
By using integration, it can be shown that the variance is (b a)212. Because the
shape of a uniform distribution is always a rectangle, the skewness and kurtosis
are the same for all uniform distributions. The skewness is zero. (Why?) Because the
shape is flat, the (relative) kurtosis is negative, always equal to 1.2.
The formulas for uniform distribution are summarized in the following box.
Because the probability calculation is simple, there is no special spreadsheet function
for uniform distribution. The box contains some sample calculations.
A common instance of uniform distribution is waiting time for a facility that goes
in cycles. Two good examples are a shuttle bus and an elevator, which move, roughly,
in cycles with some cycle time. If a user comes to a stop at a random time and waits
till the facility arrives, the waiting time will be uniformly distributed between a mini-
mum of zero and a maximum equal to the cycle time. In other words, if a shuttle bus
has a cycle time of 20 minutes, the waiting time would be uniformly distributed
between 0 and 20 minutes.
f(x)
1/(b – a) –
0 a b x
132 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
130 Chapter 3
A B C D E F G H I J K
1 Uniform Distribution
2
3 Min Max Mean Var. Stdev.
4 10 20 15 8.333333333 2.88675
5
6
7
8
9 P(<=x) x x P(>=x) x1 P(x1<X<x2) x2
10 0.2000 12 12 0.8000 12 0.6000 18
11 11 0.1000 12
12 1.0000 22 22 0.0000 11 0.9000 22
13 0.0000 2 5 1.0000 21 0.0000 22
14
15
16 Inverse Calculations
17
18
19 P(<=x) x x P(>=x)
20 0.2 12 17 0.3
21
22 20 0
23 0 10
24 10 1
25
2. The life of a product that fails by accident rather than by wear-and-tear follows
an exponential distribution. Electronic components are good examples. This
information is relevant to warranty policies.
3. The time gap between two successive arrivals to a waiting line, known as the
interarrival time, will be exponentially distributed. This information is
relevant to waiting line management.
f (x) ex
where is the frequency with which the event occurs. The frequency is expressed
as so many times per unit time, such as 1.2 times per month. The mean of the distri-
bution is 1 and the variance is (1)2. Just like the geometric distribution, the expo-
nential distribution is positively skewed.
A Remarkable Property
The exponential distribution has a remarkable property. Suppose the time between
two successive breakdowns of a machine is exponentially distributed with an MTBF
of 100 hours, and we have just witnessed one breakdown. If we start a stopwatch as
soon as it is repaired and put back into service so as to measure the time until the next
failure, then that time will, of course, be exponentially distributed with a of 100
hours. What is remarkable is the following. Suppose we arrive at the scene at some
random time and start the stopwatch (instead of starting it immediately after a break-
down); the time until next breakdown will still be exponentially distributed with the
same of 100 hours. In other words, it is immaterial when the event occurred last
and how much later we start the stopwatch. For this reason, an exponential process is
known as a memoryless process. It does not depend on the past at all.
The Template
The template for this distribution is seen in Figure 3–26. The following box summa-
rizes the formulas and provides example calculations.
To use the exponential distribution template seen in Figure 3–26, the value of
must be entered in cell B4. At times, the mean rather than may be known, in
which case its reciprocal 1 is what should be entered as in cell B4. Note that is
134 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
132 Chapter 3
A B C D E F G H I J K L M
1 Exponential Distribution
2
3 λ Mean Var. Stdev.
4 1.2 0.83333 0.69444 0.83333
5
6
7
8
9
10 P(<=x) x x P(>=x) x1 P(x1<X<x2) x2
11 0.4512 0.5 0.5 0.5488 1 0.2105 2
12 0.9093 2 2 0.0907 2 0.0882 5
13 0.6988 1 1 0.3012
14
15
16
17 Inverse Calculations
18
19
20
21
22
23 P(<=x) x x P(>=x)
24 0.4 0.4257 1.00331 0.3
25 1.91882 0.1
26
27
28
29
the average number of occurrences of a rare event in unit time and is the average
time gap between two successive occurrences. The shaded cells are the input cells
and the rest are protected. As usual, the Goal Seek command and the Solver tool can
be used in conjunction with this template to solve problems.
EXAMPLE 3–5 A particular brand of handheld computers fails following an exponential distribution
with a of 54.82 months. The company gives a warranty for 6 months.
a. What percentage of the computers will fail within the warranty period?
b. If the manufacturer wants only 8% of the computers to fail during the warranty
period, what should be the average life?
Solution a. Enter the reciprocal of 54.82 0.0182 as in the template. (You may enter the
formula “154.82” in the cell. But then you will not be able to use the Goal
Seek command to change this entry. The Goal Seek command requires that the
changing cell contain a number rather than a formula.) The answer we are
looking for is the area to the left of 6. Therefore, enter 6 in cell C11. The area
to the left, 0.1037, appears in cell B11. Thus 10.37% of the computers will fail
within the warranty period.
b. Enter 0.08 in cell B25. Invoke the Goal Seek command to set cell C25 to the
value of 6 by changing cell B4. The value in cell B4 reaches 0.0139, which
corresponds to a value of 71.96 months, as seen in cell E4. Therefore, the
average life of the computers must be 71.96 months.
Value at Risk
When a business venture involves chances of large losses, a measure of risk that many
companies use is the value at risk. Suppose the profit from a venture has a negatively
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 135
Complete Business Companies, 2009
Statistics, Seventh Edition
–130K
5%
Profit ($)
–200K –100K 0 100K 200K
130K
95%
Loss ($)
–200K –100K 0 100K 200K
skewed distribution, shown in Figure 3–27. A negative profit signifies loss. The distri-
bution shows that large losses are possible. A common definition of value at risk is the
amount of loss at the 5th percentile of the distribution. In Figure 3–27, the 5th per-
centile is $–130,000, meaning a loss of $130,000. Thus the value at risk is $130,000.
If the profit is a discrete random variable, then the percentile used may be a con-
venient one closest to 5%.
If the distribution of loss rather than profit is plotted, then we will have the mirror
image of Figure 3–27, which is shown in Figure 3–28. In this case, the value at risk is
the 95th percentile.
Keep in mind that value at risk applies only to distributions of profit/loss where
there exist small chances of large losses.
134 Chapter 3
ADDITIONAL PROBLEMS
136 Chapter 3
3–43. A graduating student keeps applying for jobs until she has three offers. The
probability of getting an offer at any trial is 0.48.
a. What is the expected number of applications? What is the variance?
b. If she has enough time to complete only six applications, how confident
can she be of getting three offers within the available time?
c. If she wants to be at least 95% confident of getting three offers, how many
applications should she prepare?
d. Suppose she has time for at most six applications. For what minimum
value of p can she still have 95% confidence of getting three offers within
the available time?
3–44. A real estate agent has four houses to sell before the end of the month by
contacting prospective customers one by one. Each customer has an independent
0.24 probability of buying a house on being contacted by the agent.
a. If the agent has enough time to contact only 15 customers, how confident
can she be of selling all four houses within the available time?
b. If the agent wants to be at least 70% confident of selling all the houses
within the available time, at least how many customers should she con-
tact? (If necessary, extend the template downward to more rows.)
c. What minimum value of p will yield 70% confidence of selling all four
houses by contacting at most 15 customers?
d. To answer (c ) above more thoroughly, tabulate the confidence for p values
ranging from 0.2 to 0.6 in steps of 0.05.
3–45. A graduating student keeps applying for jobs until she gets an offer. The
probability of getting an offer at any trial is 0.35.
a. What is the expected number of applications? What is the variance?
b. If she has enough time to complete at most four applications, how confi-
dent can she be of getting an offer within the available time?
c. If she wants to be at least 95% confident of getting an offer, how many
applications should she prepare?
d. Suppose she has time for at most four applications. For what minimum
value of p can she have 95% confidence of getting an offer within the
available time?
3–46. A shipment of pins contains 25 good ones and 2 defective ones. At the
receiving department, an inspector picks three pins at random and tests them. If
any defective pin is found among the three that are tested, the shipment would be
rejected.
a. What is the probability that the shipment would be accepted?
b. To increase the probability of acceptance to at least 90%, it is decided to
do one of the following:
i. Add some good pins to the shipment.
ii. Remove some defective pins in the shipment.
For each of the two options, find out exactly how many pins should be added or
removed.
3–47. A committee of 7 members is to be formed by selecting members at random
from a pool of 14 candidates consisting of 5 women and 9 men.
a. What is the probability that there will be at least three women in the
committee?
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 139
Complete Business Companies, 2009
Statistics, Seventh Edition
b. It is desired to increase the chance that there are at least three women in
the committee to 80% by doing one of the following:
i. Adding more women to the pool.
ii. Removing some men from the pool.
For each of the two options, find out how many should be added or removed.
3–48. A mainframe computer in a university crashes on the average 0.71 time in a
semester.
a. What is the probability that it will crash at least two times in a given
semester?
b. What is the probability that it will not crash at all in a given semester?
c. The MIS administrator wants to increase the probability of no crash at
all in a semester to at least 90%. What is the largest that will achieve
this goal?
3–49. The number of rescue calls received by a rescue squad in a city follows a Pois-
son distribution with 2.83 per day. The squad can handle at most four calls a day.
a. What is the probability that the squad will be able to handle all the calls
on a particular day?
b. The squad wants to have at least 95% confidence of being able to handle
all the calls received in a day. At least how many calls a day should the
squad be prepared for?
c. Assuming that the squad can handle at most four calls a day, what is the
largest value of that would yield 95% confidence that the squad can
handle all calls?
3–50. A student takes the campus shuttle bus to reach the classroom building. The
shuttle bus arrives at his stop every 15 minutes but the actual arrival time at the stop
is random. The student allows 10 minutes waiting time for the shuttle in his plan to
make it in time to the class.
a. What is the expected waiting time? What is the variance?
b. What is the probability that the wait will be between four and six minutes?
c. What is the probability that the student will be in time for the class?
d. If he wants to be 95% confident of being on time for the class, how much
time should he allow for waiting for the shuttle?
3–51. A hydraulic press breaks down at the rate of 0.1742 time per day.
a. What is the MTBF?
b. On a given day, what is the probability that it will break down?
c. If four days have passed without a breakdown, what is the probability that
it will break down on the fifth day?
d. What is the probability that five consecutive days will pass without any
breakdown?
3–52. Laptop computers produced by a company have an average life of 38.36
months. Assume that the life of a computer is exponentially distributed (which is a
good assumption).
a. What is the probability that a computer will fail within 12 months?
b. If the company gives a warranty period of 12 months, what proportion of
computers will fail during the warranty period?
c. Based on the answer to (b), would you say the company can afford to give
a warranty period of 12 months?
140 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
138 Chapter 3
d. If the company wants not more than 5% of the computers to fail during
the warranty period, what should be the warranty period?
e. If the company wants to give a warranty period of three months and
still wants not more than 5% of the computers to fail during the
warranty period, what should be the minimum average life of the
computers?
3–53. In most statistics textbooks, you will find cumulative binomial probability
tables in the format shown below. These can be created using spreadsheets using the
Binomial template and Data|Table commands.
n5 p
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
0 0.5905 0.3277 0.1681 0.0778 0.0313 0.0102 0.0024 0.0003 0.0000
1 0.9185 0.7373 0.5282 0.3370 0.1875 0.0870 0.0308 0.0067 0.0005
x 2 0.9914 0.9421 0.8369 0.6826 0.5000 0.3174 0.1631 0.0579 0.0086
3 0.9995 0.9933 0.9692 0.9130 0.8125 0.6630 0.4718 0.2627 0.0815
4 1.0000 0.9997 0.9976 0.9898 0.9688 0.9222 0.8319 0.6723 0.4095
140 Chapter 3
142 Chapter 3
3–73. Out of 140 million cellular telephone subscribers in the United States, 36 mil-
lion use Verizon.6
a. Ten wireless customers are chosen. Under what conditions is the number
of Verizon customers a binomial random variable?
b. Making the required assumptions above, find the probability that at least
two are Verizon customers.
3–74. An advertisement claims that two out of five doctors recommend a certain
pharmaceutical product. A random sample of 20 doctors is selected, and it is found
that only 2 of them recommend the product.
a. Assuming the advertising claim is true, what is the probability of the
observed event?
b. Assuming the claim is true, what is the probability of observing two or
fewer successes?
c. Given the sampling results, do you believe the advertisement? Explain.
d. What is the expected number of successes in a sample of 20?
3–75. Five percent of the many cars produced at a plant are defective. Ten cars
made at the plant are sent to a dealership. Let X be the number of defective cars in
the shipment.
a. Under what conditions can we assume that X is a binomial random variable?
b. Making the required assumptions, write the probability distribution of X.
c. What is the probability that two or more cars are defective?
d. What is the expected number of defective cars?
3–76. Refer to the situation in the previous problem. Suppose that the cars at the
plant are checked one by one, and let X be the number of cars checked until the first
defective car is found. What type of probability distribution does X have?
3–77. Suppose that 5 of a total of 20 company accounts are in error. An auditor selects
a random sample of 5 out of the 20 accounts. Let X be the number of accounts in the
sample that are in error. Is X binomial? If not, what distribution does it have? Explain.
3–78. The time, in minutes, necessary to perform a certain task has the uniform
[5, 9] distribution.
a. Write the probability density function of this random variable.
b. What is the probability that the task will be performed in less than 8 min-
utes? Explain.
c. What is the expected time required to perform the task?
3–79. Suppose X has the following probability density function:
(1> 8)(x - 3) for 3 … x … 7
f (x) = b
0 otherwise
a. Graph the density function.
b. Show that f (x) is a density function.
c. What is the probability that X is greater than 5.00?
3–80. Recently, the head of the Federal Deposit Insurance Corporation (FDIC)
revealed that the agency maintains a secret list of banks suspected of being in finan-
cial trouble. The FDIC chief further stated that of the nation’s 14,000 banks, 1,600
were on the list at the time. Suppose that, in an effort to diversify your savings, you
randomly choose six banks and split your savings among them. What is the proba-
bility that no more than three of your banks are on the FDIC’s suspect list?
6
Matt Richtel and Andrew Ross Sorkin, “AT&T Wireless for Sale as a Shakeout Starts,” The New York Times, January 21,
2004, p. C1.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 145
Complete Business Companies, 2009
Statistics, Seventh Edition
a. Based only on this information, estimate the probability that you could ski
at this resort after May 25 next year.
b. What is the average closing day based on history?
3–85. Ten percent of the items produced at a plant are defective. A random sample
of 20 items is selected. What is the probability that more than three items in the sam-
ple are defective? If items are selected randomly until the first defective item is
encountered, how many items, on average, will have to be sampled before the first
defective item is found?
7
Columbia has since questioned this offer on ethical grounds, and the offer has been retracted.
146 Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill
Complete Business Companies, 2009
Statistics, Seventh Edition
144 Chapter 3
3–86. Lee Iacocca volunteered to drive one of his Chryslers into a brick wall to
demonstrate the effectiveness of airbags used in these cars. Airbags are known to acti-
vate at random when the car decelerates anywhere from 9 to 14 miles per hour per
second (mph/s). The probability distribution for the deceleration speed at which bags
activate is given below.
mph/s Probability
9 0.12
10 0.23
11 0.34
12 0.21
13 0.06
14 0.04
8
Bryan Gruley, “How One University Stumbled in Its Attack on Alcohol Abuse,” The Wall Street Journal, October 14,
2003, p. 1A.
9
Ruth Peters, “Internet: Boon or Bane for Kids?” USA Today, October 15, 2003, p. 19A.
Aczel−Sounderpandian: 3. Random Variables Text © The McGraw−Hill 147
Complete Business Companies, 2009
Statistics, Seventh Edition
3–92. The cafeteria in a building offers three different lunches. The demands for
the three types of lunch on any given day are independent and Poisson distributed
with means 4.85, 12.70, and 27.61. The cost of the three types are $12.00, $8.50, and
$6.00, respectively. Find the expected value and variance of the total cost of lunches
bought on a particular day.
3–93. The mean time between failures (MTBF) of a hydraulic press is to be esti-
mated assuming that the time between failures (TBF) is exponentially distributed. A
foreman observes that the chance that the TBF is more than 72 hours is 50%, and he
quotes 72 hours as the MTBF.
a. Is the foreman right? If not, what is the MTBF?
b. If the MTBF is indeed 72 hours, 50% of the time the TBF will be more
than how many hours?
c. Why is the mean of an exponential distribution larger than its median?
3–94. An operator needs to produce 4 pins and 6 shafts using a lathe which has 72%
chance of producing a defect-free pin at each trial and 65% chance of producing a
defect-free shaft at each trial. The operator will first produce pins one by one until he
has 4 defect-free pins and then produce shafts one by one until he has 6 defect-free
shafts.
a. What is the expected value and variance of the total number of trials that
the operator will make?
b. Suppose each trial for pins takes 12 minutes and each trial for shafts takes
25 minutes. What is the expected value and variance of the total time
required?
CASE
3 Concepts Testing
H
edge funds are institutions that invest in a wide in this chapter, discuss how a hedge fund might maxi-
variety of instruments, from stocks and bonds mize expected return and minimize risk by investing
to commodities and real estate. One of the rea- in various financial instruments. Include in your dis-
sons for the success of this industry is that it manages cussion the concepts of means and variances of linear
expected return and risk better than other financial composites of random variables and the concept of
institutions. Using the concepts and ideas described independence.