Functions and operators

∏i=1Np(xi)\prod_{i=1}^{N} p(x_i) Product

Multiply the expression for every value of the index.

In ML papers

∏i=1Nai=a1×a2×⋯×aN\prod_{i=1}^{N} a_i = a_1 \times a_2 \times \dots \times a_N. Its main use in ML is the likelihood of independent data, ∏ipθ(xi)\prod_i p_\theta(x_i), which papers immediately turn into a sum with a log, because a product of many small probabilities underflows.

How to type it

LaTeXShows
\prod_{i=1}^{N}∏i=1N\prod_{i=1}^{N}

A worked example

∏i=13i=1×2×3=6\prod_{i=1}^{3} i = 1 \times 2 \times 3 = 6

And log⁡∏ipi=∑ilog⁡pi\log \prod_i p_i = \sum_i \log p_i.

Common confusions

Equations that use it

Related

∑i=1Nxi\sum_{i=1}^{N} x_iSummationlog⁡pθ(x)\log p_\theta(x)Logarithmp(x),  q(z)p(\mathbf{x}), \; q(\mathbf{z})Probability p(x)

Decode this example →