Maths for ML / Notation

P(A∣B)P(A \mid B)

conditional probability

Probability and statisticsBeginner

Say it “probability of A given B”

Probability of A, once you know B happened. The bar means 'given'.

Example

p(y∣x; θ)p(y \mid \mathbf{x};\,\theta)

A classifier: probability of label y given input x, with parameters θ.

Where you’ll see it in ML

Every predictive model is a conditional distribution; LLMs model p(next token | previous tokens).

Don’t confuse it with

← All 94 symbols