# Probability of getting heads given that first flip was a head?

What's the probability of getting heads on the second toss given that the first toss was a head. (Trying to refresh my probability a bit). I've seen this analyzed like this:

• HH 1/4
• HT 1/4
• TH 1/4
• TT 1/4

So since we are given information (Head on first flip), then TT goes away and were are left with:

• HH 1/3
• HT 1/3
• TH 1/3

So we could say that HH now has a 1/3 probability. Should we not also get rid of TH, since we know that the first flip is a head? So now we have:

• HH 1/2
• HT 1/2
• Often the question is asked "what is the probability of getting a heads on both tosses, given that you got at least one head". In that case you toss TT, and keep the three with heads (HH,HT,TH) and of those three exactly one has 2 heads so the probability is 1/3. I think you are confusing the analysis of two different problems. But your reasoning is correct. Given trusting something you've vaguely remember but which makes no sense, and something that makes sense to you. Trust yourself. You may be wrong for other reasons but if you don't remember the vague stuff, it's definitely wrong. – fleablood Dec 26 '17 at 23:09
• You should probably specify that you assume the coin to be fair. Otherwise if the probability of heads is unknown the problem gets much more complicated (and interesting). For example you could assume a prior distribution on the probability of heads; in this case observing a head would update that prior and increase your expectation that the second toss will also be heads. – Luca Citi Dec 27 '17 at 0:18
• The two events are utterly unrelated. If you have trouble picturing that, consider this example: Let's say you are about to toss a coin. Now, I assert that, back in 1993, at 2:34 PM, on Thursday afternoon, in Bogota, someone flipped a coin. I now tell you: ok, the flip your about to perform is the second of that sequence. Obviously, you'd think I'm nuts - the two are not connected in anyway at all. But similarly, the flip you just did, has utterly no connection, in anyway - whatsoever - to the flip you are about to perform. This is quite deep and hard to truly understand. .... – Fattie Dec 27 '17 at 17:40
• Your example is trivial, but, the same mistake is often made in sophisticated analysis of various problems. – Fattie Dec 27 '17 at 17:40
• Your second step is is not correct. Heads on first flip would remove both TT and TH. Which leaves HH and HT, or (simplified) H and T. But, as mentioned by others, before your first throw, there is a 1/4 probability of throwing a HH in two throws (1 of 4 equally weighted outcomes). Once the first throw has been determined, throwing a HH has the same probability as throwing a H in a single toss, which is what you are doing. – Michael Richardson Dec 27 '17 at 18:07

## 5 Answers

Yeah, that is right. You can also use a concept called independence; if the two coin tosses are independent, then knowing that the first one is heads does not change at all the probability of heads for the second one.

• "Also use"? Isn't independence the assumption underlying everything here? – zhw. Dec 26 '17 at 23:18
• @zhw. Yes, but the other solutions that explicitly list the four possible outcomes and says they are equally likely doesn't require explicit mention of independence. I think this answer that makes it explicit is better. – Ethan Bolker Dec 27 '17 at 1:13

If we are give the information that "the first coin was a head" then, from, HH, HT, TH, TT, would remove both TT and TH. That leaves only HH and HT so that the probability that the second flip is also a head is 1/2.

• This is absolutely wrong. There's no connection, whatsoever, between the mentioned previous-toss, and the toss in question. Consider all the coin-tosses ever made by humans. (I'd guess there would be about 100 million such coin-tosses - let's number then 0 to 100,000,000.) If you choose one (or more) of those coin tosses ......... well, you can't. You can stop there. You can't just choose one or more of those 100,000,000 coin-tosses and say "consider this set...". There's utterly no difference between that coin toss and the other 99,999,999 extant coin tosses. – Fattie Dec 27 '17 at 17:45
• Which post is this a response to? It comes right after mine and is indented, so appears to be in response to mine, but what it says, except for the "This is absolutely wrong", seems to support what I said. Yes, there I no connection between the previous toss and the toss in question. That is why the second toss has probability 1/2 of heads and 1/2 of tails just as I said. – user247327 Dec 27 '17 at 17:57
• Hey User24 ... happy new year .. this sentence: " If we are given the information that "the first coin was a head" " is the sentence I mean that is "absolutely wrong". That information (ie: the information: "the first coin was a head") is of entirely no connection, whatsoever, to the question at hand. If I said "In the 13th drawing of 2008 of the Eurolottery, the first number was a 9, and hence ..." that would be equally utterly unrelated. – Fattie Dec 27 '17 at 18:06

the two events are unrelated, the outcome of the second is (as mentioned) independent of the first. So, the odds of the second being heads is 1/2.

The odds of both being heads is 1/4.

If you did 49 flips - and they all came up heads - the odds of the next one being heads is still 1/2.

• My gut says the chance of a 1 in 2^49 event occurring is far lower than my running into an unfair coin. – JTP - Apologise to Monica Dec 27 '17 at 2:34
• I would want to check the two sides of the coin for if there is a tails or not, but otherwise, @JoeTaxpayer, I would argue that even a significantly biased coin isn't likely to be sufficiently biased to overcome a small prior. A coin with 0.55 probability of coming up heads would be 2 orders of magnitude more likely to produce such a sequence (and at 0.6, 4 orders of magnitude), but I would assume that such coins would be difficult to produce and be far less common than a normal coin with <1% bias. This is, of course, assuming a random coin, and not a coin your friend handed to you, giggling – timuzhti Dec 27 '17 at 4:12
• In other words, I wouldn't be able to distinguish a designed-to-be-biased coin with a normal coin with only 50 flips, whatever the sequence is. Trick coins with only one side are an obvious exception, assuming I can observe it. – timuzhti Dec 27 '17 at 4:15
• One weird remark about conditional probabilities here: @JoeTaxpayer would be completely right a priori. You could decide to flip a coin 50 times, and call it unfair if you get more than, say, 35 heads, given that you only expect 25 for a fair coin. However, given that I already have 49 heads, we're already in a very unlikely case, and it's equally unlikely that we're in the 1 in 2^50 event of the sequence "HHH....HH" (50 heads) as in the 1 in 2^50 event of the sequence "HH...HT" and so the 50th throw is exactly like the first one. – CompuChip Dec 27 '17 at 10:58
• @CompuChip: No that's not the correct way to think about it. Suppose your goal is to maximum your accuracy rate. Well if there are only fair coins in the world then whatever you do will give you 50% accuracy. But if there are unfair coins in the world, and one of them is flipped 50 times, then your strategy will be strictly inferior to the one that always guesses the most common side so far. So if a random coin is picked from some distribution of coins, each of whose flips are independent and identically distributed for that particular coin and you see only Hs, the optimal is to guess H again. – user21820 Dec 27 '17 at 11:18

In general, for two events $A, B$ $$P(A\mid B)=\frac{P(A\cap B)}{P(B)}.$$ Let $A$ be the event of heads on the second toss, and $B$ the event of first toss being a head. Then $$P(A\mid B)=\frac{1/4}{1/2}=1/2.$$ The numerator is explained by noting that of the four possible sequences of two tosses (all equiprobable), we want $HH$.

If the coin is a fair coin, the results of the first toss and the second are independent, so there are exactly two possibilities for the second toss: H and T. The probability of getting H is 1/2. Don't forget, the coin may have been tossed thousands of times before the one we care about. None of those affects the result; there's nothing special about the last of those pre-tosses.