Escolar Documentos
Profissional Documentos
Cultura Documentos
Chapter 9: Continuous
Distributions (9.8-9.12)
Jasmin Manseau
Part-Time Professor Telfer School of Management
Fall 2016
3
Copyright 2014 Pearson Canada Inc.
x
5
Copyright 2014 Pearson Canada Inc.
f(x)
f ( x )dx 1
Area under
the curve = 1
6
Copyright 2014 Pearson Canada Inc.
Probability Calculations
f(x)
The probability
is the area under
the curve
between a and b
x
b
P( a X b ) P( a X b ) f ( x )dx
a
between a and b
The total area under the curve MUST equal 1
The special case of P(X<x) (the probability that
The calculation of
probabilities
between two
values a and b can
also be done using
the distribution
function
F(a)
a
F (a) P( X a)
P(a X b) P (a X b) F (b) F (a )
9
Copyright 2014 Pearson Canada Inc.
P( 1 X 3 ) P( X 3 ) P( X 1 )
P( X 3 ) P( X 1 )
10
Copyright 2014 Pearson Canada Inc.
f(x)
Area = 1
1
ba
F(x)
1
12
Copyright 2014 Pearson Canada Inc.
f ( x)
1
(b a )
0
a xb
otherwise
where:
f(x) = Value of the density function at any
x value
a = Lower limit of the interval from a to b
b = Upper limit of the interval from a to b
Expected Value
ab
E( X )
2
Variance
( b a )2
Var ( X )
12
Let f (x):
1
20 10
for 10 x 20
elsewhere
f ( x)
15
Copyright 2014 Pearson Canada Inc.
10
16
Copyright 2014 Pearson Canada Inc.
20
Example : Probabilities
What is the probability that the time to
f(x)
1
10
10 12
17
15
20
1
3
P( 12 X 15 ) ( 15 12 )
30%
10 10
Copyright 2014 Pearson Canada Inc.
F(x)
1
0,5
0,2
10 12 15
20
12 10
P( 12 X 15 ) F ( 15 ) F ( 12 ) 0 ,5
0 ,3
20 10
18
Copyright 2014 Pearson Canada Inc.
( 20 10 )2 100
Var ( X )
8 ,33
12
12
19
Copyright 2014 Pearson Canada Inc.
Probability = 0.50
Mean
Median
Mode
Copyright 2014 Pearson Canada Inc.
It is asymptotic to
the x-axis, i.e. it
goes on forever.
x 2
1 / 2
pour x
where:
x = Any value of the continuous random
variable
= Population standard deviation
e = Base of the natural log = 2.71828
= Population mean
Normal Distribution
Bell
shaped
Symmetrical
Mean, median and
mode are equal
Location is determined
by the mean,
Spread is determined by
the standard deviation,
The random variable has
an infinite theoretical
range:
+ to
Copyright 2014 Pearson Canada Inc.
f(x)
Mean
= Median
= Mode
If
f(x)
=0,5
=1
=2
24
Copyright 2014 Pearson Canada Inc.
If
f(x)
25
Copyright 2014 Pearson Canada Inc.
Area under
the curve
equals 1
Area under
the curve = 1
26
Copyright 2014 Pearson Canada Inc.
Me
Mo
27
Copyright 2014 Pearson Canada Inc.
The normal
distribution is
symmetric
where = Me=
Mo
99,73%
95,45%
68,27%
95,45% of observations of a
normal distribution lie in the
interval [-2 , +2 ]
68,27% of observations of a
normal distribution lie in the
interval [-1 , +1 ]
-2
-3
-
+2
+
+3
28
Copyright 2014 Pearson Canada Inc.
P (a x b)
a
Copyright 2014 Pearson Canada Inc.
1
0
31
Copyright 2014 Pearson Canada Inc.
standard distribution Z
32
X
Z
Example
x 250 100
z
3.0
50
33
Copyright 2014 Pearson Canada Inc.
x1=250
x
z1
E(Z) = 0
SD(Z) = 1
34
Z1= 3
x1 250 100
3.0
50
Note that the distribution is the same, only the scale has changed. We
can express the problem in original units (x) or in standardized units (z)
Copyright 2014 Pearson Canada Inc.
2.
3.
1.
x, ,
z = (x - ) /
Table, calculator
or software
36
Copyright 2014 Pearson Canada Inc.
37
Copyright 2014 Pearson Canada Inc.
x1 8 8
z1
x 2 8.6 8
z2
0.12
38
Copyright 2014 Pearson Canada Inc.
8
x1=8 x2=8.6
z1=0 z2=0.12
=8
=5
x1=8 x2=8.6
39
Copyright 2014 Pearson Canada Inc.
z1=0 z2=0.12
0.00
Copyright 2014 Pearson Canada Inc.
0.12
8
x1 = 8.6
41
Copyright 2014 Pearson Canada Inc.
1 - .5478 = .4522
0
0.12
42
Copyright 2014 Pearson Canada Inc.
0.1056
x 7.5 8
1.25
0.4
x=7
x=8
z=z=0
.5
1.25
From the standard normal table: P(z -1.25) = 0.1056
Then, P(x 7.5 hours) = 0.1056
43
Copyright 2014 Pearson Canada Inc.
x=
z=-.
x 45 50
z
0.50
10
P(45<x<50) = P(-0.5<z<0) = 0.5 - P(z<-0.5) = 0.5-0.3085 = 0.1915
44
Copyright 2014 Pearson Canada Inc.
x = + z
45
Copyright 2014 Pearson Canada Inc.
Table, calculator or
software
P, ,
Area under
curve = 0,07
0
Area under
curve = 0,93
z?
47
Interesting issue:
Wait times are always > 0 and may not therefore be Normally distributed
Solution:
Check whether a Normal Model is appropriate
48
Copyright 2014 Pearson Canada Inc.
49
Copyright 2014 Pearson Canada Inc.
20
20
Frequency
Frequency
LV Class = 3
10
0
15000
3 .6
25000
3 .7
3 .8
3 .9
4 .0
4 .1
4 .2
4 .3
TotCost3
LogCost3
.9 9 9
.9 9 9
.9 9
.9 9
.9 5
.9 5
Probability
Probability
5000
.8 0
.5 0
.2 0
.2 0
.0 5
.0 1
.0 0 1
.0 0 1
A v e ra ge : 1 0 6 5 5 .8
S td D e v : 3 6 9 9 .7 4
N o f d ata : 3 5 Copyright
25000
TotCost3
2014
A n d e rs o n -D a rl i n g N o rm a l i ty Te s t
A -S q u a re d : 2 .1 0 3
Pearson pCanada
-v al u e : 0.0Inc.
00
4 .5
.5 0
.0 1
1 5 0 00
4 .4
.8 0
.0 5
5000
50
10
3 .8
A v e ra g e : 4 .0 0 8 1 8
S td D e v : 0 .1 2 5 3 3 0
N o f d a ta : 3 5
4 .0
LogCost3
4 .2
4 .4
A n d e rs o n -D a rl i n g N o rm a l i ty Te s t
A -S q u a re d : 0 .7 0 8
p -v a l u e : 0 .0 5 9
Is it normal?
Stats Final Results 2014
16
14
12
10
8
6
4
2
0
51
Copyright 2014 Pearson Canada Inc.
distribution
Or:
Check out whether your data has a good normal
55
Copyright 2014 Pearson Canada Inc.
56
Copyright 2014 Pearson Canada Inc.
40000$2
(Y) = 200$
57
Copyright 2014 Pearson Canada Inc.
f(x)
f(z)
2400
58
3000 Y
3000 2400
P( Y 3000 ) P( Z
)
200
P ( Z 3) 1 0,9987 0,0013
Copyright 2014 Pearson Canada Inc.
60
Copyright 2014 Pearson Canada Inc.
Excel
We can use Excel
Generally,
To find P(X<x) whe given x
=NORM.DIST(x, mean, standard dev, cumulative
Distribution
61
Copyright 2014 Pearson Canada Inc.
Exponential distribution
The exponential distribution allows us to
62
Poisson distribution
describes the
number of events in
a given interval of
time (or space).
Poisson
63
Copyright 2014 Pearson Canada Inc.
Exponential distribution
describes the interval of
time (or space) between
events.
Exponential
# of events
Per unit time
Poisson
64
Copyright 2014 Pearson Canada Inc.
Time interval
Between events
Time
Exponential
if x 0
otherwise
f ( x)
e x
f(x)
x
where:
E(X) =1/ = The mean time between events ( >0)
= average number of events per unit of time
e = 2.71828
Copyright
2014 Pearson
Canada Inc.
is called
lambda)
1
E( X )
1
Var ( X )
2
( X ) Var ( X )
66
Copyright 2014 Pearson Canada Inc.
Exponential Distributions
f(x)
67
Values of x
if x 0
otherwise
F ( x) P( X x)
1 e x
Note that:
P( X x ) 1 P( X x ) e x
Copyright 2014 Pearson Canada Inc.
69
Copyright 2014 Pearson Canada Inc.
1 minute is 0.25%.
We expect that it should be small, on average
a purchase is every 10 seconds.
70
Copyright 2014 Pearson Canada Inc.
Example 2: Exponential
Distribution
The lifespan of a Z201 alternator made by
the company Celco follows an exponential
distribution
The lifespan of a Z201 alternator is 500
hours
Let X: the lifespan of a Z201 alternator
E (X) = 500 hours
71
Copyright 2014 Pearson Canada Inc.
Example 2: Exponential
Distribution
Determine the probability density function
f ( x ) 0 ,002e 0 ,002 x
F ( x ) 1 e 0 ,002 x
72
Copyright 2014 Pearson Canada Inc.
Example 2: Exponential
Distribution
Determine the probability that a generator
1 e 1
1 0 ,3679
0 ,6321
73
Copyright 2014 Pearson Canada Inc.
Example 2: Exponential
Distribution
An alternator has been operating for 250
74
Example 2: Exponential
Distribution
From 1000 alternators, how many are likely