Combining probabilities / results

In summary, the conversation discusses the accuracy of a LFT test for COVID-19 and the factors that affect the probability of having the virus based on a negative test result. The conversation also mentions the limitations of using multiple tests to confirm the presence of the virus. The use of a probability tree is suggested as an alternative method for analyzing the results of multiple tests.
  • #1
pinball1970
Gold Member
3,230
4,704
TL;DR Summary
Six lateral flow tests and counting all negative. I started thinking if I took one test right after another how do I combine those probabilities correctly?
I had a LFT test this week which gives a 75% accuracy result.Negative.I also wanted to stick in some prior knowledge if I can, 20% of the UK currently has Covid say.Vanadium 50 illustrated this to me a while back so I hope I don’t mess it up
20False pos
No Covid in UK80%60Neg
Covid in UK20%5False Neg
15Pos
So if I am negative I am either positive with 5% probability or negative with 60% probability is this right?

If I had another test which is also negative how much confidence can I have now?

I am not sure how to combine the results, the “and” “or” x and add rule does not work I end up with probabilities over one
 
Physics news on Phys.org
  • #2
There are three factors: the prevalence of the disease in the population (##d##); the sensitivity (##p##) of the test (which is the probability of a postive test given you have the virus); and, the specificity (##q##) of the test (which is the probability of a negative test given you do not have the virus).

The simplest way to analyse this is to use a probability tree:

##dp## - Virus and postive test
##d(1-p)## - Virus and negative test (false negative)

##(1-d)q## - No virus and negative test
##(1-d)(1-q)## - No virus and positive test (false positive)

If you test negative, then the probablity you do not have the virus is:$$P_0 = \frac{(1-d)q}{(1-d)q + d(1-p)}$$
I had to post this to get the Latex to render. Notes about second test to follow.
 
  • Like
Likes sysprog and pinball1970
  • #3
Doing a second test (if the first is negative) has the following effect:

##d(1-p)p## - Virus, negative first test, positive second test.
##d(1-p)(1-p)## - Virus and two negative tests

##(1-d)q^2## - No virus and two negative tests
##(1-d)q(1-q)## - No virus, negative first test and positive second test

If you have two negative tests, then the probablity you do not have the virus is:$$P_1 = \frac{(1-d)q^2}{(1-d)q^2 + d(1-p)^2}$$
Note that assuming that the test is sufficently sensitive, then ##(1-p)^2## is very small compared to ##q^2## and ##P_1 \approx 1##.

(This assumes that the test results are independent and there is nothing specific about an individual that would imply repeated false negatives.)
 
  • Informative
  • Like
Likes sysprog and pinball1970
  • #4
PeroK said:
Doing a second test (if the first is negative) has the following effect:

##d(1-p)p## - Virus, negative first test, positive second test.
##d(1-p)(1-p)## - Virus and two negative tests

##(1-d)q^2## - No virus and two negative tests
##(1-d)q(1-q)## - No virus, negative first test and positive second test

If you have two negative tests, then the probablity you do not have the virus is:$$P_1 = \frac{(1-d)q^2}{(1-d)q^2 + d(1-p)^2}$$
Note that assuming that the test is sufficently sensitive, then ##(1-p)^2## is very small compared to ##q^2## and ##P_1 \approx 1##.

(This assumes that the test results are independent and there is nothing specific about an individual that would imply repeated false negatives.)
I will try this and feedback thanks
 
  • Like
Likes sysprog
  • #5
PeroK said:
(This assumes that the test results are independent and there is nothing specific about an individual that would imply repeated false negatives.)
And therein lies the problem.

Assuming you are swabbing correctly then a negative test simply shows that the test has not detected antigens in your saliva/nasal mucus. It is perfectly possible that you have COVID-19 but do not currently have antigens in your saliva/nasal mucus*; you gain no information about this situation by doing another lateral flow test.
 
Last edited:
  • #6
pbuk said:
And therein lies the problem.

Assuming you are swabbing correctly then a negative test simply shows that the test has not detected antigens in your saliva/nasal mucus. It is perfectly possible that you have COVID-19 but do not currently have antigens in your saliva/nasal mucus; you gain no information about this situation by doing another lateral flow test.
In general, the independence of tests on the same subject is another factor. That's a clinical question!
 
  • #7
pbuk said:
And therein lies the problem.

Assuming you are swabbing correctly then a negative test simply shows that the test has not detected antigens in your saliva/nasal mucus. It is perfectly possible that you have COVID-19 but do not currently have antigens in your saliva/nasal mucus*; you gain no information about this situation by doing another lateral flow test.
I put this in maths rather medical as I am genuinely interested in probability side of it.
All the numbers I have got so far make sense, If I increase/decrease the sensitivity for instance.

I am assuming “all else being equal” for the medical side.

I am not 100% on how the tree is built.
 
  • #8
pinball1970 said:
I am not 100% on how the tree is built.
For a simple case like this, the tree has an initial branch into ##d## (has the virus) and ##1-d## (does not have the virus). Then, each of these branches according to negative and positive tests.

You then look at the end of each branch and decide whether it's in your sample space - in this case a negative test - or not. Then you pick out the cases you are interested in (does not have the disease) from this reduced sample space This gives you the probability of not having the disease given a negative test.

This is a good alternative to using the algebraic version of Bayes' theorem, as the theorem is emedded in the tree structure.

In the case where you have two negative tests, you simply extend the tree by branching each of the first negative tests again.

One of the great advantages is that if we complicate the situation with more options and more levels, then using the raw Bayes' theorem becomes algebraically unworkable compared to the tree representation.
 
  • Like
  • Informative
Likes sysprog and pinball1970

FAQ: Combining probabilities / results

What is the concept of combining probabilities/results?

The concept of combining probabilities/results is the process of calculating the likelihood of an event occurring based on multiple independent events. This is done by multiplying the individual probabilities of each event together to determine the overall probability.

How do you calculate the combined probability of two events?

To calculate the combined probability of two events, you multiply the individual probabilities of each event together. For example, if the probability of event A is 0.5 and the probability of event B is 0.3, the combined probability would be 0.5 x 0.3 = 0.15.

What is the difference between independent and dependent events?

Independent events are events that do not affect each other's outcomes, meaning the occurrence of one event does not change the probability of the other event happening. Dependent events, on the other hand, are events that do affect each other's outcomes, meaning the occurrence of one event can change the probability of the other event happening.

How do you calculate the combined probability of dependent events?

To calculate the combined probability of dependent events, you use the formula P(A and B) = P(A) x P(B|A), where P(A) represents the probability of event A occurring and P(B|A) represents the probability of event B occurring given that event A has already occurred.

What are some real-world applications of combining probabilities/results?

Combining probabilities/results is commonly used in fields such as finance, insurance, and risk assessment. It can also be applied in everyday situations, such as predicting the likelihood of winning a game or the chances of an event occurring based on weather conditions.

Similar threads

Replies
11
Views
483
Replies
7
Views
2K
Replies
6
Views
2K
Replies
14
Views
3K
Replies
7
Views
1K
Back
Top