.. _book_fig_chapter4_fig_anderson_darling: Gaussianity Tests ----------------- Figure 4.7. The results of the Anderson-Darling test, the Kolmogorov-Smirnov test, and the Shapiro-Wilk test when applied to a sample of 10,000 values drawn from a normal distribution (upper panel) and from a combination of two Gaussian distributions (lower panel). The functions are available in the ``scipy`` package: - The Anderson-Darling test (``scipy.stats.anderson``) - The Kolmogorov-Smirnov test (``scipy.stats.kstest``) - The Shapiro-Wilk test (``scipy.stats.shapiro``) .. image:: ../images/chapter4/fig_anderson_darling_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_anderson_darling.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_anderson_darling.py :lines: 17- .. raw:: html
:download:`[download source: fig_anderson_darling.py] ` .. raw:: html