Binomial Poisson 2 PP
Binomial Poisson 2 PP
You can download this presentation (and check for updates) from
http://www1.gantep.edu.tr/~andrew/eee283/BinomialPoisson.pdf
Dr Andrew Beddall
Version 1 (19/01/2014)
Content
- Permutations and Combinations
- The Binomial Coefficient
- Distributions of Outcomes
- Bernoulli Trials
- The Binomial pmf
- The Poisson pmf
1
19/01/2014
If order does not count then there are ABC BAC CAB
3!/2!(3-2)! = 6/2(1) = 3 combinations: ACB BCA CBA
PERMUTATIONS: COMBINATIONS:
arrangements where arrangements where
order is counted order is not counted
repetition repetition repetition repetition
is counted is not counted is not counted is counted
For a set of nFor a set of n For a set of n For a set of n
elements, elements there are elements there is elements,
select k n! permutations. one combination. select k
elements Select k elements Select k elements elements
there are there are there are there are
nk P(n,k) = n! / (n-k)! C(n,k) = P(n,k) / k! (n+k-1)!
permutations. permutations. = n! / k!(n-k)! k!(n-1)!
combinations. combinations.
We are interested in the third case.
This is called the Binomial Coefficient and it is very important in probability.
4
2
19/01/2014
Example 1: 4! = 24 permutations
Take the set of n=4 elements { A, B, C, D }
ABCD ABDC ACBD ACDB ADBC ADCB
We do not allow repetition of elements, BACD BADC BCAD BCDA BDAC BDCA
and the order of the elements is not CABD CADB CBAD CBDA CDAB CDBA
counted; so there is only one combination, DABC DACB DBAC DBCA DCAB DCBA
i.e. ABCD
AB BA CA DA
Select k=2 elements, there are P(4,2) =
AC BC CB DB
(4)(3) = 12
C(n,k) = P(n,k) / k! AD BD CD DC
permutations
= n! / k!(n-k)! = 4!/2!(4-2)!
= 6 combinations.
AB C(4,2) =
We divide by k! because there are k! AC BC (4)(3)/2! = 6
ways we can order the combinations AD BD CD combinations
but order is not counted.
5
We do not allow repetition of elements, and the order of the elements is not counted.
6
3
19/01/2014
k terms
e.g.
Some properties:
4
19/01/2014
Distributions of Outcomes
no 4s P(k=0) = 125/216
one 4s P(k=1) = 75/126
two 4s P(k=2) = 15/216
three 4s P(k=3) = 1/216
Sum = 216/216
10
5
19/01/2014
Bernoulli Trials
A Bernoulli trial has only two possible outcomes,
for example outcome A and outcome B (which is not A).
The probability of outcome A ocurring k-times in n trials can be
calculated as follows:
One possible outcome is: A1.A2.A3....Ak . B1.B2.B3....Bn-k
k terms n-k terms
The probability of this outcome is
P(A1 A2 A3.. ..Ak B1 B2 B3.. ..Bn-k)
= P(A1)P(A2)P(A3)...P(Ak) . P(B1)P(B2)P(B3)....P(Bn-k)
k terms
For example:
for (n=3,k=2) = 3!/2!(1!) = 3 A1A2B1 , A1B1A2 , B1A1A2
And for
12
6
19/01/2014
For example throw three dice, the probability of obtaining exactly two 4s:
= 1/6, k = 2, n = 3
= 15/216.
13
7
19/01/2014
Example
A department purchases a box of 16 switches.
If there is a 5% chance of each switch being defective,
what is the probability that there are less than three
defective switches in the box?
Solution: use the Binomial pmf with n=16 and = 0.05 and we want P(k<3).
Remember that the Binomial pmf provides a distribution of probabilities,
so P(k<3) = P(k=0) + P(k=1) + P(k=2)
= 1 (0.05)0 (0.95)16
+ 16 (0.05)1 (0.95)15
+ 16(15)/2 (0.05)2 (0.95)14
= 0.4401+0.3706+0.1463
= 0.9570
16
8
19/01/2014
17
Binomial pmf
Binomial
k terms
Poisson pmf
18
9
19/01/2014
For convenience the Poisson pmf is often used in place of the binomial pmf.
But remember it is an approximation (though sometimes a good one).
We should use the Binomial pmf with n=5 and k=2 and = 1/6,
19
Properties (the Binomial pmf properties with the limit 0, and =n)
mean = variance 2 = ( =2 = ) skewness = 1/
20
10
19/01/2014
Example
100 million people access a web site (at a random time) once a year.
What is the probability of the web site receiving more than 3 hits in a one-second period?
Solution:
We have n = 108 , and = 1 / (365 24 3600) = 3.171 10-8 per second.
We can use the Poisson pmf with = n = 3.171
Summary
22
11