Skip to content

Instantly share code, notes, and snippets.

@jjhelmus
Created Sep 23, 2015
Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Statistical functions (scipy.stats) &mdash; SciPy v0.16.0 Reference Guide</title>
<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.16.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: false
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<link rel="top" title="SciPy v0.16.0 Reference Guide" href="index.html" >
<link rel="next" title="scipy.stats.contingency.expected_freq" href="generated/scipy.stats.contingency.expected_freq.html" >
<link rel="prev" title="scipy.special.xlog1py" href="generated/scipy.special.xlog1py.html" >
</head>
<body>
<div class="container">
<div class="header">
</div>
</div>
<div class="container">
<div class="main">
<div class="row-fluid">
<div class="span12">
<div class="spc-navbar">
<ul class="nav nav-pills pull-left">
<li class="active"><a href="index.html">SciPy v0.16.0 Reference Guide</a></li>
</ul>
<ul class="nav nav-pills pull-right">
<li class="active">
<a href="genindex.html" title="General Index"
accesskey="I">index</a>
</li>
<li class="active">
<a href="py-modindex.html" title="Python Module Index"
>modules</a>
</li>
<li class="active">
<a href="scipy-optimize-modindex.html" title="Python Module Index"
>modules</a>
</li>
<li class="active">
<a href="generated/scipy.stats.contingency.expected_freq.html" title="scipy.stats.contingency.expected_freq"
accesskey="N">next</a>
</li>
<li class="active">
<a href="generated/scipy.special.xlog1py.html" title="scipy.special.xlog1py"
accesskey="P">previous</a>
</li>
</ul>
</div>
</div>
</div>
<div class="row-fluid">
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
</a></p>
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Statistical functions (<code class="docutils literal"><span class="pre">scipy.stats</span></code>)</a><ul>
<li><a class="reference internal" href="#continuous-distributions">Continuous distributions</a></li>
<li><a class="reference internal" href="#multivariate-distributions">Multivariate distributions</a></li>
<li><a class="reference internal" href="#discrete-distributions">Discrete distributions</a></li>
<li><a class="reference internal" href="#statistical-functions">Statistical functions</a><ul>
</ul>
</li>
<li><a class="reference internal" href="#circular-statistical-functions">Circular statistical functions</a></li>
<li><a class="reference internal" href="#contingency-table-functions">Contingency table functions</a></li>
<li><a class="reference internal" href="#plot-tests">Plot-tests</a></li>
<li><a class="reference internal" href="#masked-statistics-functions">Masked statistics functions</a></li>
<li><a class="reference internal" href="#univariate-and-multivariate-kernel-density-estimation-scipy-stats-kde">Univariate and multivariate kernel density estimation (<code class="docutils literal"><span class="pre">scipy.stats.kde</span></code>)</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="generated/scipy.special.xlog1py.html"
title="previous chapter">scipy.special.xlog1py</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="generated/scipy.stats.contingency.expected_freq.html"
title="next chapter">scipy.stats.contingency.expected_freq</a></p>
</div>
</div>
<div class="span9">
<div class="bodywrapper">
<div class="body" id="spc-section-body">
<span class="target" id="module-scipy.stats"></span><div class="section" id="module-scipy.stats">
<span id="statistical-functions-scipy-stats"></span><h1>Statistical functions (<a class="reference internal" href="#module-scipy.stats" title="scipy.stats"><code class="xref py py-mod docutils literal"><span class="pre">scipy.stats</span></code></a>)<a class="headerlink" href="#module-scipy.stats" title="Permalink to this headline"></a></h1>
<p>This module contains a large number of probability distributions as
well as a growing library of statistical functions.</p>
<p>Each univariate distribution is an instance of a subclass of <a class="reference internal" href="generated/scipy.stats.rv_continuous.html#scipy.stats.rv_continuous" title="scipy.stats.rv_continuous"><code class="xref py py-obj docutils literal"><span class="pre">rv_continuous</span></code></a>
(<a class="reference internal" href="generated/scipy.stats.rv_discrete.html#scipy.stats.rv_discrete" title="scipy.stats.rv_discrete"><code class="xref py py-obj docutils literal"><span class="pre">rv_discrete</span></code></a> for discrete distributions):</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<div class="section" id="continuous-distributions">
<h2>Continuous distributions<a class="headerlink" href="#continuous-distributions" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="multivariate-distributions">
<h2>Multivariate distributions<a class="headerlink" href="#multivariate-distributions" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="discrete-distributions">
<h2>Discrete distributions<a class="headerlink" href="#discrete-distributions" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="statistical-functions">
<h2>Statistical functions<a class="headerlink" href="#statistical-functions" title="Permalink to this headline"></a></h2>
<p>Several of these functions have a similar version in scipy.stats.mstats
which work for masked arrays.</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="circular-statistical-functions">
<h2>Circular statistical functions<a class="headerlink" href="#circular-statistical-functions" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="contingency-table-functions">
<h2>Contingency table functions<a class="headerlink" href="#contingency-table-functions" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="generated/scipy.stats.contingency.expected_freq.html#scipy.stats.contingency.expected_freq" title="scipy.stats.contingency.expected_freq"><code class="xref py py-obj docutils literal"><span class="pre">contingency.expected_freq</span></code></a>(observed)</td>
<td>Compute the expected frequencies from a contingency table.</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="generated/scipy.stats.contingency.margins.html#scipy.stats.contingency.margins" title="scipy.stats.contingency.margins"><code class="xref py py-obj docutils literal"><span class="pre">contingency.margins</span></code></a>(a)</td>
<td>Return a list of the marginal sums of the array <em class="xref py py-obj">a</em>.</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="plot-tests">
<h2>Plot-tests<a class="headerlink" href="#plot-tests" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
</div>
<div class="section" id="masked-statistics-functions">
<h2>Masked statistics functions<a class="headerlink" href="#masked-statistics-functions" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="stats.mstats.html">Statistical functions for masked arrays (<code class="docutils literal"><span class="pre">scipy.stats.mstats</span></code>)</a><ul class="simple">
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="univariate-and-multivariate-kernel-density-estimation-scipy-stats-kde">
<h2>Univariate and multivariate kernel density estimation (<code class="xref py py-mod docutils literal"><span class="pre">scipy.stats.kde</span></code>)<a class="headerlink" href="#univariate-and-multivariate-kernel-density-estimation-scipy-stats-kde" title="Permalink to this headline"></a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
</tbody>
</table>
<p>For many more stat related functions install the software R and the
interface package rpy.</p>
</div>
</div>
<div class="toctree-wrapper compound">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container container-navbar-bottom">
<div class="spc-navbar">
</div>
</div>
<div class="container">
<div class="footer">
<div class="row-fluid">
<ul class="inline pull-left">
<li>
&copy; Copyright 2008-2014, The Scipy community.
</li>
<li>
Last updated on Sep 23, 2015.
</li>
<li>
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment