Bayes' Rule
Bayes’ rule converts probabilities of data given hypotheses into probabilities of hypotheses given data.
For events and with nonzero probabilities,
The left side is the posterior probability of after learning data . The factor is the likelihood of the data under . The factor is the prior probability before learning . The denominator normalizes the result.
In quantum mechanics, Bayes’ rule is used for classical inference about unknown preparations, parameters, devices, and models. It should not be confused with the quantum state-update rule after a measurement outcome.
From Conditional Probability
Section titled “From Conditional Probability”The product rule says
and also
Equating the two expressions gives
The algebra is simple. The conceptual step is remembering which conditional probability is being asked for.
Hypotheses and Evidence
Section titled “Hypotheses and Evidence”For mutually exclusive and exhaustive hypotheses ,
The denominator is the total probability of the data:
This quantity is often called the evidence or marginal likelihood. It is not optional; it is what makes the posterior probabilities add to one.
Vocabulary
Section titled “Vocabulary”In a Bayesian calculation, the common terms are:
- Prior: , the probability assigned before the data are included.
- Likelihood: , the probability of the data under the hypothesis.
- Evidence: , the total probability assigned to the data by the model family.
- Posterior: , the updated probability after including the data.
The likelihood is a function of the hypothesis once the observed data are fixed. It is not, by itself, a normalized probability distribution over hypotheses.
Odds Form
Section titled “Odds Form”For two hypotheses and , Bayes’ rule can be written as an odds update:
The first factor on the right is the likelihood ratio. It says how strongly the data favor over . The second factor is the prior odds.
Thus
This form is often the cleanest way to see how evidence accumulates.
Base-Rate Example
Section titled “Base-Rate Example”Suppose a rare condition has prior probability
A test has sensitivity
and false-positive probability
After a positive test, the posterior is
The numerator is , while the denominator is , so
The test was accurate, but the condition was rare. Ignoring the base rate would give a wildly overconfident conclusion.
Continuous Parameters
Section titled “Continuous Parameters”For a continuous parameter , Bayes’ rule becomes a density formula:
Here:
is the evidence, is the prior density, and is the posterior density.
The posterior density must integrate to one:
As with all probability densities, the value of the density at one exact parameter is not itself a probability.
Independent Data
Section titled “Independent Data”If data points are conditionally independent given , then the likelihood factors:
Equivalently, the log-likelihood is a sum:
This is why repeated measurements can rapidly concentrate a posterior distribution, provided the model is appropriate and the data are genuinely informative.
Quantum Likelihoods
Section titled “Quantum Likelihoods”In quantum inference, the Born rule supplies likelihoods for classical data.
If a state model is measured by a POVM with effects , then
For repeated conditionally independent outcomes ,
Bayes’ rule then updates a posterior over the classical parameter :
The symbol means “proportional to”; the evidence normalizes the posterior.
This is common in quantum parameter estimation, calibration, and tomography. The quantum probabilities come from states and measurement operators, but the inference over is ordinary Bayesian inference. For the local sensitivity and Cramér–Rao viewpoint, see Fisher Information.
Tomography Interpretation
Section titled “Tomography Interpretation”In state tomography, the unknown object may be a density operator itself. A Bayesian treatment assigns a prior density over allowed density operators and updates it using measurement data:
For counts of outcomes from one fixed POVM, a multinomial likelihood has the form
This posterior is a state of knowledge about an unknown preparation or device. It is not the same object as the post-measurement quantum state of one system after a single outcome. The latter is governed by a measurement instrument or state-update rule.
Bayesian Update versus Quantum State Update
Section titled “Bayesian Update versus Quantum State Update”Bayesian updating changes a probability distribution over hypotheses:
Selective quantum measurement update changes the quantum state assigned after an outcome in a specified measurement model:
Both updates include conditioning and normalization. They answer different questions. Bayesian updating asks, “Which model or parameter is plausible after the data?” Quantum state update asks, “What state should be assigned to the system after this measurement outcome, given the measurement model?”
The distinction becomes essential when the same observed data are used to infer an unknown source, calibrate a detector, or predict a later measurement on the same system.
Common Mistakes
Section titled “Common Mistakes”- Confusing with .
- Ignoring prior probabilities or base rates.
- Forgetting the evidence denominator.
- Treating a likelihood as a normalized posterior.
- Assigning zero prior probability to a hypothesis and then expecting data to revive it.
- Comparing continuous posterior densities by point height alone without considering volume.
- Confusing Bayesian inference about an unknown quantum preparation with quantum state update after a measurement.
- Treating tomography estimates as exact states without reporting uncertainty, model assumptions, and measurement design.
Cross-Links
Section titled “Cross-Links”- Conditional Probability
- Probability Densities
- Expectation Values
- Fisher Information
- Born Rule
- POVMs: First Encounter
- Trace Rule for Expectation Values
- State Update Rule
References
Section titled “References”- E. T. Jaynes, Probability Theory: The Logic of Science, Cambridge University Press, 2003.
- D. S. Sivia and J. Skilling, Data Analysis: A Bayesian Tutorial, 2nd ed., Oxford University Press, 2006.
- A. Gelman, J. B. Carlin, H. S. Stern, D. B. Dunson, A. Vehtari, and D. B. Rubin, Bayesian Data Analysis, 3rd ed., CRC Press, 2013.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010.
- C. W. Helstrom, Quantum Detection and Estimation Theory, Academic Press, 1976.
Exercises
Section titled “Exercises”- A box is chosen at random. Box 1 is chosen with probability and contains a red ball with probability . Box 2 is chosen with probability and contains a red ball with probability . If a red ball is observed, what is the posterior probability that Box 2 was chosen?
Solution
Let be “Box 2” and be “red.” Then
Substitute:
- Two hypotheses have prior probabilities and . The likelihoods for data are and . Compute the posterior odds to .
Solution
The prior odds to are
The likelihood ratio is
Thus the posterior odds are
So is twice as likely as after observing .
- A qubit source is modeled by a parameter , the probability of outcome in a computational-basis measurement. If independent measurements produce zeros and ones, write the likelihood for .
Solution
The probability of a zero is and the probability of a one is . Ignoring the combinatorial factor independent of , the likelihood is
- A POVM has effects . A model state is . Write the likelihood for observing outcome sequence under conditional independence.
Solution
The Born probabilities are
Thus
- Why is a Bayesian posterior over in tomography not the same thing as the post-measurement state of a single quantum system?
Solution
The posterior over is a probability distribution over possible source or model states after data are observed. It describes uncertainty about an unknown preparation or device. A post-measurement quantum state is the state assigned to a particular system after a specified measurement outcome and measurement instrument. Both involve conditioning, but they refer to different objects.