The astropy.stats package holds statistical functions or algorithms used in astronomy and astropy.
The current tools are fairly self-contained, and include relevant examples in their docstrings. For example, see sigma_clip.
This subpackage contains statistical tools provided for or used by Astropy.
While the scipy.stats package contains a wide range of statistical tools, it is a general-purpose package, and is missing some that are particularly useful to astronomy or are used in an atypical way in astronomy. This package is intended to provide such functionality, but not to replace scipy.stats if its implementation satisfies astronomers’ needs.