Question 6.3: A random variable X is defined as the number of heads that are obtained when a coin is flipped 4 times. For example, X = 3 (use this notation in your answer). The set of all outcomes is then given by S = {HHHH, HHHT, HHTH, HHTT, HTHH, HTHT, HTTH, HTTT, THHH, THHT, THTH, THTT, TTHH, TTHT, TTTH, TTTT}.
a) Determine the value of the random variable X for all possible outcomes: /3/
b) Determine the probability of each value of X in the sample space: 12.5/
c) Determine the expected value of X: 12.5/