I have this (very trivial but very insidious) doubt about probability. Suppose I have two categories A and B, whose individuals can have two properties, P and Q. Consider the following table:
A B
P 2 5
Q 12 15
This table tells us, for example, that 2 individuals in A have property P. Now the question is: what is the probability that an individual from group A has property P?
My doubt is: do I have to use a Bayes theorem
$Pr(P|A) = \frac{Pr(A|P)Pr(P)}{Pr(A)}$
or the basic definition of probability
$P(P|A) = \frac{2}{2+12}$
Thank you for helping.
Either is fine. Note that Bayes' Theorem would give $$\frac{\frac 2 7 \cdot \frac{7}{34}}{\frac {14}{34}} = \frac{2}{14}$$ just like your other answer. (Personally, I think your second solution is much simpler, but it should be comforting that the two methods agree.)