Probability & Statistics Ch.2 Section 2 Question 2
Solutions for “Probability and Statistics: The Science of Uncertainty” (Second Edition). These are solutions I have come up with; I offer no guarantee of accuracy.
Question
Suppose we flip three fair coins, and let X be the number of heads showing.
a) Compute for every real number x. b) Write a formula for , for any subset B of the real numbers.
Solution
(a) Compute for every real number x
All possible outcomes from flipping three coins:
- Heads, Heads, Heads
- Heads, Heads, Tails
- Heads, Tails, Heads
- Heads, Tails, Tails
- Tails, Heads, Heads
- Tails, Heads, Tails
- Tails, Tails, Heads
- Tails, Tails, Tails
The probability of no heads is , therefore
The probability of one head is , therefore
The probability of two heads is , therefore
The probability of three heads is , therefore
The probability of any other number of heads is zero: for
(b) Write a formula for , for any subset B of the real numbers
We can simply write the probabilities we calculated above multiplied by the indicator function for that outcome. The sum of them all will represent the probability of B.
Alternatively, assuming n coin tosses, we have possible outcomes. Of those outcomes, we have ideal outcomes where x represents the desired number of coins showing heads:
This equation represents the probability of having x heads in n coin tosses:
Note that this equation simplifies to exactly the same one as above.