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.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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