Difference between revisions of "Variance of the geometric distribution"

From Maths
Jump to: navigation, search
(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__
==Notes==
+
==Statement==
[[File:MostOfGeometricDistributionVarianceComputations.JPG|thumbnail|Workings so far]]The variance is {{MM|\frac{1-p}{p^2} }}
+
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:
There's work to do, not just writing out the entire proof Alec (talk) 15:04, 16 January 2018 (UTC)

Statement

Let XGeo(p)

- as defined on the geometric distribution page[Note 1] - then the variance of X is:

Proof

Workings so far

Final steps

Recall q:=1p

Computing d2dq2[k=3qk]|q

We leave the bottom of the paper workings with:

  • d2dq2[k=3qk]|q
    =ddq[1(1q)212q]|q
    =2+ddq[(1q)2]|q
    =2+(2)(1q)3ddq[1q]|q
    =2+2(1q)3(1)
    = 2(1(1q)31)
  • We may now substitute q=1p (as q:=1p so p=1q follows)
    • This yields:
      • d2dq2[k=3qk]|q=2(1p31)

Computing E[X2]

Recall:

  • q:=1p
  • α:=P[X=1]+4P[X=2]
  • β:=P[X=1]+2P[X=2]

The previous step yielded:

  • d2dq2[k=3qk]|q= 2(1p31)

and we got as far as:

  • E[X2]=αβ+E[X]+pq(d2dq2[k=3qk]|q)

So:

  • pq(d2dq2[k=3qk]|q)
    =2pq(1p31)
    =2q(1p2p)
    =2(1p)(1p2p)


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(1p)(1p2p)
    =2P[X=2]+1p+2(1p)(1p2p3p2)
    =2(1p)p+1p+2(1p)1p3p2
    =1p+2(1p)(p+1p3p2)
    =1p+2(1p)(p3p2+1p3p2)
    =1p+2(1p)1p2
    =1p+2p22p
    =2p21p
    =2p2pp2
    - it's probably easier in this form

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)=2p2pp21p2
      =1p2pp2
      =1pp2

Thus

  • Var(X)=1pp2

Notes

  1. Jump up So using our convention, to say it explicitly

References