TeX source:
\text { (expected - observed) }^{2} / \text { expected }=(10-8)^{2} / 10+(10-5)^{2} / 10+(10-12)^{2} / 10+(10-15)^{2} / 10=5.8