You can learn new things. You start with what you know. Then you see something new. This new thing helps you learn more. It changes what you think is true. It is like a smart guess. Can you make a smart guess?
You can make a smart guess. You start with what you know. Then you see something new. This new thing changes your guess.
Imagine a school with boys and girls. Some girls wear skirts. Some wear trousers. All boys wear trousers.
Now you see a student from far away. You only see trousers. You use what you saw to learn more.
This helps you guess if it is a girl. You use your old knowledge and new facts. This new guess is called a posterior probability.
You can use this to learn again and again. It helps you understand a world of secrets.
You can make a smart guess using math. You start with what you already know. Then you see something new. This new fact changes your guess. This new guess is called a posterior probability.
Think about a school. In this school, 40% of students are girls. The rest are boys. Girls wear trousers or skirts in equal numbers. All boys wear trousers. Imagine you see a student from far away. You only see that they are wearing trousers. You can use math to guess if it is a girl.
First, you look at the old facts. You know the number of girls and boys. Next, you look at the new fact. The new fact is the trousers. By combining these, you find a new answer. In this school, the chance is 25%. This means one out of four trouser wearers is a girl.
You can use this to learn again. Your new guess can become your old knowledge. Then you can add even more facts. This helps you understand things that are not certain. It is a way to keep learning about the world.
Imagine you are trying to solve a mystery. You start with what you already know about the world. This starting knowledge is called a prior probability. Then, you see something new that gives you more clues. This new clue is called the likelihood. When you combine your old knowledge with the new clue, you get a new answer. This updated answer is called the posterior probability. It helps you understand how much you can truly know about a mystery.
This math works like a way of updating your brain. You take your first guess and change it using new evidence. You use a special rule called Bayes' rule to do this. This rule says the posterior probability is proportional to the likelihood times the prior. To get the final answer, you also divide by a normalizing constant. This constant helps make sure the math stays balanced. Scientists use this to describe how much uncertainty they have about a scientific idea.
Math thinkers use these ideas to study uncertainty. In a field called Bayesian statistics, people look at many possible answers at once. This collection of answers is called a posterior probability distribution. Sometimes, the math is very hard to solve perfectly. People must use approximations to find the right path. They might look for a specific point called the maximum a posteriori. They can also look for a range called the highest posterior density interval.
Let us look at a school to see this in action. In this school, 40% of the students are girls. This means the prior probability for a girl is 0.4. All boys wear trousers, but girls wear them only half the time. If you see a student in trousers, you have a new clue. You can use the math to find the new chance. In this specific school, the chance that the student is a girl is 25%. This shows how one clue changes your guess.
This way of thinking is useful in many places. In machine learning, it helps computers sort things into different groups. This is called classification. It helps show how sure a computer is about its choice. You can even use your new answer as a starting point for more learning. Your new posterior probability can become the next prior probability. This allows you to keep adding new information to your knowledge over and over again.
Posterior probability is a specific type of conditional probability. It represents the updated belief about an uncertain proposition after new evidence is considered. This proposition could be a scientific hypothesis or specific parameter values. From an epistemological perspective, the posterior probability contains all available knowledge about a subject. This knowledge combines your prior knowledge with a mathematical model of current observations. It is a central tool in the field of Bayesian statistics.
The mechanism for finding this probability relies on Bayes' rule. This rule allows you to update a prior probability using a likelihood. The likelihood is the probability of the evidence given certain parameters. To calculate the posterior, you multiply the prior probability by the likelihood. You must then divide this product by a normalizing constant. This constant, denoted as $P(D)$, ensures the total probability is balanced. For continuous variables, this involves an integral. For discrete variables, you sum over all possible values.
In Bayesian statistics, we often work with a posterior probability distribution. This distribution describes the epistemic uncertainty regarding statistical parameters. It is conditioned on a specific collection of observed data. Because these distributions can be complex, they are often not tractable. This means they cannot be solved easily with simple math. Instead, scientists must use analytical or numerical approximations. They may derive point estimates like the maximum a posteriori, or MAP. They can also find the highest posterior density interval, known as the HPDI.
A helpful way to visualize this is through a school example. Imagine a school where 60% of students are boys and 40% are girls. All boys wear trousers, but girls wear trousers or skirts in equal numbers. If an observer sees a student in trousers from a distance, they have new evidence. The prior probability of the student being a girl is 0.4. The likelihood of a girl wearing trousers is 0.5. The likelihood of a boy wearing trousers is 1.0. By applying Bayes' theorem, we find the posterior probability is 0.25.
Another way to solve this is by using a population of $N$ students. In this group, there are $0.6N$ boys and $0.4N$ girls. Since girls wear trousers 50% of the time, there are $0.2N$ girls in trousers. All $0.6N$ boys are also wearing trousers. The total number of trouser wearers is $0.6N + 0.2N$, which equals $0.8N$. To find the probability, you divide the girl trouser wearers by the total. That is $0.2N$ divided by $0.8N$, which equals 25%. This confirms the result of our previous calculation.
Posterior probability is also a random variable because it is conditioned on observed data. Because it is a random variable, we must summarize its uncertainty. One method used for this is the credible interval. This provides a range of values where the parameter likely sits. In the field of classification, posterior probabilities show uncertainty in assigning observations to classes. This is also called class-membership probability. While machine learning often provides membership values, these do not always show probabilistic confidence.
This mathematical process creates a continuous loop of learning. Once you calculate a new posterior probability, it can become the prior for the next step. This allows for repeated Bayesian updating as more information arrives. This connection makes the system highly adaptable to new data. It links the study of probability to broader fields like machine learning and scientific inquiry. By constantly updating our models, we move closer to understanding uncertain truths.
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.