The document lists important Python functions for statistical analysis from SciPy including functions for binomial and t distributions. The functions allow calculating probabilities, random variables, cumulative distribution functions and percentiles for common statistical distributions.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views
Python Function
The document lists important Python functions for statistical analysis from SciPy including functions for binomial and t distributions. The functions allow calculating probabilities, random variables, cumulative distribution functions and percentiles for common statistical distributions.
Below is a list of important python functions used for statistical analysis hyperlinked with their official documentation. You can refer to the documentation for a detailed description of a function.
Probability Distribution Functions in Scipy (Alias: stats)
binom methods
rvs(n, p, loc=0, size=1,
Random variates. random_state=None)
pmf(k, n, p, loc=0) Probability mass function.
cdf(k, n, p, loc=0) Cumulative distribution function.
Percent point function (inverse of cdf —
ppf(q, n, p, loc=0) percentiles).
t methods
rvs(df, loc=0, scale=1, size=1,
Random variates. random_state=None)
pdf(x, df, loc=0, scale=1) Probability density function.
cdf(x, df, loc=0, scale=1) Cumulative distribution function.
Percent point function (inverse of cdf —
ppf(q, df, loc=0, scale=1) percentiles).
Endpoints of the range that contains fraction
interval(alpha, df, loc=0, scale=1) alpha [0, 1] of the distribution