ArticleslgStudy

mathematics

Bayesian statistics

Bayesian statistics is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bayesian statistics rather than just read about it. In short: Bayesian statistics ( BAY-zee-ən or BAY-zhən) is a theory in the field of statistics based on the Bayesian interpretation of probability, where probability expresses a degree of belief in an event. The degree of belief may be based on prior knowledge about the event, such as the results of previous experiments, or on personal beliefs about the event.

Bayesian statistics — main illustration
Bayesian statistics — illustration

Key takeaways

  • Bayesian statistics belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bayesian statistics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bayesian statistics from memory before moving on to harder problems.

Reference excerpt

Bayesian statistics ( BAY-zee-ən or BAY-zhən) is a theory in the field of statistics based on the Bayesian interpretation of probability, where probability expresses a degree of belief in an event. The degree of belief may be based on prior knowledge about the event, such as the results of previous experiments, or on personal beliefs about the event. This differs from a number of other interpretations of probability, such as the frequentist interpretation, which views probability as the limit of the relative frequency of an event after many trials. More concretely, analysis in Bayesian methods codifies prior knowledge in the form of a prior distribution. Bayesian statistical methods use Bayes' theorem to compute and update probabilities after obtaining new data. Bayes' theorem describes the conditional probability of an event based on data as well as prior information or beliefs about the event or conditions related to the event. For example, in Bayesian inference, Bayes' theorem can be used to estimate the parameters of a probability distribution or statistical model. Since Bayesian statistics treats probability as a degree of belief, Bayes' theorem can directly assign a probability distribution that quantifies the belief to the parameter or set of parameters. Bayesian statistics is named after Thomas Bayes, who formulated a specific case of Bayes' theorem in a paper published in 1763. In several papers spanning from the late 18th to the early 19th centuries, Pierre-Simon Laplace developed the Bayesian interpretation of probability. Laplace used methods now considered Bayesian to solve a number of statistical problems. While many Bayesian methods were developed by later authors, the term "Bayesian" was not commonly used to describe these methods until the 1950s. Throughout much of the 20th century, Bayesian methods were viewed unfavorably by many statisticians due to philosophical and practical considerations. Many of these methods required much computation, and most widely used approaches during that time were based on the frequentist interpretation. However, with the advent of powerful computers and new algorithms like Markov chain Monte Carlo, Bayesian methods have gained increasing prominence in statistics in the 21st century.

Bayes' theorem

Bayes' theorem is used in Bayesian methods to update probabilities, which are degrees of belief, after obtaining new data. Given two events A and B, the conditional probability of A given that B is true is expressed as follows: P(A∣B)=P(B∣A)P(A)P(B) where P(B)≠0. Although Bayes' theorem is a fundamental result of probability theory, it has a specific interpretation in Bayesian statistics. In the above equation, A usually represents a proposition (such as the statement that a coin lands on heads fifty percent of the time) and B represents the evidence, or new data that is to be taken into account (such as the result of a series of coin flips). P(A) is the prior probability of A which expresses one's beliefs about A before evidence is taken into account. The prior probability may also quantify prior knowledge or information about A. P(B∣A) is the likelihood function, which can be interpreted as the probability of the evidence B given that A is true. The likelihood quantifies the extent to which the evidence B supports the proposition A. P(A∣B) is the posterior probability, the probability of the proposition A after taking the evidence B into account. Essentially, Bayes' theorem updates one's prior beliefs P(A) after considering the new evidence B. The probability of the evidence P(B) can be calculated using the law of total probability. If {A1,A2,…,An} is a partition of the sample space, which is the set of all outcomes of an experiment, then, P(B)=P(B∣A1)P(A1)+P(B∣A2)P(A2)+⋯+P(B∣An)P(An)=∑iP(B∣Ai)P(Ai) When there are an infinite number of outcomes, it is necessary to integrate over all outcomes to calculate P(B) using the law of total probability. Often, P(B) is difficult to calculate as the calculation would involve sums or integrals that would be time-consuming to evaluate, so often only the product of the prior and likelihood is considered, since the evidence does not change in the same analysis. The posterior is proportional to this product: P(A∣B)∝P(B∣A)P(A) The maximum a posteriori, which is the mode of the posterior and is often computed in Bayesian statistics using mathematical optimization methods, remains the same. The posterior can be approximated even without computing the exact value of P(B) with methods such as Markov chain Monte Carlo or variational Bayesian methods.

Construction The classical textbook equation for the posterior in Bayesian statistics is usually stated as π(θ∣x)=ℒ(x∣θ)⋅π(θ)∫Θℒ(x∣θ′)⋅π(θ′)dθ′ where π(θ∣x) is the updated probability of θ being the true parameter after collecting the data x, ℒ(x∣θ) is the likelihood of collecting the data x given the parameter θ, π(θ) is the prior belief of θ's likelihood and the integral in the denominator gives the probability of collecting the data x. Mathematically, this version of Bayes' theorem can be constructed in the following way: Suppose (Ω,ΣΩ,{Pθ∣θ∈Θ}) to be some parametric statistical model and (Θ,ΣΘ,π) to be a probability space over the parameter space. We can construct a new probability space (Θ×Ω,ΣΘ⊗ΣΩ,Q) where Q is a sort of product measure defined as: Q(M):=(π⊗P⋅)(M)=∫ΘPθ′(Mθ′)dπ(θ′), where Mθ′:={ω∈Ω∣(θ′,ω)∈M}). Now, let Aθ:={θ}×Ω and Bx:=Θ×{x}, then we get: Q(θ)=Q(Aθ)=∫{θ}Pθ′(Ω)dπ(θ′)=π({θ})⋅Pθ(Ω)=π(θ) and hence Q(x∣θ)=Q(Bx∩Aθ)Q(Aθ)=π(θ)⋅Pθ({x})π(θ)=Pθ(x) both as empirically might be expected. Thus, Bayes' theorem states: Q(θ∣x)=Pθ(x)⋅π(θ)Q(x) If π≪λ (i.e. absolutely continuous w.r.t. the Lebesgue measure ), then there exists a density such that π(θ)=dπdλ(θ) and we can write: Q(x)=∫ΘPθ′(x)dπ(θ′)=∫ΘPθ′(x)⋅π(θ′)dθ′ Else, if π≪ν (absolutely continuous w.r.t. counting measure), analogous we can write: Q(x)=∫ΘPθ′(x)⋅π(θ′)dν(θ′)=∑iPθi(x)⋅π(θi) Thus, by identifying Q(θ∣x) with π(θ∣x) and ℒ(x∣θ) with Pθ(x) we arrive at the classical equation stated above.

Bayesian methods The general set of statistical techniques can be divided into a number of activities, many of which have special Bayesian versions.

Bayesian inference

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Bayesian statistics

Start with the simplest possible case. Write down what Bayesian statistics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bayesian statistics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bayesian statistics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bayesian statistics

In research
Bayesian statistics appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bayesian statistics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bayesian statistics is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1760s introductions, Bayesian statistics, English inventions, so understanding it makes those chapters shorter.
In everyday life
Look for Bayesian statistics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bayesian statistics” →

How to study Bayesian statistics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bayesian statistics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bayesian statistics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bayesian statistics in simple terms?

Bayesian statistics ( BAY-zee-ən or BAY-zhən) is a theory in the field of statistics based on the Bayesian interpretation of probability, where probability expresses a degree of belief in an event. The degree of belief may be based on prior knowledge about the event, such as the results of previous…

Why does Bayesian statistics matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bayesian statistics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bayesian statistics.

Tags

  • 1760s introductions
  • Bayesian statistics
  • English inventions

Keep exploring