1. Home
  2. Explore
  3. Psychology
  4. Bayesian Brain Reasoning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Bayesian Brain Reasoning

Bayesian Reasoning for Understanding the Brain

Bayesian reasoning provides a formal way to describe how an organism should think and act when the world is uncertain. The central idea is simple: the brain receives incomplete and noisy evidence, uses that evidence to infer what is probably happening in the world, and then chooses actions that are likely to produce valuable outcomes.

This makes probability especially important in neuroscience. It offers a language for connecting what an organism can directly sense with the hidden causes it actually needs to understand.

Why Bayesian Reasoning Matters for the Brain

The brain’s survival depends on solving problems such as:

  • Finding food
  • Avoiding danger
  • Interpreting sensory signals
  • Choosing useful actions
  • Controlling the body
  • Learning from limited experience

The brain rarely receives complete information about the world. Instead, it receives signals—such as patterns of light, sound, and pressure—that are indirectly related to external objects and events. Bayesian reasoning explains how those signals can be combined with prior knowledge to form useful beliefs.

For example, a visual system does not directly receive “there is a three-dimensional object over there.” It receives patterns of light on the retina. The brain must infer the object, its shape, its lighting, and its distance from those patterns.

Bayesian reasoning is a framework for using uncertain evidence to infer hidden properties of the world.

This framework is useful not only for describing what the brain should compute, but also for investigating what the brain does compute.

Normative Modeling and Marr’s Levels of Analysis

A major motivation for studying Bayesian models is normative modeling. A normative model specifies what an organism should do if it were trying to solve a problem as effectively as possible.

Normative modeling helps answer questions such as:

  • What problem does the brain need to solve?
  • What would be the best behavior in a particular situation?
  • How well does an actual animal or person perform compared with the best possible strategy?
  • What kinds of representations and computations might the brain require?

Normative modeling is closely related to Marr’s three levels of analysis:

  1. Computational level: What problem is being solved, and why?
  2. Representational and algorithmic level: What information and procedures are used to solve it?
  3. Implementation level: How is the solution physically carried out by the brain?

Bayesian analysis begins primarily at the computational level. It asks what an organism should infer or decide. However, the answer can also constrain the other levels. If behavior closely follows Bayesian calculations, then the brain likely represents uncertainty in some form and carries out computations that approximate Bayesian inference.

Normative Models as Benchmarks

A normative model provides a standard against which behavior can be compared. It can show whether a behavior is close to optimal or far from the best possible performance.

An example comes from compound eyes in insects. Compound eyes contain many small lenses called ommatidia. The number and size of these lenses are constrained by a trade-off:

  • A smaller lens has limitations caused by diffraction.
  • Having many lenses provides advantages for sampling visual information.

The observed relationship between lens size and number can be explained as an optimal balance between these opposing factors. This suggests that the structure of the eye reflects a solution to a physical optimization problem.

Another example concerns sensitivity to light. Behavior can detect signals down to approximately a single photon. This means that performance is nearly limited only by the physical ability of the visual receptors to absorb photons. In this case, normative analysis provides an approximate absolute limit: the sensory system performs almost as well as the available physical signal allows.

A normative model does not necessarily explain the detailed biological mechanism. Instead, it establishes the goal or standard that the mechanism must approach.

Normative modeling describes the best solution to a problem and provides a benchmark for understanding real behavior.

Think About It

If an organism performs nearly as well as physical limits allow, what does that suggest about the quality of the computations carried out by its nervous system?

Why Probabilistic Models Are Needed

The world is uncertain for several different reasons. An organism may lack information, the world may contain genuine randomness, sensory measurements may be noisy, and the brain’s internal model may be imperfect.

Missing Data

An organism does not observe everything that is relevant. A shadow may provide information about an object, but it does not reveal the object completely. A person looking only at shadows might infer that several people are sitting in chairs, even though the actual scene could be a complex art installation.

The important point is that sensory input is often only a partial view of the causes that produced it.

Physical Randomness

Some uncertainty comes from stochasticity, meaning genuine randomness in physical processes. For example, photons arrive at a camera or sensory receptor randomly. Two exposures of the same scene can therefore reveal different patterns of light, even when the scene itself has not changed.

This variability is not necessarily caused by a faulty brain or an inaccurate sensor. It is part of the physical process being measured.

Sensory and Motor Noise

The sensory and motor systems also introduce uncertainty. Measurements may be imprecise, and actions may not be executed exactly as intended. Noise can affect both what the organism believes and what it is able to do.

Imperfect Models

Finally, the brain must make assumptions about how the world works. Those assumptions may be wrong. If the internal model is inaccurate, then the resulting inference will contain error.

Recognizing this uncertainty is useful because it allows the organism to avoid treating an estimate as perfectly certain. A belief can instead include information about how reliable or unreliable that estimate is.

Probability as a Language for Inference

Probability measures the likelihood of events. It can be understood in two related ways:

  • In the subjective sense, probability represents a degree of belief.
  • In the frequentist or objective sense, probability represents the frequency with which an event occurs across repeated observations.

Bayesian reasoning primarily uses the subjective interpretation. A probability expresses how strongly an organism should believe that something is true, given the available information.

Probability is useful because it connects:

  • Directly observable evidence
  • Hidden properties that the organism wants to know about

A sensory signal is often a reduced representation of the world. For instance, a shadow is directly visible, but the object producing the shadow is not directly visible. The brain therefore needs a model of the relationship between shadows and objects.

This is the basic structure of probabilistic inference: evidence is used to estimate the hidden cause that generated it.

Random Variables

A random variable is a variable that can take different values depending on the outcome of an uncertain event.

Consider rolling a die. The event is which side of the die comes up, and the random variable records the number on that side. If the die is fair, then the probability that the random variable xxx takes the value 111 is:

P(x=1)=16P(x=1)=\frac{1}{6}P(x=1)=61​

The random variable does not mean that the variable itself is changing randomly in every possible sense. It means that its value is uncertain before the event is observed.

Random variables can be discrete, as with the values on a die, or continuous, as with quantities such as position, brightness, or sound frequency.

Two Fundamental Rules of Probability

Many other results in probability can be derived from two central rules: the product rule and the sum rule.

The Product Rule and Joint Probability

The expression P(x,y)P(x,y)P(x,y) means the probability of xxx and yyy occurring together. This is called a joint probability.

If two random variables are independent, their joint probability is the product of their individual probabilities:

P(x,y)=P(x)P(y)P(x,y)=P(x)P(y)P(x,y)=P(x)P(y)

For two independent dice, the probability of rolling a 111 on the first die and a 111 on the second die is:

P(x=1,y=1)=P(x=1)P(y=1)=16×16=136P(x=1,y=1) = P(x=1)P(y=1) = \frac{1}{6}\times\frac{1}{6} = \frac{1}{36}P(x=1,y=1)=P(x=1)P(y=1)=61​×61​=361​

The independence assumption is important. If the outcome of one event affects the other, multiplying the individual probabilities would not generally be valid.

The Sum Rule and Disjunctions

The sum rule is used when asking whether one event or another event occurs. For mutually exclusive outcomes, the probabilities are added.

For example, the probability that a die shows an odd number is:

P(x is odd)=P(x=1)+P(x=3)+P(x=5)P(x\text{ is odd}) = P(x=1)+P(x=3)+P(x=5)P(x is odd)=P(x=1)+P(x=3)+P(x=5)

Therefore:

P(x is odd)=16+16+16=36=12P(x\text{ is odd}) = \frac{1}{6}+\frac{1}{6}+\frac{1}{6} = \frac{3}{6} = \frac{1}{2}P(x is odd)=61​+61​+61​=63​=21​

The outcomes 111, 333, and 555 are mutually exclusive because a single die cannot show more than one of them at the same time.

Marginalization: Ignoring an Unwanted Variable

Suppose two dice are rolled, but the goal is to determine the probability that the first die shows 111, without caring about the second die.

The joint probabilities include:

P(x=1,y=1),P(x=1,y=2),…,P(x=1,y=6)P(x=1,y=1), P(x=1,y=2), \ldots, P(x=1,y=6)P(x=1,y=1),P(x=1,y=2),…,P(x=1,y=6)

To find the probability of x=1x=1x=1, all possibilities for yyy are combined:

P(x=1)=∑yP(x=1,y)P(x=1)=\sum_y P(x=1,y)P(x=1)=y∑​P(x=1,y)

For two fair dice, this becomes:

P(x=1)=136+136+136+136+136+136=636=16P(x=1) = \frac{1}{36}+\frac{1}{36}+\frac{1}{36} +\frac{1}{36}+\frac{1}{36}+\frac{1}{36} = \frac{6}{36} = \frac{1}{6}P(x=1)=361​+361​+361​+361​+361​+361​=366​=61​

This operation is called marginalization. It means summing or integrating over a variable that is not of interest. The unwanted variable is effectively eliminated from the expression.

In a joint-probability table, marginalization can be visualized as summing across a row or column. The resulting marginal probability describes one variable without specifying the value of the other.

Combining Variables

Marginalization can also answer questions involving a combination of variables. For example, to determine the probability that the sum of two dice equals 444, the relevant outcomes are:

(x=1,y=3),(x=2,y=2),(x=3,y=1)(x=1,y=3),\quad (x=2,y=2),\quad (x=3,y=1)(x=1,y=3),(x=2,y=2),(x=3,y=1)

There are three such outcomes out of 363636 equally likely pairs, so:

P(x+y=4)=336P(x+y=4)=\frac{3}{36}P(x+y=4)=363​

Here, the relevant entries lie along a diagonal in the joint-probability table rather than within one row or column.

Think About It

Why is marginalization useful when an organism has information about several variables but only needs to estimate one of them?

Conditioning: Using Known Information

Conditioning means calculating the probability of one event while assuming that another event is known.

Suppose two dice are rolled and the total is known to be 444. The possible pairs are:

(1,3),(2,2),(3,1)(1,3),\quad (2,2),\quad (3,1)(1,3),(2,2),(3,1)

The question is no longer the unconditional probability of the first die. Instead, it is:

P(x∣x+y=4)P(x\mid x+y=4)P(x∣x+y=4)

The vertical bar means “given.” The expression asks for the probability of xxx given that the total is 444.

Among the three possible pairs:

  • x=1x=1x=1 occurs once
  • x=2x=2x=2 occurs once
  • x=3x=3x=3 occurs once

Therefore:

P(x=1∣x+y=4)=P(x=2∣x+y=4)=P(x=3∣x+y=4)=13P(x=1\mid x+y=4) = P(x=2\mid x+y=4) = P(x=3\mid x+y=4) = \frac{1}{3}P(x=1∣x+y=4)=P(x=2∣x+y=4)=P(x=3∣x+y=4)=31​

Conditioning changes the relevant probability distribution because it incorporates information that was not previously available.

Continuous Random Variables

The same ideas apply to continuous variables such as position or luminance. Instead of a table containing separate probabilities for individual outcomes, a continuous joint distribution is represented as a density across a plane.

A joint density over xxx and yyy describes how probability is distributed across combinations of values. A horizontal or vertical slice through that density can represent a conditional distribution.

When conditioning on a particular value of yyy, the distribution over xxx must be renormalized. The joint distribution gives the relative probability of combinations of xxx and yyy, but once yyy is known, the probabilities over possible values of xxx must sum or integrate to 111.

Conceptually, the conditional distribution is obtained by dividing the joint probability by the probability of the condition:

P(x∣y)=P(x,y)P(y)P(x\mid y)=\frac{P(x,y)}{P(y)}P(x∣y)=P(y)P(x,y)​

For continuous variables, summation is replaced by integration when marginalizing. Thus:

P(y)=∫P(x,y) dxP(y)=\int P(x,y)\,dxP(y)=∫P(x,y)dx

and, more generally,

P(x)=∫P(x,y) dyP(x)=\int P(x,y)\,dyP(x)=∫P(x,y)dy

The integral collects probability density across all possible values of the variable being ignored.

Priors, Likelihoods, and Posteriors

Bayesian inference involves three especially important probability distributions.

The Prior

The prior is the probability assigned to possible values of a hidden variable before considering new evidence.

If xxx represents a property of the world that cannot be directly observed, then P(x)P(x)P(x) represents the prior belief about how likely each value of xxx is.

For example, when interpreting a shadow, the brain may consider some possible objects more likely than others. The prior captures this initial expectation.

The Likelihood

The likelihood describes the probability of observing evidence given a particular hidden state:

P(y∣x)P(y\mid x)P(y∣x)

Here:

  • xxx is the variable of interest or hidden cause.
  • yyy is the measurement or sensory evidence.

The likelihood is therefore a model of how the hidden state produces observable evidence.

If the likelihood distribution is broad, then a particular measurement provides relatively weak information about the hidden variable. Many different values of xxx could have produced the same yyy. If it is narrow, the measurement is more informative.

The Posterior

The posterior is the updated belief about the hidden variable after incorporating evidence:

P(x∣y)P(x\mid y)P(x∣y)

The posterior is usually the distribution needed for inference. It represents what the organism should believe about the world after observing the available sensory data.

Bayes’ Rule

Bayes’ rule connects the prior, likelihood, and posterior:

P(x∣y)=P(y∣x)P(x)P(y)P(x\mid y)=\frac{P(y\mid x)P(x)}{P(y)}P(x∣y)=P(y)P(y∣x)P(x)​

Using the language of hypotheses and data, the same relationship can be written as:

P(h∣d)=P(d∣h)P(h)P(d)P(h\mid d)=\frac{P(d\mid h)P(h)}{P(d)}P(h∣d)=P(d)P(d∣h)P(h)​

In this form:

  • hhh represents a hypothesis about what is happening in the world.
  • ddd represents observed data.
  • P(h)P(h)P(h) is the prior probability of the hypothesis.
  • P(d∣h)P(d\mid h)P(d∣h) is the likelihood of observing the data if the hypothesis were true.
  • P(h∣d)P(h\mid d)P(h∣d) is the posterior probability of the hypothesis after observing the data.
  • P(d)P(d)P(d) is the overall probability of the data.

The denominator is obtained by marginalizing over all possible hypotheses:

P(d)=∑hP(d∣h)P(h)P(d)=\sum_h P(d\mid h)P(h)P(d)=h∑​P(d∣h)P(h)

For continuous hypotheses, the corresponding operation uses an integral.

The denominator ensures that the posterior distribution is properly normalized. In practice, the posterior can be computed from the likelihood and prior, then normalized so that the probabilities across all hypotheses sum or integrate to 111.

Bayes’ rule updates prior beliefs by weighting them according to how well each hypothesis predicts the observed evidence.

The result is not a direct observation of the hidden world. It is a rational, uncertainty-aware estimate based on evidence and prior knowledge.

Bayesian Reasoning in Perception

Bayesian reasoning is useful throughout the perception-action cycle, including perception, cognition, decision-making, and motor control.

Interpreting Shading

A luminance profile can be interpreted in more than one way. The same pattern of light and dark may be seen as:

  • A flat surface painted with two different colors
  • A change in three-dimensional shape caused by lighting

The second interpretation attributes the variation in luminance to shading, which results from the interaction between object shape and the direction of illumination.

Because the sensory pattern itself does not uniquely specify the cause, perception requires inference. The brain must determine which possible explanation is most plausible. Bayesian reasoning provides a way to combine the sensory evidence with prior expectations about shapes, surfaces, and lighting.

Ventriloquism

In ventriloquism, a puppet’s mouth moves while the actual sound comes from the puppeteer. Because the visual movement and the sound occur close together in space and time, the listener may perceive the sound as coming from the puppet.

This is a perceptual inference involving multiple sources of evidence:

  • Visual evidence about where the speaking mouth appears to be
  • Auditory evidence about where the sound seems to originate

The brain combines these uncertain signals and may give greater weight to the visual location of the moving mouth. The resulting percept can differ from the physical location of the sound source.

Learning Categories from Few Examples

Cognition also involves inference under limited evidence. When a person is shown only a few examples of a category, the person may still identify new members of that category.

This differs from situations in which a learning system receives a very large dataset and estimates a function directly from many examples. With only a few examples, the learner must rely more heavily on assumptions about what features are important and how categories are organized. Probabilistic reasoning provides a way to represent uncertainty about category membership.

Bayesian Reasoning in Action and Motor Control

Actions are uncertain because both perception and movement contain error.

When an organism swings a racket, for example, uncertainty may arise about:

  • The precise location of the target
  • The timing of the target’s movement
  • The accuracy of the planned movement
  • The effect of sensory and motor noise

Other factors also affect action outcomes:

  • Muscle fatigue can change over time.
  • Sensory delays can vary.
  • Motor commands may not produce exactly the same movement each time.
  • The same result may be achievable through several different movement plans.

Thus, the motor system must reason not only about what action is intended, but also about the possible outcomes of that action. Probability allows the organism to represent those possible outcomes and their uncertainty.

Think About It

Why might an action with a slightly less favorable average outcome still be chosen if its possible failures are less costly?

Utility and Reward

Belief alone is not enough for decision-making. An organism must also represent how valuable different outcomes are.

A utility function assigns subjective value to objectively measurable outcomes. Reward is another common term for a value signal used to guide behavior.

For money, utility often increases as the amount of money increases, but not necessarily in a direct linear way. A gain or loss of a particular amount can have a subjective impact that differs depending on the starting amount and the decision-maker’s preferences.

Utility can also be measured behaviorally in animals. For example, if monkeys receive different amounts of juice during a decision-making task, their actions can reveal how valuable those amounts are to them. The resulting utility function describes how strongly different juice outcomes motivate behavior.

The distinction between an objective outcome and its subjective utility is important. Two outcomes that differ by the same physical amount may not differ by the same amount in subjective value.

Bayesian Decision Theory

Bayesian decision theory combines uncertain beliefs with subjective values to determine which action should be selected.

A decision problem generally contains three components:

  1. Action: The choice available to the organism
  2. Outcome: What may happen as a result of the action
  3. Context: The circumstances that influence probabilities and utilities

Consider a person deciding how far to jump. The action variable aaa could represent jump distance. The possible outcomes might be:

  • Landing successfully
  • Missing the landing

The probability of landing depends on the action:

P(land∣a)P(\text{land}\mid a)P(land∣a)

As jump distance increases, the probability of landing may change. The utility function assigns values to the possible outcomes:

  • U(land,a)U(\text{land},a)U(land,a)
  • U(miss,a)U(\text{miss},a)U(miss,a)

The decision-maker should combine the possible outcomes, their probabilities, and their utilities. The expected utility of an action can be represented as:

EU(a)=∑oP(o∣a) U(o,a)EU(a)=\sum_o P(o\mid a)\,U(o,a)EU(a)=o∑​P(o∣a)U(o,a)

where ooo represents possible outcomes.

For the jump example, expected utility combines the value of landing, the value or cost of missing, and the probability of each outcome. The preferred action is the one with the highest expected utility:

a∗=argmax⁡a  EU(a)a^*=\underset{a}{\operatorname{argmax}}\;EU(a)a∗=aargmax​EU(a)

This does not mean that the chosen action is guaranteed to succeed. It means that, given the uncertainty and the values of the possible outcomes, the action has the best expected result.

A context can change the decision. For example, the same probability of landing may lead to different choices if the cost of missing changes. Likewise, the same outcome may have different utility in different circumstances.

Bayesian decision theory recommends choosing the action that maximizes expected value while accounting for uncertainty about its outcomes.

From Normative Analysis to Brain Computation

Bayesian models begin as normative descriptions of what an organism should compute. However, they can also provide evidence about how actual brains work.

If behavior is close to the behavior predicted by an optimal Bayesian model, this suggests that:

  • Probabilities may matter in the brain’s representations.
  • The brain may combine evidence and prior knowledge in a Bayesian-like way.
  • Neural computations may approximate the calculations required for probabilistic inference.
  • The brain’s implementation must support the computations reflected in behavior.

A behavioral match does not automatically reveal the exact neural mechanism. Nevertheless, it places constraints on possible mechanisms. A brain that produces approximately Bayesian behavior must somehow represent or implement the relevant relationships among evidence, beliefs, uncertainty, values, and actions.

Comprehensive Review

The central logic of Bayesian reasoning can be summarized as a progression:

  1. The world contains properties that matter to an organism.
  2. Many of those properties are not directly observable.
  3. The organism receives sensory evidence that is indirectly related to them.
  4. The evidence is incomplete, noisy, and sometimes misleading.
  5. Probability represents uncertainty about possible states of the world.
  6. A prior represents beliefs before new evidence is considered.
  7. A likelihood describes how likely the evidence is under each possible state.
  8. Bayes’ rule combines the prior and likelihood to produce a posterior.
  9. Marginalization removes variables that are not currently needed.
  10. Conditioning incorporates information that is known.
  11. Utility represents the subjective value of possible outcomes.
  12. Bayesian decision theory combines belief and value to select actions.
  13. Comparing real behavior with normative predictions helps reveal how the brain may represent and compute uncertainty.

The most important distinction is between what is directly available and what must be inferred. Sensory evidence is the information accessible through the senses. Latent variables are hidden properties of the world that the organism cannot directly observe but may need to estimate. Inference is the computation that uses evidence to assign probabilities to those latent variables. Utilities and rewards quantify the subjective value of outcomes, while decisions and actions are the choices through which an organism attempts to obtain valuable outcomes in an uncertain world.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent