This is a simple applet for running Bayesian equations:
Enter values as probabilities in algebraic notation (e.g. for 60% type .6, i.e. the percentage, 60, divided by 100). The above applet is published by Curtis Brown through Trinity University. To understand what this calculator does you should become acquainted with the actual equation it's solving for you. Bayes' Theorem (long form) is: | |
| |
In which there are four variables that determine the probability that a hypothesis is true. You need only three values. T is the hypothesis under test. E is the evidence T is expected to explain. B is all your current background knowledge. You should always assume all three values are conditional on background knowledge. So in the above calculator P(T) is actually P(T|B), etc. The applet rounds all results to four decimal places but can accept longer inputs. P(T) is the prior probability that T is true. The fourth variable in Bayes' Theorem, P(~T), the prior probability that T is false, is always 1 - P(T) so it doesn't have to be entered (the calculator already figures it in). The other two variables are the probability that the evidence would exist if T is true, which is P(E|T), and the probability that the evidence would exist if T is false, which is P(E|~T). The result is the probability that T is true given that evidence. I would like to have an applet that allows you to enter the conclusion you want and two of the three values, to then see what the third value would have to be to get that conclusion. I'd also like an applet that allows you to enter maximums and minimums for each variable (making a range of probabilities for each) to show the maximum and mininum result. I would also like to have an applet that allows you to run the equation for three competing hypotheses, which is as follows (note that in the following P(T1), P(T2), and P(T3) must always sum to 1): | |
| |
|
If anyone writes applets and is keen to help, please contact me. Or to learn more about Bayes' Theorem see my PDF tutorial. But in general there are six general rules you can apply to use the calculator effectively: | |
| |
|
As an example of applying Rule 1, if the evidence is that your wallet is missing, and you are asking how likely it is that your wallet was stolen, what is the frequency of "your wallet was stolen" the cause of "your wallet is missing"? If your wallet has often gone missing but every time you discovered you had just dropped it or misplaced it, then the frequency of "your wallet was stolen" being true is low, and so must its prior probability be. Unless the conditions are notably different (e.g. lots of things have been stolen around you lately or in that place in particular), in which case you take that into account, too. Analogously, if someone tells you their limbs grew back after having been chopped off, how frequently is "a human's arms grew back after being chopped off" actually the explanation of such evidence (that such a person, with arms and legs intact, would say something like this to you), as opposed to some other explanation being true instead (e.g. "they're crazy," "they're lying," "they're joking," etc.)? The same reasoning applies to asking how frequently a cause like T produces evidence like E (which is the probability that E given T, which is P(E|T)). In answering questions like this you will often need to estimate hypothetical frequencies, e.g. if your wallet has never gone missing, or done so only once (or you never determined how it went missing) your actual database will be too sparse to estimate an actual frequency of causes, but you can use your background knowledge to hypothesize what a larger database would look like, relying on information about the frequency of you dropping or misplacing things, and of thefts occurring in the area, and the physical properties of your wallet and pocket and what you did that day (which can affect the likelihood of it falling out, etc.). Combining this with a fortiori reasoning will produce reliable results (i.e. the actual probability of T, given all that you currently know). This page was composed in 2011 by Richard Carrier, Ph.D. It is intended as a helpful resource, and accordingly it will likely be revised, updated, or expanded in future. |
The Official Website of Richard Carrier, Ph.D.
Copyright © 2008 All Rights Reserved