Bayesian Calculator   Help   Copyright

Bayes Probability   Odds Picture of Rev. Thomas Bayes
P(H)= W0=
P(D|H)= LR=
P(D|H')=    
W1 =

How to use the Calculator

1. To use this program for first time, work through the following example.

Suppose that 5% of people of your age and heredity have cancer.
Suppose that a blood test has been developed that correctly gives a positive test result in 80% of people with cancer, and gives a false positive in 20% of the cases of people without cancer. Suppose you take the test, and it is positive. What is the probability that you actually have cancer, given the positive test result?

2. First, you must identify the Hypothesis, H, the Datum, D, and the probabilities of the Hypothesis prior to the test, and the hit rate and false alarm rates of the test.

3. Press the Clear Button. Note that probability is selected at the top of the second column.
In the first row, enter .05 for P(H).
In the second row, enter .80 for P(D|H).
In the third row, enter .20 for P(D|H').

4. Do not enter anything in the column for odds. When probability is selected, the odds are calculated for you. You should also not enter anything for the answer, P(H|D).

5. Press the compute button, and the answer will be computed in both probability and odds. In this example, the posterior probability given a positive test result is .174. In other words, the odds are almost 5:1 that you do NOT have cancer. You may decide not to undergo chemotherapy unless another test is positive, especially if the chemotherapy is dangerous, painful, and expensive.

6. To do the same problem in terms of odds, click the Clear button.
Then click the radio button for ODDS.
Next, enter the prior odds [PH/(1-PH), in this case, .0526].
Next, enter the Liklihood ratio of the data given the hypotheses [P(D|H)/(P(D|H'), in this case, 4].
Press the compute button, and the solution is given in odds and probability.
Given only LR, the likelihood ratio (or diagnosticity of the test) does not uniquely identify P(H|D) and P(H|D').

Return to Bayesian Calculator

Copyright Michael H. Birnbaum, 1999, all rights reserved. This program may be used freely for educational and other noncommercial scholarly uses. Software is "as is," no guarantees or warranties can be made. You may modify the program, but retain this copyright notice.

Send Comments, Corrections, & Requests for Permissions
Return to Calculator

This material is based upon work supported by the National Science Foundation under Grant No. SBR-9410572. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author and do not necessarily reflect the views of the National Science Foundation.


Decision-making Calculator with CPT, TAX, and EV

Bayesian Nomogram Calculator for Medical Decisions by Alan Schwartz

To Bayesian Calculator by Pezzulo--Handles up to 5 Hypotheses and 5 Outcomes


Return to home page of Bayesian Research Conference