Probability and statistics

p(x),  q(z)p(\mathbf{x}), \; q(\mathbf{z}) Probability p(x)

A probability or probability density; p is usually the true or model distribution, q an approximation.

In ML papers

p(x)p(\mathbf{x}) is the probability (or, for continuous variables, the probability density) of x\mathbf{x}. Capital P(A)P(A) or Pr⁡(A)\Pr(A) is usually the probability of an event. Different arguments mean different distributions: p(x)p(x) and p(z)p(z) are not the same function.

By convention pp is the "real" or model distribution and qq a second one, often an approximation, such as the variational posterior qϕ(z∣x)q_\phi(\mathbf{z} \mid \mathbf{x}). pdatap_{\text{data}} is the data distribution and pθp_\theta the model's.

Other meanings, by context

How to type it

LaTeXShows
p(x)p(x)p(x)
P(A)P(A)P(A)
\Pr(A)Pr⁡(A)\Pr(A)

A worked example

p(heads)=0.5,∑xp(x)=1p(\text{heads}) = 0.5, \qquad \sum_x p(x) = 1

Probabilities over all outcomes add to 1 (densities integrate to 1).

Equations that use it

Related

p(y∣x)p(y \mid x)Given (conditional bar)p(x;θ)p(x; \theta)Semicolon (parameterized by)Ex∼p[f(x)]\mathbb{E}_{x \sim p}[f(x)]ExpectationDKL(q ∥ p)D_{\mathrm{KL}}(q \,\|\, p)KL divergence

Decode this example →