Which is the best library to look at descriptive and inferential statistics metrics in Python?

python

#1

Hi,

Please help me with the libraries to see the metrics of descriptive and inferential statistics like mean, median, mode, Standard deviation, t-test and others.

Thx, Ravi


#2

@Ravi,

To look at the statistical metrics you can go with module scipy.stats. This module contains a large number of probability distributions as well as a growing library of statistical functions.
http://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats

Another module for basic statistical functions is statistics.
https://docs.python.org/3/library/statistics.html

Regards,
Sunil


#3

@Ravi

In addition to what @sunil has already mentioned, you can use describe function in pandas to get some basic descriptive stats.

This is usually efficient, if you are reading the dataset directly into a DataFrame using pandas.

Regards,
Kunal