Solution

ID: past-exam-of-the-probability-course-of-the-university-of-oxford/2023/2/b/ii/solution

If and are independent random variables, conditioning on the Bernoulli random variable gives
with the continuous value . Indeed when , while the conditional probability distribution of given is the original uniform distribution.
Under the literal assumptions alone, the law of total expectation gives only
This is not determined by and . For an explicit counterexample, put and . Then has the required Bernoulli distribution, but
which differs from the independent-case formula.

New to topics? Read the docs here!