Variance of the geometric distribution
From Maths
Revision as of 15:08, 16 January 2018 by Alec (Talk | contribs) (Adding definition note and confirming the convention.)
Stub grade: A
This page is a stub
This page is a stub, so it contains little or minimal information and is on a to-do list for being expanded.The message provided is:
Contents
[hide]Statement
Let X∼Geo(p)
- as defined on the geometric distribution page[Note 1] - then the variance of X is:
- Var(X)=1−pp2for p∈(0,1) with easy extension (as per expectation of the geometric distribution) to p∈(0,1]
Proof
Final steps
Recall q:=1−p
Computing d2dq2[∞∑k=3qk]|q
We leave the bottom of the paper workings with:
- d2dq2[∞∑k=3qk]|q
- =ddq[1(1−q)2−1−2q]|q
- =−2+ddq[(1−q)−2]|q
- =−2+(−2)(1−q)−3⋅ddq[1−q]|q
- =−2+−2(1−q)3⋅(−1)
- = 2(1(1−q)3−1)
- =ddq[1(1−q)2−1−2q]|q
- We may now substitute q=1−p (as q:=1−p so p=1−q follows)
- This yields:
- d2dq2[∞∑k=3qk]|q=2(1p3−1)
- d2dq2[∞∑k=3qk]|q=2(1p3−1)
- This yields:
Computing E[X2]
Recall:
- q:=1−p
- α:=P[X=1]+4P[X=2]
- β:=P[X=1]+2P[X=2]
The previous step yielded:
- d2dq2[∞∑k=3qk]|q= 2(1p3−1)
and we got as far as:
- E[X2]=α−β+E[X]+pq(d2dq2[∞∑k=3qk]|q)
So:
- pq(d2dq2[∞∑k=3qk]|q)
- =2pq(1p3−1)
- =2q(1p2−p)
- =2(1−p)(1p2−p)
- =2pq(1p3−1)
Now we substitute this all in to E[X2]=α−β+E[X]+pq(d2dq2[∑∞k=3qk]|q) and:
- E[X2]=P[X=1]+4P[X=2]−P[X=1]−2P[X=2]+1p+2(1−p)(1p2−p)
- =2P[X=2]+1p+2(1−p)(1p2−p3p2)
- =2(1−p)p+1p+2(1−p)1−p3p2
- =1p+2(1−p)(p+1−p3p2)
- =1p+2(1−p)(p3p2+1−p3p2)
- =1p+2(1−p)1p2
- =1p+2p2−2p
- =2p2−1p
- =2p2−pp2- it's probably easier in this form
- =2P[X=2]+1p+2(1−p)(1p2−p3p2)
Given we'll need to subtract 1p2 there's no point in proceeding any further
Computing Var(X)
Lastly:
- Var(X)=E[X2]−(E[X])2, so
- Var(X)=2p2−pp2−1p2
- =1p2−pp2
- =1−pp2
- =1p2−pp2
- Var(X)=2p2−pp2−1p2
Thus
- Var(X)=1−pp2
Notes
- Jump up ↑ So using our convention, to say it explicitly
References
Categories:
- Stub pages
- Theorems
- Theorems, lemmas and corollaries
- Probability Theorems
- Probability Theorems, lemmas and corollaries
- Probability
- Statistics Theorems
- Statistics Theorems, lemmas and corollaries
- Statistics
- Elementary Probability Theorems
- Elementary Probability Theorems, lemmas and corollaries
- Elementary Probability
- Variance Calculations