Reference

Math & engineering notation

Look up symbols, units, probability, vectors and engineering formulas.

Scope and conventions

Common mathematical and engineering notation, with domains, units and assumptions. Estimates and idealized models are labeled; check their assumptions against the system you are describing.

Probability & evidence

Read probability and complements

Notation & units

P(A) lies between 0 and 1. A complement covers outcomes outside A. Union needs overlap removed once.

Fragment

Notation & units · Read probability and complements
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
P(not A) = 1 - P(A)
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)

Separate conditional probability from independence

Notation & units

P(A|B) means the probability of A given B. Independence means learning B does not change A’s probability, where the condition is defined.

Fragment

Notation & units · Separate conditional probability from independence
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
P(A|B) = P(A ∩ B) / P(B), if P(B)>0
If independent: P(A ∩ B) = P(A)P(B)

P(A|B) and P(B|A) generally differ.

Update a probability with evidence

Notation & units

Bayes’ rule combines a prior with evidence likelihood. The denominator accounts for how common the evidence is overall.

Fragment

Notation & units · Update a probability with evidence
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
P(A|B) = P(B|A)P(A) / P(B), if P(B)>0

Rare conditions can still dominate false positives; include base rates.

Expected value and weighted average

Notation & units

For a discrete variable, expectation weights each possible value by its probability. Linearity does not require independence.

Fragment

Notation & units · Expected value and weighted average
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
E[X] = Σx x P(X=x)
E[X+Y] = E[X] + E[Y]
mean = (x₁ + ... + xₙ) / n

An expected value need not be a value any individual observation can take.

Read spread separately from the mean

Notation & units

Variance is expected squared deviation from the mean. Standard deviation is its square root and uses the original units.

Fragment

Notation & units · Read spread separately from the mean
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
Var(X) = E[(X-E[X])²]
σ = sqrt(Var(X))

Variance of a sum adds directly only when covariance terms are zero.

Read percentiles without averaging them

Notation & units

A p95 threshold describes a point at/below which about 95% of observations fall, under the stated quantile convention.

Fragment

Notation & units · Read percentiles without averaging them
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
p50: median
p95: 95th percentile
p99: 99th percentile

Percentiles depend on the population/window and estimator. Averaging per-server p99 values does not yield the combined p99.

Separate an estimate from certainty

Notation & units

A sample statistic estimates a population quantity. A frequentist confidence interval describes a procedure’s long-run coverage, not a probability assigned to one fixed unknown parameter.

Fragment

Notation & units · Separate an estimate from certainty
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
sample size n
standard error often scales as 1/sqrt(n)

The scaling statement requires appropriate sampling and model assumptions. Correlated observations can reduce effective sample size.