This is LaTeX code:

[latex]
S_n^2=\frac{X_1^2+\ldots+X_n^2}{n-1}-\left(\frac{X_1+X_2+\ldots+X_n}{n}\right)^2,
[/latex]