Assume its a deck of 8 cards with 2 cards of each suit.
My analysis is:
A = First card is heart
B = Second card is heart
P(A) = 1/4
P(B) = 1/4
P(B|A) = 1/7
P(A|B) = P(A) * P(B|A) / P(B)
= 1/4 * 1/7 / 1/4
= 1/7
Is this correct? I tried to create an example to do with Bayes theorem, but I'm not sure if I'm understanding it correctly. Is this a well-posed problem? I notice that P(A|B) is the same as P(B|A). That seems weird.
The best way to understand Bayes theorem is by construction of trees. As problems based on Bayes theorem have a time sequence involved, we can state the sequence as the levels in this tree.
For this problem, we can construct a tree as follows;
All the probabilities in each box are event probabilities in that particular case.
P(A - first card is heart) = 2/8 = 1/4 (directly) P(B - second card is heart) = 2/8 * 1/7 + 6/8 * 2/7 = 14/56 = 1/4
P(B|A) = P(B and A)/P(A) = (1/7 * 2/8)/(2/8) = 1/7 P(A|B) = P(A and B)/P(B) = (2/8 * 1/7)/(1/4) = 1/7
I think you are just surprised at the results, to a very well formed Bayes problem. The reason for P(B|A) = P(A|B) is because P(A) = P(B)