No history yet

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.

  1. 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}.
  2. 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."
  3. 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 XX, to be the number of heads you get. Here’s how XX would map each outcome to a number:

OutcomeNumber of Heads (Value of X)
HH2
HT1
TH1
TT0

By using the random variable XX, we can now ask numerical questions, like "What is the probability that X=1X=1?” The outcomes that give X=1X=1 are HT and TH. If each of the four outcomes is equally likely (with probability 1/4), then the probability that X=1X=1 is 1/4+1/4=1/21/4 + 1/4 = 1/2.

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 XX (number of heads), the probability distribution looks like this:

Value of X (k)Probability P(X=k)
01/4 or 0.25
11/2 or 0.50
21/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, 0P(A)10 \le P(A) \le 1.

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.

P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B)

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 P(1)+P(6)=1/6+1/6=2/6=1/3P(1) + P(6) = 1/6 + 1/6 = 2/6 = 1/3.

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.

P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B)

For instance, what's the probability of flipping a coin and getting heads (P(A)=1/2P(A) = 1/2) AND rolling a die and getting a 6 (P(B)=1/6P(B) = 1/6)? Since these events are independent, the probability is 1/2×1/6=1/121/2 \times 1/6 = 1/12.

These foundational ideas—probability spaces, random variables, distributions, and the basic laws—are the building blocks for understanding more complex models of uncertainty.

Quiz Questions 1/5

What are the three essential components that define a probability space?

Quiz Questions 2/5

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?