🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 63 (from laksa194)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
7 hours ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://docs.scipy.org/doc/scipy/reference/stats.html
Last Crawled2026-04-13 10:01:05 (7 hours ago)
First Indexed2014-10-11 04:53:23 (11 years ago)
HTTP Status Code200
Meta TitleStatistical functions (scipy.stats) — SciPy v1.17.0 Manual
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
This module contains a large number of probability distributions, summary and frequency statistics, correlation functions and statistical tests, masked statistics, kernel density estimation, quasi-Monte Carlo functionality, and more. Statistics is a very large area, and there are topics that are out of scope for SciPy and are covered by other packages. Some of the most important ones are: statsmodels : regression, linear models, time series analysis, extensions to topics also covered by scipy.stats . Pandas : tabular data, time series functionality, interfaces to other statistical languages. PyMC : Bayesian statistical modeling, probabilistic machine learning. scikit-learn : classification, regression, model selection. Seaborn : statistical data visualization. rpy2 : Python to R bridge. Probability distributions # Each univariate distribution is an instance of a subclass of rv_continuous ( rv_discrete for discrete distributions): Continuous distributions # alpha An alpha continuous random variable. anglit An anglit continuous random variable. arcsine An arcsine continuous random variable. argus Argus distribution beta A beta continuous random variable. betaprime A beta prime continuous random variable. bradford A Bradford continuous random variable. burr A Burr (Type III) continuous random variable. burr12 A Burr (Type XII) continuous random variable. cauchy A Cauchy continuous random variable. chi A chi continuous random variable. chi2 A chi-squared continuous random variable. cosine A cosine continuous random variable. crystalball Crystalball distribution dgamma A double gamma continuous random variable. dpareto_lognorm A double Pareto lognormal continuous random variable. dweibull A double Weibull continuous random variable. erlang An Erlang continuous random variable. expon An exponential continuous random variable. exponnorm An exponentially modified Normal continuous random variable. exponweib An exponentiated Weibull continuous random variable. exponpow An exponential power continuous random variable. f An F continuous random variable. fatiguelife A fatigue-life (Birnbaum-Saunders) continuous random variable. fisk A Fisk continuous random variable. foldcauchy A folded Cauchy continuous random variable. foldnorm A folded normal continuous random variable. genlogistic A generalized logistic continuous random variable. gennorm A generalized normal continuous random variable. genpareto A generalized Pareto continuous random variable. genexpon A generalized exponential continuous random variable. genextreme A generalized extreme value continuous random variable. gausshyper A Gauss hypergeometric continuous random variable. gamma A gamma continuous random variable. gengamma A generalized gamma continuous random variable. genhalflogistic A generalized half-logistic continuous random variable. genhyperbolic A generalized hyperbolic continuous random variable. geninvgauss A Generalized Inverse Gaussian continuous random variable. gibrat A Gibrat continuous random variable. gompertz A Gompertz (or truncated Gumbel) continuous random variable. gumbel_r A right-skewed Gumbel continuous random variable. gumbel_l A left-skewed Gumbel continuous random variable. halfcauchy A Half-Cauchy continuous random variable. halflogistic A half-logistic continuous random variable. halfnorm A half-normal continuous random variable. halfgennorm The upper half of a generalized normal continuous random variable. hypsecant A hyperbolic secant continuous random variable. invgamma An inverted gamma continuous random variable. invgauss An inverse Gaussian continuous random variable. invweibull An inverted Weibull continuous random variable. irwinhall An Irwin-Hall (Uniform Sum) continuous random variable. jf_skew_t Jones and Faddy skew-t distribution. johnsonsb A Johnson SB continuous random variable. johnsonsu A Johnson SU continuous random variable. kappa4 Kappa 4 parameter distribution. kappa3 Kappa 3 parameter distribution. ksone Kolmogorov-Smirnov one-sided test statistic distribution. kstwo Kolmogorov-Smirnov two-sided test statistic distribution. kstwobign Limiting distribution of scaled Kolmogorov-Smirnov two-sided test statistic. landau A Landau continuous random variable. laplace A Laplace continuous random variable. laplace_asymmetric An asymmetric Laplace continuous random variable. levy A Levy continuous random variable. levy_l A left-skewed Levy continuous random variable. levy_stable A Levy-stable continuous random variable. logistic A logistic (or Sech-squared) continuous random variable. loggamma A log gamma continuous random variable. loglaplace A log-Laplace continuous random variable. lognorm A lognormal continuous random variable. loguniform A loguniform or reciprocal continuous random variable. lomax A Lomax (Pareto of the second kind) continuous random variable. maxwell A Maxwell continuous random variable. mielke A Mielke Beta-Kappa / Dagum continuous random variable. moyal A Moyal continuous random variable. nakagami A Nakagami continuous random variable. ncx2 A non-central chi-squared continuous random variable. ncf A non-central F distribution continuous random variable. nct A non-central Student's t continuous random variable. norm A normal continuous random variable. norminvgauss A Normal Inverse Gaussian continuous random variable. pareto A Pareto continuous random variable. pearson3 A pearson type III continuous random variable. powerlaw A power-function continuous random variable. powerlognorm A power log-normal continuous random variable. powernorm A power normal continuous random variable. rdist An R-distributed (symmetric beta) continuous random variable. rayleigh A Rayleigh continuous random variable. rel_breitwigner A relativistic Breit-Wigner random variable. rice A Rice continuous random variable. recipinvgauss A reciprocal inverse Gaussian continuous random variable. semicircular A semicircular continuous random variable. skewcauchy A skewed Cauchy random variable. skewnorm A skew-normal random variable. studentized_range A studentized range continuous random variable. t A Student's t continuous random variable. trapezoid A trapezoidal continuous random variable. triang A triangular continuous random variable. truncexpon A truncated exponential continuous random variable. truncnorm A truncated normal continuous random variable. truncpareto An upper truncated Pareto continuous random variable. truncweibull_min A doubly truncated Weibull minimum continuous random variable. tukeylambda A Tukey-Lamdba continuous random variable. uniform A uniform continuous random variable. vonmises A Von Mises continuous random variable. vonmises_line A Von Mises continuous random variable. wald A Wald continuous random variable. weibull_min Weibull minimum continuous random variable. weibull_max Weibull maximum continuous random variable. wrapcauchy A wrapped Cauchy continuous random variable. The fit method of the univariate continuous distributions uses maximum likelihood estimation to fit the distribution to a data set. The fit method can accept regular data or censored data . Censored data is represented with instances of the CensoredData class. Multivariate distributions # multivariate_normal A multivariate normal random variable. matrix_normal A matrix normal random variable. dirichlet A Dirichlet random variable. dirichlet_multinomial A Dirichlet multinomial random variable. wishart A Wishart random variable. invwishart An inverse Wishart random variable. multinomial A multinomial random variable. special_ortho_group A Special Orthogonal matrix (SO(N)) random variable. ortho_group An Orthogonal matrix (O(N)) random variable. unitary_group A matrix-valued U(N) random variable. random_correlation A random correlation matrix. multivariate_t A multivariate t-distributed random variable. multivariate_hypergeom A multivariate hypergeometric random variable. normal_inverse_gamma Normal-inverse-gamma distribution. random_table Contingency tables from independent samples with fixed marginal sums. uniform_direction A vector-valued uniform direction. vonmises_fisher A von Mises-Fisher variable. matrix_t A matrix t-random variable. scipy.stats.multivariate_normal methods accept instances of the following class to represent the covariance. Discrete distributions # bernoulli A Bernoulli discrete random variable. betabinom A beta-binomial discrete random variable. betanbinom A beta-negative-binomial discrete random variable. binom A binomial discrete random variable. boltzmann A Boltzmann (Truncated Discrete Exponential) random variable. dlaplace A Laplacian discrete random variable. geom A geometric discrete random variable. hypergeom A hypergeometric discrete random variable. logser A Logarithmic (Log-Series, Series) discrete random variable. nbinom A negative binomial discrete random variable. nchypergeom_fisher A Fisher's noncentral hypergeometric discrete random variable. nchypergeom_wallenius A Wallenius' noncentral hypergeometric discrete random variable. nhypergeom A negative hypergeometric discrete random variable. planck A Planck discrete exponential random variable. poisson A Poisson discrete random variable. poisson_binom A Poisson Binomial discrete random variable. randint A uniform discrete random variable. skellam A Skellam discrete random variable. yulesimon A Yule-Simon discrete random variable. zipf A Zipf (Zeta) discrete random variable. zipfian A Zipfian discrete random variable. An overview of statistical functions is given below. Many of these functions have a similar version in scipy.stats.mstats which work for masked arrays. Summary statistics # describe (a[, axis, ddof, bias, nan_policy]) Compute several descriptive statistics of the passed array. gmean (a[, axis, dtype, weights, nan_policy, ...]) Compute the weighted geometric mean along the specified axis. hmean (a[, axis, dtype, weights, nan_policy, ...]) Calculate the weighted harmonic mean along the specified axis. pmean (a, p, *[, axis, dtype, weights, ...]) Calculate the weighted power mean along the specified axis. kurtosis (a[, axis, fisher, bias, ...]) Compute the kurtosis (Fisher or Pearson) of a dataset. mode (a[, axis, nan_policy, keepdims]) Return an array of the modal (most common) value in the passed array. moment (a[, order, axis, nan_policy, center, ...]) Calculate the nth moment about the mean for a sample. lmoment (sample[, order, axis, sorted, ...]) Compute L-moments of a sample from a continuous distribution expectile (a[, alpha, weights]) Compute the expectile at the specified level. skew (a[, axis, bias, nan_policy, keepdims]) Compute the sample skewness of a data set. kstat (data[, n, axis, nan_policy, keepdims]) Return the n th k-statistic ( 1<=n<=4 so far). kstatvar (data[, n, axis, nan_policy, keepdims]) Return an unbiased estimator of the variance of the k-statistic. tmean (a[, limits, inclusive, axis, ...]) Compute the trimmed mean. tvar (a[, limits, inclusive, axis, ddof, ...]) Compute the trimmed variance. tmin (a[, lowerlimit, axis, inclusive, ...]) Compute the trimmed minimum. tmax (a[, upperlimit, axis, inclusive, ...]) Compute the trimmed maximum. tstd (a[, limits, inclusive, axis, ddof, ...]) Compute the trimmed sample standard deviation. tsem (a[, limits, inclusive, axis, ddof, ...]) Compute the trimmed standard error of the mean. variation (a[, axis, nan_policy, ddof, keepdims]) Compute the coefficient of variation. rankdata (a[, method, axis, nan_policy]) Assign ranks to data, dealing with ties appropriately. tiecorrect (rankvals) Tie correction factor for Mann-Whitney U and Kruskal-Wallis H tests. trim_mean (a, proportiontocut[, axis, ...]) Return mean of array after trimming a specified fraction of extreme values gstd (a[, axis, ddof, keepdims, nan_policy]) Calculate the geometric standard deviation of an array. iqr (x[, axis, rng, scale, nan_policy, ...]) Compute the interquartile range of the data along the specified axis. sem (a[, axis, ddof, nan_policy, keepdims]) Compute standard error of the mean. bayes_mvs (data[, alpha]) Bayesian confidence intervals for the mean, var, and std. mvsdist (data) 'Frozen' distributions for mean, variance, and standard deviation of data. entropy (pk[, qk, base, axis, nan_policy, ...]) Calculate the Shannon entropy/relative entropy of given distribution(s). differential_entropy (values, *[, ...]) Given a sample of a distribution, estimate the differential entropy. median_abs_deviation (x[, axis, center, ...]) Compute the median absolute deviation of the data along the given axis. Frequency statistics # Hypothesis Tests and related functions # SciPy has many functions for performing hypothesis tests that return a test statistic and a p-value, and several of them return confidence intervals and/or other related information. The headings below are based on common uses of the functions within, but due to the wide variety of statistical procedures, any attempt at coarse-grained categorization will be imperfect. Also, note that tests within the same heading are not interchangeable in general (e.g. many have different distributional assumptions). One Sample Tests / Paired Sample Tests # One sample tests are typically used to assess whether a single sample was drawn from a specified distribution or a distribution with specified properties (e.g. zero mean). ttest_1samp (a, popmean[, axis, nan_policy, ...]) Calculate the T-test for the mean of ONE group of scores. binomtest (k, n[, p, alternative]) Perform a test that the probability of success is p. quantile_test (x, *[, q, p, alternative]) Perform a quantile test and compute a confidence interval of the quantile. skewtest (a[, axis, nan_policy, alternative, ...]) Test whether the skew is different from the normal distribution. kurtosistest (a[, axis, nan_policy, ...]) Test whether a dataset has normal kurtosis. normaltest (a[, axis, nan_policy, keepdims]) Test whether a sample differs from a normal distribution. jarque_bera (x, *[, axis, nan_policy, keepdims]) Perform the Jarque-Bera goodness of fit test on sample data. shapiro (x, *[, axis, nan_policy, keepdims]) Perform the Shapiro-Wilk test for normality. anderson (x[, dist, method]) Anderson-Darling test for data coming from a particular distribution. cramervonmises (rvs, cdf[, args, axis, ...]) Perform the one-sample Cramér-von Mises test for goodness of fit. ks_1samp (x, cdf[, args, alternative, ...]) Performs the one-sample Kolmogorov-Smirnov test for goodness of fit. goodness_of_fit (dist, data, *[, ...]) Perform a goodness of fit test comparing data to a distribution family. chisquare (f_obs[, f_exp, ddof, axis, ...]) Perform Pearson's chi-squared test. power_divergence (f_obs[, f_exp, ddof, axis, ...]) Cressie-Read power divergence statistic and goodness of fit test. Paired sample tests are often used to assess whether two samples were drawn from the same distribution; they differ from the independent sample tests below in that each observation in one sample is treated as paired with a closely-related observation in the other sample (e.g. when environmental factors are controlled between observations within a pair but not among pairs). They can also be interpreted or used as one-sample tests (e.g. tests on the mean or median of differences between paired observations). Association/Correlation Tests # These tests are often used to assess whether there is a relationship (e.g. linear) between paired observations in multiple samples or among the coordinates of multivariate observations. linregress (x, y[, alternative, axis, ...]) Calculate a linear least-squares regression for two sets of measurements. pearsonr (x, y, *[, alternative, method, axis]) Pearson correlation coefficient and p-value for testing non-correlation. spearmanrho (x, y, /, *[, alternative, ...]) Calculate a Spearman rho correlation coefficient with associated p-value. pointbiserialr (x, y, *[, axis, nan_policy, ...]) Calculate a point biserial correlation coefficient and its p-value. kendalltau (x, y, *[, nan_policy, method, ...]) Calculate Kendall's tau, a correlation measure for ordinal data. chatterjeexi (x, y, *[, axis, y_continuous, ...]) Compute the xi correlation and perform a test of independence weightedtau (x, y[, rank, weigher, additive, ...]) Compute a weighted version of Kendall's \(\tau\) . somersd (x[, y, alternative]) Calculates Somers' D, an asymmetric measure of ordinal association. siegelslopes (y[, x, method, axis, ...]) Computes the Siegel estimator for a set of points (x, y). theilslopes (y[, x, alpha, method, axis, ...]) Computes the Theil-Sen estimator for a set of points (x, y). page_trend_test (data[, ranked, ...]) Perform Page's Test, a measure of trend in observations between treatments. multiscale_graphcorr (x, y[, ...]) Computes the Multiscale Graph Correlation (MGC) test statistic. spearmanr (a[, b, axis, nan_policy, alternative]) Calculate a Spearman correlation coefficient with associated p-value. These association tests and are to work with samples in the form of contingency tables. Supporting functions are available in scipy.stats.contingency . Independent Sample Tests # Independent sample tests are typically used to assess whether multiple samples were independently drawn from the same distribution or different distributions with a shared property (e.g. equal means). Some tests are specifically for comparing two samples. ttest_ind_from_stats (mean1, std1, nobs1, ...) T-test for means of two independent samples from descriptive statistics. poisson_means_test (k1, n1, k2, n2, *[, ...]) Performs the Poisson means test, AKA the "E-test". ttest_ind (a, b, *[, axis, equal_var, ...]) Calculate the T-test for the means of two independent samples of scores. mannwhitneyu (x, y[, use_continuity, ...]) Perform the Mann-Whitney U rank test on two independent samples. bws_test (x, y, *[, alternative, method]) Perform the Baumgartner-Weiss-Schindler test on two independent samples. ranksums (x, y[, alternative, axis, ...]) Compute the Wilcoxon rank-sum statistic for two samples. brunnermunzel (x, y[, alternative, ...]) Compute the Brunner-Munzel test on samples x and y. mood (x, y[, axis, alternative, nan_policy, ...]) Perform Mood's test for equal scale parameters. ansari (x, y[, alternative, axis, ...]) Perform the Ansari-Bradley test for equal scale parameters. cramervonmises_2samp (x, y[, method, axis, ...]) Perform the two-sample Cramér-von Mises test for goodness of fit. epps_singleton_2samp (x, y[, t, axis, ...]) Compute the Epps-Singleton (ES) test statistic. ks_2samp (data1, data2[, alternative, ...]) Performs the two-sample Kolmogorov-Smirnov test for goodness of fit. kstest (rvs, cdf[, args, N, alternative, ...]) Performs the (one-sample or two-sample) Kolmogorov-Smirnov test for goodness of fit. Others are generalized to multiple samples. f_oneway (*samples[, axis, equal_var, ...]) Perform one-way ANOVA. tukey_hsd (*args[, equal_var]) Perform Tukey's HSD test for equality of means over multiple treatments. dunnett (*samples, control[, alternative, ...]) Dunnett's test: multiple comparisons of means against a control group. kruskal (*samples[, nan_policy, axis, keepdims]) Compute the Kruskal-Wallis H-test for independent samples. alexandergovern (*samples[, nan_policy, ...]) Performs the Alexander Govern test. fligner (*samples[, center, proportiontocut, ...]) Perform Fligner-Killeen test for equality of variance. levene (*samples[, center, proportiontocut, ...]) Perform Levene test for equal variances. bartlett (*samples[, axis, nan_policy, keepdims]) Perform Bartlett's test for equal variances. median_test (*samples[, ties, correction, ...]) Perform a Mood's median test. friedmanchisquare (*samples[, axis, ...]) Compute the Friedman test for repeated samples. anderson_ksamp (samples[, midrank, variant, ...]) The Anderson-Darling test for k-samples. Resampling and Monte Carlo Methods # The following functions can reproduce the p-value and confidence interval results of most of the functions above, and often produce accurate results in a wider variety of conditions. They can also be used to perform hypothesis tests and generate confidence intervals for custom statistics. This flexibility comes at the cost of greater computational requirements and stochastic results. Instances of the following object can be passed into some hypothesis test functions to perform a resampling or Monte Carlo version of the hypothesis test. Multiple Hypothesis Testing and Meta-Analysis # These functions are for assessing the results of individual tests as a whole. Functions for performing specific multiple hypothesis tests (e.g. post hoc tests) are listed above. The following functions are related to the tests above but do not belong in the above categories. Random Variables # make_distribution (dist) Generate a UnivariateDistribution class from a compatible object Normal ([mu, sigma]) Normal distribution with prescribed mean and standard deviation. Logistic (*[, tol, validation_policy, ...]) Standard logistic distribution. Uniform (*[, a, b]) Uniform distribution. Binomial (*, n, p, **kwargs) Binomial distribution with prescribed success probability and number of trials Mixture (components, *[, weights]) Representation of a mixture distribution. order_statistic (X, /, *, r, n) Probability distribution of an order statistic truncate (X[, lb, ub]) Truncate the support of a random variable. abs (X, /) Absolute value of a random variable exp (X, /) Natural exponential of a random variable log (X, /) Natural logarithm of a non-negative random variable Quasi-Monte Carlo # Quasi-Monte Carlo submodule ( scipy.stats.qmc ) Quasi-Monte Carlo Engines QMCEngine Sobol Halton LatinHypercube PoissonDisk MultinomialQMC MultivariateNormalQMC Helpers discrepancy geometric_discrepancy update_discrepancy scale Introduction to Quasi-Monte Carlo References Contingency Tables # Contingency table functions ( scipy.stats.contingency ) chi2_contingency chi2_contingency relative_risk relative_risk odds_ratio odds_ratio crosstab crosstab association association expected_freq expected_freq margins margins Masked statistics functions # Statistical functions for masked arrays ( scipy.stats.mstats ) Summary statistics describe describe gmean gmean hmean hmean kurtosis kurtosis mode mode mquantiles mquantiles hdmedian hdmedian hdquantiles hdquantiles hdquantiles_sd hdquantiles_sd idealfourths idealfourths plotting_positions plotting_positions meppf meppf moment moment skew skew tmean tmean tvar tvar tmin tmin tmax tmax tsem tsem variation variation find_repeats find_repeats sem sem trimmed_mean trimmed_mean trimmed_mean_ci trimmed_mean_ci trimmed_std trimmed_std trimmed_var trimmed_var Frequency statistics scoreatpercentile scoreatpercentile Correlation functions f_oneway f_oneway pearsonr pearsonr spearmanr spearmanr pointbiserialr pointbiserialr kendalltau kendalltau kendalltau_seasonal kendalltau_seasonal linregress linregress siegelslopes siegelslopes theilslopes theilslopes sen_seasonal_slopes sen_seasonal_slopes Statistical tests ttest_1samp ttest_1samp ttest_onesamp ttest_onesamp ttest_ind ttest_ind ttest_rel ttest_rel chisquare chisquare kstest kstest ks_2samp ks_2samp ks_1samp ks_1samp ks_twosamp ks_twosamp mannwhitneyu mannwhitneyu rankdata rankdata kruskal kruskal kruskalwallis kruskalwallis friedmanchisquare friedmanchisquare brunnermunzel brunnermunzel skewtest skewtest kurtosistest kurtosistest normaltest normaltest Transformations obrientransform obrientransform trim trim trima trima trimmed_stde trimmed_stde trimr trimr trimtail trimtail trimboth trimboth winsorize winsorize zmap zmap zscore zscore Other argstoarray argstoarray count_tied_groups count_tied_groups msign msign compare_medians_ms compare_medians_ms median_cihs median_cihs mjci mjci mquantiles_cimj mquantiles_cimj rsh rsh Other statistical functionality # Transformations # boxcox (x[, lmbda, alpha, optimizer]) Return a dataset transformed by a Box-Cox power transformation. boxcox_normmax (x[, brack, method, ...]) Compute optimal Box-Cox transform parameter for input data. boxcox_llf (lmb, data, *[, axis, keepdims, ...]) The boxcox log-likelihood function. yeojohnson (x[, lmbda]) Return a dataset transformed by a Yeo-Johnson power transformation. yeojohnson_normmax (x[, brack]) Compute optimal Yeo-Johnson transform parameter. yeojohnson_llf (lmb, data, *[, axis, ...]) The Yeo-Johnson log-likelihood function. obrientransform (*samples) Compute the O'Brien transform on input data (any number of arrays). sigmaclip (a[, low, high]) Perform iterative sigma-clipping of array elements. trimboth (a, proportiontocut[, axis]) Slice off a proportion of items from both ends of an array. trim1 (a, proportiontocut[, tail, axis]) Slice off a proportion from ONE end of the passed array distribution. zmap (scores, compare[, axis, ddof, nan_policy]) Calculate the relative z-scores. zscore (a[, axis, ddof, nan_policy]) Compute the z score. gzscore (a, *[, axis, ddof, nan_policy]) Compute the geometric standard score. Statistical distances # Sampling # Random Number Generators ( scipy.stats.sampling ) Generators Wrapped For continuous distributions NumericalInverseHermite NumericalInversePolynomial TransformedDensityRejection SimpleRatioUniforms RatioUniforms For discrete distributions DiscreteAliasUrn DiscreteGuideTable Warnings / Errors used in scipy.stats.sampling scipy.stats.sampling.UNURANError Generators for pre-defined distributions FastGeneratorInversion FastGeneratorInversion evaluate_error ppf qrvs rvs support Fitting / Survival Analysis # Directional statistical functions # Sensitivity Analysis # Plot-tests # Univariate and multivariate kernel density estimation # Warnings / Errors used in scipy.stats # Result classes used in scipy.stats # Warning These classes are private, but they are included here because instances of them are returned by other statistical functions. User import and instantiation is not supported. Result classes RelativeRiskResult BinomTestResult TukeyHSDResult DunnettResult PearsonRResult FitResult OddsRatioResult TtestResult ECDFResult EmpiricalDistributionFunction
Markdown
[Skip to main content](https://docs.scipy.org/doc/scipy/reference/stats.html#main-content) Back to top [![](https://docs.scipy.org/doc/scipy/_static/logo.svg) ![](https://docs.scipy.org/doc/scipy/_static/logo.svg) SciPy](https://docs.scipy.org/doc/scipy/index.html) - [Installing](https://scipy.org/install/) - [User Guide](https://docs.scipy.org/doc/scipy/tutorial/index.html) - [API reference](https://docs.scipy.org/doc/scipy/reference/index.html) - [Building from source](https://docs.scipy.org/doc/scipy/building/index.html) - [Development](https://docs.scipy.org/doc/scipy/dev/index.html) - [Release notes](https://docs.scipy.org/doc/scipy/release.html) Choose version - [GitHub](https://github.com/scipy/scipy "GitHub") - [Scientific Python Forum](https://discuss.scientific-python.org/c/contributor/scipy/ "Scientific Python Forum") - [Installing](https://scipy.org/install/) - [User Guide](https://docs.scipy.org/doc/scipy/tutorial/index.html) - [API reference](https://docs.scipy.org/doc/scipy/reference/index.html) - [Building from source](https://docs.scipy.org/doc/scipy/building/index.html) - [Development](https://docs.scipy.org/doc/scipy/dev/index.html) - [Release notes](https://docs.scipy.org/doc/scipy/release.html) Choose version - [GitHub](https://github.com/scipy/scipy "GitHub") - [Scientific Python Forum](https://discuss.scientific-python.org/c/contributor/scipy/ "Scientific Python Forum") Search `Ctrl`\+`K` Section Navigation - [scipy](https://docs.scipy.org/doc/scipy/reference/main_namespace.html) - [scipy.cluster](https://docs.scipy.org/doc/scipy/reference/cluster.html) - [scipy.constants](https://docs.scipy.org/doc/scipy/reference/constants.html) - [scipy.datasets](https://docs.scipy.org/doc/scipy/reference/datasets.html) - [scipy.differentiate](https://docs.scipy.org/doc/scipy/reference/differentiate.html) - [scipy.fft](https://docs.scipy.org/doc/scipy/reference/fft.html) - [scipy.fftpack](https://docs.scipy.org/doc/scipy/reference/fftpack.html) - [scipy.integrate](https://docs.scipy.org/doc/scipy/reference/integrate.html) - [scipy.interpolate](https://docs.scipy.org/doc/scipy/reference/interpolate.html) - [scipy.io](https://docs.scipy.org/doc/scipy/reference/io.html) - [scipy.linalg](https://docs.scipy.org/doc/scipy/reference/linalg.html) - [scipy.ndimage](https://docs.scipy.org/doc/scipy/reference/ndimage.html) - [scipy.odr](https://docs.scipy.org/doc/scipy/reference/odr.html) - [scipy.optimize](https://docs.scipy.org/doc/scipy/reference/optimize.html) - [scipy.signal](https://docs.scipy.org/doc/scipy/reference/signal.html) - [scipy.sparse](https://docs.scipy.org/doc/scipy/reference/sparse.html) - [scipy.spatial](https://docs.scipy.org/doc/scipy/reference/spatial.html) - [scipy.special](https://docs.scipy.org/doc/scipy/reference/special.html) - [scipy.stats](https://docs.scipy.org/doc/scipy/reference/stats.html) - [SciPy API](https://docs.scipy.org/doc/scipy/reference/index.html) - Statistical functions (`scipy.stats`) # Statistical functions ([`scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats "scipy.stats"))[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-functions-scipy-stats "Link to this heading") This module contains a large number of probability distributions, summary and frequency statistics, correlation functions and statistical tests, masked statistics, kernel density estimation, quasi-Monte Carlo functionality, and more. Statistics is a very large area, and there are topics that are out of scope for SciPy and are covered by other packages. Some of the most important ones are: - [statsmodels](https://www.statsmodels.org/stable/index.html): regression, linear models, time series analysis, extensions to topics also covered by `scipy.stats`. - [Pandas](https://pandas.pydata.org/): tabular data, time series functionality, interfaces to other statistical languages. - [PyMC](https://docs.pymc.io/): Bayesian statistical modeling, probabilistic machine learning. - [scikit-learn](https://scikit-learn.org/): classification, regression, model selection. - [Seaborn](https://seaborn.pydata.org/): statistical data visualization. - [rpy2](https://rpy2.github.io/): Python to R bridge. ## Probability distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#probability-distributions "Link to this heading") Each univariate distribution is an instance of a subclass of [`rv_continuous`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.html#scipy.stats.rv_continuous "scipy.stats.rv_continuous") ([`rv_discrete`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_discrete.html#scipy.stats.rv_discrete "scipy.stats.rv_discrete") for discrete distributions): | | | |---|---| | [`rv_continuous`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.html#scipy.stats.rv_continuous "scipy.stats.rv_continuous")(\[momtype, a, b, xtol, ...\]) | A generic continuous random variable class meant for subclassing. | | [`rv_discrete`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_discrete.html#scipy.stats.rv_discrete "scipy.stats.rv_discrete")(\[a, b, name, badvalue, ...\]) | A generic discrete random variable class meant for subclassing. | | [`rv_histogram`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_histogram.html#scipy.stats.rv_histogram "scipy.stats.rv_histogram")(histogram, \*args\[, density\]) | Generates a distribution given by a histogram. | ### Continuous distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#continuous-distributions "Link to this heading") | | | |---|---| | [`alpha`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.alpha.html#scipy.stats.alpha "scipy.stats.alpha") | An alpha continuous random variable. | | [`anglit`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anglit.html#scipy.stats.anglit "scipy.stats.anglit") | An anglit continuous random variable. | | [`arcsine`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.arcsine.html#scipy.stats.arcsine "scipy.stats.arcsine") | An arcsine continuous random variable. | | [`argus`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.argus.html#scipy.stats.argus "scipy.stats.argus") | Argus distribution | | [`beta`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.beta.html#scipy.stats.beta "scipy.stats.beta") | A beta continuous random variable. | | [`betaprime`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betaprime.html#scipy.stats.betaprime "scipy.stats.betaprime") | A beta prime continuous random variable. | | [`bradford`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bradford.html#scipy.stats.bradford "scipy.stats.bradford") | A Bradford continuous random variable. | | [`burr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.burr.html#scipy.stats.burr "scipy.stats.burr") | A Burr (Type III) continuous random variable. | | [`burr12`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.burr12.html#scipy.stats.burr12 "scipy.stats.burr12") | A Burr (Type XII) continuous random variable. | | [`cauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cauchy.html#scipy.stats.cauchy "scipy.stats.cauchy") | A Cauchy continuous random variable. | | [`chi`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi.html#scipy.stats.chi "scipy.stats.chi") | A chi continuous random variable. | | [`chi2`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html#scipy.stats.chi2 "scipy.stats.chi2") | A chi-squared continuous random variable. | | [`cosine`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cosine.html#scipy.stats.cosine "scipy.stats.cosine") | A cosine continuous random variable. | | [`crystalball`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.crystalball.html#scipy.stats.crystalball "scipy.stats.crystalball") | Crystalball distribution | | [`dgamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dgamma.html#scipy.stats.dgamma "scipy.stats.dgamma") | A double gamma continuous random variable. | | [`dpareto_lognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dpareto_lognorm.html#scipy.stats.dpareto_lognorm "scipy.stats.dpareto_lognorm") | A double Pareto lognormal continuous random variable. | | [`dweibull`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dweibull.html#scipy.stats.dweibull "scipy.stats.dweibull") | A double Weibull continuous random variable. | | [`erlang`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.erlang.html#scipy.stats.erlang "scipy.stats.erlang") | An Erlang continuous random variable. | | [`expon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.expon.html#scipy.stats.expon "scipy.stats.expon") | An exponential continuous random variable. | | [`exponnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponnorm.html#scipy.stats.exponnorm "scipy.stats.exponnorm") | An exponentially modified Normal continuous random variable. | | [`exponweib`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponweib.html#scipy.stats.exponweib "scipy.stats.exponweib") | An exponentiated Weibull continuous random variable. | | [`exponpow`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponpow.html#scipy.stats.exponpow "scipy.stats.exponpow") | An exponential power continuous random variable. | | [`f`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.f.html#scipy.stats.f "scipy.stats.f") | An F continuous random variable. | | [`fatiguelife`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fatiguelife.html#scipy.stats.fatiguelife "scipy.stats.fatiguelife") | A fatigue-life (Birnbaum-Saunders) continuous random variable. | | [`fisk`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisk.html#scipy.stats.fisk "scipy.stats.fisk") | A Fisk continuous random variable. | | [`foldcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.foldcauchy.html#scipy.stats.foldcauchy "scipy.stats.foldcauchy") | A folded Cauchy continuous random variable. | | [`foldnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.foldnorm.html#scipy.stats.foldnorm "scipy.stats.foldnorm") | A folded normal continuous random variable. | | [`genlogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genlogistic.html#scipy.stats.genlogistic "scipy.stats.genlogistic") | A generalized logistic continuous random variable. | | [`gennorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gennorm.html#scipy.stats.gennorm "scipy.stats.gennorm") | A generalized normal continuous random variable. | | [`genpareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genpareto.html#scipy.stats.genpareto "scipy.stats.genpareto") | A generalized Pareto continuous random variable. | | [`genexpon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genexpon.html#scipy.stats.genexpon "scipy.stats.genexpon") | A generalized exponential continuous random variable. | | [`genextreme`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genextreme.html#scipy.stats.genextreme "scipy.stats.genextreme") | A generalized extreme value continuous random variable. | | [`gausshyper`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gausshyper.html#scipy.stats.gausshyper "scipy.stats.gausshyper") | A Gauss hypergeometric continuous random variable. | | [`gamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gamma.html#scipy.stats.gamma "scipy.stats.gamma") | A gamma continuous random variable. | | [`gengamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gengamma.html#scipy.stats.gengamma "scipy.stats.gengamma") | A generalized gamma continuous random variable. | | [`genhalflogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genhalflogistic.html#scipy.stats.genhalflogistic "scipy.stats.genhalflogistic") | A generalized half-logistic continuous random variable. | | [`genhyperbolic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genhyperbolic.html#scipy.stats.genhyperbolic "scipy.stats.genhyperbolic") | A generalized hyperbolic continuous random variable. | | [`geninvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.geninvgauss.html#scipy.stats.geninvgauss "scipy.stats.geninvgauss") | A Generalized Inverse Gaussian continuous random variable. | | [`gibrat`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gibrat.html#scipy.stats.gibrat "scipy.stats.gibrat") | A Gibrat continuous random variable. | | [`gompertz`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gompertz.html#scipy.stats.gompertz "scipy.stats.gompertz") | A Gompertz (or truncated Gumbel) continuous random variable. | | [`gumbel_r`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gumbel_r.html#scipy.stats.gumbel_r "scipy.stats.gumbel_r") | A right-skewed Gumbel continuous random variable. | | [`gumbel_l`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gumbel_l.html#scipy.stats.gumbel_l "scipy.stats.gumbel_l") | A left-skewed Gumbel continuous random variable. | | [`halfcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfcauchy.html#scipy.stats.halfcauchy "scipy.stats.halfcauchy") | A Half-Cauchy continuous random variable. | | [`halflogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halflogistic.html#scipy.stats.halflogistic "scipy.stats.halflogistic") | A half-logistic continuous random variable. | | [`halfnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfnorm.html#scipy.stats.halfnorm "scipy.stats.halfnorm") | A half-normal continuous random variable. | | [`halfgennorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfgennorm.html#scipy.stats.halfgennorm "scipy.stats.halfgennorm") | The upper half of a generalized normal continuous random variable. | | [`hypsecant`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypsecant.html#scipy.stats.hypsecant "scipy.stats.hypsecant") | A hyperbolic secant continuous random variable. | | [`invgamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invgamma.html#scipy.stats.invgamma "scipy.stats.invgamma") | An inverted gamma continuous random variable. | | [`invgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invgauss.html#scipy.stats.invgauss "scipy.stats.invgauss") | An inverse Gaussian continuous random variable. | | [`invweibull`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invweibull.html#scipy.stats.invweibull "scipy.stats.invweibull") | An inverted Weibull continuous random variable. | | [`irwinhall`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.irwinhall.html#scipy.stats.irwinhall "scipy.stats.irwinhall") | An Irwin-Hall (Uniform Sum) continuous random variable. | | [`jf_skew_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.jf_skew_t.html#scipy.stats.jf_skew_t "scipy.stats.jf_skew_t") | Jones and Faddy skew-t distribution. | | [`johnsonsb`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.johnsonsb.html#scipy.stats.johnsonsb "scipy.stats.johnsonsb") | A Johnson SB continuous random variable. | | [`johnsonsu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.johnsonsu.html#scipy.stats.johnsonsu "scipy.stats.johnsonsu") | A Johnson SU continuous random variable. | | [`kappa4`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kappa4.html#scipy.stats.kappa4 "scipy.stats.kappa4") | Kappa 4 parameter distribution. | | [`kappa3`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kappa3.html#scipy.stats.kappa3 "scipy.stats.kappa3") | Kappa 3 parameter distribution. | | [`ksone`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ksone.html#scipy.stats.ksone "scipy.stats.ksone") | Kolmogorov-Smirnov one-sided test statistic distribution. | | [`kstwo`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstwo.html#scipy.stats.kstwo "scipy.stats.kstwo") | Kolmogorov-Smirnov two-sided test statistic distribution. | | [`kstwobign`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstwobign.html#scipy.stats.kstwobign "scipy.stats.kstwobign") | Limiting distribution of scaled Kolmogorov-Smirnov two-sided test statistic. | | [`landau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.landau.html#scipy.stats.landau "scipy.stats.landau") | A Landau continuous random variable. | | [`laplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.laplace.html#scipy.stats.laplace "scipy.stats.laplace") | A Laplace continuous random variable. | | [`laplace_asymmetric`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.laplace_asymmetric.html#scipy.stats.laplace_asymmetric "scipy.stats.laplace_asymmetric") | An asymmetric Laplace continuous random variable. | | [`levy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy.html#scipy.stats.levy "scipy.stats.levy") | A Levy continuous random variable. | | [`levy_l`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy_l.html#scipy.stats.levy_l "scipy.stats.levy_l") | A left-skewed Levy continuous random variable. | | [`levy_stable`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy_stable.html#scipy.stats.levy_stable "scipy.stats.levy_stable") | A Levy-stable continuous random variable. | | [`logistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.logistic.html#scipy.stats.logistic "scipy.stats.logistic") | A logistic (or Sech-squared) continuous random variable. | | [`loggamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loggamma.html#scipy.stats.loggamma "scipy.stats.loggamma") | A log gamma continuous random variable. | | [`loglaplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loglaplace.html#scipy.stats.loglaplace "scipy.stats.loglaplace") | A log-Laplace continuous random variable. | | [`lognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lognorm.html#scipy.stats.lognorm "scipy.stats.lognorm") | A lognormal continuous random variable. | | [`loguniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loguniform.html#scipy.stats.loguniform "scipy.stats.loguniform") | A loguniform or reciprocal continuous random variable. | | [`lomax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lomax.html#scipy.stats.lomax "scipy.stats.lomax") | A Lomax (Pareto of the second kind) continuous random variable. | | [`maxwell`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.maxwell.html#scipy.stats.maxwell "scipy.stats.maxwell") | A Maxwell continuous random variable. | | [`mielke`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mielke.html#scipy.stats.mielke "scipy.stats.mielke") | A Mielke Beta-Kappa / Dagum continuous random variable. | | [`moyal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moyal.html#scipy.stats.moyal "scipy.stats.moyal") | A Moyal continuous random variable. | | [`nakagami`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nakagami.html#scipy.stats.nakagami "scipy.stats.nakagami") | A Nakagami continuous random variable. | | [`ncx2`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ncx2.html#scipy.stats.ncx2 "scipy.stats.ncx2") | A non-central chi-squared continuous random variable. | | [`ncf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ncf.html#scipy.stats.ncf "scipy.stats.ncf") | A non-central F distribution continuous random variable. | | [`nct`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nct.html#scipy.stats.nct "scipy.stats.nct") | A non-central Student's t continuous random variable. | | [`norm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html#scipy.stats.norm "scipy.stats.norm") | A normal continuous random variable. | | [`norminvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norminvgauss.html#scipy.stats.norminvgauss "scipy.stats.norminvgauss") | A Normal Inverse Gaussian continuous random variable. | | [`pareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pareto.html#scipy.stats.pareto "scipy.stats.pareto") | A Pareto continuous random variable. | | [`pearson3`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearson3.html#scipy.stats.pearson3 "scipy.stats.pearson3") | A pearson type III continuous random variable. | | [`powerlaw`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powerlaw.html#scipy.stats.powerlaw "scipy.stats.powerlaw") | A power-function continuous random variable. | | [`powerlognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powerlognorm.html#scipy.stats.powerlognorm "scipy.stats.powerlognorm") | A power log-normal continuous random variable. | | [`powernorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powernorm.html#scipy.stats.powernorm "scipy.stats.powernorm") | A power normal continuous random variable. | | [`rdist`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rdist.html#scipy.stats.rdist "scipy.stats.rdist") | An R-distributed (symmetric beta) continuous random variable. | | [`rayleigh`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rayleigh.html#scipy.stats.rayleigh "scipy.stats.rayleigh") | A Rayleigh continuous random variable. | | [`rel_breitwigner`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rel_breitwigner.html#scipy.stats.rel_breitwigner "scipy.stats.rel_breitwigner") | A relativistic Breit-Wigner random variable. | | [`rice`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rice.html#scipy.stats.rice "scipy.stats.rice") | A Rice continuous random variable. | | [`recipinvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.recipinvgauss.html#scipy.stats.recipinvgauss "scipy.stats.recipinvgauss") | A reciprocal inverse Gaussian continuous random variable. | | [`semicircular`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.semicircular.html#scipy.stats.semicircular "scipy.stats.semicircular") | A semicircular continuous random variable. | | [`skewcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewcauchy.html#scipy.stats.skewcauchy "scipy.stats.skewcauchy") | A skewed Cauchy random variable. | | [`skewnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewnorm.html#scipy.stats.skewnorm "scipy.stats.skewnorm") | A skew-normal random variable. | | [`studentized_range`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.studentized_range.html#scipy.stats.studentized_range "scipy.stats.studentized_range") | A studentized range continuous random variable. | | [`t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.t.html#scipy.stats.t "scipy.stats.t") | A Student's t continuous random variable. | | [`trapezoid`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trapezoid.html#scipy.stats.trapezoid "scipy.stats.trapezoid") | A trapezoidal continuous random variable. | | [`triang`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.triang.html#scipy.stats.triang "scipy.stats.triang") | A triangular continuous random variable. | | [`truncexpon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncexpon.html#scipy.stats.truncexpon "scipy.stats.truncexpon") | A truncated exponential continuous random variable. | | [`truncnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html#scipy.stats.truncnorm "scipy.stats.truncnorm") | A truncated normal continuous random variable. | | [`truncpareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncpareto.html#scipy.stats.truncpareto "scipy.stats.truncpareto") | An upper truncated Pareto continuous random variable. | | [`truncweibull_min`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncweibull_min.html#scipy.stats.truncweibull_min "scipy.stats.truncweibull_min") | A doubly truncated Weibull minimum continuous random variable. | | [`tukeylambda`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tukeylambda.html#scipy.stats.tukeylambda "scipy.stats.tukeylambda") | A Tukey-Lamdba continuous random variable. | | [`uniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.uniform.html#scipy.stats.uniform "scipy.stats.uniform") | A uniform continuous random variable. | | [`vonmises`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises.html#scipy.stats.vonmises "scipy.stats.vonmises") | A Von Mises continuous random variable. | | [`vonmises_line`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises_line.html#scipy.stats.vonmises_line "scipy.stats.vonmises_line") | A Von Mises continuous random variable. | | [`wald`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wald.html#scipy.stats.wald "scipy.stats.wald") | A Wald continuous random variable. | | [`weibull_min`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weibull_min.html#scipy.stats.weibull_min "scipy.stats.weibull_min") | Weibull minimum continuous random variable. | | [`weibull_max`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weibull_max.html#scipy.stats.weibull_max "scipy.stats.weibull_max") | Weibull maximum continuous random variable. | | [`wrapcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wrapcauchy.html#scipy.stats.wrapcauchy "scipy.stats.wrapcauchy") | A wrapped Cauchy continuous random variable. | The `fit` method of the univariate continuous distributions uses maximum likelihood estimation to fit the distribution to a data set. The `fit` method can accept regular data or *censored data*. Censored data is represented with instances of the [`CensoredData`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.CensoredData.html#scipy.stats.CensoredData "scipy.stats.CensoredData") class. | | | |---|---| | [`CensoredData`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.CensoredData.html#scipy.stats.CensoredData "scipy.stats.CensoredData")(\[uncensored, left, right, interval\]) | Instances of this class represent censored data. | ### Multivariate distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#multivariate-distributions "Link to this heading") | | | |---|---| | [`multivariate_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html#scipy.stats.multivariate_normal "scipy.stats.multivariate_normal") | A multivariate normal random variable. | | [`matrix_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.matrix_normal.html#scipy.stats.matrix_normal "scipy.stats.matrix_normal") | A matrix normal random variable. | | [`dirichlet`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dirichlet.html#scipy.stats.dirichlet "scipy.stats.dirichlet") | A Dirichlet random variable. | | [`dirichlet_multinomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dirichlet_multinomial.html#scipy.stats.dirichlet_multinomial "scipy.stats.dirichlet_multinomial") | A Dirichlet multinomial random variable. | | [`wishart`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wishart.html#scipy.stats.wishart "scipy.stats.wishart") | A Wishart random variable. | | [`invwishart`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invwishart.html#scipy.stats.invwishart "scipy.stats.invwishart") | An inverse Wishart random variable. | | [`multinomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multinomial.html#scipy.stats.multinomial "scipy.stats.multinomial") | A multinomial random variable. | | [`special_ortho_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.special_ortho_group.html#scipy.stats.special_ortho_group "scipy.stats.special_ortho_group") | A Special Orthogonal matrix (SO(N)) random variable. | | [`ortho_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ortho_group.html#scipy.stats.ortho_group "scipy.stats.ortho_group") | An Orthogonal matrix (O(N)) random variable. | | [`unitary_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.unitary_group.html#scipy.stats.unitary_group "scipy.stats.unitary_group") | A matrix-valued U(N) random variable. | | [`random_correlation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.random_correlation.html#scipy.stats.random_correlation "scipy.stats.random_correlation") | A random correlation matrix. | | [`multivariate_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_t.html#scipy.stats.multivariate_t "scipy.stats.multivariate_t") | A multivariate t-distributed random variable. | | [`multivariate_hypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_hypergeom.html#scipy.stats.multivariate_hypergeom "scipy.stats.multivariate_hypergeom") | A multivariate hypergeometric random variable. | | [`normal_inverse_gamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normal_inverse_gamma.html#scipy.stats.normal_inverse_gamma "scipy.stats.normal_inverse_gamma") | Normal-inverse-gamma distribution. | | [`random_table`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.random_table.html#scipy.stats.random_table "scipy.stats.random_table") | Contingency tables from independent samples with fixed marginal sums. | | [`uniform_direction`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.uniform_direction.html#scipy.stats.uniform_direction "scipy.stats.uniform_direction") | A vector-valued uniform direction. | | [`vonmises_fisher`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises_fisher.html#scipy.stats.vonmises_fisher "scipy.stats.vonmises_fisher") | A von Mises-Fisher variable. | | [`matrix_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.matrix_t.html#scipy.stats.matrix_t "scipy.stats.matrix_t") | A matrix t-random variable. | [`scipy.stats.multivariate_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html#scipy.stats.multivariate_normal "scipy.stats.multivariate_normal") methods accept instances of the following class to represent the covariance. | | | |---|---| | [`Covariance`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Covariance.html#scipy.stats.Covariance "scipy.stats.Covariance")() | Representation of a covariance matrix | ### Discrete distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#discrete-distributions "Link to this heading") | | | |---|---| | [`bernoulli`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bernoulli.html#scipy.stats.bernoulli "scipy.stats.bernoulli") | A Bernoulli discrete random variable. | | [`betabinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betabinom.html#scipy.stats.betabinom "scipy.stats.betabinom") | A beta-binomial discrete random variable. | | [`betanbinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betanbinom.html#scipy.stats.betanbinom "scipy.stats.betanbinom") | A beta-negative-binomial discrete random variable. | | [`binom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binom.html#scipy.stats.binom "scipy.stats.binom") | A binomial discrete random variable. | | [`boltzmann`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boltzmann.html#scipy.stats.boltzmann "scipy.stats.boltzmann") | A Boltzmann (Truncated Discrete Exponential) random variable. | | [`dlaplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dlaplace.html#scipy.stats.dlaplace "scipy.stats.dlaplace") | A Laplacian discrete random variable. | | [`geom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.geom.html#scipy.stats.geom "scipy.stats.geom") | A geometric discrete random variable. | | [`hypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypergeom.html#scipy.stats.hypergeom "scipy.stats.hypergeom") | A hypergeometric discrete random variable. | | [`logser`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.logser.html#scipy.stats.logser "scipy.stats.logser") | A Logarithmic (Log-Series, Series) discrete random variable. | | [`nbinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nbinom.html#scipy.stats.nbinom "scipy.stats.nbinom") | A negative binomial discrete random variable. | | [`nchypergeom_fisher`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nchypergeom_fisher.html#scipy.stats.nchypergeom_fisher "scipy.stats.nchypergeom_fisher") | A Fisher's noncentral hypergeometric discrete random variable. | | [`nchypergeom_wallenius`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nchypergeom_wallenius.html#scipy.stats.nchypergeom_wallenius "scipy.stats.nchypergeom_wallenius") | A Wallenius' noncentral hypergeometric discrete random variable. | | [`nhypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nhypergeom.html#scipy.stats.nhypergeom "scipy.stats.nhypergeom") | A negative hypergeometric discrete random variable. | | [`planck`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.planck.html#scipy.stats.planck "scipy.stats.planck") | A Planck discrete exponential random variable. | | [`poisson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html#scipy.stats.poisson "scipy.stats.poisson") | A Poisson discrete random variable. | | [`poisson_binom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson_binom.html#scipy.stats.poisson_binom "scipy.stats.poisson_binom") | A Poisson Binomial discrete random variable. | | [`randint`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.randint.html#scipy.stats.randint "scipy.stats.randint") | A uniform discrete random variable. | | [`skellam`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skellam.html#scipy.stats.skellam "scipy.stats.skellam") | A Skellam discrete random variable. | | [`yulesimon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yulesimon.html#scipy.stats.yulesimon "scipy.stats.yulesimon") | A Yule-Simon discrete random variable. | | [`zipf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zipf.html#scipy.stats.zipf "scipy.stats.zipf") | A Zipf (Zeta) discrete random variable. | | [`zipfian`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zipfian.html#scipy.stats.zipfian "scipy.stats.zipfian") | A Zipfian discrete random variable. | An overview of statistical functions is given below. Many of these functions have a similar version in [`scipy.stats.mstats`](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#module-scipy.stats.mstats "scipy.stats.mstats") which work for masked arrays. ## Summary statistics[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#summary-statistics "Link to this heading") | | | |---|---| | [`describe`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.describe.html#scipy.stats.describe "scipy.stats.describe")(a\[, axis, ddof, bias, nan\_policy\]) | Compute several descriptive statistics of the passed array. | | [`gmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gmean.html#scipy.stats.gmean "scipy.stats.gmean")(a\[, axis, dtype, weights, nan\_policy, ...\]) | Compute the weighted geometric mean along the specified axis. | | [`hmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hmean.html#scipy.stats.hmean "scipy.stats.hmean")(a\[, axis, dtype, weights, nan\_policy, ...\]) | Calculate the weighted harmonic mean along the specified axis. | | [`pmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pmean.html#scipy.stats.pmean "scipy.stats.pmean")(a, p, \*\[, axis, dtype, weights, ...\]) | Calculate the weighted power mean along the specified axis. | | [`kurtosis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kurtosis.html#scipy.stats.kurtosis "scipy.stats.kurtosis")(a\[, axis, fisher, bias, ...\]) | Compute the kurtosis (Fisher or Pearson) of a dataset. | | [`mode`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mode.html#scipy.stats.mode "scipy.stats.mode")(a\[, axis, nan\_policy, keepdims\]) | Return an array of the modal (most common) value in the passed array. | | [`moment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html#scipy.stats.moment "scipy.stats.moment")(a\[, order, axis, nan\_policy, center, ...\]) | Calculate the nth moment about the mean for a sample. | | [`lmoment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lmoment.html#scipy.stats.lmoment "scipy.stats.lmoment")(sample\[, order, axis, sorted, ...\]) | Compute L-moments of a sample from a continuous distribution | | [`expectile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.expectile.html#scipy.stats.expectile "scipy.stats.expectile")(a\[, alpha, weights\]) | Compute the expectile at the specified level. | | [`skew`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skew.html#scipy.stats.skew "scipy.stats.skew")(a\[, axis, bias, nan\_policy, keepdims\]) | Compute the sample skewness of a data set. | | [`kstat`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstat.html#scipy.stats.kstat "scipy.stats.kstat")(data\[, n, axis, nan\_policy, keepdims\]) | Return the *n* th k-statistic ( `1<=n<=4` so far). | | [`kstatvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstatvar.html#scipy.stats.kstatvar "scipy.stats.kstatvar")(data\[, n, axis, nan\_policy, keepdims\]) | Return an unbiased estimator of the variance of the k-statistic. | | [`tmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmean.html#scipy.stats.tmean "scipy.stats.tmean")(a\[, limits, inclusive, axis, ...\]) | Compute the trimmed mean. | | [`tvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tvar.html#scipy.stats.tvar "scipy.stats.tvar")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed variance. | | [`tmin`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmin.html#scipy.stats.tmin "scipy.stats.tmin")(a\[, lowerlimit, axis, inclusive, ...\]) | Compute the trimmed minimum. | | [`tmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmax.html#scipy.stats.tmax "scipy.stats.tmax")(a\[, upperlimit, axis, inclusive, ...\]) | Compute the trimmed maximum. | | [`tstd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tstd.html#scipy.stats.tstd "scipy.stats.tstd")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed sample standard deviation. | | [`tsem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tsem.html#scipy.stats.tsem "scipy.stats.tsem")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed standard error of the mean. | | [`variation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.variation.html#scipy.stats.variation "scipy.stats.variation")(a\[, axis, nan\_policy, ddof, keepdims\]) | Compute the coefficient of variation. | | [`rankdata`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rankdata.html#scipy.stats.rankdata "scipy.stats.rankdata")(a\[, method, axis, nan\_policy\]) | Assign ranks to data, dealing with ties appropriately. | | [`tiecorrect`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tiecorrect.html#scipy.stats.tiecorrect "scipy.stats.tiecorrect")(rankvals) | Tie correction factor for Mann-Whitney U and Kruskal-Wallis H tests. | | [`trim_mean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trim_mean.html#scipy.stats.trim_mean "scipy.stats.trim_mean")(a, proportiontocut\[, axis, ...\]) | Return mean of array after trimming a specified fraction of extreme values | | [`gstd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gstd.html#scipy.stats.gstd "scipy.stats.gstd")(a\[, axis, ddof, keepdims, nan\_policy\]) | Calculate the geometric standard deviation of an array. | | [`iqr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.iqr.html#scipy.stats.iqr "scipy.stats.iqr")(x\[, axis, rng, scale, nan\_policy, ...\]) | Compute the interquartile range of the data along the specified axis. | | [`sem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sem.html#scipy.stats.sem "scipy.stats.sem")(a\[, axis, ddof, nan\_policy, keepdims\]) | Compute standard error of the mean. | | [`bayes_mvs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bayes_mvs.html#scipy.stats.bayes_mvs "scipy.stats.bayes_mvs")(data\[, alpha\]) | Bayesian confidence intervals for the mean, var, and std. | | [`mvsdist`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mvsdist.html#scipy.stats.mvsdist "scipy.stats.mvsdist")(data) | 'Frozen' distributions for mean, variance, and standard deviation of data. | | [`entropy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.entropy.html#scipy.stats.entropy "scipy.stats.entropy")(pk\[, qk, base, axis, nan\_policy, ...\]) | Calculate the Shannon entropy/relative entropy of given distribution(s). | | [`differential_entropy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.differential_entropy.html#scipy.stats.differential_entropy "scipy.stats.differential_entropy")(values, \*\[, ...\]) | Given a sample of a distribution, estimate the differential entropy. | | [`median_abs_deviation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.median_abs_deviation.html#scipy.stats.median_abs_deviation "scipy.stats.median_abs_deviation")(x\[, axis, center, ...\]) | Compute the median absolute deviation of the data along the given axis. | ## Frequency statistics[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#frequency-statistics "Link to this heading") | | | |---|---| | [`cumfreq`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cumfreq.html#scipy.stats.cumfreq "scipy.stats.cumfreq")(a\[, numbins, defaultreallimits, weights\]) | Return a cumulative frequency histogram, using the histogram function. | | [`quantile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.quantile.html#scipy.stats.quantile "scipy.stats.quantile")(x, p, \*\[, method, axis, ...\]) | Compute the p-th quantile of the data along the specified axis. | | [`percentileofscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.percentileofscore.html#scipy.stats.percentileofscore "scipy.stats.percentileofscore")(a, score\[, kind, nan\_policy\]) | Compute the percentile rank of a score relative to a list of scores. | | [`scoreatpercentile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.scoreatpercentile.html#scipy.stats.scoreatpercentile "scipy.stats.scoreatpercentile")(a, per\[, limit, ...\]) | Calculate the score at a given percentile of the input sequence. | | [`relfreq`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.relfreq.html#scipy.stats.relfreq "scipy.stats.relfreq")(a\[, numbins, defaultreallimits, weights\]) | Return a relative frequency histogram, using the histogram function. | | | | |---|---| | [`binned_statistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binned_statistic.html#scipy.stats.binned_statistic "scipy.stats.binned_statistic")(x, values\[, statistic, ...\]) | Compute a binned statistic for one or more sets of data. | | [`binned_statistic_2d`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binned_statistic_2d.html#scipy.stats.binned_statistic_2d "scipy.stats.binned_statistic_2d")(x, y, values\[, ...\]) | Compute a bidimensional binned statistic for one or more sets of data. | | [`binned_statistic_dd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binned_statistic_dd.html#scipy.stats.binned_statistic_dd "scipy.stats.binned_statistic_dd")(sample, values\[, ...\]) | Compute a multidimensional binned statistic for a set of data. | ## Hypothesis Tests and related functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#hypothesis-tests-and-related-functions "Link to this heading") SciPy has many functions for performing hypothesis tests that return a test statistic and a p-value, and several of them return confidence intervals and/or other related information. The headings below are based on common uses of the functions within, but due to the wide variety of statistical procedures, any attempt at coarse-grained categorization will be imperfect. Also, note that tests within the same heading are not interchangeable in general (e.g. many have different distributional assumptions). ### One Sample Tests / Paired Sample Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#one-sample-tests-paired-sample-tests "Link to this heading") One sample tests are typically used to assess whether a single sample was drawn from a specified distribution or a distribution with specified properties (e.g. zero mean). | | | |---|---| | [`ttest_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html#scipy.stats.ttest_1samp "scipy.stats.ttest_1samp")(a, popmean\[, axis, nan\_policy, ...\]) | Calculate the T-test for the mean of ONE group of scores. | | [`binomtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html#scipy.stats.binomtest "scipy.stats.binomtest")(k, n\[, p, alternative\]) | Perform a test that the probability of success is p. | | [`quantile_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.quantile_test.html#scipy.stats.quantile_test "scipy.stats.quantile_test")(x, \*\[, q, p, alternative\]) | Perform a quantile test and compute a confidence interval of the quantile. | | [`skewtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewtest.html#scipy.stats.skewtest "scipy.stats.skewtest")(a\[, axis, nan\_policy, alternative, ...\]) | Test whether the skew is different from the normal distribution. | | [`kurtosistest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kurtosistest.html#scipy.stats.kurtosistest "scipy.stats.kurtosistest")(a\[, axis, nan\_policy, ...\]) | Test whether a dataset has normal kurtosis. | | [`normaltest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normaltest.html#scipy.stats.normaltest "scipy.stats.normaltest")(a\[, axis, nan\_policy, keepdims\]) | Test whether a sample differs from a normal distribution. | | [`jarque_bera`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.jarque_bera.html#scipy.stats.jarque_bera "scipy.stats.jarque_bera")(x, \*\[, axis, nan\_policy, keepdims\]) | Perform the Jarque-Bera goodness of fit test on sample data. | | [`shapiro`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.shapiro.html#scipy.stats.shapiro "scipy.stats.shapiro")(x, \*\[, axis, nan\_policy, keepdims\]) | Perform the Shapiro-Wilk test for normality. | | [`anderson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anderson.html#scipy.stats.anderson "scipy.stats.anderson")(x\[, dist, method\]) | Anderson-Darling test for data coming from a particular distribution. | | [`cramervonmises`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cramervonmises.html#scipy.stats.cramervonmises "scipy.stats.cramervonmises")(rvs, cdf\[, args, axis, ...\]) | Perform the one-sample Cramér-von Mises test for goodness of fit. | | [`ks_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ks_1samp.html#scipy.stats.ks_1samp "scipy.stats.ks_1samp")(x, cdf\[, args, alternative, ...\]) | Performs the one-sample Kolmogorov-Smirnov test for goodness of fit. | | [`goodness_of_fit`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.goodness_of_fit.html#scipy.stats.goodness_of_fit "scipy.stats.goodness_of_fit")(dist, data, \*\[, ...\]) | Perform a goodness of fit test comparing data to a distribution family. | | [`chisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chisquare.html#scipy.stats.chisquare "scipy.stats.chisquare")(f\_obs\[, f\_exp, ddof, axis, ...\]) | Perform Pearson's chi-squared test. | | [`power_divergence`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.power_divergence.html#scipy.stats.power_divergence "scipy.stats.power_divergence")(f\_obs\[, f\_exp, ddof, axis, ...\]) | Cressie-Read power divergence statistic and goodness of fit test. | Paired sample tests are often used to assess whether two samples were drawn from the same distribution; they differ from the independent sample tests below in that each observation in one sample is treated as paired with a closely-related observation in the other sample (e.g. when environmental factors are controlled between observations within a pair but not among pairs). They can also be interpreted or used as one-sample tests (e.g. tests on the mean or median of *differences* between paired observations). | | | |---|---| | [`ttest_rel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_rel.html#scipy.stats.ttest_rel "scipy.stats.ttest_rel")(a, b\[, axis, nan\_policy, ...\]) | Calculate the t-test on TWO RELATED samples of scores, a and b. | | [`wilcoxon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wilcoxon.html#scipy.stats.wilcoxon "scipy.stats.wilcoxon")(x\[, y, zero\_method, correction, ...\]) | Calculate the Wilcoxon signed-rank test. | ### Association/Correlation Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#association-correlation-tests "Link to this heading") These tests are often used to assess whether there is a relationship (e.g. linear) between paired observations in multiple samples or among the coordinates of multivariate observations. | | | |---|---| | [`linregress`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html#scipy.stats.linregress "scipy.stats.linregress")(x, y\[, alternative, axis, ...\]) | Calculate a linear least-squares regression for two sets of measurements. | | [`pearsonr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearsonr.html#scipy.stats.pearsonr "scipy.stats.pearsonr")(x, y, \*\[, alternative, method, axis\]) | Pearson correlation coefficient and p-value for testing non-correlation. | | [`spearmanrho`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanrho.html#scipy.stats.spearmanrho "scipy.stats.spearmanrho")(x, y, /, \*\[, alternative, ...\]) | Calculate a Spearman rho correlation coefficient with associated p-value. | | [`pointbiserialr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pointbiserialr.html#scipy.stats.pointbiserialr "scipy.stats.pointbiserialr")(x, y, \*\[, axis, nan\_policy, ...\]) | Calculate a point biserial correlation coefficient and its p-value. | | [`kendalltau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kendalltau.html#scipy.stats.kendalltau "scipy.stats.kendalltau")(x, y, \*\[, nan\_policy, method, ...\]) | Calculate Kendall's tau, a correlation measure for ordinal data. | | [`chatterjeexi`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chatterjeexi.html#scipy.stats.chatterjeexi "scipy.stats.chatterjeexi")(x, y, \*\[, axis, y\_continuous, ...\]) | Compute the xi correlation and perform a test of independence | | [`weightedtau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weightedtau.html#scipy.stats.weightedtau "scipy.stats.weightedtau")(x, y\[, rank, weigher, additive, ...\]) | Compute a weighted version of Kendall's \\(\\tau\\). | | [`somersd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.somersd.html#scipy.stats.somersd "scipy.stats.somersd")(x\[, y, alternative\]) | Calculates Somers' D, an asymmetric measure of ordinal association. | | [`siegelslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.siegelslopes.html#scipy.stats.siegelslopes "scipy.stats.siegelslopes")(y\[, x, method, axis, ...\]) | Computes the Siegel estimator for a set of points (x, y). | | [`theilslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.theilslopes.html#scipy.stats.theilslopes "scipy.stats.theilslopes")(y\[, x, alpha, method, axis, ...\]) | Computes the Theil-Sen estimator for a set of points (x, y). | | [`page_trend_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.page_trend_test.html#scipy.stats.page_trend_test "scipy.stats.page_trend_test")(data\[, ranked, ...\]) | Perform Page's Test, a measure of trend in observations between treatments. | | [`multiscale_graphcorr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multiscale_graphcorr.html#scipy.stats.multiscale_graphcorr "scipy.stats.multiscale_graphcorr")(x, y\[, ...\]) | Computes the Multiscale Graph Correlation (MGC) test statistic. | | [`spearmanr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html#scipy.stats.spearmanr "scipy.stats.spearmanr")(a\[, b, axis, nan\_policy, alternative\]) | Calculate a Spearman correlation coefficient with associated p-value. | These association tests and are to work with samples in the form of contingency tables. Supporting functions are available in [`scipy.stats.contingency`](https://docs.scipy.org/doc/scipy/reference/stats.contingency.html#module-scipy.stats.contingency "scipy.stats.contingency"). | | | |---|---| | [`chi2_contingency`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2_contingency.html#scipy.stats.chi2_contingency "scipy.stats.chi2_contingency")(observed\[, correction, ...\]) | Chi-square test of independence of variables in a contingency table. | | [`fisher_exact`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisher_exact.html#scipy.stats.fisher_exact "scipy.stats.fisher_exact")(table\[, alternative, method\]) | Perform a Fisher exact test on a contingency table. | | [`barnard_exact`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.barnard_exact.html#scipy.stats.barnard_exact "scipy.stats.barnard_exact")(table\[, alternative, pooled, n\]) | Perform a Barnard exact test on a 2x2 contingency table. | | [`boschloo_exact`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boschloo_exact.html#scipy.stats.boschloo_exact "scipy.stats.boschloo_exact")(table\[, alternative, n\]) | Perform Boschloo's exact test on a 2x2 contingency table. | ### Independent Sample Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#independent-sample-tests "Link to this heading") Independent sample tests are typically used to assess whether multiple samples were independently drawn from the same distribution or different distributions with a shared property (e.g. equal means). Some tests are specifically for comparing two samples. | | | |---|---| | [`ttest_ind_from_stats`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind_from_stats.html#scipy.stats.ttest_ind_from_stats "scipy.stats.ttest_ind_from_stats")(mean1, std1, nobs1, ...) | T-test for means of two independent samples from descriptive statistics. | | [`poisson_means_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson_means_test.html#scipy.stats.poisson_means_test "scipy.stats.poisson_means_test")(k1, n1, k2, n2, \*\[, ...\]) | Performs the Poisson means test, AKA the "E-test". | | [`ttest_ind`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html#scipy.stats.ttest_ind "scipy.stats.ttest_ind")(a, b, \*\[, axis, equal\_var, ...\]) | Calculate the T-test for the means of *two independent* samples of scores. | | [`mannwhitneyu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mannwhitneyu.html#scipy.stats.mannwhitneyu "scipy.stats.mannwhitneyu")(x, y\[, use\_continuity, ...\]) | Perform the Mann-Whitney U rank test on two independent samples. | | [`bws_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bws_test.html#scipy.stats.bws_test "scipy.stats.bws_test")(x, y, \*\[, alternative, method\]) | Perform the Baumgartner-Weiss-Schindler test on two independent samples. | | [`ranksums`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ranksums.html#scipy.stats.ranksums "scipy.stats.ranksums")(x, y\[, alternative, axis, ...\]) | Compute the Wilcoxon rank-sum statistic for two samples. | | [`brunnermunzel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.brunnermunzel.html#scipy.stats.brunnermunzel "scipy.stats.brunnermunzel")(x, y\[, alternative, ...\]) | Compute the Brunner-Munzel test on samples x and y. | | [`mood`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mood.html#scipy.stats.mood "scipy.stats.mood")(x, y\[, axis, alternative, nan\_policy, ...\]) | Perform Mood's test for equal scale parameters. | | [`ansari`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ansari.html#scipy.stats.ansari "scipy.stats.ansari")(x, y\[, alternative, axis, ...\]) | Perform the Ansari-Bradley test for equal scale parameters. | | [`cramervonmises_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cramervonmises_2samp.html#scipy.stats.cramervonmises_2samp "scipy.stats.cramervonmises_2samp")(x, y\[, method, axis, ...\]) | Perform the two-sample Cramér-von Mises test for goodness of fit. | | [`epps_singleton_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.epps_singleton_2samp.html#scipy.stats.epps_singleton_2samp "scipy.stats.epps_singleton_2samp")(x, y\[, t, axis, ...\]) | Compute the Epps-Singleton (ES) test statistic. | | [`ks_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ks_2samp.html#scipy.stats.ks_2samp "scipy.stats.ks_2samp")(data1, data2\[, alternative, ...\]) | Performs the two-sample Kolmogorov-Smirnov test for goodness of fit. | | [`kstest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstest.html#scipy.stats.kstest "scipy.stats.kstest")(rvs, cdf\[, args, N, alternative, ...\]) | Performs the (one-sample or two-sample) Kolmogorov-Smirnov test for goodness of fit. | Others are generalized to multiple samples. | | | |---|---| | [`f_oneway`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.f_oneway.html#scipy.stats.f_oneway "scipy.stats.f_oneway")(\*samples\[, axis, equal\_var, ...\]) | Perform one-way ANOVA. | | [`tukey_hsd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tukey_hsd.html#scipy.stats.tukey_hsd "scipy.stats.tukey_hsd")(\*args\[, equal\_var\]) | Perform Tukey's HSD test for equality of means over multiple treatments. | | [`dunnett`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dunnett.html#scipy.stats.dunnett "scipy.stats.dunnett")(\*samples, control\[, alternative, ...\]) | Dunnett's test: multiple comparisons of means against a control group. | | [`kruskal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kruskal.html#scipy.stats.kruskal "scipy.stats.kruskal")(\*samples\[, nan\_policy, axis, keepdims\]) | Compute the Kruskal-Wallis H-test for independent samples. | | [`alexandergovern`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.alexandergovern.html#scipy.stats.alexandergovern "scipy.stats.alexandergovern")(\*samples\[, nan\_policy, ...\]) | Performs the Alexander Govern test. | | [`fligner`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fligner.html#scipy.stats.fligner "scipy.stats.fligner")(\*samples\[, center, proportiontocut, ...\]) | Perform Fligner-Killeen test for equality of variance. | | [`levene`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levene.html#scipy.stats.levene "scipy.stats.levene")(\*samples\[, center, proportiontocut, ...\]) | Perform Levene test for equal variances. | | [`bartlett`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bartlett.html#scipy.stats.bartlett "scipy.stats.bartlett")(\*samples\[, axis, nan\_policy, keepdims\]) | Perform Bartlett's test for equal variances. | | [`median_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.median_test.html#scipy.stats.median_test "scipy.stats.median_test")(\*samples\[, ties, correction, ...\]) | Perform a Mood's median test. | | [`friedmanchisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.friedmanchisquare.html#scipy.stats.friedmanchisquare "scipy.stats.friedmanchisquare")(\*samples\[, axis, ...\]) | Compute the Friedman test for repeated samples. | | [`anderson_ksamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anderson_ksamp.html#scipy.stats.anderson_ksamp "scipy.stats.anderson_ksamp")(samples\[, midrank, variant, ...\]) | The Anderson-Darling test for k-samples. | ### Resampling and Monte Carlo Methods[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#resampling-and-monte-carlo-methods "Link to this heading") The following functions can reproduce the p-value and confidence interval results of most of the functions above, and often produce accurate results in a wider variety of conditions. They can also be used to perform hypothesis tests and generate confidence intervals for custom statistics. This flexibility comes at the cost of greater computational requirements and stochastic results. | | | |---|---| | [`monte_carlo_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.monte_carlo_test.html#scipy.stats.monte_carlo_test "scipy.stats.monte_carlo_test")(data, rvs, statistic, \*\[, ...\]) | Perform a Monte Carlo hypothesis test. | | [`permutation_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.permutation_test.html#scipy.stats.permutation_test "scipy.stats.permutation_test")(data, statistic, \*\[, ...\]) | Performs a permutation test of a given statistic on provided data. | | [`bootstrap`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bootstrap.html#scipy.stats.bootstrap "scipy.stats.bootstrap")(data, statistic, \*\[, n\_resamples, ...\]) | Compute a two-sided bootstrap confidence interval of a statistic. | | [`power`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.power.html#scipy.stats.power "scipy.stats.power")(test, rvs, n\_observations, \*\[, ...\]) | Simulate the power of a hypothesis test under an alternative hypothesis. | Instances of the following object can be passed into some hypothesis test functions to perform a resampling or Monte Carlo version of the hypothesis test. | | | |---|---| | [`MonteCarloMethod`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.MonteCarloMethod.html#scipy.stats.MonteCarloMethod "scipy.stats.MonteCarloMethod")(\[n\_resamples, batch, rvs, rng\]) | Configuration information for a Monte Carlo hypothesis test. | | [`PermutationMethod`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.PermutationMethod.html#scipy.stats.PermutationMethod "scipy.stats.PermutationMethod")(\[n\_resamples, batch, ...\]) | Configuration information for a permutation hypothesis test. | | [`BootstrapMethod`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.BootstrapMethod.html#scipy.stats.BootstrapMethod "scipy.stats.BootstrapMethod")(\[n\_resamples, batch, ...\]) | Configuration information for a bootstrap confidence interval. | ### Multiple Hypothesis Testing and Meta-Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#multiple-hypothesis-testing-and-meta-analysis "Link to this heading") These functions are for assessing the results of individual tests as a whole. Functions for performing specific multiple hypothesis tests (e.g. post hoc tests) are listed above. | | | |---|---| | [`combine_pvalues`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.combine_pvalues.html#scipy.stats.combine_pvalues "scipy.stats.combine_pvalues")(pvalues\[, method, weights, ...\]) | Combine p-values from independent tests that bear upon the same hypothesis. | | [`false_discovery_control`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.false_discovery_control.html#scipy.stats.false_discovery_control "scipy.stats.false_discovery_control")(ps, \*\[, axis, method\]) | Adjust p-values to control the false discovery rate. | The following functions are related to the tests above but do not belong in the above categories. ## Random Variables[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#random-variables "Link to this heading") | | | |---|---| | [`make_distribution`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.make_distribution.html#scipy.stats.make_distribution "scipy.stats.make_distribution")(dist) | Generate a *UnivariateDistribution* class from a compatible object | | [`Normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Normal.html#scipy.stats.Normal "scipy.stats.Normal")(\[mu, sigma\]) | Normal distribution with prescribed mean and standard deviation. | | [`Logistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Logistic.html#scipy.stats.Logistic "scipy.stats.Logistic")(\*\[, tol, validation\_policy, ...\]) | Standard logistic distribution. | | [`Uniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.html#scipy.stats.Uniform "scipy.stats.Uniform")(\*\[, a, b\]) | Uniform distribution. | | [`Binomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Binomial.html#scipy.stats.Binomial "scipy.stats.Binomial")(\*, n, p, \*\*kwargs) | Binomial distribution with prescribed success probability and number of trials | | [`Mixture`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Mixture.html#scipy.stats.Mixture "scipy.stats.Mixture")(components, \*\[, weights\]) | Representation of a mixture distribution. | | [`order_statistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.order_statistic.html#scipy.stats.order_statistic "scipy.stats.order_statistic")(X, /, \*, r, n) | Probability distribution of an order statistic | | [`truncate`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncate.html#scipy.stats.truncate "scipy.stats.truncate")(X\[, lb, ub\]) | Truncate the support of a random variable. | | [`abs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.abs.html#scipy.stats.abs "scipy.stats.abs")(X, /) | Absolute value of a random variable | | [`exp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exp.html#scipy.stats.exp "scipy.stats.exp")(X, /) | Natural exponential of a random variable | | [`log`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.log.html#scipy.stats.log "scipy.stats.log")(X, /) | Natural logarithm of a non-negative random variable | ## Quasi-Monte Carlo[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#quasi-monte-carlo "Link to this heading") - [Quasi-Monte Carlo submodule (`scipy.stats.qmc`)](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html) - [Quasi-Monte Carlo](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#quasi-monte-carlo) - [Engines](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#engines) - [QMCEngine](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.QMCEngine.html) - [Sobol](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.Sobol.html) - [Halton](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.Halton.html) - [LatinHypercube](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.LatinHypercube.html) - [PoissonDisk](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.PoissonDisk.html) - [MultinomialQMC](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.MultinomialQMC.html) - [MultivariateNormalQMC](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.MultivariateNormalQMC.html) - [Helpers](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#helpers) - [discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.discrepancy.html) - [geometric\_discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.geometric_discrepancy.html) - [update\_discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.update_discrepancy.html) - [scale](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.scale.html) - [Introduction to Quasi-Monte Carlo](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#introduction-to-quasi-monte-carlo) - [References](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#references) ## Contingency Tables[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#contingency-tables "Link to this heading") - [Contingency table functions (`scipy.stats.contingency`)](https://docs.scipy.org/doc/scipy/reference/stats.contingency.html) - [chi2\_contingency](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.chi2_contingency.html) - [`chi2_contingency`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.chi2_contingency.html#scipy.stats.contingency.chi2_contingency) - [relative\_risk](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.relative_risk.html) - [`relative_risk`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.relative_risk.html#scipy.stats.contingency.relative_risk) - [odds\_ratio](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.odds_ratio.html) - [`odds_ratio`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.odds_ratio.html#scipy.stats.contingency.odds_ratio) - [crosstab](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.crosstab.html) - [`crosstab`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.crosstab.html#scipy.stats.contingency.crosstab) - [association](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html) - [`association`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html#scipy.stats.contingency.association) - [expected\_freq](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.expected_freq.html) - [`expected_freq`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.expected_freq.html#scipy.stats.contingency.expected_freq) - [margins](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.margins.html) - [`margins`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.margins.html#scipy.stats.contingency.margins) ## Masked statistics functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#masked-statistics-functions "Link to this heading") - [Statistical functions for masked arrays (`scipy.stats.mstats`)](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html) - [Summary statistics](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#summary-statistics) - [describe](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.describe.html) - [`describe`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.describe.html#scipy.stats.mstats.describe) - [gmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.gmean.html) - [`gmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.gmean.html#scipy.stats.mstats.gmean) - [hmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hmean.html) - [`hmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hmean.html#scipy.stats.mstats.hmean) - [kurtosis](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosis.html) - [`kurtosis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosis.html#scipy.stats.mstats.kurtosis) - [mode](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mode.html) - [`mode`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mode.html#scipy.stats.mstats.mode) - [mquantiles](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles.html) - [`mquantiles`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles.html#scipy.stats.mstats.mquantiles) - [hdmedian](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdmedian.html) - [`hdmedian`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdmedian.html#scipy.stats.mstats.hdmedian) - [hdquantiles](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles.html) - [`hdquantiles`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles.html#scipy.stats.mstats.hdquantiles) - [hdquantiles\_sd](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles_sd.html) - [`hdquantiles_sd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles_sd.html#scipy.stats.mstats.hdquantiles_sd) - [idealfourths](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.idealfourths.html) - [`idealfourths`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.idealfourths.html#scipy.stats.mstats.idealfourths) - [plotting\_positions](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.plotting_positions.html) - [`plotting_positions`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.plotting_positions.html#scipy.stats.mstats.plotting_positions) - [meppf](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.meppf.html) - [`meppf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.meppf.html#scipy.stats.mstats.meppf) - [moment](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.moment.html) - [`moment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.moment.html#scipy.stats.mstats.moment) - [skew](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skew.html) - [`skew`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skew.html#scipy.stats.mstats.skew) - [tmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmean.html) - [`tmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmean.html#scipy.stats.mstats.tmean) - [tvar](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tvar.html) - [`tvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tvar.html#scipy.stats.mstats.tvar) - [tmin](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmin.html) - [`tmin`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmin.html#scipy.stats.mstats.tmin) - [tmax](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmax.html) - [`tmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmax.html#scipy.stats.mstats.tmax) - [tsem](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tsem.html) - [`tsem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tsem.html#scipy.stats.mstats.tsem) - [variation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.variation.html) - [`variation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.variation.html#scipy.stats.mstats.variation) - [find\_repeats](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.find_repeats.html) - [`find_repeats`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.find_repeats.html#scipy.stats.mstats.find_repeats) - [sem](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sem.html) - [`sem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sem.html#scipy.stats.mstats.sem) - [trimmed\_mean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean.html) - [`trimmed_mean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean.html#scipy.stats.mstats.trimmed_mean) - [trimmed\_mean\_ci](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean_ci.html) - [`trimmed_mean_ci`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean_ci.html#scipy.stats.mstats.trimmed_mean_ci) - [trimmed\_std](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_std.html) - [`trimmed_std`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_std.html#scipy.stats.mstats.trimmed_std) - [trimmed\_var](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_var.html) - [`trimmed_var`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_var.html#scipy.stats.mstats.trimmed_var) - [Frequency statistics](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#frequency-statistics) - [scoreatpercentile](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.scoreatpercentile.html) - [`scoreatpercentile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.scoreatpercentile.html#scipy.stats.mstats.scoreatpercentile) - [Correlation functions](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#correlation-functions) - [f\_oneway](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.f_oneway.html) - [`f_oneway`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.f_oneway.html#scipy.stats.mstats.f_oneway) - [pearsonr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pearsonr.html) - [`pearsonr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pearsonr.html#scipy.stats.mstats.pearsonr) - [spearmanr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.spearmanr.html) - [`spearmanr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.spearmanr.html#scipy.stats.mstats.spearmanr) - [pointbiserialr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pointbiserialr.html) - [`pointbiserialr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pointbiserialr.html#scipy.stats.mstats.pointbiserialr) - [kendalltau](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau.html) - [`kendalltau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau.html#scipy.stats.mstats.kendalltau) - [kendalltau\_seasonal](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau_seasonal.html) - [`kendalltau_seasonal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau_seasonal.html#scipy.stats.mstats.kendalltau_seasonal) - [linregress](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.linregress.html) - [`linregress`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.linregress.html#scipy.stats.mstats.linregress) - [siegelslopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.siegelslopes.html) - [`siegelslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.siegelslopes.html#scipy.stats.mstats.siegelslopes) - [theilslopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.theilslopes.html) - [`theilslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.theilslopes.html#scipy.stats.mstats.theilslopes) - [sen\_seasonal\_slopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sen_seasonal_slopes.html) - [`sen_seasonal_slopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sen_seasonal_slopes.html#scipy.stats.mstats.sen_seasonal_slopes) - [Statistical tests](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#statistical-tests) - [ttest\_1samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_1samp.html) - [`ttest_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_1samp.html#scipy.stats.mstats.ttest_1samp) - [ttest\_onesamp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_onesamp.html) - [`ttest_onesamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_onesamp.html#scipy.stats.mstats.ttest_onesamp) - [ttest\_ind](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_ind.html) - [`ttest_ind`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_ind.html#scipy.stats.mstats.ttest_ind) - [ttest\_rel](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_rel.html) - [`ttest_rel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_rel.html#scipy.stats.mstats.ttest_rel) - [chisquare](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.chisquare.html) - [`chisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.chisquare.html#scipy.stats.mstats.chisquare) - [kstest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kstest.html) - [`kstest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kstest.html#scipy.stats.mstats.kstest) - [ks\_2samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_2samp.html) - [`ks_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_2samp.html#scipy.stats.mstats.ks_2samp) - [ks\_1samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_1samp.html) - [`ks_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_1samp.html#scipy.stats.mstats.ks_1samp) - [ks\_twosamp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_twosamp.html) - [`ks_twosamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_twosamp.html#scipy.stats.mstats.ks_twosamp) - [mannwhitneyu](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mannwhitneyu.html) - [`mannwhitneyu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mannwhitneyu.html#scipy.stats.mstats.mannwhitneyu) - [rankdata](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rankdata.html) - [`rankdata`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rankdata.html#scipy.stats.mstats.rankdata) - [kruskal](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskal.html) - [`kruskal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskal.html#scipy.stats.mstats.kruskal) - [kruskalwallis](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskalwallis.html) - [`kruskalwallis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskalwallis.html#scipy.stats.mstats.kruskalwallis) - [friedmanchisquare](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.friedmanchisquare.html) - [`friedmanchisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.friedmanchisquare.html#scipy.stats.mstats.friedmanchisquare) - [brunnermunzel](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.brunnermunzel.html) - [`brunnermunzel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.brunnermunzel.html#scipy.stats.mstats.brunnermunzel) - [skewtest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skewtest.html) - [`skewtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skewtest.html#scipy.stats.mstats.skewtest) - [kurtosistest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosistest.html) - [`kurtosistest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosistest.html#scipy.stats.mstats.kurtosistest) - [normaltest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.normaltest.html) - [`normaltest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.normaltest.html#scipy.stats.mstats.normaltest) - [Transformations](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#transformations) - [obrientransform](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.obrientransform.html) - [`obrientransform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.obrientransform.html#scipy.stats.mstats.obrientransform) - [trim](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trim.html) - [`trim`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trim.html#scipy.stats.mstats.trim) - [trima](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trima.html) - [`trima`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trima.html#scipy.stats.mstats.trima) - [trimmed\_stde](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_stde.html) - [`trimmed_stde`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_stde.html#scipy.stats.mstats.trimmed_stde) - [trimr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimr.html) - [`trimr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimr.html#scipy.stats.mstats.trimr) - [trimtail](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimtail.html) - [`trimtail`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimtail.html#scipy.stats.mstats.trimtail) - [trimboth](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimboth.html) - [`trimboth`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimboth.html#scipy.stats.mstats.trimboth) - [winsorize](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.winsorize.html) - [`winsorize`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.winsorize.html#scipy.stats.mstats.winsorize) - [zmap](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zmap.html) - [`zmap`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zmap.html#scipy.stats.mstats.zmap) - [zscore](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zscore.html) - [`zscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zscore.html#scipy.stats.mstats.zscore) - [Other](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#other) - [argstoarray](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.argstoarray.html) - [`argstoarray`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.argstoarray.html#scipy.stats.mstats.argstoarray) - [count\_tied\_groups](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.count_tied_groups.html) - [`count_tied_groups`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.count_tied_groups.html#scipy.stats.mstats.count_tied_groups) - [msign](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.msign.html) - [`msign`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.msign.html#scipy.stats.mstats.msign) - [compare\_medians\_ms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.compare_medians_ms.html) - [`compare_medians_ms`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.compare_medians_ms.html#scipy.stats.mstats.compare_medians_ms) - [median\_cihs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.median_cihs.html) - [`median_cihs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.median_cihs.html#scipy.stats.mstats.median_cihs) - [mjci](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mjci.html) - [`mjci`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mjci.html#scipy.stats.mstats.mjci) - [mquantiles\_cimj](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles_cimj.html) - [`mquantiles_cimj`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles_cimj.html#scipy.stats.mstats.mquantiles_cimj) - [rsh](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rsh.html) - [`rsh`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rsh.html#scipy.stats.mstats.rsh) ## Other statistical functionality[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#other-statistical-functionality "Link to this heading") ### Transformations[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#transformations "Link to this heading") | | | |---|---| | [`boxcox`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html#scipy.stats.boxcox "scipy.stats.boxcox")(x\[, lmbda, alpha, optimizer\]) | Return a dataset transformed by a Box-Cox power transformation. | | [`boxcox_normmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox_normmax.html#scipy.stats.boxcox_normmax "scipy.stats.boxcox_normmax")(x\[, brack, method, ...\]) | Compute optimal Box-Cox transform parameter for input data. | | [`boxcox_llf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox_llf.html#scipy.stats.boxcox_llf "scipy.stats.boxcox_llf")(lmb, data, \*\[, axis, keepdims, ...\]) | The boxcox log-likelihood function. | | [`yeojohnson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson.html#scipy.stats.yeojohnson "scipy.stats.yeojohnson")(x\[, lmbda\]) | Return a dataset transformed by a Yeo-Johnson power transformation. | | [`yeojohnson_normmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson_normmax.html#scipy.stats.yeojohnson_normmax "scipy.stats.yeojohnson_normmax")(x\[, brack\]) | Compute optimal Yeo-Johnson transform parameter. | | [`yeojohnson_llf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson_llf.html#scipy.stats.yeojohnson_llf "scipy.stats.yeojohnson_llf")(lmb, data, \*\[, axis, ...\]) | The Yeo-Johnson log-likelihood function. | | [`obrientransform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.obrientransform.html#scipy.stats.obrientransform "scipy.stats.obrientransform")(\*samples) | Compute the O'Brien transform on input data (any number of arrays). | | [`sigmaclip`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sigmaclip.html#scipy.stats.sigmaclip "scipy.stats.sigmaclip")(a\[, low, high\]) | Perform iterative sigma-clipping of array elements. | | [`trimboth`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trimboth.html#scipy.stats.trimboth "scipy.stats.trimboth")(a, proportiontocut\[, axis\]) | Slice off a proportion of items from both ends of an array. | | [`trim1`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trim1.html#scipy.stats.trim1 "scipy.stats.trim1")(a, proportiontocut\[, tail, axis\]) | Slice off a proportion from ONE end of the passed array distribution. | | [`zmap`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zmap.html#scipy.stats.zmap "scipy.stats.zmap")(scores, compare\[, axis, ddof, nan\_policy\]) | Calculate the relative z-scores. | | [`zscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zscore.html#scipy.stats.zscore "scipy.stats.zscore")(a\[, axis, ddof, nan\_policy\]) | Compute the z score. | | [`gzscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gzscore.html#scipy.stats.gzscore "scipy.stats.gzscore")(a, \*\[, axis, ddof, nan\_policy\]) | Compute the geometric standard score. | ### Statistical distances[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-distances "Link to this heading") | | | |---|---| | [`wasserstein_distance`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance.html#scipy.stats.wasserstein_distance "scipy.stats.wasserstein_distance")(u\_values, v\_values\[, ...\]) | Compute the Wasserstein-1 distance between two 1D discrete distributions. | | [`wasserstein_distance_nd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance_nd.html#scipy.stats.wasserstein_distance_nd "scipy.stats.wasserstein_distance_nd")(u\_values, v\_values) | Compute the Wasserstein-1 distance between two N-D discrete distributions. | | [`energy_distance`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.energy_distance.html#scipy.stats.energy_distance "scipy.stats.energy_distance")(u\_values, v\_values\[, ...\]) | Compute the energy distance between two 1D distributions. | ### Sampling[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#sampling "Link to this heading") - [Random Number Generators (`scipy.stats.sampling`)](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html) - [Generators Wrapped](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#generators-wrapped) - [For continuous distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#for-continuous-distributions) - [NumericalInverseHermite](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.NumericalInverseHermite.html) - [NumericalInversePolynomial](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.NumericalInversePolynomial.html) - [TransformedDensityRejection](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.TransformedDensityRejection.html) - [SimpleRatioUniforms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.SimpleRatioUniforms.html) - [RatioUniforms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.RatioUniforms.html) - [For discrete distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#for-discrete-distributions) - [DiscreteAliasUrn](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.DiscreteAliasUrn.html) - [DiscreteGuideTable](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.DiscreteGuideTable.html) - [Warnings / Errors used in `scipy.stats.sampling`](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#warnings-errors-used-in-scipy-stats-sampling) - [scipy.stats.sampling.UNURANError](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.UNURANError.html) - [Generators for pre-defined distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#generators-for-pre-defined-distributions) - [FastGeneratorInversion](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.html) - [`FastGeneratorInversion`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.html#scipy.stats.sampling.FastGeneratorInversion) - [evaluate\_error](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.evaluate_error.html) - [ppf](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.ppf.html) - [qrvs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.qrvs.html) - [rvs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.rvs.html) - [support](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.support.html) ### Fitting / Survival Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#fitting-survival-analysis "Link to this heading") | | | |---|---| | [`fit`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fit.html#scipy.stats.fit "scipy.stats.fit")(dist, data\[, bounds, guess, method, ...\]) | Fit a discrete or continuous distribution to data | | [`ecdf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ecdf.html#scipy.stats.ecdf "scipy.stats.ecdf")(sample) | Empirical cumulative distribution function of a sample. | | [`logrank`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.logrank.html#scipy.stats.logrank "scipy.stats.logrank")(x, y\[, alternative\]) | Compare the survival distributions of two samples via the logrank test. | ### Directional statistical functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#directional-statistical-functions "Link to this heading") | | | |---|---| | [`directional_stats`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.directional_stats.html#scipy.stats.directional_stats "scipy.stats.directional_stats")(samples, \*\[, axis, normalize\]) | Computes sample statistics for directional data. | | [`circmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.circmean.html#scipy.stats.circmean "scipy.stats.circmean")(samples\[, high, low, axis, ...\]) | Compute the circular mean of a sample of angle observations. | | [`circvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.circvar.html#scipy.stats.circvar "scipy.stats.circvar")(samples\[, high, low, axis, ...\]) | Compute the circular variance of a sample of angle observations. | | [`circstd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.circstd.html#scipy.stats.circstd "scipy.stats.circstd")(samples\[, high, low, axis, ...\]) | Compute the circular standard deviation of a sample of angle observations. | ### Sensitivity Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#sensitivity-analysis "Link to this heading") | | | |---|---| | [`sobol_indices`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sobol_indices.html#scipy.stats.sobol_indices "scipy.stats.sobol_indices")(\*, func, n\[, dists, method, ...\]) | Global sensitivity indices of Sobol'. | ### Plot-tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#plot-tests "Link to this heading") | | | |---|---| | [`ppcc_max`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ppcc_max.html#scipy.stats.ppcc_max "scipy.stats.ppcc_max")(x\[, brack, dist\]) | Calculate the shape parameter that maximizes the PPCC. | | [`ppcc_plot`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ppcc_plot.html#scipy.stats.ppcc_plot "scipy.stats.ppcc_plot")(x, a, b\[, dist, plot, N\]) | Calculate and optionally plot probability plot correlation coefficient. | | [`probplot`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.probplot.html#scipy.stats.probplot "scipy.stats.probplot")(x\[, sparams, dist, fit, plot, rvalue\]) | Calculate quantiles for a probability plot, and optionally show the plot. | | [`boxcox_normplot`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox_normplot.html#scipy.stats.boxcox_normplot "scipy.stats.boxcox_normplot")(x, la, lb\[, plot, N\]) | Compute parameters for a Box-Cox normality plot, optionally show it. | | [`yeojohnson_normplot`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson_normplot.html#scipy.stats.yeojohnson_normplot "scipy.stats.yeojohnson_normplot")(x, la, lb\[, plot, N\]) | Compute parameters for a Yeo-Johnson normality plot, optionally show it. | ### Univariate and multivariate kernel density estimation[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#univariate-and-multivariate-kernel-density-estimation "Link to this heading") | | | |---|---| | [`gaussian_kde`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gaussian_kde.html#scipy.stats.gaussian_kde "scipy.stats.gaussian_kde")(dataset\[, bw\_method, weights\]) | Representation of a kernel-density estimate using Gaussian kernels. | ### Warnings / Errors used in [`scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats "scipy.stats")[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#warnings-errors-used-in-scipy-stats "Link to this heading") | | | |---|---| | [`DegenerateDataWarning`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.DegenerateDataWarning.html#scipy.stats.DegenerateDataWarning "scipy.stats.DegenerateDataWarning")(\[msg\]) | Warns when data is degenerate and results may not be reliable. | | [`ConstantInputWarning`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ConstantInputWarning.html#scipy.stats.ConstantInputWarning "scipy.stats.ConstantInputWarning")(\[msg\]) | Warns when all values in data are exactly equal. | | [`NearConstantInputWarning`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.NearConstantInputWarning.html#scipy.stats.NearConstantInputWarning "scipy.stats.NearConstantInputWarning")(\[msg\]) | Warns when all values in data are nearly equal. | | [`FitError`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.FitError.html#scipy.stats.FitError "scipy.stats.FitError")(\[msg\]) | Represents an error condition when fitting a distribution to data. | ### Result classes used in [`scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats "scipy.stats")[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#result-classes-used-in-scipy-stats "Link to this heading") Warning These classes are private, but they are included here because instances of them are returned by other statistical functions. User import and instantiation is not supported. - [Result classes](https://docs.scipy.org/doc/scipy/reference/stats._result_classes.html) - [RelativeRiskResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.RelativeRiskResult.html) - [BinomTestResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.BinomTestResult.html) - [TukeyHSDResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.TukeyHSDResult.html) - [DunnettResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.DunnettResult.html) - [PearsonRResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.PearsonRResult.html) - [FitResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.FitResult.html) - [OddsRatioResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.OddsRatioResult.html) - [TtestResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.TtestResult.html) - [ECDFResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.ECDFResult.html) - [EmpiricalDistributionFunction](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.EmpiricalDistributionFunction.html) [previous sinc](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.sinc.html "previous page") [next rv\_continuous](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.html "next page") On this page - [Probability distributions](https://docs.scipy.org/doc/scipy/reference/stats.html#probability-distributions) - [Continuous distributions](https://docs.scipy.org/doc/scipy/reference/stats.html#continuous-distributions) - [Multivariate distributions](https://docs.scipy.org/doc/scipy/reference/stats.html#multivariate-distributions) - [Discrete distributions](https://docs.scipy.org/doc/scipy/reference/stats.html#discrete-distributions) - [Summary statistics](https://docs.scipy.org/doc/scipy/reference/stats.html#summary-statistics) - [Frequency statistics](https://docs.scipy.org/doc/scipy/reference/stats.html#frequency-statistics) - [Hypothesis Tests and related functions](https://docs.scipy.org/doc/scipy/reference/stats.html#hypothesis-tests-and-related-functions) - [One Sample Tests / Paired Sample Tests](https://docs.scipy.org/doc/scipy/reference/stats.html#one-sample-tests-paired-sample-tests) - [Association/Correlation Tests](https://docs.scipy.org/doc/scipy/reference/stats.html#association-correlation-tests) - [Independent Sample Tests](https://docs.scipy.org/doc/scipy/reference/stats.html#independent-sample-tests) - [Resampling and Monte Carlo Methods](https://docs.scipy.org/doc/scipy/reference/stats.html#resampling-and-monte-carlo-methods) - [Multiple Hypothesis Testing and Meta-Analysis](https://docs.scipy.org/doc/scipy/reference/stats.html#multiple-hypothesis-testing-and-meta-analysis) - [Random Variables](https://docs.scipy.org/doc/scipy/reference/stats.html#random-variables) - [Quasi-Monte Carlo](https://docs.scipy.org/doc/scipy/reference/stats.html#quasi-monte-carlo) - [Contingency Tables](https://docs.scipy.org/doc/scipy/reference/stats.html#contingency-tables) - [Masked statistics functions](https://docs.scipy.org/doc/scipy/reference/stats.html#masked-statistics-functions) - [Other statistical functionality](https://docs.scipy.org/doc/scipy/reference/stats.html#other-statistical-functionality) - [Transformations](https://docs.scipy.org/doc/scipy/reference/stats.html#transformations) - [Statistical distances](https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-distances) - [Sampling](https://docs.scipy.org/doc/scipy/reference/stats.html#sampling) - [Fitting / Survival Analysis](https://docs.scipy.org/doc/scipy/reference/stats.html#fitting-survival-analysis) - [Directional statistical functions](https://docs.scipy.org/doc/scipy/reference/stats.html#directional-statistical-functions) - [Sensitivity Analysis](https://docs.scipy.org/doc/scipy/reference/stats.html#sensitivity-analysis) - [Plot-tests](https://docs.scipy.org/doc/scipy/reference/stats.html#plot-tests) - [Univariate and multivariate kernel density estimation](https://docs.scipy.org/doc/scipy/reference/stats.html#univariate-and-multivariate-kernel-density-estimation) - [Warnings / Errors used in `scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#warnings-errors-used-in-scipy-stats) - [Result classes used in `scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#result-classes-used-in-scipy-stats) © Copyright 2008, The SciPy community. Created using [Sphinx](https://www.sphinx-doc.org/) 8.1.3. Built with the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) 0.16.1.
Readable Markdown
This module contains a large number of probability distributions, summary and frequency statistics, correlation functions and statistical tests, masked statistics, kernel density estimation, quasi-Monte Carlo functionality, and more. Statistics is a very large area, and there are topics that are out of scope for SciPy and are covered by other packages. Some of the most important ones are: - [statsmodels](https://www.statsmodels.org/stable/index.html): regression, linear models, time series analysis, extensions to topics also covered by `scipy.stats`. - [Pandas](https://pandas.pydata.org/): tabular data, time series functionality, interfaces to other statistical languages. - [PyMC](https://docs.pymc.io/): Bayesian statistical modeling, probabilistic machine learning. - [scikit-learn](https://scikit-learn.org/): classification, regression, model selection. - [Seaborn](https://seaborn.pydata.org/): statistical data visualization. - [rpy2](https://rpy2.github.io/): Python to R bridge. ## Probability distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#probability-distributions "Link to this heading") Each univariate distribution is an instance of a subclass of [`rv_continuous`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.html#scipy.stats.rv_continuous "scipy.stats.rv_continuous") ([`rv_discrete`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_discrete.html#scipy.stats.rv_discrete "scipy.stats.rv_discrete") for discrete distributions): ### Continuous distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#continuous-distributions "Link to this heading") | | | |---|---| | [`alpha`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.alpha.html#scipy.stats.alpha "scipy.stats.alpha") | An alpha continuous random variable. | | [`anglit`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anglit.html#scipy.stats.anglit "scipy.stats.anglit") | An anglit continuous random variable. | | [`arcsine`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.arcsine.html#scipy.stats.arcsine "scipy.stats.arcsine") | An arcsine continuous random variable. | | [`argus`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.argus.html#scipy.stats.argus "scipy.stats.argus") | Argus distribution | | [`beta`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.beta.html#scipy.stats.beta "scipy.stats.beta") | A beta continuous random variable. | | [`betaprime`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betaprime.html#scipy.stats.betaprime "scipy.stats.betaprime") | A beta prime continuous random variable. | | [`bradford`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bradford.html#scipy.stats.bradford "scipy.stats.bradford") | A Bradford continuous random variable. | | [`burr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.burr.html#scipy.stats.burr "scipy.stats.burr") | A Burr (Type III) continuous random variable. | | [`burr12`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.burr12.html#scipy.stats.burr12 "scipy.stats.burr12") | A Burr (Type XII) continuous random variable. | | [`cauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cauchy.html#scipy.stats.cauchy "scipy.stats.cauchy") | A Cauchy continuous random variable. | | [`chi`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi.html#scipy.stats.chi "scipy.stats.chi") | A chi continuous random variable. | | [`chi2`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html#scipy.stats.chi2 "scipy.stats.chi2") | A chi-squared continuous random variable. | | [`cosine`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cosine.html#scipy.stats.cosine "scipy.stats.cosine") | A cosine continuous random variable. | | [`crystalball`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.crystalball.html#scipy.stats.crystalball "scipy.stats.crystalball") | Crystalball distribution | | [`dgamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dgamma.html#scipy.stats.dgamma "scipy.stats.dgamma") | A double gamma continuous random variable. | | [`dpareto_lognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dpareto_lognorm.html#scipy.stats.dpareto_lognorm "scipy.stats.dpareto_lognorm") | A double Pareto lognormal continuous random variable. | | [`dweibull`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dweibull.html#scipy.stats.dweibull "scipy.stats.dweibull") | A double Weibull continuous random variable. | | [`erlang`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.erlang.html#scipy.stats.erlang "scipy.stats.erlang") | An Erlang continuous random variable. | | [`expon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.expon.html#scipy.stats.expon "scipy.stats.expon") | An exponential continuous random variable. | | [`exponnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponnorm.html#scipy.stats.exponnorm "scipy.stats.exponnorm") | An exponentially modified Normal continuous random variable. | | [`exponweib`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponweib.html#scipy.stats.exponweib "scipy.stats.exponweib") | An exponentiated Weibull continuous random variable. | | [`exponpow`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exponpow.html#scipy.stats.exponpow "scipy.stats.exponpow") | An exponential power continuous random variable. | | [`f`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.f.html#scipy.stats.f "scipy.stats.f") | An F continuous random variable. | | [`fatiguelife`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fatiguelife.html#scipy.stats.fatiguelife "scipy.stats.fatiguelife") | A fatigue-life (Birnbaum-Saunders) continuous random variable. | | [`fisk`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisk.html#scipy.stats.fisk "scipy.stats.fisk") | A Fisk continuous random variable. | | [`foldcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.foldcauchy.html#scipy.stats.foldcauchy "scipy.stats.foldcauchy") | A folded Cauchy continuous random variable. | | [`foldnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.foldnorm.html#scipy.stats.foldnorm "scipy.stats.foldnorm") | A folded normal continuous random variable. | | [`genlogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genlogistic.html#scipy.stats.genlogistic "scipy.stats.genlogistic") | A generalized logistic continuous random variable. | | [`gennorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gennorm.html#scipy.stats.gennorm "scipy.stats.gennorm") | A generalized normal continuous random variable. | | [`genpareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genpareto.html#scipy.stats.genpareto "scipy.stats.genpareto") | A generalized Pareto continuous random variable. | | [`genexpon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genexpon.html#scipy.stats.genexpon "scipy.stats.genexpon") | A generalized exponential continuous random variable. | | [`genextreme`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genextreme.html#scipy.stats.genextreme "scipy.stats.genextreme") | A generalized extreme value continuous random variable. | | [`gausshyper`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gausshyper.html#scipy.stats.gausshyper "scipy.stats.gausshyper") | A Gauss hypergeometric continuous random variable. | | [`gamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gamma.html#scipy.stats.gamma "scipy.stats.gamma") | A gamma continuous random variable. | | [`gengamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gengamma.html#scipy.stats.gengamma "scipy.stats.gengamma") | A generalized gamma continuous random variable. | | [`genhalflogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genhalflogistic.html#scipy.stats.genhalflogistic "scipy.stats.genhalflogistic") | A generalized half-logistic continuous random variable. | | [`genhyperbolic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.genhyperbolic.html#scipy.stats.genhyperbolic "scipy.stats.genhyperbolic") | A generalized hyperbolic continuous random variable. | | [`geninvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.geninvgauss.html#scipy.stats.geninvgauss "scipy.stats.geninvgauss") | A Generalized Inverse Gaussian continuous random variable. | | [`gibrat`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gibrat.html#scipy.stats.gibrat "scipy.stats.gibrat") | A Gibrat continuous random variable. | | [`gompertz`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gompertz.html#scipy.stats.gompertz "scipy.stats.gompertz") | A Gompertz (or truncated Gumbel) continuous random variable. | | [`gumbel_r`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gumbel_r.html#scipy.stats.gumbel_r "scipy.stats.gumbel_r") | A right-skewed Gumbel continuous random variable. | | [`gumbel_l`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gumbel_l.html#scipy.stats.gumbel_l "scipy.stats.gumbel_l") | A left-skewed Gumbel continuous random variable. | | [`halfcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfcauchy.html#scipy.stats.halfcauchy "scipy.stats.halfcauchy") | A Half-Cauchy continuous random variable. | | [`halflogistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halflogistic.html#scipy.stats.halflogistic "scipy.stats.halflogistic") | A half-logistic continuous random variable. | | [`halfnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfnorm.html#scipy.stats.halfnorm "scipy.stats.halfnorm") | A half-normal continuous random variable. | | [`halfgennorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.halfgennorm.html#scipy.stats.halfgennorm "scipy.stats.halfgennorm") | The upper half of a generalized normal continuous random variable. | | [`hypsecant`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypsecant.html#scipy.stats.hypsecant "scipy.stats.hypsecant") | A hyperbolic secant continuous random variable. | | [`invgamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invgamma.html#scipy.stats.invgamma "scipy.stats.invgamma") | An inverted gamma continuous random variable. | | [`invgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invgauss.html#scipy.stats.invgauss "scipy.stats.invgauss") | An inverse Gaussian continuous random variable. | | [`invweibull`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invweibull.html#scipy.stats.invweibull "scipy.stats.invweibull") | An inverted Weibull continuous random variable. | | [`irwinhall`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.irwinhall.html#scipy.stats.irwinhall "scipy.stats.irwinhall") | An Irwin-Hall (Uniform Sum) continuous random variable. | | [`jf_skew_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.jf_skew_t.html#scipy.stats.jf_skew_t "scipy.stats.jf_skew_t") | Jones and Faddy skew-t distribution. | | [`johnsonsb`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.johnsonsb.html#scipy.stats.johnsonsb "scipy.stats.johnsonsb") | A Johnson SB continuous random variable. | | [`johnsonsu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.johnsonsu.html#scipy.stats.johnsonsu "scipy.stats.johnsonsu") | A Johnson SU continuous random variable. | | [`kappa4`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kappa4.html#scipy.stats.kappa4 "scipy.stats.kappa4") | Kappa 4 parameter distribution. | | [`kappa3`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kappa3.html#scipy.stats.kappa3 "scipy.stats.kappa3") | Kappa 3 parameter distribution. | | [`ksone`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ksone.html#scipy.stats.ksone "scipy.stats.ksone") | Kolmogorov-Smirnov one-sided test statistic distribution. | | [`kstwo`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstwo.html#scipy.stats.kstwo "scipy.stats.kstwo") | Kolmogorov-Smirnov two-sided test statistic distribution. | | [`kstwobign`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstwobign.html#scipy.stats.kstwobign "scipy.stats.kstwobign") | Limiting distribution of scaled Kolmogorov-Smirnov two-sided test statistic. | | [`landau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.landau.html#scipy.stats.landau "scipy.stats.landau") | A Landau continuous random variable. | | [`laplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.laplace.html#scipy.stats.laplace "scipy.stats.laplace") | A Laplace continuous random variable. | | [`laplace_asymmetric`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.laplace_asymmetric.html#scipy.stats.laplace_asymmetric "scipy.stats.laplace_asymmetric") | An asymmetric Laplace continuous random variable. | | [`levy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy.html#scipy.stats.levy "scipy.stats.levy") | A Levy continuous random variable. | | [`levy_l`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy_l.html#scipy.stats.levy_l "scipy.stats.levy_l") | A left-skewed Levy continuous random variable. | | [`levy_stable`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levy_stable.html#scipy.stats.levy_stable "scipy.stats.levy_stable") | A Levy-stable continuous random variable. | | [`logistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.logistic.html#scipy.stats.logistic "scipy.stats.logistic") | A logistic (or Sech-squared) continuous random variable. | | [`loggamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loggamma.html#scipy.stats.loggamma "scipy.stats.loggamma") | A log gamma continuous random variable. | | [`loglaplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loglaplace.html#scipy.stats.loglaplace "scipy.stats.loglaplace") | A log-Laplace continuous random variable. | | [`lognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lognorm.html#scipy.stats.lognorm "scipy.stats.lognorm") | A lognormal continuous random variable. | | [`loguniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.loguniform.html#scipy.stats.loguniform "scipy.stats.loguniform") | A loguniform or reciprocal continuous random variable. | | [`lomax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lomax.html#scipy.stats.lomax "scipy.stats.lomax") | A Lomax (Pareto of the second kind) continuous random variable. | | [`maxwell`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.maxwell.html#scipy.stats.maxwell "scipy.stats.maxwell") | A Maxwell continuous random variable. | | [`mielke`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mielke.html#scipy.stats.mielke "scipy.stats.mielke") | A Mielke Beta-Kappa / Dagum continuous random variable. | | [`moyal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moyal.html#scipy.stats.moyal "scipy.stats.moyal") | A Moyal continuous random variable. | | [`nakagami`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nakagami.html#scipy.stats.nakagami "scipy.stats.nakagami") | A Nakagami continuous random variable. | | [`ncx2`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ncx2.html#scipy.stats.ncx2 "scipy.stats.ncx2") | A non-central chi-squared continuous random variable. | | [`ncf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ncf.html#scipy.stats.ncf "scipy.stats.ncf") | A non-central F distribution continuous random variable. | | [`nct`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nct.html#scipy.stats.nct "scipy.stats.nct") | A non-central Student's t continuous random variable. | | [`norm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html#scipy.stats.norm "scipy.stats.norm") | A normal continuous random variable. | | [`norminvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norminvgauss.html#scipy.stats.norminvgauss "scipy.stats.norminvgauss") | A Normal Inverse Gaussian continuous random variable. | | [`pareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pareto.html#scipy.stats.pareto "scipy.stats.pareto") | A Pareto continuous random variable. | | [`pearson3`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearson3.html#scipy.stats.pearson3 "scipy.stats.pearson3") | A pearson type III continuous random variable. | | [`powerlaw`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powerlaw.html#scipy.stats.powerlaw "scipy.stats.powerlaw") | A power-function continuous random variable. | | [`powerlognorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powerlognorm.html#scipy.stats.powerlognorm "scipy.stats.powerlognorm") | A power log-normal continuous random variable. | | [`powernorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.powernorm.html#scipy.stats.powernorm "scipy.stats.powernorm") | A power normal continuous random variable. | | [`rdist`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rdist.html#scipy.stats.rdist "scipy.stats.rdist") | An R-distributed (symmetric beta) continuous random variable. | | [`rayleigh`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rayleigh.html#scipy.stats.rayleigh "scipy.stats.rayleigh") | A Rayleigh continuous random variable. | | [`rel_breitwigner`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rel_breitwigner.html#scipy.stats.rel_breitwigner "scipy.stats.rel_breitwigner") | A relativistic Breit-Wigner random variable. | | [`rice`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rice.html#scipy.stats.rice "scipy.stats.rice") | A Rice continuous random variable. | | [`recipinvgauss`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.recipinvgauss.html#scipy.stats.recipinvgauss "scipy.stats.recipinvgauss") | A reciprocal inverse Gaussian continuous random variable. | | [`semicircular`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.semicircular.html#scipy.stats.semicircular "scipy.stats.semicircular") | A semicircular continuous random variable. | | [`skewcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewcauchy.html#scipy.stats.skewcauchy "scipy.stats.skewcauchy") | A skewed Cauchy random variable. | | [`skewnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewnorm.html#scipy.stats.skewnorm "scipy.stats.skewnorm") | A skew-normal random variable. | | [`studentized_range`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.studentized_range.html#scipy.stats.studentized_range "scipy.stats.studentized_range") | A studentized range continuous random variable. | | [`t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.t.html#scipy.stats.t "scipy.stats.t") | A Student's t continuous random variable. | | [`trapezoid`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trapezoid.html#scipy.stats.trapezoid "scipy.stats.trapezoid") | A trapezoidal continuous random variable. | | [`triang`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.triang.html#scipy.stats.triang "scipy.stats.triang") | A triangular continuous random variable. | | [`truncexpon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncexpon.html#scipy.stats.truncexpon "scipy.stats.truncexpon") | A truncated exponential continuous random variable. | | [`truncnorm`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html#scipy.stats.truncnorm "scipy.stats.truncnorm") | A truncated normal continuous random variable. | | [`truncpareto`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncpareto.html#scipy.stats.truncpareto "scipy.stats.truncpareto") | An upper truncated Pareto continuous random variable. | | [`truncweibull_min`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncweibull_min.html#scipy.stats.truncweibull_min "scipy.stats.truncweibull_min") | A doubly truncated Weibull minimum continuous random variable. | | [`tukeylambda`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tukeylambda.html#scipy.stats.tukeylambda "scipy.stats.tukeylambda") | A Tukey-Lamdba continuous random variable. | | [`uniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.uniform.html#scipy.stats.uniform "scipy.stats.uniform") | A uniform continuous random variable. | | [`vonmises`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises.html#scipy.stats.vonmises "scipy.stats.vonmises") | A Von Mises continuous random variable. | | [`vonmises_line`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises_line.html#scipy.stats.vonmises_line "scipy.stats.vonmises_line") | A Von Mises continuous random variable. | | [`wald`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wald.html#scipy.stats.wald "scipy.stats.wald") | A Wald continuous random variable. | | [`weibull_min`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weibull_min.html#scipy.stats.weibull_min "scipy.stats.weibull_min") | Weibull minimum continuous random variable. | | [`weibull_max`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weibull_max.html#scipy.stats.weibull_max "scipy.stats.weibull_max") | Weibull maximum continuous random variable. | | [`wrapcauchy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wrapcauchy.html#scipy.stats.wrapcauchy "scipy.stats.wrapcauchy") | A wrapped Cauchy continuous random variable. | The `fit` method of the univariate continuous distributions uses maximum likelihood estimation to fit the distribution to a data set. The `fit` method can accept regular data or *censored data*. Censored data is represented with instances of the [`CensoredData`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.CensoredData.html#scipy.stats.CensoredData "scipy.stats.CensoredData") class. ### Multivariate distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#multivariate-distributions "Link to this heading") | | | |---|---| | [`multivariate_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html#scipy.stats.multivariate_normal "scipy.stats.multivariate_normal") | A multivariate normal random variable. | | [`matrix_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.matrix_normal.html#scipy.stats.matrix_normal "scipy.stats.matrix_normal") | A matrix normal random variable. | | [`dirichlet`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dirichlet.html#scipy.stats.dirichlet "scipy.stats.dirichlet") | A Dirichlet random variable. | | [`dirichlet_multinomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dirichlet_multinomial.html#scipy.stats.dirichlet_multinomial "scipy.stats.dirichlet_multinomial") | A Dirichlet multinomial random variable. | | [`wishart`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wishart.html#scipy.stats.wishart "scipy.stats.wishart") | A Wishart random variable. | | [`invwishart`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invwishart.html#scipy.stats.invwishart "scipy.stats.invwishart") | An inverse Wishart random variable. | | [`multinomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multinomial.html#scipy.stats.multinomial "scipy.stats.multinomial") | A multinomial random variable. | | [`special_ortho_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.special_ortho_group.html#scipy.stats.special_ortho_group "scipy.stats.special_ortho_group") | A Special Orthogonal matrix (SO(N)) random variable. | | [`ortho_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ortho_group.html#scipy.stats.ortho_group "scipy.stats.ortho_group") | An Orthogonal matrix (O(N)) random variable. | | [`unitary_group`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.unitary_group.html#scipy.stats.unitary_group "scipy.stats.unitary_group") | A matrix-valued U(N) random variable. | | [`random_correlation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.random_correlation.html#scipy.stats.random_correlation "scipy.stats.random_correlation") | A random correlation matrix. | | [`multivariate_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_t.html#scipy.stats.multivariate_t "scipy.stats.multivariate_t") | A multivariate t-distributed random variable. | | [`multivariate_hypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_hypergeom.html#scipy.stats.multivariate_hypergeom "scipy.stats.multivariate_hypergeom") | A multivariate hypergeometric random variable. | | [`normal_inverse_gamma`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normal_inverse_gamma.html#scipy.stats.normal_inverse_gamma "scipy.stats.normal_inverse_gamma") | Normal-inverse-gamma distribution. | | [`random_table`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.random_table.html#scipy.stats.random_table "scipy.stats.random_table") | Contingency tables from independent samples with fixed marginal sums. | | [`uniform_direction`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.uniform_direction.html#scipy.stats.uniform_direction "scipy.stats.uniform_direction") | A vector-valued uniform direction. | | [`vonmises_fisher`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises_fisher.html#scipy.stats.vonmises_fisher "scipy.stats.vonmises_fisher") | A von Mises-Fisher variable. | | [`matrix_t`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.matrix_t.html#scipy.stats.matrix_t "scipy.stats.matrix_t") | A matrix t-random variable. | [`scipy.stats.multivariate_normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html#scipy.stats.multivariate_normal "scipy.stats.multivariate_normal") methods accept instances of the following class to represent the covariance. ### Discrete distributions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#discrete-distributions "Link to this heading") | | | |---|---| | [`bernoulli`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bernoulli.html#scipy.stats.bernoulli "scipy.stats.bernoulli") | A Bernoulli discrete random variable. | | [`betabinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betabinom.html#scipy.stats.betabinom "scipy.stats.betabinom") | A beta-binomial discrete random variable. | | [`betanbinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betanbinom.html#scipy.stats.betanbinom "scipy.stats.betanbinom") | A beta-negative-binomial discrete random variable. | | [`binom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binom.html#scipy.stats.binom "scipy.stats.binom") | A binomial discrete random variable. | | [`boltzmann`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boltzmann.html#scipy.stats.boltzmann "scipy.stats.boltzmann") | A Boltzmann (Truncated Discrete Exponential) random variable. | | [`dlaplace`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dlaplace.html#scipy.stats.dlaplace "scipy.stats.dlaplace") | A Laplacian discrete random variable. | | [`geom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.geom.html#scipy.stats.geom "scipy.stats.geom") | A geometric discrete random variable. | | [`hypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypergeom.html#scipy.stats.hypergeom "scipy.stats.hypergeom") | A hypergeometric discrete random variable. | | [`logser`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.logser.html#scipy.stats.logser "scipy.stats.logser") | A Logarithmic (Log-Series, Series) discrete random variable. | | [`nbinom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nbinom.html#scipy.stats.nbinom "scipy.stats.nbinom") | A negative binomial discrete random variable. | | [`nchypergeom_fisher`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nchypergeom_fisher.html#scipy.stats.nchypergeom_fisher "scipy.stats.nchypergeom_fisher") | A Fisher's noncentral hypergeometric discrete random variable. | | [`nchypergeom_wallenius`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nchypergeom_wallenius.html#scipy.stats.nchypergeom_wallenius "scipy.stats.nchypergeom_wallenius") | A Wallenius' noncentral hypergeometric discrete random variable. | | [`nhypergeom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.nhypergeom.html#scipy.stats.nhypergeom "scipy.stats.nhypergeom") | A negative hypergeometric discrete random variable. | | [`planck`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.planck.html#scipy.stats.planck "scipy.stats.planck") | A Planck discrete exponential random variable. | | [`poisson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html#scipy.stats.poisson "scipy.stats.poisson") | A Poisson discrete random variable. | | [`poisson_binom`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson_binom.html#scipy.stats.poisson_binom "scipy.stats.poisson_binom") | A Poisson Binomial discrete random variable. | | [`randint`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.randint.html#scipy.stats.randint "scipy.stats.randint") | A uniform discrete random variable. | | [`skellam`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skellam.html#scipy.stats.skellam "scipy.stats.skellam") | A Skellam discrete random variable. | | [`yulesimon`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yulesimon.html#scipy.stats.yulesimon "scipy.stats.yulesimon") | A Yule-Simon discrete random variable. | | [`zipf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zipf.html#scipy.stats.zipf "scipy.stats.zipf") | A Zipf (Zeta) discrete random variable. | | [`zipfian`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zipfian.html#scipy.stats.zipfian "scipy.stats.zipfian") | A Zipfian discrete random variable. | An overview of statistical functions is given below. Many of these functions have a similar version in [`scipy.stats.mstats`](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#module-scipy.stats.mstats "scipy.stats.mstats") which work for masked arrays. ## Summary statistics[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#summary-statistics "Link to this heading") | | | |---|---| | [`describe`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.describe.html#scipy.stats.describe "scipy.stats.describe")(a\[, axis, ddof, bias, nan\_policy\]) | Compute several descriptive statistics of the passed array. | | [`gmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gmean.html#scipy.stats.gmean "scipy.stats.gmean")(a\[, axis, dtype, weights, nan\_policy, ...\]) | Compute the weighted geometric mean along the specified axis. | | [`hmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hmean.html#scipy.stats.hmean "scipy.stats.hmean")(a\[, axis, dtype, weights, nan\_policy, ...\]) | Calculate the weighted harmonic mean along the specified axis. | | [`pmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pmean.html#scipy.stats.pmean "scipy.stats.pmean")(a, p, \*\[, axis, dtype, weights, ...\]) | Calculate the weighted power mean along the specified axis. | | [`kurtosis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kurtosis.html#scipy.stats.kurtosis "scipy.stats.kurtosis")(a\[, axis, fisher, bias, ...\]) | Compute the kurtosis (Fisher or Pearson) of a dataset. | | [`mode`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mode.html#scipy.stats.mode "scipy.stats.mode")(a\[, axis, nan\_policy, keepdims\]) | Return an array of the modal (most common) value in the passed array. | | [`moment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html#scipy.stats.moment "scipy.stats.moment")(a\[, order, axis, nan\_policy, center, ...\]) | Calculate the nth moment about the mean for a sample. | | [`lmoment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lmoment.html#scipy.stats.lmoment "scipy.stats.lmoment")(sample\[, order, axis, sorted, ...\]) | Compute L-moments of a sample from a continuous distribution | | [`expectile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.expectile.html#scipy.stats.expectile "scipy.stats.expectile")(a\[, alpha, weights\]) | Compute the expectile at the specified level. | | [`skew`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skew.html#scipy.stats.skew "scipy.stats.skew")(a\[, axis, bias, nan\_policy, keepdims\]) | Compute the sample skewness of a data set. | | [`kstat`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstat.html#scipy.stats.kstat "scipy.stats.kstat")(data\[, n, axis, nan\_policy, keepdims\]) | Return the *n* th k-statistic ( `1<=n<=4` so far). | | [`kstatvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstatvar.html#scipy.stats.kstatvar "scipy.stats.kstatvar")(data\[, n, axis, nan\_policy, keepdims\]) | Return an unbiased estimator of the variance of the k-statistic. | | [`tmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmean.html#scipy.stats.tmean "scipy.stats.tmean")(a\[, limits, inclusive, axis, ...\]) | Compute the trimmed mean. | | [`tvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tvar.html#scipy.stats.tvar "scipy.stats.tvar")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed variance. | | [`tmin`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmin.html#scipy.stats.tmin "scipy.stats.tmin")(a\[, lowerlimit, axis, inclusive, ...\]) | Compute the trimmed minimum. | | [`tmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmax.html#scipy.stats.tmax "scipy.stats.tmax")(a\[, upperlimit, axis, inclusive, ...\]) | Compute the trimmed maximum. | | [`tstd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tstd.html#scipy.stats.tstd "scipy.stats.tstd")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed sample standard deviation. | | [`tsem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tsem.html#scipy.stats.tsem "scipy.stats.tsem")(a\[, limits, inclusive, axis, ddof, ...\]) | Compute the trimmed standard error of the mean. | | [`variation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.variation.html#scipy.stats.variation "scipy.stats.variation")(a\[, axis, nan\_policy, ddof, keepdims\]) | Compute the coefficient of variation. | | [`rankdata`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rankdata.html#scipy.stats.rankdata "scipy.stats.rankdata")(a\[, method, axis, nan\_policy\]) | Assign ranks to data, dealing with ties appropriately. | | [`tiecorrect`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tiecorrect.html#scipy.stats.tiecorrect "scipy.stats.tiecorrect")(rankvals) | Tie correction factor for Mann-Whitney U and Kruskal-Wallis H tests. | | [`trim_mean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trim_mean.html#scipy.stats.trim_mean "scipy.stats.trim_mean")(a, proportiontocut\[, axis, ...\]) | Return mean of array after trimming a specified fraction of extreme values | | [`gstd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gstd.html#scipy.stats.gstd "scipy.stats.gstd")(a\[, axis, ddof, keepdims, nan\_policy\]) | Calculate the geometric standard deviation of an array. | | [`iqr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.iqr.html#scipy.stats.iqr "scipy.stats.iqr")(x\[, axis, rng, scale, nan\_policy, ...\]) | Compute the interquartile range of the data along the specified axis. | | [`sem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sem.html#scipy.stats.sem "scipy.stats.sem")(a\[, axis, ddof, nan\_policy, keepdims\]) | Compute standard error of the mean. | | [`bayes_mvs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bayes_mvs.html#scipy.stats.bayes_mvs "scipy.stats.bayes_mvs")(data\[, alpha\]) | Bayesian confidence intervals for the mean, var, and std. | | [`mvsdist`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mvsdist.html#scipy.stats.mvsdist "scipy.stats.mvsdist")(data) | 'Frozen' distributions for mean, variance, and standard deviation of data. | | [`entropy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.entropy.html#scipy.stats.entropy "scipy.stats.entropy")(pk\[, qk, base, axis, nan\_policy, ...\]) | Calculate the Shannon entropy/relative entropy of given distribution(s). | | [`differential_entropy`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.differential_entropy.html#scipy.stats.differential_entropy "scipy.stats.differential_entropy")(values, \*\[, ...\]) | Given a sample of a distribution, estimate the differential entropy. | | [`median_abs_deviation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.median_abs_deviation.html#scipy.stats.median_abs_deviation "scipy.stats.median_abs_deviation")(x\[, axis, center, ...\]) | Compute the median absolute deviation of the data along the given axis. | ## Frequency statistics[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#frequency-statistics "Link to this heading") ## Hypothesis Tests and related functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#hypothesis-tests-and-related-functions "Link to this heading") SciPy has many functions for performing hypothesis tests that return a test statistic and a p-value, and several of them return confidence intervals and/or other related information. The headings below are based on common uses of the functions within, but due to the wide variety of statistical procedures, any attempt at coarse-grained categorization will be imperfect. Also, note that tests within the same heading are not interchangeable in general (e.g. many have different distributional assumptions). ### One Sample Tests / Paired Sample Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#one-sample-tests-paired-sample-tests "Link to this heading") One sample tests are typically used to assess whether a single sample was drawn from a specified distribution or a distribution with specified properties (e.g. zero mean). | | | |---|---| | [`ttest_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html#scipy.stats.ttest_1samp "scipy.stats.ttest_1samp")(a, popmean\[, axis, nan\_policy, ...\]) | Calculate the T-test for the mean of ONE group of scores. | | [`binomtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html#scipy.stats.binomtest "scipy.stats.binomtest")(k, n\[, p, alternative\]) | Perform a test that the probability of success is p. | | [`quantile_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.quantile_test.html#scipy.stats.quantile_test "scipy.stats.quantile_test")(x, \*\[, q, p, alternative\]) | Perform a quantile test and compute a confidence interval of the quantile. | | [`skewtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewtest.html#scipy.stats.skewtest "scipy.stats.skewtest")(a\[, axis, nan\_policy, alternative, ...\]) | Test whether the skew is different from the normal distribution. | | [`kurtosistest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kurtosistest.html#scipy.stats.kurtosistest "scipy.stats.kurtosistest")(a\[, axis, nan\_policy, ...\]) | Test whether a dataset has normal kurtosis. | | [`normaltest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normaltest.html#scipy.stats.normaltest "scipy.stats.normaltest")(a\[, axis, nan\_policy, keepdims\]) | Test whether a sample differs from a normal distribution. | | [`jarque_bera`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.jarque_bera.html#scipy.stats.jarque_bera "scipy.stats.jarque_bera")(x, \*\[, axis, nan\_policy, keepdims\]) | Perform the Jarque-Bera goodness of fit test on sample data. | | [`shapiro`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.shapiro.html#scipy.stats.shapiro "scipy.stats.shapiro")(x, \*\[, axis, nan\_policy, keepdims\]) | Perform the Shapiro-Wilk test for normality. | | [`anderson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anderson.html#scipy.stats.anderson "scipy.stats.anderson")(x\[, dist, method\]) | Anderson-Darling test for data coming from a particular distribution. | | [`cramervonmises`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cramervonmises.html#scipy.stats.cramervonmises "scipy.stats.cramervonmises")(rvs, cdf\[, args, axis, ...\]) | Perform the one-sample Cramér-von Mises test for goodness of fit. | | [`ks_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ks_1samp.html#scipy.stats.ks_1samp "scipy.stats.ks_1samp")(x, cdf\[, args, alternative, ...\]) | Performs the one-sample Kolmogorov-Smirnov test for goodness of fit. | | [`goodness_of_fit`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.goodness_of_fit.html#scipy.stats.goodness_of_fit "scipy.stats.goodness_of_fit")(dist, data, \*\[, ...\]) | Perform a goodness of fit test comparing data to a distribution family. | | [`chisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chisquare.html#scipy.stats.chisquare "scipy.stats.chisquare")(f\_obs\[, f\_exp, ddof, axis, ...\]) | Perform Pearson's chi-squared test. | | [`power_divergence`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.power_divergence.html#scipy.stats.power_divergence "scipy.stats.power_divergence")(f\_obs\[, f\_exp, ddof, axis, ...\]) | Cressie-Read power divergence statistic and goodness of fit test. | Paired sample tests are often used to assess whether two samples were drawn from the same distribution; they differ from the independent sample tests below in that each observation in one sample is treated as paired with a closely-related observation in the other sample (e.g. when environmental factors are controlled between observations within a pair but not among pairs). They can also be interpreted or used as one-sample tests (e.g. tests on the mean or median of *differences* between paired observations). ### Association/Correlation Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#association-correlation-tests "Link to this heading") These tests are often used to assess whether there is a relationship (e.g. linear) between paired observations in multiple samples or among the coordinates of multivariate observations. | | | |---|---| | [`linregress`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html#scipy.stats.linregress "scipy.stats.linregress")(x, y\[, alternative, axis, ...\]) | Calculate a linear least-squares regression for two sets of measurements. | | [`pearsonr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pearsonr.html#scipy.stats.pearsonr "scipy.stats.pearsonr")(x, y, \*\[, alternative, method, axis\]) | Pearson correlation coefficient and p-value for testing non-correlation. | | [`spearmanrho`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanrho.html#scipy.stats.spearmanrho "scipy.stats.spearmanrho")(x, y, /, \*\[, alternative, ...\]) | Calculate a Spearman rho correlation coefficient with associated p-value. | | [`pointbiserialr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.pointbiserialr.html#scipy.stats.pointbiserialr "scipy.stats.pointbiserialr")(x, y, \*\[, axis, nan\_policy, ...\]) | Calculate a point biserial correlation coefficient and its p-value. | | [`kendalltau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kendalltau.html#scipy.stats.kendalltau "scipy.stats.kendalltau")(x, y, \*\[, nan\_policy, method, ...\]) | Calculate Kendall's tau, a correlation measure for ordinal data. | | [`chatterjeexi`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chatterjeexi.html#scipy.stats.chatterjeexi "scipy.stats.chatterjeexi")(x, y, \*\[, axis, y\_continuous, ...\]) | Compute the xi correlation and perform a test of independence | | [`weightedtau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.weightedtau.html#scipy.stats.weightedtau "scipy.stats.weightedtau")(x, y\[, rank, weigher, additive, ...\]) | Compute a weighted version of Kendall's \\(\\tau\\). | | [`somersd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.somersd.html#scipy.stats.somersd "scipy.stats.somersd")(x\[, y, alternative\]) | Calculates Somers' D, an asymmetric measure of ordinal association. | | [`siegelslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.siegelslopes.html#scipy.stats.siegelslopes "scipy.stats.siegelslopes")(y\[, x, method, axis, ...\]) | Computes the Siegel estimator for a set of points (x, y). | | [`theilslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.theilslopes.html#scipy.stats.theilslopes "scipy.stats.theilslopes")(y\[, x, alpha, method, axis, ...\]) | Computes the Theil-Sen estimator for a set of points (x, y). | | [`page_trend_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.page_trend_test.html#scipy.stats.page_trend_test "scipy.stats.page_trend_test")(data\[, ranked, ...\]) | Perform Page's Test, a measure of trend in observations between treatments. | | [`multiscale_graphcorr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multiscale_graphcorr.html#scipy.stats.multiscale_graphcorr "scipy.stats.multiscale_graphcorr")(x, y\[, ...\]) | Computes the Multiscale Graph Correlation (MGC) test statistic. | | [`spearmanr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html#scipy.stats.spearmanr "scipy.stats.spearmanr")(a\[, b, axis, nan\_policy, alternative\]) | Calculate a Spearman correlation coefficient with associated p-value. | These association tests and are to work with samples in the form of contingency tables. Supporting functions are available in [`scipy.stats.contingency`](https://docs.scipy.org/doc/scipy/reference/stats.contingency.html#module-scipy.stats.contingency "scipy.stats.contingency"). ### Independent Sample Tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#independent-sample-tests "Link to this heading") Independent sample tests are typically used to assess whether multiple samples were independently drawn from the same distribution or different distributions with a shared property (e.g. equal means). Some tests are specifically for comparing two samples. | | | |---|---| | [`ttest_ind_from_stats`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind_from_stats.html#scipy.stats.ttest_ind_from_stats "scipy.stats.ttest_ind_from_stats")(mean1, std1, nobs1, ...) | T-test for means of two independent samples from descriptive statistics. | | [`poisson_means_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson_means_test.html#scipy.stats.poisson_means_test "scipy.stats.poisson_means_test")(k1, n1, k2, n2, \*\[, ...\]) | Performs the Poisson means test, AKA the "E-test". | | [`ttest_ind`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html#scipy.stats.ttest_ind "scipy.stats.ttest_ind")(a, b, \*\[, axis, equal\_var, ...\]) | Calculate the T-test for the means of *two independent* samples of scores. | | [`mannwhitneyu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mannwhitneyu.html#scipy.stats.mannwhitneyu "scipy.stats.mannwhitneyu")(x, y\[, use\_continuity, ...\]) | Perform the Mann-Whitney U rank test on two independent samples. | | [`bws_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bws_test.html#scipy.stats.bws_test "scipy.stats.bws_test")(x, y, \*\[, alternative, method\]) | Perform the Baumgartner-Weiss-Schindler test on two independent samples. | | [`ranksums`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ranksums.html#scipy.stats.ranksums "scipy.stats.ranksums")(x, y\[, alternative, axis, ...\]) | Compute the Wilcoxon rank-sum statistic for two samples. | | [`brunnermunzel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.brunnermunzel.html#scipy.stats.brunnermunzel "scipy.stats.brunnermunzel")(x, y\[, alternative, ...\]) | Compute the Brunner-Munzel test on samples x and y. | | [`mood`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mood.html#scipy.stats.mood "scipy.stats.mood")(x, y\[, axis, alternative, nan\_policy, ...\]) | Perform Mood's test for equal scale parameters. | | [`ansari`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ansari.html#scipy.stats.ansari "scipy.stats.ansari")(x, y\[, alternative, axis, ...\]) | Perform the Ansari-Bradley test for equal scale parameters. | | [`cramervonmises_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.cramervonmises_2samp.html#scipy.stats.cramervonmises_2samp "scipy.stats.cramervonmises_2samp")(x, y\[, method, axis, ...\]) | Perform the two-sample Cramér-von Mises test for goodness of fit. | | [`epps_singleton_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.epps_singleton_2samp.html#scipy.stats.epps_singleton_2samp "scipy.stats.epps_singleton_2samp")(x, y\[, t, axis, ...\]) | Compute the Epps-Singleton (ES) test statistic. | | [`ks_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ks_2samp.html#scipy.stats.ks_2samp "scipy.stats.ks_2samp")(data1, data2\[, alternative, ...\]) | Performs the two-sample Kolmogorov-Smirnov test for goodness of fit. | | [`kstest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kstest.html#scipy.stats.kstest "scipy.stats.kstest")(rvs, cdf\[, args, N, alternative, ...\]) | Performs the (one-sample or two-sample) Kolmogorov-Smirnov test for goodness of fit. | Others are generalized to multiple samples. | | | |---|---| | [`f_oneway`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.f_oneway.html#scipy.stats.f_oneway "scipy.stats.f_oneway")(\*samples\[, axis, equal\_var, ...\]) | Perform one-way ANOVA. | | [`tukey_hsd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tukey_hsd.html#scipy.stats.tukey_hsd "scipy.stats.tukey_hsd")(\*args\[, equal\_var\]) | Perform Tukey's HSD test for equality of means over multiple treatments. | | [`dunnett`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.dunnett.html#scipy.stats.dunnett "scipy.stats.dunnett")(\*samples, control\[, alternative, ...\]) | Dunnett's test: multiple comparisons of means against a control group. | | [`kruskal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kruskal.html#scipy.stats.kruskal "scipy.stats.kruskal")(\*samples\[, nan\_policy, axis, keepdims\]) | Compute the Kruskal-Wallis H-test for independent samples. | | [`alexandergovern`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.alexandergovern.html#scipy.stats.alexandergovern "scipy.stats.alexandergovern")(\*samples\[, nan\_policy, ...\]) | Performs the Alexander Govern test. | | [`fligner`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fligner.html#scipy.stats.fligner "scipy.stats.fligner")(\*samples\[, center, proportiontocut, ...\]) | Perform Fligner-Killeen test for equality of variance. | | [`levene`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.levene.html#scipy.stats.levene "scipy.stats.levene")(\*samples\[, center, proportiontocut, ...\]) | Perform Levene test for equal variances. | | [`bartlett`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bartlett.html#scipy.stats.bartlett "scipy.stats.bartlett")(\*samples\[, axis, nan\_policy, keepdims\]) | Perform Bartlett's test for equal variances. | | [`median_test`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.median_test.html#scipy.stats.median_test "scipy.stats.median_test")(\*samples\[, ties, correction, ...\]) | Perform a Mood's median test. | | [`friedmanchisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.friedmanchisquare.html#scipy.stats.friedmanchisquare "scipy.stats.friedmanchisquare")(\*samples\[, axis, ...\]) | Compute the Friedman test for repeated samples. | | [`anderson_ksamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.anderson_ksamp.html#scipy.stats.anderson_ksamp "scipy.stats.anderson_ksamp")(samples\[, midrank, variant, ...\]) | The Anderson-Darling test for k-samples. | ### Resampling and Monte Carlo Methods[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#resampling-and-monte-carlo-methods "Link to this heading") The following functions can reproduce the p-value and confidence interval results of most of the functions above, and often produce accurate results in a wider variety of conditions. They can also be used to perform hypothesis tests and generate confidence intervals for custom statistics. This flexibility comes at the cost of greater computational requirements and stochastic results. Instances of the following object can be passed into some hypothesis test functions to perform a resampling or Monte Carlo version of the hypothesis test. ### Multiple Hypothesis Testing and Meta-Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#multiple-hypothesis-testing-and-meta-analysis "Link to this heading") These functions are for assessing the results of individual tests as a whole. Functions for performing specific multiple hypothesis tests (e.g. post hoc tests) are listed above. The following functions are related to the tests above but do not belong in the above categories. ## Random Variables[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#random-variables "Link to this heading") | | | |---|---| | [`make_distribution`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.make_distribution.html#scipy.stats.make_distribution "scipy.stats.make_distribution")(dist) | Generate a *UnivariateDistribution* class from a compatible object | | [`Normal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Normal.html#scipy.stats.Normal "scipy.stats.Normal")(\[mu, sigma\]) | Normal distribution with prescribed mean and standard deviation. | | [`Logistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Logistic.html#scipy.stats.Logistic "scipy.stats.Logistic")(\*\[, tol, validation\_policy, ...\]) | Standard logistic distribution. | | [`Uniform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.html#scipy.stats.Uniform "scipy.stats.Uniform")(\*\[, a, b\]) | Uniform distribution. | | [`Binomial`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Binomial.html#scipy.stats.Binomial "scipy.stats.Binomial")(\*, n, p, \*\*kwargs) | Binomial distribution with prescribed success probability and number of trials | | [`Mixture`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Mixture.html#scipy.stats.Mixture "scipy.stats.Mixture")(components, \*\[, weights\]) | Representation of a mixture distribution. | | [`order_statistic`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.order_statistic.html#scipy.stats.order_statistic "scipy.stats.order_statistic")(X, /, \*, r, n) | Probability distribution of an order statistic | | [`truncate`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncate.html#scipy.stats.truncate "scipy.stats.truncate")(X\[, lb, ub\]) | Truncate the support of a random variable. | | [`abs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.abs.html#scipy.stats.abs "scipy.stats.abs")(X, /) | Absolute value of a random variable | | [`exp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.exp.html#scipy.stats.exp "scipy.stats.exp")(X, /) | Natural exponential of a random variable | | [`log`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.log.html#scipy.stats.log "scipy.stats.log")(X, /) | Natural logarithm of a non-negative random variable | ## Quasi-Monte Carlo[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#quasi-monte-carlo "Link to this heading") - [Quasi-Monte Carlo submodule (`scipy.stats.qmc`)](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html) - [Quasi-Monte Carlo](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#quasi-monte-carlo) - [Engines](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#engines) - [QMCEngine](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.QMCEngine.html) - [Sobol](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.Sobol.html) - [Halton](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.Halton.html) - [LatinHypercube](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.LatinHypercube.html) - [PoissonDisk](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.PoissonDisk.html) - [MultinomialQMC](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.MultinomialQMC.html) - [MultivariateNormalQMC](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.MultivariateNormalQMC.html) - [Helpers](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#helpers) - [discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.discrepancy.html) - [geometric\_discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.geometric_discrepancy.html) - [update\_discrepancy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.update_discrepancy.html) - [scale](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.scale.html) - [Introduction to Quasi-Monte Carlo](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#introduction-to-quasi-monte-carlo) - [References](https://docs.scipy.org/doc/scipy/reference/stats.qmc.html#references) ## Contingency Tables[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#contingency-tables "Link to this heading") - [Contingency table functions (`scipy.stats.contingency`)](https://docs.scipy.org/doc/scipy/reference/stats.contingency.html) - [chi2\_contingency](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.chi2_contingency.html) - [`chi2_contingency`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.chi2_contingency.html#scipy.stats.contingency.chi2_contingency) - [relative\_risk](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.relative_risk.html) - [`relative_risk`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.relative_risk.html#scipy.stats.contingency.relative_risk) - [odds\_ratio](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.odds_ratio.html) - [`odds_ratio`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.odds_ratio.html#scipy.stats.contingency.odds_ratio) - [crosstab](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.crosstab.html) - [`crosstab`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.crosstab.html#scipy.stats.contingency.crosstab) - [association](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html) - [`association`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html#scipy.stats.contingency.association) - [expected\_freq](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.expected_freq.html) - [`expected_freq`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.expected_freq.html#scipy.stats.contingency.expected_freq) - [margins](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.margins.html) - [`margins`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.margins.html#scipy.stats.contingency.margins) ## Masked statistics functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#masked-statistics-functions "Link to this heading") - [Statistical functions for masked arrays (`scipy.stats.mstats`)](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html) - [Summary statistics](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#summary-statistics) - [describe](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.describe.html) - [`describe`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.describe.html#scipy.stats.mstats.describe) - [gmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.gmean.html) - [`gmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.gmean.html#scipy.stats.mstats.gmean) - [hmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hmean.html) - [`hmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hmean.html#scipy.stats.mstats.hmean) - [kurtosis](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosis.html) - [`kurtosis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosis.html#scipy.stats.mstats.kurtosis) - [mode](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mode.html) - [`mode`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mode.html#scipy.stats.mstats.mode) - [mquantiles](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles.html) - [`mquantiles`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles.html#scipy.stats.mstats.mquantiles) - [hdmedian](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdmedian.html) - [`hdmedian`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdmedian.html#scipy.stats.mstats.hdmedian) - [hdquantiles](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles.html) - [`hdquantiles`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles.html#scipy.stats.mstats.hdquantiles) - [hdquantiles\_sd](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles_sd.html) - [`hdquantiles_sd`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.hdquantiles_sd.html#scipy.stats.mstats.hdquantiles_sd) - [idealfourths](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.idealfourths.html) - [`idealfourths`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.idealfourths.html#scipy.stats.mstats.idealfourths) - [plotting\_positions](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.plotting_positions.html) - [`plotting_positions`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.plotting_positions.html#scipy.stats.mstats.plotting_positions) - [meppf](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.meppf.html) - [`meppf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.meppf.html#scipy.stats.mstats.meppf) - [moment](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.moment.html) - [`moment`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.moment.html#scipy.stats.mstats.moment) - [skew](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skew.html) - [`skew`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skew.html#scipy.stats.mstats.skew) - [tmean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmean.html) - [`tmean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmean.html#scipy.stats.mstats.tmean) - [tvar](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tvar.html) - [`tvar`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tvar.html#scipy.stats.mstats.tvar) - [tmin](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmin.html) - [`tmin`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmin.html#scipy.stats.mstats.tmin) - [tmax](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmax.html) - [`tmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tmax.html#scipy.stats.mstats.tmax) - [tsem](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tsem.html) - [`tsem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.tsem.html#scipy.stats.mstats.tsem) - [variation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.variation.html) - [`variation`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.variation.html#scipy.stats.mstats.variation) - [find\_repeats](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.find_repeats.html) - [`find_repeats`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.find_repeats.html#scipy.stats.mstats.find_repeats) - [sem](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sem.html) - [`sem`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sem.html#scipy.stats.mstats.sem) - [trimmed\_mean](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean.html) - [`trimmed_mean`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean.html#scipy.stats.mstats.trimmed_mean) - [trimmed\_mean\_ci](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean_ci.html) - [`trimmed_mean_ci`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_mean_ci.html#scipy.stats.mstats.trimmed_mean_ci) - [trimmed\_std](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_std.html) - [`trimmed_std`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_std.html#scipy.stats.mstats.trimmed_std) - [trimmed\_var](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_var.html) - [`trimmed_var`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_var.html#scipy.stats.mstats.trimmed_var) - [Frequency statistics](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#frequency-statistics) - [scoreatpercentile](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.scoreatpercentile.html) - [`scoreatpercentile`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.scoreatpercentile.html#scipy.stats.mstats.scoreatpercentile) - [Correlation functions](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#correlation-functions) - [f\_oneway](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.f_oneway.html) - [`f_oneway`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.f_oneway.html#scipy.stats.mstats.f_oneway) - [pearsonr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pearsonr.html) - [`pearsonr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pearsonr.html#scipy.stats.mstats.pearsonr) - [spearmanr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.spearmanr.html) - [`spearmanr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.spearmanr.html#scipy.stats.mstats.spearmanr) - [pointbiserialr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pointbiserialr.html) - [`pointbiserialr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.pointbiserialr.html#scipy.stats.mstats.pointbiserialr) - [kendalltau](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau.html) - [`kendalltau`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau.html#scipy.stats.mstats.kendalltau) - [kendalltau\_seasonal](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau_seasonal.html) - [`kendalltau_seasonal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kendalltau_seasonal.html#scipy.stats.mstats.kendalltau_seasonal) - [linregress](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.linregress.html) - [`linregress`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.linregress.html#scipy.stats.mstats.linregress) - [siegelslopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.siegelslopes.html) - [`siegelslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.siegelslopes.html#scipy.stats.mstats.siegelslopes) - [theilslopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.theilslopes.html) - [`theilslopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.theilslopes.html#scipy.stats.mstats.theilslopes) - [sen\_seasonal\_slopes](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sen_seasonal_slopes.html) - [`sen_seasonal_slopes`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.sen_seasonal_slopes.html#scipy.stats.mstats.sen_seasonal_slopes) - [Statistical tests](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#statistical-tests) - [ttest\_1samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_1samp.html) - [`ttest_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_1samp.html#scipy.stats.mstats.ttest_1samp) - [ttest\_onesamp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_onesamp.html) - [`ttest_onesamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_onesamp.html#scipy.stats.mstats.ttest_onesamp) - [ttest\_ind](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_ind.html) - [`ttest_ind`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_ind.html#scipy.stats.mstats.ttest_ind) - [ttest\_rel](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_rel.html) - [`ttest_rel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ttest_rel.html#scipy.stats.mstats.ttest_rel) - [chisquare](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.chisquare.html) - [`chisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.chisquare.html#scipy.stats.mstats.chisquare) - [kstest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kstest.html) - [`kstest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kstest.html#scipy.stats.mstats.kstest) - [ks\_2samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_2samp.html) - [`ks_2samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_2samp.html#scipy.stats.mstats.ks_2samp) - [ks\_1samp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_1samp.html) - [`ks_1samp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_1samp.html#scipy.stats.mstats.ks_1samp) - [ks\_twosamp](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_twosamp.html) - [`ks_twosamp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.ks_twosamp.html#scipy.stats.mstats.ks_twosamp) - [mannwhitneyu](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mannwhitneyu.html) - [`mannwhitneyu`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mannwhitneyu.html#scipy.stats.mstats.mannwhitneyu) - [rankdata](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rankdata.html) - [`rankdata`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rankdata.html#scipy.stats.mstats.rankdata) - [kruskal](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskal.html) - [`kruskal`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskal.html#scipy.stats.mstats.kruskal) - [kruskalwallis](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskalwallis.html) - [`kruskalwallis`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kruskalwallis.html#scipy.stats.mstats.kruskalwallis) - [friedmanchisquare](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.friedmanchisquare.html) - [`friedmanchisquare`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.friedmanchisquare.html#scipy.stats.mstats.friedmanchisquare) - [brunnermunzel](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.brunnermunzel.html) - [`brunnermunzel`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.brunnermunzel.html#scipy.stats.mstats.brunnermunzel) - [skewtest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skewtest.html) - [`skewtest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.skewtest.html#scipy.stats.mstats.skewtest) - [kurtosistest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosistest.html) - [`kurtosistest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.kurtosistest.html#scipy.stats.mstats.kurtosistest) - [normaltest](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.normaltest.html) - [`normaltest`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.normaltest.html#scipy.stats.mstats.normaltest) - [Transformations](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#transformations) - [obrientransform](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.obrientransform.html) - [`obrientransform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.obrientransform.html#scipy.stats.mstats.obrientransform) - [trim](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trim.html) - [`trim`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trim.html#scipy.stats.mstats.trim) - [trima](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trima.html) - [`trima`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trima.html#scipy.stats.mstats.trima) - [trimmed\_stde](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_stde.html) - [`trimmed_stde`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimmed_stde.html#scipy.stats.mstats.trimmed_stde) - [trimr](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimr.html) - [`trimr`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimr.html#scipy.stats.mstats.trimr) - [trimtail](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimtail.html) - [`trimtail`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimtail.html#scipy.stats.mstats.trimtail) - [trimboth](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimboth.html) - [`trimboth`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.trimboth.html#scipy.stats.mstats.trimboth) - [winsorize](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.winsorize.html) - [`winsorize`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.winsorize.html#scipy.stats.mstats.winsorize) - [zmap](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zmap.html) - [`zmap`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zmap.html#scipy.stats.mstats.zmap) - [zscore](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zscore.html) - [`zscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.zscore.html#scipy.stats.mstats.zscore) - [Other](https://docs.scipy.org/doc/scipy/reference/stats.mstats.html#other) - [argstoarray](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.argstoarray.html) - [`argstoarray`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.argstoarray.html#scipy.stats.mstats.argstoarray) - [count\_tied\_groups](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.count_tied_groups.html) - [`count_tied_groups`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.count_tied_groups.html#scipy.stats.mstats.count_tied_groups) - [msign](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.msign.html) - [`msign`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.msign.html#scipy.stats.mstats.msign) - [compare\_medians\_ms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.compare_medians_ms.html) - [`compare_medians_ms`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.compare_medians_ms.html#scipy.stats.mstats.compare_medians_ms) - [median\_cihs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.median_cihs.html) - [`median_cihs`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.median_cihs.html#scipy.stats.mstats.median_cihs) - [mjci](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mjci.html) - [`mjci`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mjci.html#scipy.stats.mstats.mjci) - [mquantiles\_cimj](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles_cimj.html) - [`mquantiles_cimj`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.mquantiles_cimj.html#scipy.stats.mstats.mquantiles_cimj) - [rsh](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rsh.html) - [`rsh`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.rsh.html#scipy.stats.mstats.rsh) ## Other statistical functionality[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#other-statistical-functionality "Link to this heading") ### Transformations[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#transformations "Link to this heading") | | | |---|---| | [`boxcox`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html#scipy.stats.boxcox "scipy.stats.boxcox")(x\[, lmbda, alpha, optimizer\]) | Return a dataset transformed by a Box-Cox power transformation. | | [`boxcox_normmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox_normmax.html#scipy.stats.boxcox_normmax "scipy.stats.boxcox_normmax")(x\[, brack, method, ...\]) | Compute optimal Box-Cox transform parameter for input data. | | [`boxcox_llf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox_llf.html#scipy.stats.boxcox_llf "scipy.stats.boxcox_llf")(lmb, data, \*\[, axis, keepdims, ...\]) | The boxcox log-likelihood function. | | [`yeojohnson`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson.html#scipy.stats.yeojohnson "scipy.stats.yeojohnson")(x\[, lmbda\]) | Return a dataset transformed by a Yeo-Johnson power transformation. | | [`yeojohnson_normmax`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson_normmax.html#scipy.stats.yeojohnson_normmax "scipy.stats.yeojohnson_normmax")(x\[, brack\]) | Compute optimal Yeo-Johnson transform parameter. | | [`yeojohnson_llf`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson_llf.html#scipy.stats.yeojohnson_llf "scipy.stats.yeojohnson_llf")(lmb, data, \*\[, axis, ...\]) | The Yeo-Johnson log-likelihood function. | | [`obrientransform`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.obrientransform.html#scipy.stats.obrientransform "scipy.stats.obrientransform")(\*samples) | Compute the O'Brien transform on input data (any number of arrays). | | [`sigmaclip`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sigmaclip.html#scipy.stats.sigmaclip "scipy.stats.sigmaclip")(a\[, low, high\]) | Perform iterative sigma-clipping of array elements. | | [`trimboth`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trimboth.html#scipy.stats.trimboth "scipy.stats.trimboth")(a, proportiontocut\[, axis\]) | Slice off a proportion of items from both ends of an array. | | [`trim1`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.trim1.html#scipy.stats.trim1 "scipy.stats.trim1")(a, proportiontocut\[, tail, axis\]) | Slice off a proportion from ONE end of the passed array distribution. | | [`zmap`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zmap.html#scipy.stats.zmap "scipy.stats.zmap")(scores, compare\[, axis, ddof, nan\_policy\]) | Calculate the relative z-scores. | | [`zscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.zscore.html#scipy.stats.zscore "scipy.stats.zscore")(a\[, axis, ddof, nan\_policy\]) | Compute the z score. | | [`gzscore`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gzscore.html#scipy.stats.gzscore "scipy.stats.gzscore")(a, \*\[, axis, ddof, nan\_policy\]) | Compute the geometric standard score. | ### Statistical distances[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-distances "Link to this heading") ### Sampling[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#sampling "Link to this heading") - [Random Number Generators (`scipy.stats.sampling`)](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html) - [Generators Wrapped](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#generators-wrapped) - [For continuous distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#for-continuous-distributions) - [NumericalInverseHermite](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.NumericalInverseHermite.html) - [NumericalInversePolynomial](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.NumericalInversePolynomial.html) - [TransformedDensityRejection](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.TransformedDensityRejection.html) - [SimpleRatioUniforms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.SimpleRatioUniforms.html) - [RatioUniforms](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.RatioUniforms.html) - [For discrete distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#for-discrete-distributions) - [DiscreteAliasUrn](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.DiscreteAliasUrn.html) - [DiscreteGuideTable](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.DiscreteGuideTable.html) - [Warnings / Errors used in `scipy.stats.sampling`](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#warnings-errors-used-in-scipy-stats-sampling) - [scipy.stats.sampling.UNURANError](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.UNURANError.html) - [Generators for pre-defined distributions](https://docs.scipy.org/doc/scipy/reference/stats.sampling.html#generators-for-pre-defined-distributions) - [FastGeneratorInversion](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.html) - [`FastGeneratorInversion`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.html#scipy.stats.sampling.FastGeneratorInversion) - [evaluate\_error](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.evaluate_error.html) - [ppf](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.ppf.html) - [qrvs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.qrvs.html) - [rvs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.rvs.html) - [support](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.sampling.FastGeneratorInversion.support.html) ### Fitting / Survival Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#fitting-survival-analysis "Link to this heading") ### Directional statistical functions[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#directional-statistical-functions "Link to this heading") ### Sensitivity Analysis[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#sensitivity-analysis "Link to this heading") ### Plot-tests[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#plot-tests "Link to this heading") ### Univariate and multivariate kernel density estimation[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#univariate-and-multivariate-kernel-density-estimation "Link to this heading") ### Warnings / Errors used in [`scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats "scipy.stats")[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#warnings-errors-used-in-scipy-stats "Link to this heading") ### Result classes used in [`scipy.stats`](https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats "scipy.stats")[\#](https://docs.scipy.org/doc/scipy/reference/stats.html#result-classes-used-in-scipy-stats "Link to this heading") Warning These classes are private, but they are included here because instances of them are returned by other statistical functions. User import and instantiation is not supported. - [Result classes](https://docs.scipy.org/doc/scipy/reference/stats._result_classes.html) - [RelativeRiskResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.RelativeRiskResult.html) - [BinomTestResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.BinomTestResult.html) - [TukeyHSDResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.TukeyHSDResult.html) - [DunnettResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.DunnettResult.html) - [PearsonRResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.PearsonRResult.html) - [FitResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.FitResult.html) - [OddsRatioResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.OddsRatioResult.html) - [TtestResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.TtestResult.html) - [ECDFResult](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.ECDFResult.html) - [EmpiricalDistributionFunction](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats._result_classes.EmpiricalDistributionFunction.html)
Shard63 (laksa)
Root Hash12122434965281355463
Unparsed URLorg,scipy!docs,/doc/scipy/reference/stats.html s443