Answer:
(a) The mean of <em>X</em> is 2.
(b) The variance <em>X</em> is <em>.</em>
Step-by-step explanation:
The random variable <em>X</em> defined as follows:
<em>X</em> = heads, then <em>X </em>follows Uniform (0, 1).
<em>X</em> = tails, then <em>X </em>follows Uniform (3, 4).
(a)
The expected value of a Uniform random variable U (a, b) is:
Compute the expected value of <em>X </em>= heads as follows:
Compute the expected value of <em>X </em>= tails as follows:
Compute the mean of <em>X</em> as follows:
Thus, the mean of <em>X</em> is 2.
(b)
Compute the variance of <em>X</em> as follows:
Thus, the variance <em>X</em> is <em>.</em>