Escolar Documentos
Profissional Documentos
Cultura Documentos
Appendix
Bernoulli(p)
Binomial(n, p)
405
406 Probability and Statistics for Computer Scientists
n
Probability mass function: P (x) = px (1 p)nx
x
Cdf: Table A2
Expectation: = np
Variance: 2 = np(1 p)
Relations: Binomial(n, p) is a sum of n independent Bernoulli(p)
variables
Binomial(1, p) = Bernoulli(p)
Table: Appendix, Table A2
MATLAB: binocdf, binopdf, binornd
Geometric(p)
Negative Binomial(k, p)
Poisson()
Beta(, )
Chi-square 2 ()
Exponential()
Density: f (x) = ex
Cdf: F (x) = 1 ex
Expectation: = 1/
Variance: 2 = 1/2
Fisher-Snedecor F(1 , 2 )
2 2 (1 + 2 2)
Variance: for 2 > 4
1 (2 2)2 (2 4)
2 (1 )/1
Relations: For independent 2 (1 ) and 2 (2 ), the ratio 2 (2 )/2 is F (1 , 2 )
Special case: a square of t() variable is F (1, )
Table: Appendix, Table A7
MATLAB: fcdf, fpdf, frnd
Gamma(, )
1 x
Density function: f (x) = x e
()
Expectation: = /
Variance: 2 = /2
Relations: For integer , Gamma(, ) is a sum of independent
Exponential() variables
Gamma(1, ) = Exponential()
Gamma(/2, 1/2) = Chi-square()
As a prior distribution, Gamma family is conjugate to
the Poisson() model and the Exponential() model.
MATLAB: gamcdf, gampdf, gamrnd
Normal(, )
Pareto(, )
Students T()
Uniform(a, b)