Beruflich Dokumente
Kultur Dokumente
P k1 X k2
k k1
Pn ( k ) p k q n
(4-1)
k k k
k
.
1
n n!
k (n k )! k!
(4-2)
) / 2 npq
e .
k 2 npq
Thus if and k in (4-1) are within or around the
k
neighborhood of the interval
1 2
we
np npq , np npq ,
can approximate the summation in (4-1) by an
integration. In that case (4-1) reduces to
k2 1 x2 1
P k1 X k2 e
( x np ) 2 / 2 npq
dx e
y 2 /2
dy , (4-3)
k1
2 npq x1
2
where
k1 np k2 np
x1 , x2 .
npq npq
We can express (4-3) in terms of the normalized
integral
erf ( x )
1
x
e
y2 /2
dy erf ( x ) (4-4)
2 0
x2 1
y2
P k1 X k2 e
/2
dy .
x1 2
Here k1 np 5 k2 np 5
x1 , x2 .
npq 7 npq 7
3
PILLAI
1 x 1
y2
erf ( x ) e
/2
dy G ( x)
2 0
2
Table 4.1
4
PILLAI
Since x 0 , from Fig. 4.1(b), the above probability is
1
given
P 2 , by
475 X 2 , 525 erf ( x ) erf ( x ) erf ( x ) erf (| x |)
2 1 2 1
5
2 erf 0 . 516 ,
7
where we have used Table 4.1
erf ( 0 . 7 ) 0 . 258 .
1 x 2 /2
1 x 2 /2
e e
2 2
x x
x1 x2 x1 x2
(a) x1 0, x2 0 (b) x1 0, x2 0
Fig. 4.1
4.2. The Poisson Approximation
As we have mentioned earlier, for large n, the Gaussian
approximation of a binomial r.v is valid only if p is xed,
i.e., only if np 1 andnpq 1 . what if np is small, or if it
does not increase with n? 5
PILLAI
Obviously that is the case if, for example,
p 0
as
n ,
such that np is a xed number.
Many random phenomena in nature in fact follow this
pattern. Total number of calls on a telephone line,
claims in an insurance company etc. tend to follow
this type of behavior. Consider random arrivals such
as telephone calls over a line. Let n represent the total
number of calls in the interval From our
( 0 , T ). T n
experience, as we have so that we may
n T .
assume Consider a small interval of duration
as in Fig. 4.2. If there is only a single call coming in,
the probability p of that single call occurring in that
interval must depend on its relative size with respect
1 2 n
to T.
0 T 6
Fig. 4.2 PILLAI
Hence we may assume T . Note that
p p 0
Tas
.
However in this casenp T
T
is a
constant, and the normal approximation is invalid here.
Suppose the interval in Fig. 4.2 is of interest to us. A
call inside that interval is a success (H), whereas one
outside is a failure (T ). This is equivalent to the coin
tossing situation, and hence the probability
P (k ) of n
1 1 1 .
k! (1 / n )
k
n n n
Thus k
lim Pn ( k ) e , (4-8)
n , p 0 , np k!
k 1
since the nite products n as well
1 2
1 1 1
n n
k
1 n ,
as n tend to unity as and
n
lim 1 e .
n
n
The right side of (4-8) represents the Poisson p.m.f
and the Poisson approximation to the binomial r.v is
valid in situations where the binomial r.v parameters n
and p diverge to two extremes
( n , p 0 ) such
that their product np is a constant. 8
PILLAI
Example 4.2: Winning a Lottery: Suppose two million
lottery tickets are issued with 100 winning tickets
among them. (a) If a person purchases 100 tickets,
what is the probability of winning? (b) How many
tickets should one buy to be 95% condent of having a
winning ticket? Solution: The probability of
buying a winning ticket
No. of winning tickets 100
p 5 10 5 .
2 10
6
Total no. of tickets
Here n 100 , and the number of winning tickets X in
the n purchased tickets has an approximate Poisson
distribution with
parameter
np 100 5 10
0 . 005 . 5
Thus
k
P(X k) e ,
k!
P ( X 1) 1 P ( X 0 ) 1 e 0 . 005 .
and (a) Probability of winning 9
PILLAI
(b) In this case we need
P(X 1) 0 . 95 .
P(X 1) 1 e 0 . 95 implies ln 20 3.
4 2
1 e 2 1 2 2 0 . 052 .
3 3
Further
P x1 X ( ) x2 B
P ( x1 X ( ) x2 | B )
P(B)
F X ( x2 | B ) FX ( x 1 | B ), (4-13)
12
PILLAI
Since for x x ,
2 1
X ( ) x2 X ( ) x1 x1 X ( ) x2 . (4-14)
(4-17)
x2
P x1 X ( ) x2 | B f X ( x | B ) dx .
x1
13
PILLAI
Example 4.4: Refer to example 3.2. Toss a coin and
X(T)=0, X(H)=1. Suppose
B { H }. Determine
F ( x | B ). X
F X ( x) FX (x | B)
1 1
q
x x
1 1
(a) (b)
Fig. 4.3 14
PILLAI
For 0 x 1, X ( ) x T , so that
X ( ) x B T H and FX (x |B) 0.
For x 1, X ( ) x , and
P(B)
X ( ) x B B { B} and FX (x |B) 1
P(B)
(see Fig. 4.3(b)).
Example 4.5: GivenF ( x ), supposeB X ( ) a .
X
Find
f ( x | B ). X
15
PILLAI
For x a , X xX a X x so that
P X x F ( x)
F (x | B) X
. (4-19)
X
P X a F X
(a )
For x a , X xX a ( X a) so thatF X
(x |B) 1.
Thus
F X ( x)
, x a,
FX (x |B) F X (a ) (4-20)
1, x a,
and hence
fX ( x)
d , x a,
fX ( x | B ) FX (x |B) F X (a ) (4-21)
dx
0, otherwise.
16
PILLAI
FX (x |B)
fX ( x | B )
1
fX ( x)
F X ( x)
x x
a a
(a) (b)
Fig. 4.4
Solution:
P X ( ) x a X ( ) b
FX (x |B) P X ( ) x | B
P a X ( ) b
P X ( ) x a X ( ) b
. (4-22)
F X (b) FX (a )
For x a , we have X ( ) x a X ( ) b , and
hence F ( x | B ) 0 .
X
(4-23)
17
PILLAI
For a x b , we have X ( ) x a X ( ) b { a X ( ) x }
and hence
P a X ( ) x F X ( x) FX (a )
FX (x |B) . (4-24)
F X (b) FX (a ) F X (b) FX (a )
For x b , we have X ( ) x a X ( ) b a X ( ) b
so that F ( x | B ) 1 .
X (4-25)
Using (4-23)-(4-25), we get (see Fig. 4.5)
fX ( x)
, a x b,
fX ( x | B ) FX (b) FX (a )
(4-26)
0, otherwise.
fX ( x | B )
fX ( x)
x
a b
Fig. 4.5 18
PILLAI
We can use the conditional p.d.f together with the
Bayes theorem to update our a-priori knowledge about
the probability of events in presence of new
observations. Ideally, any new information should be
used to update our knowledge. As we see in the next
example, conditional p.d.f together with Bayes
theorem allow systematic updating. For any two events
A and B, Bayes theorem gives
P ( B | A) P ( A)
P(A |B) .
P(B) (4-27)
B x 1 X ( ) x2
Let so that (4-27) becomes (see (4-13)
and (4-17))
P ( x1 X ( ) x 2 ) | A P ( A )
P A | ( x1 X ( ) x 2 )
P x1 X ( ) x2
x2
F X ( x2 | A ) FX ( x1 | A )
P ( A)
x1
f X ( x | A ) dx
P ( A ). (4-28)
FX x2
F X ( x2 ) ( x1 )
x1
f X ( x ) dx
19
PILLAI
Further, let x 1
x, x2 x , 0, 0,
so that in the limit as
fX ( x | A)
lim P A | ( x X ( ) x ) P A | X ( ) x P ( A ). (4-29)
0 fX ( x)
or
P(A | X x) fX ( x)
f X |A ( x | A ) .
(4-30)
P ( A)
or
1
(4-32)
P ( A)
P(A | X x ) f X ( x ) dx
P(A |P p) p q
k n k
, (4-34) p
0 1
21
Fig.4.6
PILLAI
and using (4-32) we get
(n k )! k !
(4-35)
1 1
n k
P ( A) P(A |P p ) f P ( p ) dp p (1 p )
k
dp .
0 0
( n 1 )!
The a-posteriori p.d.f represents the updated
f ( p | A)
information given the event A, and from (4-30) P |A
f P |A ( p | A )
P(A |P p ) fP ( p )
f P |A ( p | A )
P ( A)
p
(n 1)!
k
p q
n k
, 0 p 1 ( n , k ). (4-36) 0 1
(n k )! k ! Fig. 4.7
Notice that the a-posteriori p.d.f of p in (4-36) is not a
uniform distribution, but a beta distribution. We can
use this a-posteriori p.d.f to make further
predictions, For example, in the light of the above
experiment, what can we say about the probability of a
head occurring in the next (n+1)th toss?
22
PILLAI
Let B= head occurring in the (n+1)th toss, given that k
heads have occurred in n previous tosses.
Clearly and from (4-32)
P(B | P p) p,
(4-37)
1
P(B) P(B | P p ) f P ( p | A ) dp .
0
24
PILLAI
Stirlings Formula : What is it?
k 1 l og x dx l og k k l og x dx .
l og x
Summing overk 1, 2, , n
we get l og k
n n 1
0 l og x dx l og n ! 1 l og x dx
1
x
k 1 k k 1
or
l og x dx x l og x x
n l og n n l og n ! ( n 1) l og( n 1) n . (4-40) 26
PILLAI
The double inequality in (4-40) clearly suggests that log n
is close to the arithmetic mean of the two extreme numb
there. However the actual arithmetic mean is complicate
and it involves several terms. Since (n12 + )log n n is
quite close to the above arithmetic mean, we consider
the difference1
an l og n ! ( n 1
) l og n n . (4-41)
This gives 2
a n a n 1 l og n ! ( n 12 ) l og n n l og( n 1) !
( n 23 ) l og( n 1) ( n 1)
l og( n 1) ( n 12 ) l og n ( n 23 ) l og( n 1) 1
n 1 1
n 1
( n ) l og
1
2 n
1 ( n ) l og
1
2 n
2 2
1.
(n + )log n n is due
1 1
1According to W. Feller this clever idea to use the approximate mean
2 2
a n a n 1 ( n 12 ) l og( 1 2 n 1
1 )1
2 n 1
2 ( n 12 ) 1 1 1 1
2 n 1 3( 2 n 1) 3
5( 2 n 1) 5
1 1 1 0 (4-42)
2 4 6
3( 2 n 1) 5( 2 n 1) 7 ( 2 n 1)
Thus {an} is a monotone decreasing sequence and let c
represent its limit, i.e.,
lim an c (4-43)
n
From (4-41), as this is equivalent to
n
n 1 n
To nd the constant n ec in
n ! ~ eterm (4-44) use
. (4-44), we can make
c 2
1 2 1 3 1 4 1 1 2 1 3 1 4
28
l og( 1 x) x x x x ; l og ( 1 x ) x x x x
2 3 4 2 3 4 PILLAI
The well known functionsi nx x si n c x si n x
x
4
2
n
2 2 2
/2
which for x gives the Wallis formula
1 (1 ) (1 1 ) ( 13 ) ( 35 ) ( 57 ) (
( 2 n 1 ) ( 2 n 1 )
1
) (1 1
)
2 2
2
4
2
(2n) 2 2
2
4
2
6
2 2
(2n)
2
29
PILLAI
or 2
) ( ( 2 n 1 ) ( 2 n 1 ) )
2 2 2 2 (2n)
4n
( 2 n 1 ) ( 2 n 1 )
( 2
1 3
)( 4
3 5
)( 6
5 7
2 n 1
2 4 62n
( 1 3 5 ( 2 n 1 ) ) . 2 1
2 n 1
( 2 4 6 2 n )2 1 2n ( n! )2 1
2 .
( 2 n )! ( 2 n )!
n 1 n 1
Thus asn 2 2
l og 2 n l og 2 2 l og n ! l og( 2 n ) ! 1 l og( n 1
) (4-45)
2 2
l i m l og n ! c l i m { ( n 12 ) l og n n } (4-46)
n n
an a n 1 1 1 1
3 2 4
( 2 n 1) ( 2 n 1)
1 1 1 1
so that {an 3[1/( 212 n
n 1)} 2is
1]a monotonically
1 2 n ( n 1) 1 2 n increasing
1 2 ( n 1)
31
PILLAI
sequence whose limit is also c. Hence for any nite n
a n 1 21 n c a n c 1 21 n
2 n 2
e e 1 2 n 1
n! 2 n 2
e e 12 n
. (4-50)
12 x 286 x2 51840 x3 x
(4-51)
Together with ( x 1) x ( x ) , the above expansion can
be used to compute numerical values for real x.
For a derivation of (4-51), one may look into Chapter 2
of the classic text by Whittaker and Watson (Modern
Analysis).
n k n k n np k nq n k
p q c1 2 ( n k ) k k n k
k
and
n k n k n np k nq n k
p q c2 2 ( n k ) k k n k
k
where
1 2 n 1 1 2 ( n k ) 1 2 k
1 1 1
c1 e
and
1 2 n 1 2 ( n k ) 1 1 2 k 1
1 1 1
c2 e .
Notice that the constants c1 and c2 are quite close
34
to each other. PILLAI