0% 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.

Uploaded by

borade.vijay
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% 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.

Uploaded by

borade.vijay
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Functions - Inferential Statistics Foundations

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

You might also like