Math#
Tests MathJax rendering: inline math, display math, numbered equations,
aligned environments, and the \argmax / \argmin macros defined in
_config.yml.
Inline math#
The expectation of \(X\) is \(\mathbb{E}[X] = \sum_x x \, p(x)\). A standard normal variable \(Z \sim \mathcal{N}(0, 1)\) has \(\mathbb{E}[Z] = 0\) and \(\text{Var}(Z) = 1\). Greek letters \(\alpha\), \(\beta\), \(\gamma\), \(\delta\), \(\epsilon\), \(\theta\), \(\lambda\), \(\mu\), \(\sigma\), \(\pi\) should typeset correctly inline.
Display math, unnumbered#
Display math, numbered#
Equation (1) is the classic Gaussian integral.
Aligned environment#
See (2) for the derivation.
Cases environment#
Matrix#
Macros defined in _config.yml#
The optimisation problem
uses the \argmax macro. Its companion:
Math inside lists#
The mean satisfies \(\bar{x} = \frac{1}{n}\sum_{i=1}^n x_i\).
The variance satisfies $\( s^2 = \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2 . \)$
The standard error is \(s / \sqrt{n}\).
Math inside a blockquote#
The Cauchy–Schwarz inequality says $\( \left| \langle u, v \rangle \right|^2 \le \langle u, u \rangle \cdot \langle v, v \rangle \)\( for all vectors \)u, v$ in an inner-product space.