The brain is a prediction machine. It holds priors — probability distributions over what the world is likely to be — and updates them with incoming evidence. The posterior is the result: where belief lands after combining what was expected with what arrived.
When the prior is strong (narrow, high-confidence), it resists updating. When evidence is strong, the posterior shifts toward what arrived. The tug-of-war between them determines what we perceive, remember, and feel — including pain.