Bayes theorem
Bayes' Theorem
Bayes' Theorem is a fundamental concept in probability theory and statistics, providing a mathematical framework for updating the probability of a hypothesis based on new evidence. Named after the Reverend Thomas Bayes, an 18th-century statistician and theologian, the theorem has wide applications in various fields, including medicine, finance, and machine learning.
Definition[edit | edit source]
Bayes' Theorem describes the probability of an event, based on prior knowledge of conditions that might be related to the event. The theorem is expressed mathematically as:
\[ P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)} \]
Where:
- \(P(A|B)\) is the posterior probability, the probability of event \(A\) occurring given that \(B\) is true.
- \(P(B|A)\) is the likelihood, the probability of event \(B\) occurring given that \(A\) is true.
- \(P(A)\) is the prior probability, the initial probability of event \(A\).
- \(P(B)\) is the marginal likelihood, the total probability of event \(B\).
Applications in Medicine[edit | edit source]
In the medical field, Bayes' Theorem is particularly useful for diagnostic testing. It allows clinicians to update the probability of a disease as new test results become available. For example, if a patient tests positive for a disease, Bayes' Theorem can be used to calculate the probability that the patient actually has the disease, taking into account the test's sensitivity and specificity.
Example[edit | edit source]
Consider a disease that affects 1% of the population. A test for the disease has a sensitivity of 99% and a specificity of 95%. If a patient tests positive, Bayes' Theorem can be used to calculate the probability that the patient actually has the disease.
\[ P(Disease|Positive) = \frac{P(Positive|Disease) \cdot P(Disease)}{P(Positive)} \]
Where:
- \(P(Positive|Disease) = 0.99\)
- \(P(Disease) = 0.01\)
- \(P(Positive) = P(Positive|Disease) \cdot P(Disease) + P(Positive|No\ Disease) \cdot P(No\ Disease)\)
Historical Background[edit | edit source]
Thomas Bayes was an English statistician and minister who formulated the theorem that bears his name. His work was published posthumously in 1763 by his friend Richard Price. The theorem was initially met with skepticism but gained prominence in the 20th century with the advent of computational methods that allowed for its practical application.
Mathematical Derivation[edit | edit source]
Bayes' Theorem can be derived from the definition of conditional probability. Given two events \(A\) and \(B\), the conditional probability of \(A\) given \(B\) is defined as:
\[ P(A|B) = \frac{P(A \cap B)}{P(B)} \]
Similarly, the conditional probability of \(B\) given \(A\) is:
\[ P(B|A) = \frac{P(A \cap B)}{P(A)} \]
Rearranging the second equation gives:
\[ P(A \cap B) = P(B|A) \cdot P(A) \]
Substituting this into the first equation yields Bayes' Theorem:
\[ P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)} \]
Also see[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD