Hey.
Let's say I have a random Variable \(\displaystyle X\) which has a mixed probability distribution (it has a discrete and continuous part).
Meaning, it's cumulative distribution function looks like this:
\(\displaystyle F_{X}(x)=\alpha{F_{X_d}}(x)+(1-\alpha){F_{X_c}}(x)\)
When, \(\displaystyle {F_{X}}^{d}(x)\) is the cdf of it's discrete part (\(\displaystyle X_d\)) and \(\displaystyle {F_{X}}^{c}(x)\) is the cdf of it's continuous part (\(\displaystyle X_c\)).
I now want to calculate the variance of \(\displaystyle X\) according to this formula:
\(\displaystyle Var(X)=E(X^2)-(E(X))^2\)
I know that \(\displaystyle E(X)=\alpha{E(X_d)}+(1-\alpha)E(X_c)\)
However, I'm not sure how to calculate \(\displaystyle E(X^2)\).
Please help!
Thanks in advance.
Let's say I have a random Variable \(\displaystyle X\) which has a mixed probability distribution (it has a discrete and continuous part).
Meaning, it's cumulative distribution function looks like this:
\(\displaystyle F_{X}(x)=\alpha{F_{X_d}}(x)+(1-\alpha){F_{X_c}}(x)\)
When, \(\displaystyle {F_{X}}^{d}(x)\) is the cdf of it's discrete part (\(\displaystyle X_d\)) and \(\displaystyle {F_{X}}^{c}(x)\) is the cdf of it's continuous part (\(\displaystyle X_c\)).
I now want to calculate the variance of \(\displaystyle X\) according to this formula:
\(\displaystyle Var(X)=E(X^2)-(E(X))^2\)
I know that \(\displaystyle E(X)=\alpha{E(X_d)}+(1-\alpha)E(X_c)\)
However, I'm not sure how to calculate \(\displaystyle E(X^2)\).
Please help!
Thanks in advance.