Bayes' Theorem in Conditional Probability
We are testing for a disease D that we think is present, D+, with probability 0.4, and absent, D-, with probability 0.6. We believe that a test has sensitivity and specificity .
Q1: What is our probability that the disease is present if we perform the test and it is positive, T+, and our probability the disease is absent if that test is negative, T-?
My ans:
We can apply Bayes' formula to calculate and .
Q2: Suppose we perform three tests, conditionally independent given D. Given each possible number of positive test results, 0, 1, 2, or 3, what is our probability that the disease is present?
My ans:
Let k denote the number of positive test results.
We know that P{ [exactly] k successes in n trials | p } , hence we can calculate .
We can then apply Bayes' formula to calculate .
Using the same approach for , we derive:
Would really appreciate it if someone can verify whether my reasoning and answers are correct.