A fair pair of coins
Two independent fair coins. Find and if a head is coded and a tail .
Worked answer
Each head has probability , so both heads have probability . That event is , and is otherwise, so . This equals .
Two independent fair coins. Find P(both heads) and E[XY] if a head is coded 1 and a tail 0.
Each head has probability 1/2, so both heads have probability 1/4. That event is {XY=1}, and XY is 0 otherwise, so E[XY]=1/4. This equals E[X]E[Y]=(1/2)×(1/2).