Rosetta Stone · 2 of 30
Product (capital pi)
Operator: it does something
In plain English
Multiply a list of terms together. The same anatomy as , but the running total starts at 1 and each pass multiplies. . 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 to .
As code
let product = 1; // multiplicative identity, not 0!
for (let n = 1; n <= 4; n++) {
product *= 2 * n;
}
// product === 384See it
What it means, field by field
Finite or infinite products; factorial n! = ∏_{k=1}^{n} k.
Likelihood of a dataset = ∏ of per-example probabilities; a language model’s probability of a sentence = ∏ of next-token probabilities.
Joint probability of independent mutations or genotype combinations; survival as a product of per-stage survival rates.
Independent subsystems: total partition function Z = ∏ Z_i; probability of independent events.
In a research paper
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.