Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
P(x)P(x)P(x)Maths, module 13: Probability, lesson 1 of 6

Probability and distributions

A language model does not know the next word. It assigns a probability to every word it could be. Here is the vocabulary for that kind of statement.

8 minute read4 things to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • A probability is a number from 0 to 1. A distribution assigns one to every outcome.
  • The probabilities in a distribution always add up to 1.
  • The expected value is the probability-weighted average of the outcomes.

More in Probability

  1. 1Probability and distributions
  2. 2Conditional probability and the next token
  3. 3Softmax and temperature
  4. 4Cross-entropy
  5. 5Bayes' rule
  6. 6Entropy and information