Difference between revisions of "Variance of the geometric distribution"
From Maths
(Completed the initial workings, most of the proof is on paper, marked as stub.) |
m (Adding definition note and confirming the convention.) |
||
Line 1: | Line 1: | ||
{{Stub page|grade=A|msg=There's work to do, not just writing out the entire proof [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 15:04, 16 January 2018 (UTC) }} | {{Stub page|grade=A|msg=There's work to do, not just writing out the entire proof [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 15:04, 16 January 2018 (UTC) }} | ||
{{ProbMacros}}{{M|\newcommand{\d}[0]{\mathrm{d} } }}{{M|\newcommand{\ddq}[1]{ \frac{\d}{\d q}{\left[{#1}\middle]\right\vert_q} } }}__TOC__ | {{ProbMacros}}{{M|\newcommand{\d}[0]{\mathrm{d} } }}{{M|\newcommand{\ddq}[1]{ \frac{\d}{\d q}{\left[{#1}\middle]\right\vert_q} } }}__TOC__ | ||
− | == | + | ==Statement== |
− | [[ | + | Let {{M|X\sim}}[[Geometric distribution|{{M|\text{Geo} }}]]{{MM|(p) }} - as defined on the [[geometric distribution]] page<ref group="Note">So using ''our'' convention, to say it explicitly</ref> - then the [[variance]] of {{M|X}} is: |
− | ==Final steps== | + | * {{MM|\Var{X}\eq \frac{1-p}{p^2} }} for {{M|p\in(0,1)}} with easy extension (as per ''[[expectation of the geometric distribution]]'') to {{M|p\in(0,1]}} |
+ | ==Proof== | ||
+ | [[File:MostOfGeometricDistributionVarianceComputations.JPG|thumbnail|Workings so far]] | ||
+ | ===Final steps=== | ||
Recall {{M|q:\eq 1-p}} | Recall {{M|q:\eq 1-p}} | ||
− | ===Computing {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q}}=== | + | ====Computing {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q}}==== |
We leave the bottom of the paper workings with: | We leave the bottom of the paper workings with: | ||
* {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q}} | * {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q}} | ||
Line 16: | Line 19: | ||
** This yields: | ** This yields: | ||
*** {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q \eq 2\left(\frac{1}{p^3}-1\right)}} | *** {{MM|\frac{\d^2}{\d q^2}\left[\sum^\infty_{k\eq 3} q^k\middle]\right\vert_q \eq 2\left(\frac{1}{p^3}-1\right)}} | ||
− | ===Computing {{M|\E{X^2} }}=== | + | ====Computing {{M|\E{X^2} }}==== |
Recall: | Recall: | ||
* {{M|q:\eq 1-p}} | * {{M|q:\eq 1-p}} | ||
Line 45: | Line 48: | ||
Given we'll need to subtract {{M|\frac{1}{p^2} }} there's no point in proceeding any further | Given we'll need to subtract {{M|\frac{1}{p^2} }} there's no point in proceeding any further | ||
− | + | ====Computing {{M|\Var{X} }}==== | |
Lastly: | Lastly: | ||
* {{M|\Var{X}\eq\E{X^2}-(\E{X})^2}}, so | * {{M|\Var{X}\eq\E{X^2}-(\E{X})^2}}, so |
Latest revision as of 15:08, 16 January 2018
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