<< Chapter < Page Chapter >> Page >

Binomial, poisson, and gaussian dstributions

bincomp.m Graphical comparison of the binomial, Poisson, and Gaussian distributions. The procedure calls for binomial parameters n , p , determines a reasonable range of evaluation points and plots on the same graph the binomial distribution function, thePoisson distribution function, and the gaussian distribution function with the adjustment called the “continuity correction.”

% BINCOMP file bincomp.m Approx of binomial by Poisson and gaussian % Version of 5/24/96% Gaussian adjusted for "continuity correction" % Plots distribution functions for specified parameters n, pn = input('Enter the parameter n '); p = input('Enter the parameter p ');a = floor(n*p-2*sqrt(n*p)); a = max(a,1); % Prevents zero or negative indicesb = floor(n*p+2*sqrt(n*p)); k = a:b;Fb = cumsum(ibinom(n,p,0:n)); % Binomial distribution function Fp = cumsum(ipoisson(n*p,0:n)); % Poisson distribution functionFg = gaussian(n*p,n*p*(1 - p),k+0.5); % Gaussian distribution function stairs(k,Fb(k+1)) % Plotting detailshold on plot(k,Fp(k+1),'-.',k,Fg,'o')hold off xlabel('t values') % Graph labeling detailsylabel('Distribution function') title('Approximation of Binomial by Poisson and Gaussian')grid legend('Binomial','Poisson','Adjusted Gaussian')disp('See Figure for results')
Got questions? Get instant answers now!

poissapp.m Graphical comparison of the Poisson and Gaussian distributions. The procedure calls for a value of the Poisson parameter mu, then calculates and plots the Poissondistribution function, the Gaussian distribution function, and the adjusted Gaussian distribution function.

% POISSAPP file poissapp.m Comparison of Poisson and gaussian % Version of 5/24/96% Plots distribution functions for specified parameter mu mu = input('Enter the parameter mu ');n = floor(1.5*mu); k = floor(mu-2*sqrt(mu)):floor(mu+2*sqrt(mu));FP = cumsum(ipoisson(mu,0:n)); FG = gaussian(mu,mu,k);FC = gaussian(mu,mu,k-0.5); stairs(k,FP(k))hold on plot(k,FG,'-.',k,FC,'o')hold off gridxlabel('t values') ylabel('Distribution function')title('Gaussian Approximation to Poisson Distribution') legend('Poisson','Gaussian','Adjusted Gaussian')disp('See Figure for results')
Got questions? Get instant answers now!

Setup for simple random variables

If a simple random variable X is in canonical form, the distribution consists of the coefficients of the indicator funtions (the values of X ) and the probabilities of the corresponding events. If X is in a primitive form other than canonical, the csort operation is applied to the coefficients of the indicator functions and the probabilities of the corresponding events to obtainthe distribution. If Z = g ( X ) and X is in a primitive form, then the value of Z on the event in the partition associated with t i is g ( t i ) . The distribution for Z is obtained by applying csort to the g ( t i ) and the p i . Similarly, if Z = g ( X , Y ) and the joint distribution is available, the value g ( t i , u j ) is associated with P ( X = t i , Y = u j ) . The distribution for Z is obtained by applying csort to the matrix of values and the corresponding matrix of probabilities.

Questions & Answers

what is microbiology
Agebe Reply
What is a cell
Odelana Reply
what is cell
Mohammed
how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask