Bayes Rule and Medical Tests


Published:   August 7, 2021

Tags:
Ref: https://www.youtube.com/watch?v=lG4VkPoG3ko

All medical tests do is update their probability of having disease, and not tell if we have disease or not.

There are three things

  • Prevalence : How common is that disease around here? What chance of having it without tests?
  • Sensitivity : If even disease is present, how good is the test at detecting it.
  • Specificity : If a test is taken, there can be other issues that result. Clots in the pancreas can be because of a lot many things. How specific is test for that specific disease.

For example which he told

  • Prevalence : 1%
  • Sensitivity : 90%
  • Specificity : 91%
  1. So even if you haven’t taken test, there is 1% chance of you having that disease. So taking a test based on the test’s Sensitivity and Specificity would increase and decrease that probability.

To calculate your probability faster is to get the Bayes factor.

1
2
Bayes factor = Sensitivity / False positive
Bayes factor =  (Probability of having cancer after test is positive) / (Probability of not having cancer after test is positive)

Bayes factor is also called likelihood ratio.

For above values :

  • Probability of having cancer after test is positive : 90 in 100 (90%)
  • Probability of test is false positive (100 - specificity) i.e 9
  • So likelihood ratio is : 90 / 0 i.e. 10

So in the first case without test, there was 1% i.e. 1 in 100 that you’ve cancer without test. After the test, your chances just get updated. After test is positive your chances are: 1/100 * 10 ~ 1/10. So that is also not 100% sure now.

So for tests your symptoms, contacts, genetics all come up to increase the chance, but still not 100%, we need to remember. “All tests do is update the chances of having it, but not sure shot thing. Until tests are bulletproof.”

Better to watch the whole video, above are just notes taken from there.

One of top comments for youtube channel

As a doctor I’m so happy you’re using your platform to get this information out. Let me tell you though… it gets way more complicated! Unfortunately prevalence estimates aren’t always known and are constantly changing (especially in pandemics). Another thing to consider is the gold standard. If your test looks for breast cancer you can cut out the lump and look at it under a microscope. Some diseases aren’t as easily clarified. For instance, since we don’t have a highly accurate, easy test for pancreatic cancer we rely on imaging, demographics, blood markers, symptoms (or lack thereof) as multiple things that form a conglomerate test to increase our Bayes factor. Despite all these things we can’t always get a great prediction on whether that scar in your bile duct is cancer or just a residual scar from pancreatitis you had 10 years ago. So we offer the patient a huge surgery to remove the head of their pancreas and duodenum only to find that it wasn’t cancer. You can imagine the patient is happy it’s not cancer but not so happy they don’t have half their pancreas and have abdominal pain and maybe diabetes. Medicine is a tricky thing. Another tricky thing is operator error. Some tests depend on the skill of the lab tech, radiologist, or surgeon. The complexity of the human body and the uniqueness of each individual also plays a role. Your test may be false positive in a particular patient 100% of the time because they have some strange protein mutation. It’s tough!



Let me know if you have any questions or comments.
It will help me to improve/learn.


< Older   Further Reading   Newer >