Bayes' formula
Bayes' formula, also known as Bayes' theorem, is a fundamental theorem in probability theory and statistics that describes how to update the probabilities of hypotheses when given evidence. It is named after Thomas Bayes, an English statistician, philosopher, and Presbyterian minister, who first provided an equation that allows new evidence to update beliefs in his posthumously published work in 1763. Bayes' formula has applications in a wide range of fields, from medicine to machine learning.
Definition[edit | edit source]
Bayes' formula is stated mathematically as:
\[ P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)} \]
where:
- \(P(A|B)\) is the conditional probability of \(A\) given \(B\), i.e., the probability of \(A\) if \(B\) is true.
- \(P(B|A)\) is the conditional probability of \(B\) given \(A\).
- \(P(A)\) and \(P(B)\) are the probabilities of \(A\) and \(B\) independently of each other.
In words, Bayes' formula tells us how to update our prior belief about \(A\) (the prior probability \(P(A)\)) in light of new evidence \(B\) to obtain a revised belief (the posterior probability \(P(A|B)\)).
Applications[edit | edit source]
Bayes' formula has numerous applications across various disciplines:
- In medicine, it is used for medical diagnosis, helping to determine the probability of a disease given the presence of certain symptoms.
- In machine learning and artificial intelligence, Bayes' theorem is the foundation of the naive Bayes classifier, a simple probabilistic classifier based on applying Bayes' theorem with strong (naive) independence assumptions between the features.
- In finance, it can be used to update the probability of a market movement given new economic indicators or other information.
Example[edit | edit source]
Consider a medical test for a certain disease. Let \(A\) represent having the disease, and \(B\) represent testing positive for the disease. If the probability of having the disease (\(P(A)\)) is 0.01 (1%), the probability of testing positive if you have the disease (\(P(B|A)\)) is 0.95 (95%), and the probability of testing positive regardless (\(P(B)\)) is 0.10 (10%), then the probability of having the disease given that you tested positive (\(P(A|B)\)) can be calculated using Bayes' formula as follows:
\[ P(A|B) = \frac{0.95 \cdot 0.01}{0.10} = 0.095 \]
This means that even if a person tests positive, there is only a 9.5% chance they actually have the disease, highlighting the importance of considering base rates and test accuracy in medical diagnosis.
See Also[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 Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD