AI engineering glossary · Probability

What is chain rule of probability?

Chain rule of probability: A way to write a joint probability as a product of conditional ones: P(A1, A2, ..., An) = P(A1) x P(A2 | A1) x ... x P(An | A1, ..., An-1). Language models use it to score a sentence word by word.

Level: intermediateTopic: Probability

Chain rule of probability: an example

P(the, cat, sat) = P(the) x P(cat | the) x P(sat | the, cat).

Related terms

More Probability terms

Where you learn it

Chain rule of probability is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.