Suppose that the probability of a person having the fever is $5/100$.
The probability that a person with the fever tests negative is $2/100$.
The probability that a person who does not have the fever tests positive is $10/100$.
If person X tests positive, what is the probability that people have the disease
My answer:
let $D$ disease, $P$ positive.(using the bayes's theorem)
$$P(D | P) = p(P | D)*p(D)/p(P)$$
given that
$$(5/100) - (2/100) = 3/100. = p(P | D)$$
and $$p(P) = 3/100 + 10/100 = 13/100$$
plug in.
$$\frac{(3/100)(2/100)}{13/100}$$
therefore $$3/650$$
correct?
We have two hypotheses:
We have prior knowledge that: $$P(H_1)=0.05$$ $$P(H_0)=0.95$$
Our observable variable is $T$, that indicates the test results.
The likelihood of $T$ is: $$P(T|H_1)=0.98$$ $$P(T|H_0)=0.10$$
Using Bayes theorem, we derive the posterior: $$P(H_1|T)=\frac{P(H_1)P(T|H_1)}{P(T)}=\frac{P(H_1)P(T|H_1)}{P(H_1)P(T|H_1)+P(H_0)P(T|H_0)}$$ All you have left, is substitute the probabilities