Hi, I was hoping someone could help me get started on this problem.
Show that the random variable
. . . . .\(\displaystyle X\, =\, \begin{cases}a&\mbox{with probability }\, p\\b&\mbox{with probability }\, 1\, -\, p \end{cases}\)
where \(\displaystyle \, a,\, b\, \in\, \mathbb{R}\, \) and \(\displaystyle \, p\, \in\, (0,\, 1),\, \) has the properties
. . . . .\(\displaystyle \mbox{E}X\,=\, b\, +\, (a\, -\, b)p\, \). . .and . . .\(\displaystyle \mbox{Var }\, X\, =\, (a\, -\, b)^2\, p\, (1\, -\, p)\)
Hint: Write X as a linear transformation of a Bernoulli random variable.
The hint says to write X as a linear transformation of a Bernoulli random variable. I'm not really sure how that would look. I know that a linear transformation is when you multiply and/or add a constant to a random variable. So would that be like Y = mX + b? I know that the expected value of a Bernoulli random variable is p and the variance is p(1-p). I believe I have the right idea, I just don't know how to apply it. Any help is appreciated!
Edit: I also know that the variance of the new random variable would be E[Y] = m*(E[X]) + b and the variance would be Var[Y] = m^2*Var(X)
Edit2: So to prove it would I just have to make m = a-b? Because if I do and substitute the values for the equations I have above I would get the same answers as on the problem. Not really sure why one would do that though (changing m with a-b).
Show that the random variable
. . . . .\(\displaystyle X\, =\, \begin{cases}a&\mbox{with probability }\, p\\b&\mbox{with probability }\, 1\, -\, p \end{cases}\)
where \(\displaystyle \, a,\, b\, \in\, \mathbb{R}\, \) and \(\displaystyle \, p\, \in\, (0,\, 1),\, \) has the properties
. . . . .\(\displaystyle \mbox{E}X\,=\, b\, +\, (a\, -\, b)p\, \). . .and . . .\(\displaystyle \mbox{Var }\, X\, =\, (a\, -\, b)^2\, p\, (1\, -\, p)\)
Hint: Write X as a linear transformation of a Bernoulli random variable.
The hint says to write X as a linear transformation of a Bernoulli random variable. I'm not really sure how that would look. I know that a linear transformation is when you multiply and/or add a constant to a random variable. So would that be like Y = mX + b? I know that the expected value of a Bernoulli random variable is p and the variance is p(1-p). I believe I have the right idea, I just don't know how to apply it. Any help is appreciated!
Edit: I also know that the variance of the new random variable would be E[Y] = m*(E[X]) + b and the variance would be Var[Y] = m^2*Var(X)
Edit2: So to prove it would I just have to make m = a-b? Because if I do and substitute the values for the equations I have above I would get the same answers as on the problem. Not really sure why one would do that though (changing m with a-b).
Last edited by a moderator: