I'm struggling with the following exercise:
Given the random variable $X$ with expectation value $\mu$ and variance $\sigma^2$:
What is the expectation value and variance of $Y := 1 − X$
Isn't it just $E(X) = 1-\mu$?
Thanks in advance
I'm struggling with the following exercise:
Given the random variable $X$ with expectation value $\mu$ and variance $\sigma^2$:
What is the expectation value and variance of $Y := 1 − X$
Isn't it just $E(X) = 1-\mu$?
Thanks in advance
Copyright © 2021 JogjaFile Inc.
Comment: And the same variance.
In general, $$Var(a + bX) = b^2Var(X).$$ So here $Var(1 - X) = (-1)^2Var(X) = \sigma^2.$
Example: Suppose $X \sim \mathsf{Gamma}(\mathrm{shape}= 3, \mathrm{rate}=1/6)$ and we use R to take a large sample of size $n=100\,000.$
If you look closely you can see evidence that the support of $Y$ is $(-\infty, 1).$