Normative Bayesian Models Explained
Introduction to Probability
The Playground of Probability
Probability is all about measuring uncertainty. To do this in a structured way, we use a concept called a probability space. Think of it as the official rulebook and playing field for any random phenomenon, whether it's flipping a coin, rolling a die, or predicting the weather.
A probability space has three key parts.
- The Sample Space (Ω): This is a list of every single possible outcome. For a single coin flip, the sample space is {Heads, Tails}. For a six-sided die, it's {1, 2, 3, 4, 5, 6}.
- Events (F): An event is a specific outcome or a set of outcomes we care about. For the die roll, an event might be "rolling a 5" or "rolling an even number."
- The Probability Measure (P): This is a rule that assigns a number between 0 and 1 to every event. A probability of 0 means the event is impossible, and 1 means it's certain.
In this example, the sample space Ω includes all six possible outcomes of a die roll. The event we're interested in is the set {2, 4, 6}. Since each outcome has a 1/6 chance, the probability of this event is the sum of the probabilities of its individual outcomes: $1/6 + 1/6 + 1/6 = 3/6 = 1/2$.
From Outcomes to Numbers
Outcomes aren't always numbers. A coin flip gives you "heads" or "tails." But to do math, we need numbers. This is where random variables come in. A random variable is a rule that assigns a numerical value to each outcome in the sample space.
Random Variable
noun
A variable whose value is a numerical outcome of a random phenomenon. It acts as a function mapping outcomes in the sample space to real numbers.
Imagine you flip two coins. The sample space is {HH, HT, TH, TT}. We can define a random variable, let's call it , to be the number of heads you get. Here’s how would map each outcome to a number:
| Outcome | Number of Heads (Value of X) |
|---|---|
| HH | 2 |
| HT | 1 |
| TH | 1 |
| TT | 0 |
By using the random variable , we can now ask numerical questions, like "What is the probability that ?” The outcomes that give are HT and TH. If each of the four outcomes is equally likely (with probability 1/4), then the probability that is .
Distributing the Probabilities
A probability distribution tells us the probability for each possible value of a random variable. It's a complete description of how the total probability (which is always 1) is spread out, or distributed, among all the possibilities.
For our two-coin-flip example with the random variable (number of heads), the probability distribution looks like this:
| Value of X (k) | Probability P(X=k) |
|---|---|
| 0 | 1/4 or 0.25 |
| 1 | 1/2 or 0.50 |
| 2 | 1/4 or 0.25 |
Notice that the probabilities add up to 1 ($0.25 + 0.50 + 0.25 = 1$). This must always be true for any probability distribution. The distribution can be represented as a table, a graph, or a formula.
The Laws of Probability
To work with probabilities, we need a few basic rules. These laws help us combine probabilities of different events in a logical way.
The probability of any event is a number between 0 and 1, inclusive. So, .
The sum of the probabilities of all possible outcomes in the sample space must equal 1.
The Addition Rule is used for finding the probability that either one of two events occurs. If events A and B are mutually exclusive (meaning they can't happen at the same time), the rule is simple.
For example, when rolling a die, the events "rolling a 1" and "rolling a 6" are mutually exclusive. The probability of rolling a 1 or a 6 is .
The Multiplication Rule is used for finding the probability that two events both occur. If events A and B are independent (meaning the outcome of one doesn't affect the outcome of the other), the rule is straightforward.
For instance, what's the probability of flipping a coin and getting heads () AND rolling a die and getting a 6 ()? Since these events are independent, the probability is .
These foundational ideas—probability spaces, random variables, distributions, and the basic laws—are the building blocks for understanding more complex models of uncertainty.
What are the three essential components that define a probability space?
You roll two standard six-sided dice. Let the random variable Y be the sum of the numbers shown on the dice. What is the value of Y for the outcome where the first die shows a 3 and the second die shows a 5?