Calculate conditional probabilities for coin tosses
StackAdaptSoftware Engineer · HR ScreenLast updated
This question evaluates understanding of conditional probability and independence in simple probabilistic experiments. It belongs to the Statistics & Math domain, is commonly asked to assess foundational probabilistic reasoning used in statistical inference and algorithmic decision-making, and targets conceptual understanding with elementary practical computation.
Consider two independent tosses of a fair coin. (a) What is the probability that the second toss is Heads given that the first toss was Tails, P(second=H | first=T)? (b) Given that at least one of the two tosses is Heads, what is the probability that both tosses are Heads, P(both=HH | at least one H)? Explain using an explicit sample space or conditional probability formulas.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.