Академический Документы
Профессиональный Документы
Культура Документы
Special Distributions
Yang Zhenlin
zlyang@smu.edu.sg
http://www.mysmu.edu/faculty/zlyang/
Chapter Contents
Chapter 3
Introduction
Chapter 3
Chapter 3
Bernoulli Trial
p ( x) x (1 )1 x , x 0, 1
The expectation:
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Chapter 3
Bernoulli Trial
The variance: As E[X2] = 12P(X=1) + 02P(X=0) = ,
Var(X) = E[X2] (E[X])2 = 2 = (1)
The MGF:
Binomial Distribution
Chapter 3
p ( x) nx x (1 ) n x , x 0, 1, 2, , n
The arguments for deriving the binomial pmf is as follows:
in n Bernoulli trials, the probability for each particular
sequence of x successes and nx failures is x(1-)n-x.
There are totally nCx ways of obtaining x successes and nx
failures. Thus the desired probability of having (any) x
successes and nx failures is nCx x(1-)n-x.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Binomial Distribution
Chapter 3
n=20
=0.8
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Binomial Distribution
Chapter 3
Expectation: E[X] = n
Proof: Apply Binominal Expansion formula,
n
(a b) n ni a n i bi
i 0
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Binomial Distribution
Chapter 3
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Binomial Distribution
Chapter 3
10
Binomial Distribution
Chapter 3
STAT151,Term
TermII,I 09/10
12-13
STAT306,
11
Chapter 3
Geometric Distribution
1
2
Proof: Recall geometric series and its 1st and 2nd derivatives,
1 + a + a2 + a3 + + an + = (1 a)1 , for |a| < 1
1 + 2a + 3a2 + + n an1 + = (1 a)2 ,
2 + 32a + 43a2 + + n(n 1)an2 + = 2(1 a)3 . . . .
STAT151,Term
TermII,I 09/10
12-13
STAT306,
12
Chapter 3
Geometric Distribution
t
e
The MGF: M (t )
1 (1 )et
STAT151,Term
TermII,I 09/10
12-13
STAT306,
13
Chapter 3
Geometric Distribution
Example 3.3. A father asks his sons to cut the backyard lawn. Since he does not
specify which of his three sons is to do the job, each boy tosses a coin to
determine the odd person, who must then cut the lawn. In the cases that all three
get heads or tails, they continue tossing until they reach a decision. Let be the
probability of heads, then 1 is the probability of tails.
(a) Find the probability that they reach a decision in less than n rounds of tosses.
(b) If =1/2, what is the minimum number of rounds required to reach a
decision with probability 0.95?
Solution:
(a) The probability of reaching a decision on any round of coin tossing:
1 = P{exactly two heads} + P{exactly two tails}
= 3C2 2(1) + 3C2 (1) 2 = 3(1)
Let X be the number of rounds of tosses until they reach a decision; then X
is a geometric r.v. with parameter 1 . Thus,
P(X < n) = 1 P(X n) = 1 [1 3(1)]n1.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
14
Chapter 3
Geometric Distribution
(b) We want to find the minimum n so that P(X n) .95.
CDF of Geometric Distribution:
F(x) = P{X x} = 1 P{X > x}
= 1 P{X x+1}
= 1 [(1)x + (1)x+1 + (1)x+2 + ]
= 1 (1)x [1+ (1) + (1)2 + ]
= 1 (1)x
P(X n) = 1 P(X n +1)
= 1 (1 3(1))n
=1 (1 3/4) n 0.95,
which gives n 2.16.
So n =3.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
15
Chapter 3
E (Y ) , Var (Y )
, and M (t )
2
t
1 (1 )e
16
Chapter 3
Example 3.4. Team A plays team B in a seven-game world series. That is, the
series is over when either team wins four games. For each game, P(A wins) =
0.6, and the games are assumed independent.
(a)
What is the probability that the series ends in exactly six games?
(b)
If the series ends in six games, what is the probability that A wins the
series?
Solution:
(a) Let X be the number of games until A wins four games, and
Y be the number of games until B wins four games.
Then, X ~ NB(4, 0.6) and Y~ NB(4, 0.4).
P(series ends at exactly 6 games) = P(X = 6) + P(Y = 6)
= 5C3 (0.6)4(0.4) 2 + 5C3 (0.4) 4(0.6)2
= 0.2074 + 0.0922 = 0.2996.
(b)
Let A be the event that team A wins and D be the event that series
ends in six games. Then the desired probability is
P( A D)
P ( X 6)
0.2074
P( A | D)
0.6923
P( D)
P( X 6) P(Y 6) 0.2996
STAT151,Term
TermII,I 09/10
12-13
STAT306,
17
Poisson Distribution
Chapter 3
18
Poisson Distribution
Chapter 3
e x
x
1
,
or
e
,
x!
x 0
x 0 x!
The mean:
a useful formula!
M (t ) e
( e t 1)
19
Chapter 3
Poisson Distribution
Plots of Poisson Probability Mass Function
0.3
0.2
Mean=2
Mean=5
0.2
0.1
0.1
0.0
0.0
0
10
20
10
20
Note:
i)The mean and variance of
Poisson are both .
ii)The parameter is usually
called the rate of occurrence of
Poisson events.
Mean=10
0.10
0.05
0.00
0
STAT151,Term
TermII,I 09/10
12-13
STAT306,
10
20
20
Chapter 3
Poisson Distribution
Derivation of the mean, variance and MGF:
E[ X ( X 1)]
E[ X ]
M (t ) E[etX ]
x p( x)
e x
x( x 1)
x!
x 0
e x
x
x!
x 0
e x
e
x!
x0
e x
x( x 1)
x!
x2
e x
x
x!
x 1
e x 2
x 2 ( x 2)!
e (e t ) x
x!
x0
e x 1
x 1 ( x 1)!
y
e
2
y!
y 0
e y
y!
y 0
x 0
y=x1
STAT151,Term
TermII,I 09/10
12-13
STAT306,
y=x2
t x
(
e
)
e
x!
x 0
e t
e e
e
E[X2] = 2 + Var(X) =
21
tx
( e t 1)
Use M(t) to
show these?
Zhenlin Yang, SMU
Poisson Distribution
Chapter 3
e 112
P ( X 2)
0.18
2!
22
Uniform Distribution
Chapter 3
f ( x)
1
, if a x b
ba
0,
othewise
0,
xa
F ( x)
ba
1,
ab
E[ X ]
2
STAT151,Term
TermII,I 09/10
12-13
STAT306,
Var ( X )
23
b a
12
x a,
a x b,
x b.
2
M(0)=?
etb eta
M (t )
t (b a)
Zhenlin Yang, SMU
Chapter 3
Uniform Distribution
Example 3.6. Starting at 5:00 A.M., every half hour there is a flight from San
Francisco airport to Los Angeles International airport. Suppose that none of
these planes is completely sold out and that they always have rooms for
passengers. A person who wants to fly to L.A. arrives at the airport at a
random time between 8:45 A.M. and 9:45 A.M. Find the probability that she
waits a) at most 10 minutes; b) at least 15 minutes.
Solution: Let the passenger arrive at the airport X minutes past 8:45. Then,
X ~ UN(0, 60).
a)
b)
60
15
STAT151,Term
TermII,I 09/10
12-13
STAT306,
24
60
1
1
dx
35 60
3
dx
45
1
1
dx
45 60
2
dx
60
Chapter 3
Exponential Distribution
x 0,
otherwise.
f ( x)
if x 0,
if x 0.
25
Exponential Distribution
Chapter 3
26
Chapter 3
Exponential Distribution
Exponential and Poisson:
The time between any two Poisson events is an exponential
random variable with = 1/.
Let T be the time until the first Poisson event; let the rate of
occurrence of Poisson events be per time unit. Then, the CDF
of T is,
F (t ) P(T t )
1 P(T t )
1 P(no Poisson events in [0, t ])
1 e t ,
which is the exponential CDF, thus T is exponential with = 1/.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
27
Chapter 3
Gamma Distribution
f ( x)
1
1 x
x
e , x 0,
( )
0,
otherwise,
( ) y 1e y dy, t 0.
0
1
1 x
x
e dx 1
( )
STAT151,Term
TermII,I 09/10
12-13
STAT306,
28
x 1e x dx ( )
Zhenlin Yang, SMU
Gamma Distribution
Chapter 3
Expectation: E[X] =
Proof: Apply gamma pdf formula.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
29
Gamma Distribution
Chapter 3
Variance: Var(X) = 2
Proof: Apply gamma pdf formula.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
30
Gamma Distribution
The MGF:
Chapter 3
1
M (t )
(1 t )
31
Gamma Distribution
Chapter 3
STAT151,Term
TermII,I 09/10
12-13
STAT306,
32
Normal Distribution
Chapter 3
( x )2
1
, x
f ( x)
exp
2
2
2
0.2
0
2
0.15
0.1
0.05
0
-5
-2.5
STAT151,Term
TermII,I 09/10
12-13
STAT306,
2.5
7.5
10
33
Normal Distribution
Chapter 3
2
2
2
2
There is no closed-form expression for (z), but the
percentage values are tabulated, or can be easily calculated
using computer software.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
34
Chapter 3
Normal Distribution
Example 3.8. Let X ~ N(3, 9). Calculate
a) P(2 < X < 5),
b) P(X > 0),
c) P(|X 3| > 6).
Solution: a)
P (2 X 5)
2 3 X 3 5 3
3
3
3
1
2
P Z
3
3
(2 / 3) (1 / 3)
0.3779
STAT151,Term
TermII,I 09/10
12-13
STAT306,
b)
P ( X 0)
c)
P (| X 3 | 6)
X 3 0 3
3
3
P Z 1
1 (1)
(1)
0.8413
0.0456
35
| X 3|
P | Z } 2
2 (2)
Normal Distribution
Chapter 3
STAT151,Term
TermII,I 09/10
12-13
STAT306,
36
Normal Distribution
Chapter 3
P( X 21) P
X 20
40 0.5 0.5
21 20
40 0.5 0.5
P ( Z 0.3162) 0.6241.
37
Normal Distribution
Chapter 3
j
k i
where the kth rectangle has base 1, height p(k) and midpoint k.
STAT151,Term
TermII,I 09/10
12-13
STAT306,
38
Normal Distribution
Chapter 3
f(x)
p(i)
p(j)
...
i i+1
j1 j
Now suppose the continuous pdf f(x) is a good approximation to p(x). Clearly,
P(i X j) the area under f(x) from i1/2 to j+1/2 =
STAT151,Term
TermII,I 09/10
12-13
STAT306,
39
Normal Distribution
Similarly,
P(X =
P(X
Chapter 3
k 1 2
k) = k 1 2 f (x)dx ,
i) = i1 2 f (x)dx ,
P(X j) =
j1 2
f (x)dx .
= P
Y 20
40 0.5 0.5
21.5 20
40 0.5 0.5
40