Skip to content
Science, DecodedContext Jamming

Rosetta Stone · 2 of 30

∏\prod

Product (capital pi)

Operator: it does something

In plain English

Multiply a list of terms together. The same anatomy as ∑\sum, but the running total starts at 1 and each pass multiplies. ∏n=142n=2⋅4⋅6⋅8=384\prod_{n=1}^{4} 2n = 2\cdot4\cdot6\cdot8 = 384. In science the most common use is the probability of several independent events all happening: multiply their probabilities. Taking a log turns that product into a sum, which is why papers so often switch from ∏\prod to ∑log⁡\sum \log.

As code

let product = 1;        // multiplicative identity, not 0!
for (let n = 1; n <= 4; n++) {
  product *= 2 * n;
}
// product === 384

See it

2848384
Running product of ∏n=1k2n\prod_{n=1}^{k} 2n (bar heights on a log scale, because products grow fast).

What it means, field by field

Mathematics

Finite or infinite products; factorial n! = ∏_{k=1}^{n} k.

AI / ML

Likelihood of a dataset = ∏ of per-example probabilities; a language model’s probability of a sentence = ∏ of next-token probabilities.

Biology

Joint probability of independent mutations or genotype combinations; survival as a product of per-stage survival rates.

Physics

Independent subsystems: total partition function Z = ∏ Z_i; probability of independent events.

In a research paper

Autoregressive language modelling (e.g. GPT-style models; Radford et al. 2018, Brown et al. 2020).
p(x1,…,xT)=∏t=1Tp(xt∣x<t)p(x_1,\dots,x_T) = \prod_{t=1}^{T} p(x_t \mid x_{<t})

The probability of a whole sequence is the probability of each token given everything before it, multiplied together.

Common misreadings

  • Confusing ∏ with the number π ≈ 3.14159. Same Greek letter, unrelated meaning.

  • Starting the running total at 0. Any product that starts at 0 stays 0.

  • Multiplying probabilities that are not independent. The product rule for "all of these happen" needs independence or conditional probabilities.

Connected symbols

Where it appears on this site