Hi anuj11,
I think that there might be some 'typos' in what you wrote.
When flipping a coin 5 times, there are only 2 outcomes that do not include at least one head and at least one tail....
To start, the probability of getting "all heads" is (1/2)(1/2)(1/2)(1/2)(1/2) = 1/32 and the same probability exists for "all tails" (re: 1/32).
Thus, the probability of "all heads" or "all tails" = (1/32) + (1/32) = 2/32 = 1/16
Taking all of this one step further,
...
I think that there might be some 'typos' in what you wrote.
When flipping a coin 5 times, there are only 2 outcomes that do not include at least one head and at least one tail....
To start, the probability of getting "all heads" is (1/2)(1/2)(1/2)(1/2)(1/2) = 1/32 and the same probability exists for "all tails" (re: 1/32).
Thus, the probability of "all heads" or "all tails" = (1/32) + (1/32) = 2/32 = 1/16
Taking all of this one step further,
...





