Written and maintained by CASRAI Editorial Board
Published
On this page
Prior probability is the initial probability assigned to an event, hypothesis, or parameter before collecting or observing any new empirical evidence. In Bayesian statistical inference, this baseline probability quantifies pre-existing knowledge, historical frequencies, or theoretical expectations, serving as the formal foundation that is subsequently updated via Bayes’ theorem into a posterior probability once new observational data become available.
What is prior probability?
In quantitative research and statistical decision theory, prior probability represents the unconditional probability of an event or state of nature before introducing novel observations. Formally denoted as P(H) for a discrete hypothesis H or π(θ) for a continuous parameter vector θ, prior probability establishes the reference baseline against which subsequent observations are weighed. Without an explicit prior probability, probabilistic updating cannot proceed, because empirical data can only confirm, refute, or calibrate an existing reference expectation.
The conceptual foundation of prior probability traces to Thomas Bayes and Pierre-Simon Laplace. Where classical deductive probability reasons forward from known population parameters to anticipated sample outcomes, Bayesian inference reasons backward from observed data to unknown population parameters. Under this paradigm, prior probabilities allow researchers to integrate background knowledge—such as baseline disease prevalences from epidemiological surveys, physical constraints in engineering models, or historical failure rates—directly into mathematical estimation. Understanding the different types of probability helps researchers discern when a prior represents an objective physical frequency versus an epistemic degree of belief.
Prior probabilities range across the continuous interval [0, 1]. A prior probability of 0 signifies absolute certainty that an event cannot occur, whereas 1 signifies certainty that an event must occur. However, assigning definitive prior probabilities of 0 or 1 immunizes a hypothesis against empirical falsification: multiplying any likelihood by a prior of zero yields a posterior of zero, regardless of how strong contradictory evidence may be.
What is a prior?
In scientific practice, researchers use the single noun a prior as shorthand for either a prior probability or a prior probability distribution. Rather than referring to a separate mathematical entity, a prior simply names the model component chosen to capture background information prior to data ingestion. Depending on whether the quantity under study is a single discrete event or a continuous parameter space, a prior may consist of a single numerical scalar, a discrete probability mass function, or a continuous probability density function.
Methodologists distinguish between several functional categories of priors. A subjective prior reflects an investigator’s quantified belief, constructed through expert elicitation. An objective prior (such as a Jeffreys prior) minimizes external influence on the model, relying on the mathematical structure of the likelihood. In hierarchical modeling, practitioners also specify hyperpriors, which are prior distributions assigned to the hyperparameters governing the baseline prior. For a technical survey of continuous distributions, see our guide to prior distributions in Bayesian statistics.
What is bayesian probability in simple terms?
In simple terms, Bayesian probability interprets probability as a measurable degree of belief or certainty in a proposition, rather than the long-run frequency of physical trials. In classical statistics, a parameter is viewed as a fixed constant, and probabilities describe repeatable procedures. In contrast, the Bayesian paradigm models parameters as random variables, allowing researchers to assign probability statements directly to unknown hypotheses or historical events.
The Bayesian workflow functions as a formal mathematical learning engine governed by a three-step cycle of updating:
- Formulate the Prior: State initial baseline assumptions or knowledge about an unknown parameter before gathering new data.
- Observe the Evidence: Collect empirical observations and compute the likelihood of observing that specific data across parameter values.
- Calculate the Posterior: Combine the likelihood and the prior using Bayes’ theorem to generate an updated probability distribution reflecting both sources of information.
This iterative mechanism ensures that scientific beliefs evolve rationally in proportion to incoming empirical data. A deeper comparison is detailed in our guide on Bayesian vs. frequentist statistics.
What is a probability term?
A probability term is any standardized technical concept used to define the components of probability theory and Bayesian inference. Core probability terms include:
- Unconditional Probability (Marginal Probability): The probability of an event occurring without conditioning on other occurrences, written as P(A). The prior probability P(H) is an unconditional probability within the context of the experiment.
- Conditional Probability: The probability of event A occurring given that event B has already occurred, formalized as P(A|B) = P(A ∩ B) / P(B), provided P(B) > 0.
- Joint Probability: The probability that two or more events occur simultaneously, written as P(A ∩ B).
- Likelihood: In inverse probability, the probability of observing sample data given a specific hypothesis, denoted P(E|H) or L(θ|x).
- Posterior Probability: The updated conditional probability of a hypothesis after integrating empirical evidence, formalized as P(H|E).
What is prior and posterior probability?
The distinction between prior and posterior probability lies at the center of Bayesian statistics, representing the state of scientific knowledge immediately before versus immediately after observing empirical data. While prior probability P(H) encapsulates baseline knowledge before data acquisition, posterior probability P(H|E) represents the revised probability of that hypothesis after conditioning on observed evidence E. The transition from prior to posterior constitutes the core informational gain provided by conducting an experiment.
A central axiom of Bayesian epistemology is sequential updating: today’s posterior probability becomes tomorrow’s prior probability. When a laboratory completes an initial study, the resulting posterior distribution serves as the principled prior distribution for subsequent replication experiments. In this way, knowledge accumulates sequentially across successive investigations without discarding previously verified evidence. For a structured side-by-side analysis, consult our comparison of prior vs posterior probabilities.
Prior probability formula and mathematical formulation
In the architecture of Bayes’ theorem, prior probability appears as an essential multiplicative term in both the numerator and the denominator. For a discrete hypothesis H and an observed evidence event E, Bayes’ theorem is formulated as:
P(H|E) = [P(E|H) × P(H)] / P(E)
Every mathematical symbol in this fundamental equation carries a precise operational definition:
- P(H): The prior probability of hypothesis H, representing baseline probability before observing evidence E.
- P(E|H): The likelihood (true positive rate in diagnostic contexts), representing the probability of observing E given that H is true.
- P(E): The marginal probability of evidence (normalizing constant), representing the unconditional probability of observing E across all hypotheses.
- P(H|E): The posterior probability, representing the revised probability that H is true given evidence E.
When evaluating a hypothesis against its complementary alternative (not H, denoted ¬H), the marginal probability P(E) in the denominator is expanded via the law of total probability:
P(E) = P(E|H) × P(H) + P(E|¬H) × P(¬H)
Here, P(¬H) = 1 – P(H) is the complementary prior probability, and P(E|¬H) represents the false positive rate. Substituting this expansion yields the complete operational prior probability formula for binary hypothesis testing:
P(H|E) = [P(E|H) × P(H)] / [P(E|H) × P(H) + P(E|¬H) × (1 – P(H))]
Bayes’ theorem can also be expressed in odds: Posterior Odds = Prior Odds × Bayes Factor, where Prior Odds = P(H) / [1 – P(H)] and Bayes Factor = P(E|H) / P(E|¬H). For continuous parameter spaces, prior density π(θ) and likelihood L(θ) combine to produce posterior density p(θ|D) ∝ L(θ) × π(θ).
Worked example: calculating posterior probability from prior probability
To understand the mathematical impact of prior probability, consider a clinical diagnostic evaluation scenario. A laboratory evaluates a screening test for a rare biochemical condition using explicit arithmetic.
Suppose epidemiological surveillance establishes that the condition affects exactly 1% of the target screening population. The laboratory deploys a diagnostic assay characterized by 95% sensitivity and 95% specificity. A randomly selected individual takes the test and receives a positive result. What is the posterior probability that this individual truly has the condition?
Step 1: Define prior probabilities and assay parameters.
- Prior probability of condition: P(H) = 0.01
- Complementary prior probability (healthy baseline): P(¬H) = 1 – 0.01 = 0.99
- Sensitivity (true positive rate): P(E|H) = 0.95
- Specificity (true negative rate): P(¬E|¬H) = 0.95
- False positive rate: P(E|¬H) = 1 – 0.95 = 0.05
Step 2: Calculate joint probabilities in the numerator and denominator.
- Condition present and positive test: P(E ∩ H) = P(E|H) × P(H) = 0.95 × 0.01 = 0.0095
- Condition absent and positive test: P(E ∩ ¬H) = P(E|¬H) × P(¬H) = 0.05 × 0.99 = 0.0495
Step 3: Calculate total marginal probability of a positive test result, P(E).
Summing both paths yields P(E) = 0.0095 + 0.0495 = 0.0590. Across the population, 5.90% of administered tests return positive.
Step 4: Compute posterior probability using Bayes’ theorem.
P(H|E) = P(E ∩ H) / P(E) = 0.0095 / 0.0590 = 19 / 118 ≈ 0.1610169 (approximately 16.10%).
Step 5: Cross-check using the Odds formulation.
- Prior odds: O(H) = 0.01 / 0.99 = 1 / 99 ≈ 0.010101
- Bayes factor (likelihood ratio): BF = 0.95 / 0.05 = 19.0
- Posterior odds: O(H|E) = (1 / 99) × 19 = 19 / 99 ≈ 0.191919
- Posterior probability from odds: P(H|E) = (19 / 99) / [1 + (19 / 99)] = 19 / 118 ≈ 0.1610
Both mathematical formulations reach 16.10%. Despite a 95% accurate test, there is only a 16.10% chance that the person actually has the condition. The natural frequency table below illustrates this outcome for a representative cohort of 10,000 screened individuals.
| Cohort Category | Test Positive | Test Negative | Total Individuals |
|---|---|---|---|
| Condition Present (P = 0.01) | 95 (True Positives) | 5 (False Negatives) | 100 |
| Condition Absent (P = 0.99) | 495 (False Positives) | 9,405 (True Negatives) | 9,900 |
| Total | 590 Positive Tests | 9,410 Negative Tests | 10,000 |
As shown in the table, out of 590 total positive tests generated, 495 are false positives and only 95 are true positives. The ratio of true positives to total positives is 95 / 590 = 16.10%. This divergence between test accuracy and positive predictive value demonstrates the decisive power of prior probability.
Interpretation and reading guidance
Interpreting posterior probabilities requires balancing the initial weight of the prior probability against the discriminative power of the likelihood evidence. In the diagnostic example, intuition frequently tricks observers into believing a 95% accurate test implies a 95% probability of disease. This cognitive error is known as base rate neglect or the base rate fallacy: observers focus on the high likelihood P(E|H) = 0.95 while ignoring the low baseline prior probability P(H) = 0.01.
To establish interpretation standards, analysts examine belief updating across benchmark indicators, summarized in the reading guidance table below.
| Metric or Benchmark | Observed Threshold | Substantive Interpretation | Analytical Action |
|---|---|---|---|
| Prior Probability P(H) | P(H) under 0.05 | Rare baseline event; high vulnerability to false positive accumulation. | Require confirmatory secondary testing before clinical decision-making. |
| Bayes Factor (BF) | 1.0 to 3.0 | Anecdotal or barely worth mentioning evidence in favor of hypothesis H. | Prior belief is virtually unchanged; treat data as inconclusive. |
| Bayes Factor (BF) | 3.0 to 10.0 | Moderate evidence supporting hypothesis H over the null alternative. | Moderate updating; evidence supports hypothesis but warrants caution. |
| Bayes Factor (BF) | 10.0 to 30.0 | Strong evidence; substantial shift between prior and posterior odds. | Acceptable evidentiary basis for provisional scientific acceptance. |
| Bayes Factor (BF) | Exceeding 30.0 | Very strong to decisive evidence supporting hypothesis H. | Data dominates the prior; strong posterior certainty. |
| Posterior Ratio P(H|E) / P(H) | 16.1x (Worked Example) | Evidence raised hypothesis probability by a factor of 16 relative to baseline. | Recognize substantial updating while remaining aware that absolute risk remains modest (~16%). |
As established by the Bernstein-von Mises theorem, as sample size n grows toward infinity, the likelihood function becomes sharp and concentrated around the true parameter value. Consequently, the relative influence of the prior diminishes at rate 1/n, and posteriors derived from differing non-zero priors converge toward consensus.
Assumptions, prior types, and common mistakes
Selecting an appropriate prior distribution requires transparent justification and understanding underlying mathematical assumptions. Researchers deploy distinct families of prior distributions based on available information:
- Informative Priors: Incorporate external empirical evidence, historical trial data, or meta-analytic effect sizes.
- Weakly Informative Priors: Introduce deliberate regularization to prevent implausible estimates without dominating the likelihood.
- Non-Informative (Diffuse or Flat) Priors: Assign equal probability across parameter values to reflect prior ignorance.
- Conjugate Priors: Prior distributions algebraically matched to the likelihood function such that the posterior belongs to the same family as the prior. The data table below summarizes canonical conjugate prior families and their updating rules.
- Jeffreys Invariant Priors: Priors derived from Fisher information I(θ) using π(θ) ∝ [det(I(θ))]^(1/2), ensuring transformation invariance across parameterizations.
When constructing prior probabilities, analysts must avoid five frequent methodological pitfalls:
- Cromwell’s Rule Violation: Setting prior probabilities to absolute zero or one. Assigning a prior of 0 or 1 permanently disables Bayesian updating, preventing the model from ever learning from empirical evidence.
- Base Rate Fallacy: Evaluating diagnostic data solely through sensitivity and specificity while ignoring background population prevalence.
- Improper Priors Causing Improper Posteriors: Using an improper prior (integrating to infinity) without verifying that the posterior integrates to one.
- Transformation Inconsistency in Flat Priors: Assuming a uniform prior represents complete neutrality, whereas transformations (such as variance to standard deviation) introduce informative curvature.
- Omitting Prior Sensitivity Analysis: Publishing a single model without testing whether alternative plausible priors alter conclusions. Methodological guidance on systematic evaluation is detailed in our guide on prior sensitivity analysis.
How to report prior probability in APA style
Under American Psychological Association (APA 7th edition) standards, articles utilizing Bayesian inference must report the specification of prior distributions, their justification, and their influence on posterior estimates. Transparent reporting ensures readers can evaluate whether findings are driven primarily by prior assumptions or by empirical data.
According to APA guidelines, a comprehensive Bayesian methodology section must explicitly state:
- Distributional family and hyperparameters assigned to each prior (such as Beta(α = 2, β = 20) or Normal(μ = 0, σ² = 100)).
- Theoretical or empirical rationale for the prior specification (informative, weakly informative, or default objective).
- Both point estimates (posterior mean or median) and interval estimates (95% Highest Density Interval or Credible Interval).
- The Bayes factor (BF₁₀ for alternative evidence or BF₀₁ for null evidence), accompanied by an interpretative benchmark.
- Prior sensitivity analysis results demonstrating model stability across reasonable alternative priors.
APA 7th Edition Example Narrative Write-Up:
‘A Bayesian parameter estimation approach evaluated diagnostic probability of cognitive impairment following traumatic brain injury. In accordance with regional registries, we specified an informative conjugate Beta prior on disease prevalence, Beta(α = 10, β = 990), corresponding to a baseline prior probability of 0.010 (95% CrI [0.005, 0.017]). The clinical screening battery demonstrated likelihood sensitivity of 0.950 and specificity of 0.950 (Bayes factor BF₁₀ = 19.00). Following a positive screening result, the updated posterior probability of impairment was P(H|E) = .161, with a 95% credible interval of [.112, .224]. Prior sensitivity analysis employing uninformative uniform priors, Beta(1, 1), and weakly informative priors, Beta(2, 50), confirmed that while posterior estimates shifted slightly (.210 and .174, respectively), the substantive conclusion that positive screening warrants secondary neuroimaging remained consistent across specifications.’
How to calculate prior and posterior probabilities in Excel, R, and Python
Implementing prior probability updating requires calculating Bayes’ theorem directly or setting up analytical conjugate updates. Below are tested, self-contained computational implementations across Excel, R, and Python, reproducing the exact values from our worked example.
Calculating in Microsoft Excel
To compute posterior probability from prior probability, sensitivity, and specificity in Microsoft Excel, organize your worksheet inputs as follows:
- Cell
B1:0.01(Prior Probability, P(H)) - Cell
B2:0.95(Sensitivity or True Positive Rate, P(E|H)) - Cell
B3:0.95(Specificity or True Negative Rate, P(¬E|¬H)) - Cell
B4(False Positive Rate):=1 - B3 - Cell
B5(Marginal Evidence, P(E)):=(B2 * B1) + (B4 * (1 - B1)) - Cell
B6(Posterior Probability, P(H|E)):=(B2 * B1) / B5
Alternatively, the entire calculation can be resolved in a single standalone Excel formula entered in cell B6:
=(B2 * B1) / ((B2 * B1) + ((1 - B3) * (1 - B1)))
This formula evaluates to 0.161017, confirming that the posterior probability given a positive test is 16.10%.
Calculating in R
In the R statistical computing environment, prior updating can be calculated using base R vector operations:
prior_prob = 0.01
sensitivity = 0.95
specificity = 0.95
false_pos_rate = 1.0 - specificity
marginal_evidence = (sensitivity * prior_prob) + (false_pos_rate * (1.0 - prior_prob))
posterior_prob = (sensitivity * prior_prob) / marginal_evidence
print(paste('Prior Probability:', round(prior_prob, 4)))
print(paste('Posterior Probability:', round(posterior_prob, 4)))
Calculating in Python
The Python function below calculates the posterior probability using explicit typing and defensive argument validation:
def bayesian_posterior(prior: float, sensitivity: float, specificity: float) -> float:
p_true_pos = sensitivity * prior
p_false_pos = (1.0 - specificity) * (1.0 - prior)
marginal_evidence = p_true_pos + p_false_pos
return p_true_pos / marginal_evidence
prior = 0.01
sens = 0.95
spec = 0.95
posterior = bayesian_posterior(prior, sens, spec)
print('Prior Probability:', round(prior, 4))
print('Posterior Probability:', round(posterior, 4))
Frequently asked questions
What is prior probability?
Prior probability is the initial probability assigned to a hypothesis, event, or parameter value before collecting or observing new empirical evidence. In Bayesian statistical modeling, it establishes the baseline distribution that is combined with the likelihood of observed data via Bayes’ theorem to compute the updated posterior probability.
What is prior and posterior probability?
Prior probability is the baseline probability evaluated before observing experimental data, whereas posterior probability is the updated conditional probability calculated after accounting for the data. Under sequential Bayesian updating, the posterior probability resulting from one study serves as the prior probability for subsequent investigations.
What is a prior?
A prior is a common statistical shorthand referring to either a prior probability or a prior probability distribution. It specifies the mathematical model chosen to encapsulate baseline assumptions, historical data, physical constraints, or expert judgments before new sample data are integrated.
What is a probability term?
A probability term is a standardized technical concept in probability theory, such as unconditional probability, conditional probability, joint probability, likelihood, or posterior probability. Each term describes a distinct mathematical relationship within sample spaces and data-generating distributions.
What is bayesian probability in simple terms?
In simple terms, Bayesian probability treats probability as an epistemic degree of belief that is systematically updated as evidence accumulates. Unlike frequentist probability, which defines probability strictly as long-run physical frequencies in infinite repetitions, Bayesian probability models parameters as random variables and allows direct probability statements about hypotheses.
What is the prior probability formula in Bayes’ theorem?
In Bayes’ theorem, prior probability P(H) appears in the formula P(H|E) = [P(E|H) × P(H)] / P(E), where P(E) = P(E|H) × P(H) + P(E|¬H) × (1 – P(H)). It serves as the baseline weighting factor that scales the likelihood of the evidence to determine the posterior probability.
Sources
- Stanford University: Bayes’ Theorem (Stanford Encyclopedia of Philosophy), checked 2026-11-22
- Carnegie Mellon University: Chapter 12: Bayesian Inference, checked 2026-11-22
- Wolfram Research: Prior Distribution — from Wolfram MathWorld, checked 2026-11-22
- Wolfram Research: Bayes’ Theorem — from Wolfram MathWorld, checked 2026-11-22
- NIST: 1.3.6. Probability Distributions, checked 2026-11-22
- OpenStax: 3.1 Terminology – Introductory Statistics | OpenStax, checked 2026-11-22
Data: Canonical Conjugate Prior Distributions and Updating Rules
Comparison of canonical conjugate prior distribution families across standard likelihood models, detailing hyperparameter updating equations, support intervals, and posterior parameters compiled from Carnegie Mellon University statistical machine learning documentation and Wolfram MathWorld references.
Period covered: 2026. Coverage: Global.
| Likelihood Model | Conjugate Prior Family | Parameter Support | Prior Hyperparameters | Sample Statistic | Posterior Hyperparameters |
|---|---|---|---|---|---|
| Bernoulli / Binomial | Beta(alpha, beta) | [0, 1] | alpha > 0, beta > 0 | k successes, n - k failures | Beta(alpha + k, beta + n - k) |
| Poisson | Gamma(alpha, beta) | (0, infinity) | shape alpha > 0, rate beta > 0 | sum(x_i) total count, sample size n | Gamma(alpha + sum(x_i), beta + n) |
| Normal (known variance sigma^2) | Normal(mu_0, sigma_0^2) | (-infinity, infinity) | prior mean mu_0, prior variance sigma_0^2 | sample mean x_bar, sample size n | Normal((mu_0/sigma_0^2 + n*x_bar/sigma^2)/(1/sigma_0^2 + n/sigma^2), 1/(1/sigma_0^2 + n/sigma^2)) |
| Multinomial | Dirichlet(alpha_1, ..., alpha_K) | Simplex Delta_K | concentration vector alpha_1, ..., alpha_K | count vector c_1, ..., c_K | Dirichlet(alpha_1 + c_1, ..., alpha_K + c_K) |
| Exponential | Gamma(alpha, beta) | (0, infinity) | shape alpha > 0, rate beta > 0 | sum(x_i) waiting time, sample size n | Gamma(alpha + n, beta + sum(x_i)) |
Sources
- Carnegie Mellon University: Chapter 12: Bayesian Inference (accessed 2026-11-22)
- Wolfram Research: Prior Distribution -- from Wolfram MathWorld (accessed 2026-11-22)
- Wolfram Research: Bayes' Theorem -- from Wolfram MathWorld (accessed 2026-11-22)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







