Final answer:
The probability that a randomly chosen person actually has the disease given that the test comes back positive is 8%.
Step-by-step explanation:
To find the probability that a randomly chosen person actually has the disease given that the test comes back positive, we can use Bayes' theorem. Let D represent the event of having the disease, and T represent the event of testing positive for the disease.
The probability of having the disease, P(D), is 2% or 0.02.
The probability of testing positive given that the person has the disease, P(T|D), is 98% or 0.98.
The probability of testing positive given that the person does not have the disease, P(T|not D), is 1 minus the probability of testing negative, which is 100% - 77% or 23% or 0.23.
Using these probabilities, we can calculate the probability of actually having the disease given that the test comes back positive using Bayes' theorem:
P(D|T) = (P(T|D) * P(D)) / ((P(T|D) * P(D)) + (P(T|not D) * P(not D)))
P(D|T) = (0.98 * 0.02) / ((0.98 * 0.02) + (0.23 * 0.98)) = 0.08
Therefore, the probability that a randomly chosen person actually has the disease given that the test comes back positive is 8% or 0.08.