Probability and statistics

p(θ∣D)∝p(D∣θ) p(θ)p(\theta \mid \mathcal{D}) \propto p(\mathcal{D} \mid \theta)\, p(\theta) Proportional to

Equal up to a constant factor that does not depend on the variable of interest.

In ML papers

a∝ba \propto b means a=c⋅ba = c \cdot b for some constant cc. In probability it drops the normalizing constant: Bayes' rule is written posterior ∝\propto likelihood ×\times prior, because the denominator p(D)p(\mathcal{D}) does not depend on θ\theta. To recover actual probabilities, divide by the total.

How to type it

LaTeXShows
\propto∝\propto

A worked example

p∝(2,6)  ⇒  p=(28,68)=(0.25,0.75)p \propto (2, 6) \;\Rightarrow\; p = \left(\tfrac{2}{8}, \tfrac{6}{8}\right) = (0.25, 0.75)

Normalizing turns proportional scores into probabilities, exactly what softmax does after exponentiating.

Common confusions

Related

p(x),  q(z)p(\mathbf{x}), \; q(\mathbf{z})Probability p(x)softmax⁡(z)i=ezi∑jezj\operatorname{softmax}(\mathbf{z})_i = \frac{e^{z_i}}{\sum_j e^{z_j}}SoftmaxE[f(x)]≈1N∑i=1Nf(xi)\mathbb{E}[f(x)] \approx \frac{1}{N}\sum_{i=1}^N f(x_i)Approximately equal

Decode this example →