I have seen this and this, but my setup is a little different so I'm not sure how to proceed.
Setup:
We are using a single standard deck of 52 cards.
Suppose I have been dealt two cards, and one of them is a 5. The other is neither a 4 nor a 9.
Suppose my opponent has also been dealt two cards (I cannot see them).
Suppose the flop (subsequent deal of three cards face up on the table for everyone to use) contains 6, 7, 8.
Suppose two more cards will be dealt face up on the table for everyone to use.
Question:
What is the probability that I will obtain a straight, or a straight flush, of 5 cards? That is, what is the probability that one or both of the next two cards is a 9 or a 4?
I know this is wrong because the probability is way too high, but here's how I've started:
1) There are 52-7 = 45 cards left in the deck.
2)
P(1st card is 4 | opponent has no 4s) = 4/45
P(1st card is 4 | opponent has one 4) = 3/45
P(1st card is 4 | opponent has two 4s) = 2/45
If the first card is a 4, then I don't care what the second card is - I have my straight.
3)
P(1st card is 9 | opponent has no 9s) = 4/45
P(1st card is 9 | opponent has one 9) = 3/45
P(1st card is 9 | opponent has two 9s) = 2/45
4)
So the probability that the 1st card is either a 4 or a 9 is: (2(4 + 3 + 2)/45) = 0.4
5) If the first card is not a 4 and not a 9, then I don't have my straight yet. I need to wait for the second card.
P(2nd card is 4 | opponent has no 4s AND 1st card was neither 4 nor 9) = 4/44
P(2nd card is 4 | opponent has one 4 AND 1st card was neither 4 nor 9) = 3/44
P(2nd card is 4 | opponent has two 4s AND 1st card was neither 4 nor 9) = 2/44
6)
P(2nd card is 9 | opponent has no 9s AND 1st card was neither 4 nor 9) = 4/44
P(2nd card is 9 | opponent has one 9 AND 1st card was neither 4 nor 9) = 3/44
P(2nd card is 9 | opponent has two 9s AND 1st card was neither 4 nor 9) = 2/44
7)
So the probability that the second card is either a 4 or a 9 will be:
$$2((4+3+2)/44) \approx 0.4091$$
8) Adding these together, the probability that I get a straight is:
0.4091 + 0.4 = 0.8091.
Obviously this is way too high. Why am I wrong and how do I fix it?
EDIT:
Okay, thanks for the hint. The comment implies that what my opponent has doesn't matter, but I'm not sure why.
I condition on what my opponent has because if they have, say, a four, then there are only 3 fours left in the deck, so the probability that I get a four is not going to be the same as if there were 4 fours in the deck. If there is no opponent, then there would be 52-5=47 cards in the deck, and 4 of them would definitely be fours, so I think that changes both the denominator and the numerator.
Let's pretend that I don't have an opponent.
Then there are 52-5=47 cards left in the deck.
The probability that the first card is either a 4 or a 9 would be 8/47
The probability that the second card is either a 4 or a 9, given that the first card was neither a 4 nor a 9, would be 8/46.
So then my probability of getting a straight would be $$8/47 + 8/46 \approx 0.3441$$, which I think is still too high. I'm clearly missing something, and I feel like it's very obviously staring me in the face, but I just don't see it.