%%visits: 3 This is the weighted average, or the (arithmetic mean?). ## intuition Linearity - đź(aXâ +â bY)â=âađź(X)â +â bđź(Y) ## rigour If X and Y are joint distributions, then đź(X)â=ââŤââââŤâââxf(x,ây)dydxâ=ââŤâââxâŤâââf(x,ây)dydxâ=ââŤâââxfX(x)dx
đź(XY)â=ââŤââââŤâââxyf(x,ây)dydx ## exam clinic Question 1 from keats quiz - If X is a random variable with probability density function f(x)â=â2x, for 0â<âxâ<â1, then what is E(X2) - The formula E(X2)â=ââŤâââx2f(x) gets us all the way to solving. - = $\int_{0}^{1} x^2 2x =\int_{0}^{1} 2x^3 = \frac{1}{2}x^{4}\vline_{x=0}^{x=1}$ - $= \frac{1}{2}$
Let XââĽâ0 be a non-negative integer valued random variable. Prove that $\mathbb{E}[X] = \sum _{k=1}^{\infty} \mathbb{P}(X\ge k)$
$\sum _{k=1}^{\infty} \mathbb{P}(X\ge k = \sum _{k=1}^{\infty} \sum _{j=k}^{\infty} \mathbb{P}(X=j)$ (now we want to swap the order due to foresight)
Now $= \sum _{j=1}^{\infty} \sum _{k=1}^{j} \mathbb{P}(X=j)$
to illustrate this, think of for loops?
k = 1: j = 1,2,3,4,5 .. k = 2: j = 2,3,4,5 ⌠k = 3: j = 3,4,5,6,
âŚ
j = 1 k = 1 j = 2 k = 1,2 ⌠## examples Example of non-defined expectation $X~f_X(X) = \frac{a}{x^{1+a}},a>0$ an 0 otherwise.
$\mathbb{E}[X] = \int_{x=1}^{\infty}x \frac{a}{x^{1+a}}dx = \int_{x=1}^{\infty}\frac{a}{x^{a}}dx = a \frac{x^{a}}{-a+1}$ or lnâ(|x|) when aâ=â1, hence infinity at a=1.
tags :math: