Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 1.11 KB

index_other.rst

File metadata and controls

58 lines (33 loc) · 1.11 KB

Other statistical functions

Table of contents


The mean of the input data is calculated using:

\overline{x}=\frac{\sum_{i=1}^{n}{x_i}}{n}
.. autofunction:: pystats.mean(x: List[float]) -> float
   :noindex:


The standard deviation of the input data is calculated using:

s=\sqrt{\frac{\sum_{i=1}^{n}{(x_i - \overline{x})^2}}{n-1}}

This function returns the standard deviation of the sample; that is, it returns the unbiased standard deviation.

.. autofunction:: pystats.sd(x: List[float]) -> float
   :noindex:


The variance of the input data is calculated using:

s^2=\frac{\sum_{i=1}^{n}{(x_i - \overline{x})^2}}{n-1}

This function returns the variance of the sample; that is, it returns the unbiased variance.

.. autofunction:: pystats.var(x: List[float]) -> float
   :noindex: