This Routine Compares Poisson and Bernoulli (Binomial) Distributions. Find P (Exactly K Successes in N Trials)

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 2

Calculate P{}

This routine compares Poisson and Bernoulli (Binomial) distributions.


Find P{exactly k successes in n trials}
given that P{1 success in 1 trial} = p.
p= 0.3 Lambda = n*p = the mean
n= 5 Try p = 0.4, n=5, k=2
k= 2 Try p = 0.04, n=50, k=2
Results:
Bernoulli 0.3087
Poisson 0.251021 .>..>.. useful when p is small and n is large

Formulae:
BINOMDIST(k,p,n,FALSE)
POISSON(k,n*p,FALSE)

Page 1
Bernoulli

Generate a string of 20 String:


Binomially-distributed random variables based on p,n and k: 0
As on the first spreadsheet, 2
p= 0.3 2
n= 5 4
k= 2 1
3
0
See Module1 to view program. 3
2
1
1
0
1
3
2
1
1
2
4
1

Page 2

You might also like