Mean and Variance of the Negative Binomial Distribution
📂Probability DistributionMean and Variance of the Negative Binomial Distribution
X∼NB(r,p) Plane
E(X)=pr(1−p)Var(X)=p2r(1−p)
Proof
Strategy: Use the fact that the negative binomial distribution is a generalization of the geometric distribution.
- [b] Generalization of Geometric Distribution: If Y=X1+⋯+Xr and Xi∼iidGeo(p) then Y∼NB(r,p)
Here, the definition of the geometric distribution is set so that its support is like S={0,1,2,⋯}.
Mean and Variance of Geometric Distribution: If X∼Geo(p) then
E(X)=p1−pVar(X)=p21−p
Mean
Since Y=X1+X2+⋯+Xr
E(Y)===E(X1)+E(X2)+⋯+E(Xr)i=1∑rE(Xi)pr(1−p)
and since Y∼NB(r,p), then E(Y)=pr(1−p)
■
Variance
Since Y=X1+X2+⋯+Xr and X1,X2,⋯,Xr are mutually independent, the covariance is 0.
Var(Y)===Var(X1)+Var(X2)+⋯+Var(Xr)i=1∑rVar(Xi)p2r(1−p)
Since Y∼NB(r,p), then Var(Y)=p2r(1−p)
■