The Flat Uniform Shape

Introduction

Welcome back to Distribution Shapes and the Uniform Model! This is the third lesson of the course, and by now you have two powerful shape features in your toolkit: counting peaks and judging symmetry. Together, those features let you describe quite a lot about a distribution's outline.

In this lesson, we meet a distribution that is strikingly different from the peaked shapes we have been examining. It has no peak at all. Every outcome reaches the same height, producing a perfectly flat, level shape. This is the uniform distribution, and understanding it will give us a clean, simple reference point for comparing all the other shapes we encounter going forward.

When No Outcome Stands Out

The distributions we have looked at so far tend to have at least one high point where values concentrate. Most of the time, some outcomes really are more common than others: most adults cluster around an average height, most exam scores gather near the middle of the scale, and so on.

But what happens when there is no reason for any single outcome to be more likely than the rest? Think about rolling a fair six-sided die. There is nothing special about the number 3 compared to the number 5, and no hidden force pulling results toward any particular face. Every face has exactly the same chance of landing up.

When likelihood is shared equally like this, the shape of the distribution looks completely different from anything with a peak. Instead of one region towering above the rest, every outcome sits at the same height — and that leads us directly to the uniform distribution.

The Flat, Level Shape

A uniform distribution is one in which every outcome has the same likelihood. On a graph, this means every bar (or every point along the curve) reaches the same height. The result is a perfectly flat, level top with no hills and no valleys.

For a fair six-sided die, there are six possible outcomes, and each one has a probability of:

P(any single face)=16P(\text{any single face}) = \frac{1}{6}

If we draw a bar for each face, all six bars stand at the same height of 16\frac{1}{6}. The outline across the tops of the bars is a straight horizontal line. Compare that to a single-peaked distribution, where one region towers above the rest, or a two-peaked distribution, where two regions rise higher. In the uniform case, nothing rises higher than anything else.

Bar chart of a fair die's uniform distribution with all six bars at probability 1/6

Here is a handy way to picture it: imagine lining up six glasses on a table and pouring an equal amount of water into each one. Every glass reaches the same level. That level line across the tops of the glasses is essentially what a uniform distribution looks like on a graph.

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