WOLFRAM|DEMONSTRATIONS PROJECT

Frequentist versus Bayesian PDF for Binary Decisions Like Coin Tossing, OSHA Compliance, and Jury Trials

​
number of successes s
18
number of failures n-s
3
The probability of success in a single trial
p
, the number of trials in an experiment
n
, and the number of successful trials
s
are the parameters used to illustrate both frequentist deductive reasoning and Bayesian inductive reasoning. The trials are independent and identically distributed (iid).
A frequentist uses parameters of a probability density function (PDF) to deduce the probability of observable data, as in the left panel. A Bayesian uses observed data to infer the parameters of a PDF, as in the right panel.
The data from an experiment involving
n
trials has
s
successes and
n-s
failures. The black vertical lines mark the maximum likelihood estimate (MLE) values for each PDF.
The frequentist assumes parameters of the sampled population are known and estimates the probability of observable data in the experiment. The dark vertical line in the left panel marks
s
MLE
, the most likely number of successes in
n
future trials, assuming that the probability of success in any trial is equal to the observed fraction of successes.
The Bayesian assumes the data is known and finds the MLE value and the probability density function of parameters from a plausible parent distribution. The vertical line in the right panel marks
p
MLE
, the maximum value of the continuous probability distribution posited for the parameter
p
when
s
successes are observed in
n
trials.
The notation used to label the
y
axes is common in Bayesian inference textbooks:
pdf(P|C)
means the probability density function for the parameter
P
, given observations and assumptions on the right of "|". Using the right panel to illustrate, read the label as: "the probability density function for
p
given a numerical value for
s
, a numerical value for
n
, and that the iid conditions are true".