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 $P\{T+|D+\}=0.75$ and specificity $P\{T-|D-\}=0.8$.

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 $P\{D+|T+\}$ and $P\{D-|T-\}$.

$P\{D+|T+\}=5/7$

$P\{D-|T-\}=24/29$

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 } $=(nCk)x({p}^{k})\times ((1-p{)}^{n-k})$, hence we can calculate $P\{k=0|D+\}\text{}and\text{}P\{k=0|D-\}$.

We can then apply Bayes' formula to calculate $P\{D+|k=0\}$.

$P\{D+|k=0\}=0.692$

Using the same approach for $k=1:3$, we derive:

$P\{D+|k=1\}=0.5$

$P\{D+|k=2\}=0.308$

$P\{D+|k=3\}=0.165$

Would really appreciate it if someone can verify whether my reasoning and answers are correct.

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 $P\{T+|D+\}=0.75$ and specificity $P\{T-|D-\}=0.8$.

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 $P\{D+|T+\}$ and $P\{D-|T-\}$.

$P\{D+|T+\}=5/7$

$P\{D-|T-\}=24/29$

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 } $=(nCk)x({p}^{k})\times ((1-p{)}^{n-k})$, hence we can calculate $P\{k=0|D+\}\text{}and\text{}P\{k=0|D-\}$.

We can then apply Bayes' formula to calculate $P\{D+|k=0\}$.

$P\{D+|k=0\}=0.692$

Using the same approach for $k=1:3$, we derive:

$P\{D+|k=1\}=0.5$

$P\{D+|k=2\}=0.308$

$P\{D+|k=3\}=0.165$

Would really appreciate it if someone can verify whether my reasoning and answers are correct.