Question: An experiment consists of throwing a fair coin four times. Find the frequency function and the cumulative distribution function of the following random variables:
(a) the number of heads before the first tail,
(b) the number of heads following the first tail,
(c) the number of heads minus the number of tails, and
(d) the number of tails times the number of heads.