I am self-learning statistics, and I have a question about how to do the following problem:
There are two species of panda bear, A and B. Both are equally common in the wild and live in the same places. A veterinarian has a new genetic test that can identify the species of a panda. But the test, like all tests, is imperfect. This is the information you have about the test:
• The probability it correctly identifies a species A panda is 0.8. • The probability it correctly identifies a species B panda is 0.65.
The vet administers the test to your panda and tells you that the test is positive for species A. Compute the posterior probability that your panda is species A.
I wish to calculate P(species=A | test=A), by using the Bayes theorem and calculate the prior, P(test=A).
I am confused about the test on species B. How to calculate the prior?