In: Math
Suppose a coin is biased. Specifically, the probability that the flip shows as heads is a random variable P with the probability density function f P(p) = 2(1−p) for 0 ≤ p ≤ 1. Let N be the number of heads in n independent flips of the coin. Find E [ N ] using iterated expectation.