Probability Distributions
from scipy import stats
| procedure | scipy.stats |
|---|---|
| Binomial pdf |
stats.binom.pmf(x,n,p)
|
| Binomial cdf |
stats.binom.cdf(x,n,p)
|
| Normal cdf |
stats.norm.cdf(x,mean,std)
|
| Inverse Normal or p-th Percentile |
stats.norm.ppf(p,mean,std)
|
| t distribution cdf |
stats.t.cdf(t,df,0,1)
|
| Inverse t or p-th Percentile |
stats.t.ppf(p,df,0,1)
|
| chi-square cdf |
stats.chi2.cdf(ch2,k-1)
|
| Inverse chi-square or p-th Percentile |
stats.chi2.ppf(p,k-1)
|
Adapted from Python for Introductory Statistics, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.