English translation
6. Bayesian Theorem Fundamentals: Updating Rules and Examples
The core of Bayesian learning lies in integrating prior beliefs with new evidence, while explicitly representing uncertainty. As you read, structure your understanding as follows: “Bayesian Theorem Recap → Update Rule → Process of Updating Probabilities → Assigning Prior Probabilities”, then return to the code, examples, or metrics in the main text to verify your comprehension.
After reading, perform a quick reality check using a small, concrete task: Identify what the inputs are, where the processing steps occur, and whether the outputs are verifiable. If something goes wrong, first revisit the “Bayesian Theorem Recap”, then check the “Update Rule”.
In the previous article, we introduced the foundational concepts of Bayes’ theorem—including prior and posterior distributions. Now, we will delve deeper into the update rule embedded in Bayes’ theorem: how to revise our beliefs (or model parameters) in light of observed data.
Bayesian Theorem Recap
First, let’s briefly recall the formal expression of Bayes’ theorem:
When learning the update rule, begin by writing down your initial belief, then examine how that belief changes upon observing new evidence. The more concrete the example, the clearer your Bayesian intuition becomes.
where
- is the posterior probability: our updated belief about hypothesis after observing data ;
- is the likelihood: the probability of observing data assuming hypothesis is true;
- is the prior probability: our belief about before seeing any data;
- is the marginal likelihood (or evidence): a normalizing constant ensuring the total probability across all possible hypotheses sums to 1.
The Update Rule
From the formula above, we see precisely how the posterior probability depends on both the prior and the observed data. Unlike classical statistical methods, Bayesian learning explicitly incorporates prior knowledge. Once new data arrives, we use Bayes’ rule to systematically update our degree of belief in a given hypothesis.
Before reading “Bayesian Theorem Fundamentals — Update Rules and Examples”, preview the diagram showing the path from problem to result. After reading, cross-check against the main text to confirm whether you can reproduce the reasoning step-by-step.
Process of Updating Probabilities
In practice, suppose we conduct an experiment to assess whether a coin is fair. Our hypothesis space could be:
- : The coin is fair.
- : The coin is biased.
Assigning Prior Probabilities
Before collecting any data, we might assign equal prior probabilities to the two hypotheses:
Collecting Data
Suppose we flip the coin 10 times and observe 7 heads and 3 tails. We now want to compute the updated probabilities of and given this outcome.
Computing Likelihoods
Next, we compute the likelihood of the observed data under each hypothesis:
- Under (fair coin, ), the likelihood of 7 heads and 3 tails is:
Result: .
- Under (biased coin, assume for heads), the likelihood is:
Result: .
Updating Posterior Probabilities
Now apply Bayes’ theorem to compute the posterior probabilities:
- First compute the marginal likelihood :
- Then compute the posteriors:
- For :
- For :
Final results:
These calculations show that, after observing the data, our belief in the biased-coin hypothesis has increased.
After finishing “Bayesian Theorem Fundamentals — Update Rules and Examples”, try applying it to a scenario of your own—pay close attention to whether the inputs, processing steps, and outputs align coherently.
To adapt “Bayesian Theorem Fundamentals — Update Rules and Examples” to your own task, start small: isolate and validate just one critical decision point.
Conclusion
Through the above example, we demonstrated how Bayes’ theorem enables probabilistic updating—integrating new data to dynamically refine our beliefs about hypotheses. In practice, the power of Bayesian learning lies in its ability to formally incorporate prior knowledge and support self-correction as new evidence accumulates in changing environments.
In the next article, we will explore Maximum A Posteriori (MAP) Estimation, advancing further into the world of Bayesian statistical inference—and introducing a practical method for parameter estimation. Stay tuned!
Continue