123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <!DOCTYPE html>
- <html class="writer-html5" lang="fr" >
- <head>
- <meta charset="utf-8" />
-
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-
- <title>Avalaible statistics test — Documentation statisticsTest 0.0.1</title>
-
-
- <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
- <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-
-
-
-
-
-
- <!--[if lt IE 9]>
- <script src="_static/js/html5shiv.min.js"></script>
- <![endif]-->
-
-
- <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
- <script src="_static/jquery.js"></script>
- <script src="_static/underscore.js"></script>
- <script src="_static/doctools.js"></script>
- <script src="_static/translations.js"></script>
-
- <script type="text/javascript" src="_static/js/theme.js"></script>
-
- <link rel="index" title="Index" href="genindex.html" />
- <link rel="search" title="Recherche" href="search.html" />
- <link rel="prev" title="Getting started" href="getting_started.html" />
- </head>
- <body class="wy-body-for-nav">
-
- <div class="wy-grid-for-nav">
-
- <nav data-toggle="wy-nav-shift" class="wy-nav-side">
- <div class="wy-side-scroll">
- <div class="wy-side-nav-search" >
-
-
- <a href="index.html" class="icon icon-home"> statisticsTest
-
-
- </a>
-
-
-
-
-
- <div role="search">
- <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
- <input type="text" name="q" placeholder="Rechercher docs" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- </div>
-
- </div>
-
- <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
-
-
-
-
-
-
- <ul class="current">
- <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting started</a></li>
- <li class="toctree-l1 current"><a class="current reference internal" href="#">Avalaible statistics test</a></li>
- </ul>
-
-
- </div>
-
- </div>
- </nav>
- <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
-
- <nav class="wy-nav-top" aria-label="top navigation">
-
- <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
- <a href="index.html">statisticsTest</a>
-
- </nav>
- <div class="wy-nav-content">
-
- <div class="rst-content">
-
-
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
-
- <li><a href="index.html" class="icon icon-home"></a> »</li>
-
- <li>Avalaible statistics test</li>
-
-
- <li class="wy-breadcrumbs-aside">
-
-
- <a href="_sources/statisticsTest_documentation.rst.txt" rel="nofollow"> Afficher la source de la page</a>
-
-
- </li>
-
- </ul>
-
- <hr/>
- </div>
- <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
- <div itemprop="articleBody">
-
- <div class="section" id="module-statisticsTest">
- <span id="avalaible-statistics-test"></span><h1>Avalaible statistics test<a class="headerlink" href="#module-statisticsTest" title="Lien permanent vers ce titre">¶</a></h1>
- <dl class="py function">
- <dt id="statisticsTest.chisquare_trend_contingency">
- <code class="sig-prename descclassname">statisticsTest.</code><code class="sig-name descname">chisquare_trend_contingency</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">observed</span></em>, <em class="sig-param"><span class="n">tendencies_values</span></em>, <em class="sig-param"><span class="n">axis</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#statisticsTest.chisquare_trend_contingency" title="Lien permanent vers cette définition">¶</a></dt>
- <dd><p>Apply a Chi2 square Cochran-Armitage trend test with variable in a contingency table.
- It measure the effect of an tendencie variable on a evaluated variable.
- The evaluated variable should be a categorial variable with 2 modalities. It should be of shape 2.
- The tendencies values should be of shape >= 2 an be numeric.</p>
- <blockquote>
- <div><ul class="simple">
- <li><p>Monotonous evolution of the tendencie (not checked by the function)</p></li>
- <li><p>Theorical value >= 5 : checked by the function</p></li>
- </ul>
- </div></blockquote>
- <blockquote>
- <div><p>observed, numpy matrix : contingency table of observed value. Should have an axis with a shape of 2 as the test is designed to evaluate tendencies on 2 modalities categorial variable. If only an axis is of shape 2, this axis is used for applying the test, otherwise you should specify the axis containing the tested variable with the axis parameter.
- tendencies_values, numpy vector : values of the tendencie variable, should be an 1D vector of shape >= 2</p>
- </div></blockquote>
- <dl>
- <dt>chi2<span class="classifier">float</span></dt><dd><p>The test statistic.</p>
- </dd>
- <dt>p<span class="classifier">float</span></dt><dd><p>The p-value of the test</p>
- </dd>
- <dt>dof<span class="classifier">int</span></dt><dd><p>Degrees of freedom</p>
- </dd>
- <dt>expected<span class="classifier">ndarray, same shape as <cite>observed</cite></span></dt><dd><p>The expected frequencies, based on the marginal sums of the table.</p>
- </dd>
- </dl>
- </dd></dl>
- </div>
- </div>
-
- </div>
- <footer>
- <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
- <a href="getting_started.html" class="btn btn-neutral float-left" title="Getting started" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Précédent</a>
- </div>
- <hr/>
- <div role="contentinfo">
- <p>
- © Copyright 2021, Ali BELLAMINE.
- </p>
- </div>
-
-
-
- Compilé avec <a href="https://www.sphinx-doc.org/">Sphinx</a> en utilisant un
-
- <a href="https://github.com/readthedocs/sphinx_rtd_theme">thème</a>
-
- fourni par <a href="https://readthedocs.org">Read the Docs</a>.
- </footer>
- </div>
- </div>
- </section>
- </div>
-
- <script type="text/javascript">
- jQuery(function () {
- SphinxRtdTheme.Navigation.enable(true);
- });
- </script>
-
-
-
-
- </body>
- </html>
|