Академический Документы
Профессиональный Документы
Культура Документы
BUSINESS
STATISTICS
by
AMIR D. ACZEL
&
JAYAVEL SOUNDERPANDIAN
7th edition.
Prepared by Lloyd Jaisingh, Morehead State
University
Chapter 3
Random Variables
McGraw-Hill/Irwin
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
Explain how a random variable is characterized by its probability distribution
Compute statistics about a random variable
Compute statistics about a function of a random variable
Compute statistics about the sum or a linear composite of a random variable
Identify which type of distribution a given random variable is most likely to
follow
Solve problems involving standard distributions manually using formulas
Solve business problems involving standard distributions using spreadsheet
templates.
3-4
BGBB
BGBG
BGGB
BGGG
GBBB
GBBG
GBGB
GBGG
GGBB
GGBG
GGGB
GGGG
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:
BBBB
BBBG
BBGB
BBGG
(0)
(1)
(1)
(2)
BGBB
BGBG
BGGB
BGGG
(1)
(2)
(2)
(3)
GBBB
GBBG
GBGB
GBGG
(1)
(2)
(2)
(3)
GGBB
GGBG
GGGB
GGGG
(2)
(3)
(3)
(4)
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.
The count of the number of girls is a random variable:
3-6
BBBB
BGBB
GBBB
BBBG
BBGB
GGBB
GBBG
BGBG
BGGB
GBGB
BBGG
BGGG
GBGG
GGGB
GGBG
GGGG
3
4
Sample Space
Points on the
Real Line
3-7
P(x)
1/16
4/16
6/16
4/16
1/16
16/16=1
TheGraphical
GraphicalDisplay
Displayfor
forthis
this
The
ProbabilityDistribution
Distribution
Probability
shownon
onthe
thenext
nextSlide.
Slide.
isisshown
3-8
6/ 16
6/ 16
Probability,
Probability,P(X)
P(X)
0.3
0.3
4/ 16
4/ 16
4/ 16
4/ 16
0.2
0.2
0.1
0.1
0.0
0.0
1/ 16
1/ 16
00
1/ 16
1/ 16
11
22
um
berof
ofGG
irls,XX
NN
um
ber
irls,
33
44
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)**
3
1,3
2,3
3,3
4,3
5,3
6,3
4
1,4
2,4
3,4
4,4
5,4
6,4
5
1,5
2,5
3,5
4,5
5,5
6,5
6
1,6
2,6
3,6
4,6
5,6
6,6
7
8
9
10
11
12
1/36
2/36
3/36
4/36
5/36
6/36
5/36
4/36
3/36
2/36
1/36
1
0.17
0.12
p(x)
1,1
2,1
3,1
4,1
5,1
6,1
2
1,2
2,2
3,2
4,2
5,2
6,2
2
3
4
5
6
7
8
9
10
11
12
0.07
0.02
2
10
11
12
3-10
Example 3-2
Probability Distribution of the Number of Switches
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1
0.4
0.3
P(x)
x
0
1
2
3
4
5
0.2
0.1
0.0
0
3-11
discreterandom
randomvariable:
variable:
AAdiscrete
hasaacountable
countablenumber
numberof
ofpossible
possiblevalues
values
has
hasdiscrete
discretejumps
jumps(or
(orgaps)
gaps)between
betweensuccessive
successivevalues
values
has
hasmeasurable
measurableprobability
probabilityassociated
associatedwith
withindividual
individualvalues
values
has
counts
counts
continuousrandom
randomvariable:
variable:
AAcontinuous
has
hasan
anuncountably
uncountablyinfinite
infinitenumber
numberof
ofpossible
possiblevalues
values
moves
movescontinuously
continuouslyfrom
fromvalue
valueto
tovalue
value
has
hasno
nomeasurable
measurableprobability
probabilityassociated
associatedwith
witheach
eachvalue
value
measures
measures(e.g.:
(e.g.:height,
height,weight,
weight,speed,
speed,value,
value,duration,
duration,
length)
length)
P (x) 1
all x
Corollary:
0 P( X ) 1
3-12
3-13
P(i)
all i x
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1.00
F(x)
0.1
0.3
0.6
0.8
0.9
1.0
F(x)
x
0
1
2
3
4
5
0 .6
0 .5
0 .4
0 .3
0 .2
0 .1
0 .0
0
3-14
x
0
1
2
3
4
5
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1
F(x)
0.1
0.3
0.6
0.8
0.9
1.0
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1
F(x)
0.1
0.3
0.6
0.8
0.9
1.0
Note: P(X > 1) = P(X > 2) = 1 P(X < 1) = 1 F(1) = 1 0.3 = 0.7
3-15
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1
F(x)
0.1
0.3
0.6
0.8
0.9
1.0
Note: P(1 < X < 3) = P(X < 3) P(X < 0) = F(3) F(0) = 0.8 0.1 = 0.7
3-16
3-17
2.3
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.
The expected value of a discrete random
variable X is equal to the sum of each
value of the random variable multiplied by
its probability.
E ( X ) xP ( x )
all x
x
0
1
2
3
4
5
P(x)
0.1
0.2
0.3
0.2
0.1
0.1
1.0
xP(x)
0.0
0.2
0.6
0.6
0.4
0.5
2.3 = E(X) =
3-18
A Fair Game
Supposeyou
youare
areplaying
playingaacoin
cointoss
tossgame
gamein
inwhich
whichyou
youare
are
Suppose
paid$1
$1ififthe
thecoin
cointurns
turnsup
upheads
headsand
andyou
youlose
lose$1
$1when
whenthe
the
paid
cointurns
turnsup
uptails.
tails.The
Theexpected
expectedvalue
valueof
ofthis
thisgame
gameisisE(X)
E(X)==
coin
gameof
ofchance
chancewith
withan
anexpected
expectedpayoff
payoffof
of00isiscalled
calledaa
0.0. AAgame
fairgame.
game.
fair
x
-1
1
P(x)
0.5
0.5
1.0
E(X)=
xP(x)
-0.50
0.50
0.00 =
-1
3-19
Example 3-3:
3-3 Monthly sales of a certain
product are believed to follow the given
probability distribution. Suppose the
company has a fixed monthly production
cost of $8000 and that each item brings
$2. Find the expected monthly profit
h(X), from product sales.
E [h( X )] h( x ) P( x ) 5400
all x
Number
of items, x
5000
6000
7000
8000
9000
P(x)
0.2
0.3
0.2
0.2
0.1
1.0
xP(x)
h(x) h(x)P(x)
1000 2000
400
1800 4000
1200
1400 6000
1200
1600 8000
1600
900 10000
1000
6700
5400
(x )
P( x )
all x
E ( X ) [ E ( X )]
x
all x
P( x )
xP ( x )
all x
3-20
3-21
Table 3-8
Numberofof
Number
Switches,xx P(x)
P(x) xP(x)
xP(x) (x-)
(x-)
Switches,
0.1
0.0 -2.3
-2.3
00
0.1
0.0
0.2
0.2 -1.3
-1.3
11
0.2
0.2
0.3
0.6 -0.3
-0.3
22
0.3
0.6
0.2
0.6
0.7
33
0.2
0.6
0.7
0.1
0.4
1.7
44
0.1
0.4
1.7
0.1
0.5
2.7
55
0.1
0.5
2.7
2.3
2.3
= 2.3.
Recall:
(x-)2 P(x-)
P(x-)2
(x-)
5.29 0.529
0.529
5.29
1.69 0.338
0.338
1.69
0.09 0.027
0.027
0.09
0.49 0.098
0.098
0.49
2.89 0.289
0.289
2.89
7.29 0.729
0.729
7.29
2.010
2.010
2
P(x)
xx2P(x)
0.0
0.0
0.2
0.2
1.2
1.2
1.8
1.8
1.6
1.6
2.5
2.5
7.3
7.3
2
( x )2 P( x) 2.01
all x
E( X 2) [ E( X )]2
2
x P( x) xP( x)
all x
all x
V (a X b) a 2V ( X ) a 2 2
Example 33:
Number
of items, x P(x)
5000
0.2
6000
0.3
7000
0.2
8000
0.2
9000
0.1
1.0
2 V(X)
xP(x)
1000
1800
1400
1600
900
6700
x2 P(x)
5000000
10800000
9800000
12800000
8100000
46500000
E ( X 2 ) [ E ( X )]2
x 2 P ( x ) xP( x )
all x
all x
3-22
( X Y ) E ( X Y ) E ( X ) E (Y ) X Y
V(X+Y) = 144
3-23
V ( X X ... X ) V ( X ) V ( X ) ...V ( X )
1 2
1
2
k
k
and
3-24
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-25
1
1 3
75%
2
4
4
2
At 1 12 1 1 8 89%
9 9
3
least
1
1
1 15
94%
2
16
16
4
2
Lie
within
3
4
Standard
deviations
of the mean
3-26
3-27
3-28
Outputfor
forExample
Example3-4
3-4
Output
3-29
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-30
3-31
(1/32)
Number of outcomes
with 2 heads
Probability of each
outcome with 2 heads
3-32
(1/32)
Number of outcomes
with 2 heads
Probability of each
outcome with 2 heads
In general:
1. The probability of a given sequence
of x successes out of n trials with
probability of success p and
probability of failure q is equal to:
pxq(n-x)
n!
n
nCx
x!( n x)!
x
3-33
n!
n x ( n x)
P( x) p q
px q ( n x)
x!( n x)!
x
where :
p is the probability of success in a single trial,
q = 1-p,
n is the number of trials, and
x is the number of successes.
Number of
successes, x
0
1
2
3
Probability P(x)
n!
p 0 q (n 0)
0 !( n 0)!
n!
p 1 q ( n 1)
1!( n 1)!
n!
p 2 q (n 2)
2 !( n 2)!
n!
p 3 q ( n 3)
3!( n 3)!
n!
p n q (n n)
n !( n n)!
1.00
0.01
0.05
0.10
0.20
0.30
0.40
0.50
0.60
0.70
0.80
0.90
0.95
0.99
.951
.774
.590
.328
.168
.078
.031
.010
.002
.000
.000
.000
.000
.999
.977
.919
.737
.528
.337
.187
.087
.031
.007
.000
.000
.000
1.000
.999
.991
.942
.837
.683
.500
.317
.163
.058
.009
.001
.000
1.000
1.000
1.000
.993
.969
.913
.813
.663
.472
.263
.081
.023
.001
1.000
1.000
1.000
1.000
.998
.990
.969
.922
.832
.672
.410
.226
.049
F(h)
P(h)
0.031 0.031
0.187 0.156
0.500 0.313
0.813 0.313
0.969 0.156
1.000 0.031
1.000
Cumulative Binomial
Probability Distribution and
Binomial Probability
Distribution of H,the
Number of Heads
Appearing in Five Tosses of
a Fair Coin
P(i )
all i x
3-34
0
1
2
3
4
...
.50
.000
.000
.004
.018
.059
...
p
.60
.000
.000
.000
.002
.009
...
.70
.000
.000
.000
.000
.001
...
F ( x) P( X x)
P(i)
all i x
F (3) P ( X 3) 0.002
3-35
3-36
Meanofofaabinomial
binomialdistribution:
distribution:
Mean
np
EE((XX))np
Varianceofofaabinomial
binomialdistribution:
distribution:
Variance
npq
VV((XX))npq
2
E ( H ) (5)(.5) 2.5
H
V ( H ) (5)(.5)(.5) 1.25
2
Standarddeviation
deviationofofaabinomial
binomialdistribution:
distribution:
Standard
SD(X)== npq
npq
==SD(X)
3-37
3-38
3-39
p = 0.3
Binomial Probability: n=4 p=0.3
0.7
0.6
0.6
0.6
0.5
0.5
0.5
0.4
0.4
0.4
0.3
P(x)
0.7
0.3
0.2
0.2
0.1
0.1
0.1
0.0
0.0
1
0.0
0.4
0.4
0.4
0.3
0.3
0.3
P(x)
0.5
0.2
0.2
0.2
0.1
0.1
0.1
0.0
0.0
1
9 10
9 10
5
x
9 10
P(x)
P(x)
P(x)
0.2
0.1
0.0
0.2
0.1
0.0
0
0.2
0.5
0.5
P(x)
P(x)
n = 20
0.3
0.2
n = 10
0.7
P(x)
n=4
P(x)
p = 0.5
0.1
0.0
0.0
0 1 2 3 4 5 6 7 8 9 1011121314151617181920
0 1 2 3 4 5 6 7 8 9 1011121314151617181920
0 1 2 3 4 5 6 7 8 9 1011121314151617181920
0.5.
3-40
For example:
Binomial
n=3 p=.5
P(x)
0.125
0.375
0.375
0.125
1.000
0.2
0.1
0.0
0
C1
For example:
In this case,
the shaded
area epresents
the probability
that the task
takes between
2 and 3
minutes.
0.2
P(x)
0.4
0.3
x
0
1
2
3
P(x)
0.1
0.0
1
Minutes
3-41
Eighth-Minute Intervals
Quarter-Minute Intervals
Minutes to Complete Task: Fourths of a Minute
0.15
P(x)
P(x)
P(x)
0.10
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
Minutes
Minutes
Minutes
f(z)
Minutes
Whenaacontinuous
continuousrandom
randomvariable
variablehas
hasbeen
beensubdivided
subdividedinto
into
When
infinitesimallysmall
smallintervals,
intervals,aameasurable
measurableprobability
probabilitycan
can
infinitesimally
onlybe
beassociated
associatedwith
withan
aninterval
intervalofofvalues,
values,and
andthe
the
only
probabilityisisgiven
givenby
bythe
thearea
areabeneath
beneaththe
theprobability
probabilitydensity
density
probability
functioncorresponding
correspondingtotothat
thatinterval.
interval. InInthis
thisexample,
example,the
the
function
shadedarea
arearepresents
representsP(2
P(2X
X).
).
shaded
3-42
f(x)00for
forall
allx.x.
f(x)
Theprobability
probabilitythat
thatXXwill
willbe
bebetween
betweentwo
twonumbers
numbersaaand
andbbisisequal
equaltotothe
thearea
area
The
underf(x)
f(x) between
betweenaaand
andb.b.
under
Thetotal
totalarea
areaunder
underthe
thecurve
curveofoff(x)
f(x)isisequal
equaltoto1.00.
1.00.
The
Thecumulative
cumulativedistribution
distributionfunction
functionofofaacontinuous
continuousrandom
randomvariable:
variable:
The
F(x)==P(X
P(Xx)x)=Area
=Areaunder
underf(x)
f(x)between
betweenthe
thesmallest
smallestpossible
possiblevalue
valueofofXX(often
(often-)
-)and
and
F(x)
thepoint
pointx.x.
the
F(a)
0
a
f(x)
3-43
3-44
1/(a b) for a X b
0 otherwise
f(x)
a a1
b1
3-45
1/5 for 0 X 5
0 otherwise
E(X) = 2.5
0.4
f(x)
0.3
0.2
0.1
.0.0
-1
3-46