10.07.2015 Views

Information Theory, Inference, and Learning ... - Inference Group

Information Theory, Inference, and Learning ... - Inference Group

Information Theory, Inference, and Learning ... - Inference Group

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Copyright Cambridge University Press 2003. On-screen viewing permitted. Printing not permitted. http://www.cambridge.org/0521642981You can buy this book for 30 pounds or $50. See http://www.inference.phy.cam.ac.uk/mackay/itila/ for links.23Useful Probability DistributionsIn Bayesian data modelling, there’s a small collection of probability distributionsthat come up again <strong>and</strong> again. The purpose of this chapter is to introducethese distributions so that they won’t be intimidating when encounteredin combat situations.There is no need to memorize any of them, except perhaps the Gaussian;if a distribution is important enough, it will memorize itself, <strong>and</strong> otherwise, itcan easily be looked up.23.1 Distributions over integersBinomial, Poisson, exponentialWe already encountered the binomial distribution <strong>and</strong> the Poisson distributionon page 2.The binomial distribution for an integer r with parameters f (the bias,f ∈ [0, 1]) <strong>and</strong> N (the number of trials) is:P (r | f, N) =( Nr)f r (1 − f) N−r r ∈ {0, 1, 2, . . . , N}. (23.1)0.30.250.20.150.10.05010.10.010.0010.00011e-051e-060 1 2 3 4 5 6 7 8 9 100 1 2 3 4 5 6 7 8 9 10rFigure 23.1. The binomialdistribution P (r | f = 0.3, N = 10),on a linear scale (top) <strong>and</strong> alogarithmic scale (bottom).The binomial distribution arises, for example, when we flip a bent coin,with bias f, N times, <strong>and</strong> observe the number of heads, r.The Poisson distribution with parameter λ > 0 is:−λ λrP (r | λ) = er!r ∈ {0, 1, 2, . . .}. (23.2)The Poisson distribution arises, for example, when we count the number ofphotons r that arrive in a pixel during a fixed interval, given that the meanintensity on the pixel corresponds to an average number of photons λ.The exponential distribution on integers,,P (r | f) = f r (1 − f) r ∈ (0, 1, 2, . . . , ∞), (23.3)arises in waiting problems. How long will you have to wait until a six is rolled,if a fair six-sided dice is rolled? Answer: the probability distribution of thenumber of rolls, r, is exponential over integers with parameter f = 5/6. Thedistribution may also be written0.250.20.150.10.05010.10.010.0010.00011e-051e-061e-070 5 10 150 5 10 15rFigure 23.2. The Poissondistribution P (r | λ = 2.7), on alinear scale (top) <strong>and</strong> alogarithmic scale (bottom).where λ = ln(1/f).P (r | f) = (1 − f) e −λr r ∈ (0, 1, 2, . . . , ∞), (23.4)311

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!