Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

5.13: Bayes Demo

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives

  • Calculate probabilities based on a tree diagram
  • Calculate probabilities based on Bayes' theorem

Instructions

This demonstration lets you examine the effects of base rate, true positive rate, and false positive rate on the probability that a person diagnosed with disease X actually has the disease. The base rate is the proportion of people who have the disease. The true positive rate is the probability that a person with the disease will test positive. The false positive rate is the probability that someone who does not have the disease will test positive. The demonstration is based on 10,000 people being tested. A tree diagram showing the results and calculations based on Bayes' theorem are shown. They should always agree.

You can change the initial values and then press the "Calculate" button.

Illustrated Instructions

The Bayes' Theorem demonstration starts by displaying the results for the default base rate, true positive rate and the false positive rate as shown in the screenshot below. You can change any of these three numbers and click the "Calculate" button to get the results based on the changes you make.

bayes_demo1.jpg
Figure 5.13.1: Bayes' Theorem Demonstration

This page titled 5.13: Bayes Demo is shared under a Public Domain license and was authored, remixed, and/or curated by David Lane via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?