Difference between revisions of "Mdm of the Poisson distribution"
From Maths
(Saving work) |
m (Typo on 2nd line!) |
||
Line 1: | Line 1: | ||
{{ProbMacro}}{{Todo|Link with [[Poisson distribution]] page}} | {{ProbMacro}}{{Todo|Link with [[Poisson distribution]] page}} | ||
==Statement== | ==Statement== | ||
− | Let {{M|X | + | Let {{M|X\sim}}[[Poisson distribution|{{M|\text{Poi} }}]]{{M|(\lambda)}} for some {{M|\lambda\in\mathbb{R}_{>0} }}. {{M|X}} may take any value in {{M|\mathbb{N}_0}} |
Recall the [[Mdm]] is defined as: | Recall the [[Mdm]] is defined as: |
Revision as of 12:22, 6 November 2017
TODO: Link with Poisson distribution page
Statement
Let X∼Poi(λ) for some λ∈R>0. X may take any value in N0
Recall the Mdm is defined as:
- Mdm(X):=E[ |X−E[X]| ]
I kept messing up on paper, so I write the calculations here
Macros follow this (if any non standard)
Calculation
- Mdm(X):=E[ |X−E[X]| ]:=∞∑k=0|X−E[X]|⋅P[X=k]
- =e−λ ∞∑k=0λkk!|k−E[X]| =e−λ ∞∑k=0λkk!|k−λ|
- Note that:
- if k≥λ ⟹ k−λ≥0 ⟹ |k−λ|=k−λ
- if k≤λ ⟹ k−λ≤0 ⟹λ−k≥0 ⟹|k−λ|=λ−k
- Define the following two values:
- This means we have u≤λ and v≥λ, specifically, we have the following two cases:
- if k≤u and as u≤λ we see k≤λ and
- if k>u then k≥u+1=v≥λ so k≥λ
- This means we have u≤λ and v≥λ, specifically, we have the following two cases:
- Now, from above: Mdm(X)=e−λ ∞∑k=0λkk!|k−λ|
- =e−λ[λ00!|0−λ| + ∞∑k=1λkk!|k−λ|]
- =e−λ[λ + u∑k=1λkk!|k−λ| + ∞∑k=vλkk!|k−λ|] with the understanding that if u=0 that the sum from k=1 to u evaluates to 0, obviously
- Notice now that:
- For the first sum, where 1≤k≤u (specifically that k≤u) we have k≤λ
- and that from further above we noticed if k≤λ then |k−λ|=λ−k
- For the second sum, where k>u that this meant k≥λ
- and that from further above we noticed if k≥λ then |k−λ|=k−λ, so
- For the first sum, where 1≤k≤u (specifically that k≤u) we have k≤λ
- Mdm(X)=e−λ[λ + u∑k=1λkk!|k−λ| + ∞∑k=vλkk!|k−λ|]
- =e−λ[λ + u∑k=1λkk!(λ−k) + ∞∑k=vλkk!(k−λ)]
- we now expand these sums:
- =e−λ[λ + first sum⏞u∑k=1λk+1k! − u∑k=1kλkk! + second sum⏞∞∑k=vkλkk!−∞∑k=vλk+1k! ]
- =e−λ[λ + λ(u∑k=1λkk! − ∞∑k=vλkk!) + (∞∑k=vλk(k−1)! − u∑k=1λk(k−1)!)], by grouping the terms and factorising where we can
- =e−λ[λ + λ(u∑k=1λkk! − ∞∑k=vλkk!) + (∞∑k=v−1λk+1k! − u−1∑k=0λk+1k!)][Note 3] by reindexing the latter two sums
- =e−λ[λ + λ(u∑k=1λkk! − ∞∑k=vλkk!) + λ(∞∑k=v−1λkk! − u−1∑k=0λkk!)]
- =λe−λ[1 + (u∑k=1λkk! − ∞∑k=vλkk!) + (∞∑k=v−1λkk! − u−1∑k=0λkk!)]
- =e−λ[λ + u∑k=1λkk!(λ−k) + ∞∑k=vλkk!(k−λ)]
TODO: Keep going, there's some heavy cancelling out about to happen! DON'T FORGET TO REMOVE DIV AROUND NOTES SO THEY'RE NORMAL SIZE!
Notes
- Jump up ↑ Recall λ>0, this means u≥0 and thus u∈N0
- Jump up ↑ Notice:
- If λ is not ∈N≥0 then u+1=RoundUpToInt(λ), so u+1=v≥λ
- If λ is in N≥0 then u=λ and v=u+1>u=λ so v>λ
- Notice (v>λ)⟹(v≥λ)
- Jump up ↑ Note that the third sum should have "∞−1" as its upper index, however remember that when a sum is to ∞ this is actually a limit, it was in this case:
- limn→∞(n∑k=v⋯)
- limn→∞(n−1∑k=v−1⋯)