Quote Originally Posted by Cacarulo View Post
Hi iCountNTrack,

Could you check with your code what is the probability of getting 2 heads with a probability of 0.5 in 4 coin tosses? Thanks.

Sincerely,
Cac
Exactly 2 or more than 2. Exactly the same of getting 2 or more tails. Regardless, the Law of Small Numbers should apply. Notwithstanding semantics, seems to me the probability is dependant on wheather the first head (or tail) is achieved on the 1st, 2nd or 3rd toss. Clearly, the odds of a second head is greatest when the first toss is a head.

Of course, the probability of heads on any toss is 50%.