Test Katex

KaTeX Test

This is a test of Nextra's built-in LaTeX support.

Inline Math

Here is an inline equation: E=mc2E = mc^2

Another example: a2+b2=c2a^2 + b^2 = c^2

Display Math

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} y=Xβ+ϵ\mathbf{y = X\beta + \epsilon} β^=(XTX)1XTy\hat{\beta} = (X^TX)^{-1}X^Ty

Complex Equations

σ2=1Ni=1N(xiμ)2\sigma^2 = \frac{1}{N}\sum_{i=1}^{N}(x_i - \mu)^2 P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}