Solved: XiDistribution does not mean what I thought
Solved: Distribution does not mean what I thought
X
i
In brief: Subscripted random variables are not treated as iid draws from a given distribution.
What I expected:,{NormalDistribution[μ,σ]}] means “the sum of n iid N(μ,σ) random variables.” In this case, we obtain a variance of .
Reality:,{NormalDistribution[μ,σ]}] is interpreted as , i.e. “a constant times a single N(μ,σ).” In this case, we obtain a variance of .
If the interpretation were in line with my expectations, we would obtain a variance of; in the latter case, we would obtain a variance of . We obtain the latter variance.
What I expected:
n
∑
i=1
X
i
X
i
2
nσ
Reality:
n
∑
i=1
X
i
X
i
n
X
i
2
n
2
σ
If the interpretation were in line with my expectations, we would obtain a variance of
2
nσ
2
n
2
σ
In[]:=
Simplify[Expectation[,{NormalDistribution[μ,σ]}]-]
2
()
n
∑
i=1
X
i
X
i
2
Expectation[,{NormalDistribution[μ,σ]}]
n
∑
i=1
X
i
X
i
Out[]=
2
n
2
σ