Repeated Yes No Trials

Introduction

Welcome to The Binomial Distribution, the fourth course in our learning path! In earlier courses, we explored how distributions work as maps of likelihood, examined the flat uniform shape, and studied the familiar bell curve of the normal distribution. Now we turn to a distribution that arises from one of the most common patterns in everyday life: repeating a simple yes-or-no process several times and counting how often a particular outcome occurs.

This first lesson focuses on the setup behind the binomial distribution. Before we look at any graphs or shapes, we need to understand exactly what kind of situation produces a binomial distribution in the first place. By the end, you will be able to check whether a real scenario meets all the required conditions.

From Observation to Repetition

As you may recall from previous courses, the normal distribution appears when many small, independent influences combine to shape a measurement. The binomial distribution has a different origin story, but independence still plays a role. Instead of combining tiny influences into one measurement, we repeat a simple action multiple times and count one of the outcomes.

Think about flipping a coin ten times and counting heads, or inspecting twenty products off an assembly line and counting defects. In each case, the core action is small and repeatable, and we care about how many times a specific result shows up. That "count of successes across repeated trials" is the heart of the binomial setting.

The final answer from a batch is therefore a discrete whole-number count. For ten coin flips, it can only be 0,1,2,,100, 1, 2, \ldots, 10 heads; values such as 3.53.5 heads are impossible.

So what exactly makes a set of repeated trials binomial? It comes down to four conditions. Let's walk through each one.

The Two-Outcome Trial

The building block of every binomial situation is a single trial that has exactly two possible outcomes. We label one outcome success and the other failure. These labels are just conventions and carry no judgment — a "success" might be a defective item if defects are what we are counting.

Here are a few everyday examples of two-outcome trials:

  • A customer either clicks a link or does not.
  • A free-throw shot either goes in or misses.
  • A seed either sprouts or fails to sprout.

If a trial can land on more than two distinct outcomes, it does not fit the binomial framework on its own. The key requirement is that every single trial collapses to exactly one of two categories.

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal