Professional Documents
Culture Documents
BUSINESS
STATISTICS
by
AMIR D. ACZEL
&
JAYAVEL SOUNDERPANDIAN
7th edition.
Chapter 3
Random Variables
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
3-2
3 Random Variables
Using Statistics
Expected Values of Discrete Random Variables
Sum and Linear Composite of Random Variables
Bernoulli Random Variable
The Binomial Random Variable
Continuous Random Variables
Uniform Distribution
3-3
3 LEARNING OBJECTIVES
After studying this chapter you should be able to:
Distinguish between discrete and continuous random variables
follow
Solve problems involving standard distributions manually using formulas
templates.
3-4
Consider the different possible orderings of boy (B) and girl (G) in
four sequential births. There are 2*2*2*2=24 = 16 possibilities, so
the sample space is:
If girl and boy are each equally likely [P(G) = P(B) = 1/2], and the
gender of each child is independent of that of the previous child,
then the probability of each of these 16 possibilities is:
(1/2)(1/2)(1/2)(1/2) = 1/16.
3-5
Random Variables
Now count the number of girls in each set of four sequential births:
Notice that:
• each possible outcome is assigned a single numeric value,
• all outcomes are assigned a numeric value, and
• the value assigned varies over the outcomes.
BBBB 0
BGBB
GBBB 1
BBBG
BBGB
GGBB
GBBG X
BGBG 2
BGGB
GBGB
BBGG
BGGG
GBGG 3
GGGB
GGBG
GGGG 4 Points on the
Real Line
Sample Space
3-7
Since the random variable X = 3 when any of the four outcomes BGGG,
GBGG, GGBG, or GGGB occurs,
P(X = 3) = P(BGGG) + P(GBGG) + P(GGBG) + P(GGGB) = 4/16
The probability distribution of a random variable is a table that lists the
possible values of the random variables and their associated probabilities.
x P(x)
0 1/16
1 4/16 The Graphical Display for this
2 6/16 Probability Distribution
3 4/16 is shown on the next Slide.
4 1/16
16/16=1
3-8
0.4
6/16
0.3
Probability, P(X)
4/16 4/16
0.2
0.1
1/16 1/16
0.0
0 1 2 3 4
Number of Girls, X
3-9
Example 3-1
Consider the experiment of tossing two six-sided dice. There are 36 possible
outcomes. Let the random variable X represent the sum of the numbers on
the two dice: x P(x)* Probability Distribution of Sum of Two Dice
2 1/36
3 2/36 0.17
2 3 4 5 6 7 4 3/36
5 4/36
1,1 1,2 1,3 1,4 1,5 1,6 8 6 5/36
0.12
p(x)
2,1 2,2 2,3 2,4 2,5 2,6 9 7 6/36
0.07
3,1 3,2 3,3 3,4 3,5 3,6 10 8 5/36
9 4/36
4,1 4,2 4,3 4,4 4,5 4,6 11
10 3/36 0.02
5,1 5,2 5,3 5,4 5,5 5,6 12 11 2/36 2 3 4 5 6 7 8 9 10 11 12
x
6,1 6,2 6,3 6,4 6,5 6,6 12 1/36
1
* Note that: P ( x ) ( 6 ( 7 x ) 2 ) / 36
EXAMPLE 3–2
3-11
2 0.3
3 0.2
P(x)
0.2
4 0.1
0.1
5 0.1
1 0.0
0 1 2 3 4 5
x
2. P (x) 1
all x
Corollary: 0 P ( X ) 1
3-14
1 0.2 0.3 0 .8
0 .7
2 0.3 0.6 0 .6
F(x)
0 .5
3 0.2 0.8 0 .4
0 .3
4 0.1 0.9 0 .2
5 0.1 1.0 0 .1
0 .0
1.00 0 1 2
x
3 4 5
3-15
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.0
1
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.0
1
Note: P(X > 1) = P(X > 2) = 1 – P(X < 1) = 1 – F(1) = 1 – 0.3 = 0.7
3-17
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.0
1
Note: P(1 < X < 3) = P(X < 3) – P(X < 0) = F(3) – F(0) = 0.8 – 0.1 = 0.7
3-18
2.3
3 4 5
The mean is also known as the expected value (or expectation) of a random
variable, because it is the value that is expected to occur, on average.
x P(x) xP(x)
The expected value of a discrete random 0 0.1 0.0
variable X is equal to the sum of each 1 0.2 0.2
2 0.3 0.6
value of the random variable multiplied by
3 0.2 0.6
its probability. 4 0.1 0.4
E ( X ) xP ( x ) 5 0.1 0.5
all x 1.0 2.3 = E(X) =
3-19
A Fair Game
Suppose you are playing a coin toss game in which you are
paid $1 if the coin turns up heads and you lose $1 when the
coin turns up tails. The expected value of this game is E(X) =
0. A game of chance with an expected payoff of 0 is called a
fair game.
x P(x) xP(x)
-1 0.5 -0.50
1 0.5 0.50 -1 1
0
1.0 0.00 =
E(X)=
3-20
Example 3-3:
3-3 Monthly sales of a certain Number
product are believed to follow the given of items, x P(x) xP(x) h(x) h(x)P(x)
probability distribution. Suppose the 5000 0.2 1000 2000 400
6000 0.3 1800 4000 1200
company has a fixed monthly production
7000 0.2 1400 6000 1200
cost of $8000 and that each item brings 8000 0.2 1600 8000 1600
$2. Find the expected monthly profit 9000 0.1 900 10000 1000
h(X), from product sales. 1.0 6700 5400
E [ h ( X )] h ( x ) P ( x ) 5400
all x Note: h (X) = 2X – 8000 where X = # of items sold
all x all x
E( X 2 ) [ E( X )]2
3 0.2 0.6 0.7 0.49 0.098 1.8
4 0.1 0.4 1.7 2.89 0.289 1.6
5 0.1 0.5 2.7 7.29 0.729 2.5
2
2.3 2.010 7.3
x2 P( x) xP( x)
= 2.3.
Recall: all x all x
The variance of the three random variables for the three sectors,
assuming independence is: 7002 + 1,1002 + 3002 = 1,790,000.
Thus the standard deviation is (1,790,000) = $1,337.9.
3-27
* The terms success and failure are simply statistical terms, and do not have
positive or negative implications. In a production setting, finding a
defective product may be termed a “success,” although it is not a positive
result.
3-29
Suppose we toss a single fair and balanced coin five times in succession,
and let X represent the number of heads.
There are 25 = 32 possible sequences of H and T (S and F) in the sample space for this
experiment. Of these, there are 10 in which there are exactly 2 heads (X=2):
HHTTT HTHTT HTTHT HTTTH THHTT THTHT THTTH TTHHT TTHTH TTTHH
10 (1/32)
Number of outcomes Probability of each
with 2 heads outcome with 2 heads
In general:
1. The probability of a given sequence 2. The number of different sequences of n trials that
of x successes out of n trials with result in exactly x successes is equal to the number
probability of success p and of choices of x elements out of a total of n elements.
probability of failure q is equal to: This number is denoted:
n n!
pxq(n-x) nCx
x x!( n x)!
3-32
1 .999 .977 .919 .737 .528 .337 .187 .087 .031 .007 .000 .000 .000
2 1.000 .999 .991 .942 .837 .683 .500 .317 .163 .058 .009 .001 .000
3 1.000 1.000 1.000 .993 .969 .913 .813 .663 .472 .263 .081 .023 .001
4 1.000 1.000 1.000 1.000 .998 .990 .969 .922 .832 .672 .410 .226 .049
h F(h) P(h)
Cumulative Binomial Deriving Individual Probabilities
Probability Distribution and 0 0.031 0.031
from Cumulative Probabilities
Binomial Probability 1 0.187 0.156
Distribution of H,the 2 0.500 0.313
F (x ) P( X x ) P(i )
Number of Heads 3 0.813 0.313 P(X) = F(x) - F(x - 1)
all i x
0
.50
.000
.60
.000
.70
.000
F ( x) P( X x) P(i)
all i x
1 .000 .000 .000
2 .004 .000 .000
F (3) P ( X 3) 0.002
3 .018 .002 .000
4 .059 .009 .001
... ... ... ...
3-35
V ( X ) npq
2
V ( H ) (5)(.5)(.5) 1.25
2
H
P(x)
P(x)
0.3 0.3 0.3
Binomial Probability: n=10 p=0.1 Binomial Probability: n=10 p=0.3 Binomial Probability: n=10 p=0.5
n = 10
0.3 0.3 0.3
P(x)
P(x)
P(x)
0.2 0.2 0.2
Binomial Probability: n=20 p=0.1 Binomial Probability: n=20 p=0.3 Binomial Probability: n=20 p=0.5
n = 20
P(x)
P(x)
P(x)
0.1 0.1 0.1
For example:
Binomial: n=3 p=.5
Binomial
0.4 For example: Minutes to Complete Task
n=3 p=.5
In this case, 0.3
0.3
the shaded
x P(x)
P(x)
P(x)
the probability
1 0.375 0.1
that the task 0.1
2 0.375 0.0 takes between
3 0.125 0 1 2 3 0.0
C1 2 and 3
1.000 1 2 3 4 5 6
minutes. Minutes
3-39
0.10
P(x)
P(x)
P(x)
0.05
0.00
0.0
. 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
Minutes Minutes Minutes
Minutes to Complete Task: Probability Density Function When a continuous random variable has been subdivided into
infinitesimally small intervals, a measurable probability can
only be associated with an interval of values, and the
probability is given by the area beneath the probability density
f(z)
A continuous random variable is a random variable that can take on any value in an
interval of numbers.
The probabilities associated with a continuous random variable X are determined by the
probability density function of the random variable. The function, denoted f(x), has the
following properties.
F(x) = P(X x) =Area under f(x) between the smallest possible value of X (often -) and
the point x.
3-41
}
F(b)
x
0 a b
3-42
{
1/(b – a) for a X b
f(x)=
0 otherwise
a a1 b1 b
x
3-43
{
1/5 for 0 X 5
f(x)=
0 otherwise
E(X) = 2.5
0.4
The entire area under f(x) = 1/5 * 5 = 1.00
0.3
f(x)
.0.0
-1 0 1 2 3 4 5 6
x