{"id":2356,"date":"2020-12-01T18:54:08","date_gmt":"2020-12-01T17:54:08","guid":{"rendered":"http:\/\/caneri.gmollet.free.fr\/?page_id=2356"},"modified":"2023-09-13T16:07:11","modified_gmt":"2023-09-13T14:07:11","slug":"activite-xiv-variables-aleatoires","status":"publish","type":"page","link":"https:\/\/courscaneri.ovh\/?page_id=2356","title":{"rendered":"Activit\u00e9 XIV &#8211; Variables al\u00e9atoires"},"content":{"rendered":"<p>On consid\u00e8re une variable al\u00e9atoire <code class=\"katex-inline\">X<\/code> et sa loi de probabilit\u00e9s.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-dad27a9703483183e1afd245f5232b83_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"15\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-e6e1c3611728e9db0e52bb6485e06068_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-d7aa45c8899989487fb32dab51a8f7d7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-de02251c2c969c17b8633e299d9a2244_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\">&#8230;<\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-5a6b7b0cbd52237de8493256f02aa6f2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#110;&#45;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"35\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-b401d1b471048a542d97b3e84178bbe5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"18\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-76572b41be4aba07d15f67a171b4d523_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#40;&#88;&#61;&#120;&#95;&#105;&#92;&#114;&#105;&#103;&#104;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"82\" style=\"vertical-align: -5px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-ccd892ed2f60029f47331cf785d30482_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"17\" style=\"vertical-align: -4px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-023bcfb3fa329ff4f481163d36b65bf9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: -4px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-1a0ac2d00900c29ac35c13956874c642_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#95;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"17\" style=\"vertical-align: -4px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\">&#8230;<\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-e6f9de2c1edfd580ed59144fb1685ab8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#95;&#123;&#110;&#45;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"35\" style=\"vertical-align: -4px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fbb7c1a26d2bf07eb5bd498d09b924b6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"18\" style=\"vertical-align: -4px;\"\/><\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Le but est de cr\u00e9er trois fonctions en Python retournant l&#8217;esp\u00e9rance, la variance et l&#8217;\u00e9cart type de la variable al\u00e9atoire <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code>.<\/p>\n<h2>I. Esp\u00e9rance de la variable al\u00e9atoire <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code><\/h2>\n<p>Cr\u00e9er une fonction <code>esperance<\/code> qui prend en param\u00e8tres une liste <code>valeurs<\/code> des valeurs prises par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code> et une liste <code>probabilites<\/code> des probabilit\u00e9s correspondantes. Cette fonction retournera l&#8217;esp\u00e9rance de <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code>.<\/p>\n<h2>II. Variance de la variable al\u00e9atoire <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code><\/h2>\n<p>Cr\u00e9er une fonction <code>variance<\/code> qui prend en param\u00e8tres une liste <code>valeurs<\/code> des valeurs prises par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code> et une liste <code>probabilites<\/code> des probabilit\u00e9s correspondantes. Cette fonction retournera la variance de <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code>.<\/p>\n<h2>III. Ecart Type de la variable al\u00e9atoire <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code><\/h2>\n<p>Cr\u00e9er une fonction <code>ecartType<\/code> qui prend en param\u00e8tres une liste <code>valeurs<\/code> des valeurs prises par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code> et une liste <code>probabilites<\/code> des probabilit\u00e9s correspondantes. Cette fonction retournera l&#8217;\u00e9cart type de <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/><\/code>.<\/p>\n<h2>IV. Tests<\/h2>\n<p>On pourra tester nos fonctions avec la loi ci-dessous:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-dad27a9703483183e1afd245f5232b83_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"15\" style=\"vertical-align: -3px;\"\/><\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">1<\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">2<\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">3<\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">4<\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">5<\/code><\/th>\n<th style=\"text-align: center;\"><code class=\"katex-inline\">6<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-76572b41be4aba07d15f67a171b4d523_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#40;&#88;&#61;&#120;&#95;&#105;&#92;&#114;&#105;&#103;&#104;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"82\" style=\"vertical-align: -5px;\"\/><\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,1<\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,1<\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,1<\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,1<\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,1<\/code><\/td>\n<td style=\"text-align: center;\"><code class=\"katex-inline\">0,5<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code class=\"language-python\">&gt;&gt;&gt; esperance([1, 2, 3, 4, 5, 6], [0.1, 0.1, 0.1, 0.1, 0.1, 0.5])\r\n4.5\r\n&gt;&gt;&gt; variance([1, 2, 3, 4, 5, 6], [0.1, 0.1, 0.1, 0.1, 0.1, 0.5])\r\n3.25\r\n&gt;&gt;&gt; ecartType(([1, 2, 3, 4, 5, 6], [0.1, 0.1, 0.1, 0.1, 0.1, 0.5])\r\n1.8027756377319946<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On consid\u00e8re une variable al\u00e9atoire X et sa loi de probabilit\u00e9s. &#8230; &#8230; Le but est de cr\u00e9er trois fonctions en Python retournant l&#8217;esp\u00e9rance, la variance et l&#8217;\u00e9cart type de la variable al\u00e9atoire . I. Esp\u00e9rance de la variable al\u00e9atoire Cr\u00e9er une fonction esperance qui prend en param\u00e8tres une liste valeurs des valeurs prises par [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":287,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2356","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/2356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2356"}],"version-history":[{"count":3,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/2356\/revisions"}],"predecessor-version":[{"id":3942,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/2356\/revisions\/3942"}],"up":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/287"}],"wp:attachment":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}