No history yet

Probability Basics

The Language of Chance

Probability is simply a way to measure how likely something is to happen. We use it every day, whether we're checking the weather forecast or deciding if we should buy a lottery ticket. It gives us a framework for thinking about uncertainty.

At its core, probability is a number between 0 and 1. A probability of 0 means an event is impossible. A probability of 1 means it's absolutely certain.

For many simple situations, we can calculate the exact probability of an event using a straightforward formula. An event is just a specific outcome we're interested in.

P(Event)=Number of ways the event can happenTotal number of possible outcomesP(\text{Event}) = \frac{\text{Number of ways the event can happen}}{\text{Total number of possible outcomes}}

Let's use a standard six-sided die as an example. What's the probability of rolling a 3? There's only one way to roll a 3. There are six possible outcomes in total (1, 2, 3, 4, 5, or 6). So, the probability is $1/6$.

Mapping the Possibilities

To calculate probabilities, we first need to know all the things that could happen. This complete set of all possible outcomes is called the sample space.

sample space

noun

The set of all possible outcomes of a random experiment.

For our six-sided die, the sample space is {1, 2, 3, 4, 5, 6}. For a coin flip, it's {Heads, Tails}.

An event is a subset of the sample space—it's the specific outcome or group of outcomes we care about. For example, if we're interested in rolling an even number on a die, our event is the set {2, 4, 6}. There are three outcomes in this event.

Types of Data

The way we model probability depends on the type of data we're working with. Outcomes can be either discrete or continuous.

Discrete data is countable. Think of the number of heads in three coin flips (0, 1, 2, or 3) or the number you roll on a die (1, 2, 3, 4, 5, or 6). There are distinct, separate values.

When we plot the probabilities for each outcome of a discrete variable, we get a probability mass function (PMF). It shows a probability value for each distinct outcome.

Lesson image

Continuous data, on the other hand, can take any value within a range. Think of someone's height, the temperature outside, or the exact time it takes to run a mile. These aren't restricted to specific, separate numbers. A person can be 1.75 meters tall, or 1.751, or 1.7512...

For continuous data, the probability of any single exact value is practically zero. What's the probability that a runner finishes a race in exactly 10.3456789... seconds? It's infinitesimal. Instead, we look at the probability of the outcome falling within a certain range, like between 10.3 and 10.4 seconds.

We model continuous probabilities using a probability density function (PDF). The total area under this curve is always equal to 1, representing 100% of the outcomes. The probability of an event is the area under the curve for a specific range.

Understanding these basic building blocks is the first step. They allow us to create models that help us analyze risk and make more informed decisions in a world full of uncertainty. Let's test your understanding of these core ideas.