Learn AI Math

Probability Distribution

What is Probability Distribution?

In one sentence: A probability distribution is a list of every possible outcome with the chance of each one happening, adding up to 100%.

When a model picks the next token, it creates a probability distribution over its entire vocabulary. Most tokens get almost zero chance, and a few get most of it. Sampling then picks one token based on these chances.

What does Probability Distribution look like?

After "Once upon a," the distribution might give "time" 97%, "hill" 1%, and tiny chances to everything else.

Why does Probability Distribution matter?

Seeing outputs as chances, not certainties, explains why AI answers can vary each time.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.