☀️
中文
Home / Blog / Probability and Statistics Notation in LaTeX: Complete Reference

Probability and Statistics Notation in LaTeX: Complete Reference

2026-09-15 MathEditor Team
statisticsprobabilityreference

Probability and statistics have extensive notation in LaTeX. This comprehensive reference covers everything you'll need.

Probability Notation

Probability: P(A), P(A \mid B). Expectation: \mathbb{E}[X]. Variance: \operatorname{Var}(X). Covariance: \operatorname{Cov}(X,Y). Correlation: \rho_{XY}.

Random Variables

Normal: X \sim \mathcal{N}(\mu, \sigma^2). Bernoulli: X \sim \text{Bern}(p). Uniform: X \sim \text{Unif}(a,b). Exponential: X \sim \text{Exp}(\lambda).

Hypothesis Testing

Null hypothesis: H_0. Alternative: H_1 or H_a. Test statistic: T = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}. p-value: p = P(T > t_{\text{obs}}).

Confidence Intervals

\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}} for known variance. \bar{x} \pm t_{\alpha/2, n-1} \frac{s}{\sqrt{n}} for unknown variance.

✏️ Try it now — open the MathEditor and experiment with these formulas!