Documente Academic
Documente Profesional
Documente Cultură
The purpose of these notes is to derive the following two formulas for the binomial distribution :
5 8p 1 p .
1 . 8p
2
The starting point for getting 1 is the 'generic' formula true for any probability distribution.
3 . !B0 B , where the sum runs over all values of the random variable x .
Let the summation index m stand for the possible number of successes in n identical simple Bernoulli trials in which the
probability of a success on any 1 trial is p. Thus, we have the random variable B 7 , and from the binomial distribution,
0 7 b7 8 :
m
8 8!
4 pm 1 p8m m!8m! pm 1 p8m .
Plugging this probability formula into equation 3, gives the result that
. 7 ! m0 m ! m p 1 p ! m!8m! pm 1 p8m .
8 8 8 8
m 8m m 8!
5
m=0 m=0 m m=0
m m 1
Since the m 0 term does not contribute to the sum and since m! m m1! m1! , equation 5 can be
simplified to
. ! m1!8m! pm 1 p8m 81! ! m1!81m1!
8 8 81! pm-1 1p81(m1
8! 8!p
6 .
m=1 m=1
Now, let j m 1 , then as m runs from 1 to 8 , j runs from ! to 8 1 . Thus, equation 6 can be written as
. 81! ! ! 8 1 p j 1 p81j .
j
881! p 81 81! p j 1p81j n1
7 j!81j! 8 p
j=0 j=0
!
B C
81 81 j n1j
8 B C81 . Hence, equation 7 becomes
j=0 j
. 8 p p 1 p
81
9 8p 1 81 8p .
The starting point for getting equation 2 is the corresponding variance formula also true for any probability distribution.
10 52 B .2 !B .2 0 B , where again the sum runs over all values of the random variable B .
12 52 !B2 0 B .2 B# B #
2
In terms of the summation index m the first sum in equation 12) becomes
13 ! m2 0 m ! m2 p 1 p ! m!8m! pm 1 p8m
8 8 8 8 2
m 8m m 8!
m=0 m=0 m m=0
! m!8m! pm 1 p8m
8 mm11 8!
m=0
In the first summation above both the m ! and the m 1 term vanish, while the second summation is identical to the
sum in equation (5). Hence equation (13) simplifies to
14 ! m2 0 m ! m!8m! pm 1 p8m .
8 8 mm1 8!
m=0 m=2
! mm1m2!8m! pm 1 p8m .
8 mm1 n!
m=2
p2 ! j!82j! p j 1 p82j .
82
8!
j=0
p2 88 1! j!82j! p j 1 p82j .
82 82!
j=0
p2 88 1! p 1 p
82 82 j 82j
.
j=0 j
p2 88 1 p 1 p . p2 88 1 1
82 82
. .
15 ! m2 0 m
8
p2 88 1 8p , which when combined with equation (12), yields the following :
m=0
There is also a 'tricky way' using calculus to derive both equations (1) and (15) and hence from equation (12), equation (2)
as well . First one defines the following 'moment generating function' .
m=0 m
By comparison of equation (5) with equation (18), one is lead to equation (2) as follows /! " :
19 . ! m Pm ! m
m
8 8 8 81
8m w !
p m
1 p Q ! 8 / p 1 p p/! 8p 1 n1 8p .
m=0 m=0
In the same way, to arrive at equation (15), one takes the second derivative of Q > . Using the product rule,
Evaluating equation (21) at > !, and using equation (19) gives the same result as equation (15).