In 1867 Hermann von Helmholtz described perception as "unconscious inference": the brain guesses the causes of its sensations. The modern Bayesian brain hypothesis makes this precise, and Karl Friston's active inference extends it from perception to action.
We will infer hidden causes and finish with priors in perception.
Step 1: Inferring hidden causes
The brain holds a generative model p(o, s) = p(o | s)p(s) of how hidden states s, the causes, produce observations o. Perceiving means computing, or approximating, the posterior:
In odds form, the posterior odds of two causes are the prior odds times the likelihood ratio p(o | s₁) ÷ p(o | s₂). Example: a shaded patch is a bump with prior odds 1 to 3 against a dent, and the shading is 6 times as likely under a bump. The posterior odds are 6 to 3, that is 2 to 1, so the bump has probability ⅔.
p(bump | shading) = 0.4 ÷ 0.5 = 0.8.
Step 2: Priors in perception
Helmholtz's inference is automatic: no one decides to perceive. When sensory evidence is weak or ambiguous, the likelihood barely separates the causes and the posterior follows the prior. Visual illusions are the brain applying sensible priors to ambiguous input. Light usually comes from above, so shaded discs look like bumps, and turned upside down they look like dents. Faces bulge outward, so a hollow mask seen from behind looks convex. Rooms have right-angled corners, so a distorted room looks rectangular. Objects tend to move slowly, so faint moving stripes look slower than they are.