Coin Tossing
This is an example that everyone has seen at some point in their studies. Let us take a formal view on it. If we toss a coin times, we represent an outcome by a string where means that the -th coin toss turns up head.
Define (so we have ). For , define (so this counts the number of heads occurring in ). For , define the function by
defines a probability space.
Let us show this kind of proof once 🙂 (after this, it is your own exercise).
We just need to show that . This can be done by induction on . The base case when is obvious (i.e., ). Now assume that it is true that is a probability space. Consider , and we want to prove that . We break the strings in into two sets and containing those strings where the last bit is zero and one respectively. Therefore,
We will see that the first sum is and the second is , which would imply our claim. For , if we write (the last bit is zero), we have . Therefore, the sum (using the induction hypothesis). The second equality is left as an exercise.
Finish the previous proof, that is, prove that in the induction step.
Notice that when , this is a uniform distribution. Let us see some examples of events in this probability space.
-
Consider the event of getting the same results in coin tosses. So and the probability is . (obtained by summing the probabilties of atomic events).
-
Now the event consists of the outcomes that have exactly two heads, i.e., . Each occurs with probability , so we have .
-
We can further define to consist of outcomes with exactly heads, so this partitions into , where the probability of event is .
Now let us discuss a bit how our intuition about probabilities fits into the picture here. For instance, if we want to calculate the probability that the first and second coin tosses are the same, we would immediately focus on just two tosses and say that this is (we use the fact that the first and second tosses are independent, which we haven't defined here yet).
In the exercises below, you will be asked to do these calculations using only the definitions we have seen so far, i.e., you can only use the fact that the probability of an event is the sum of its atomic events.
Calculate the following probabilities:
-
View a string as . Prove that .
-
Let .
- Prove that .
- Prove that .
The following is a bit more difficult.
Consider the case when . What is the probability that the number of heads is even?
Hint: You may benefit from the binomial theorem.