From 2b22e4b6a9f1634d4fcd7109a6bf2c985389b423 Mon Sep 17 00:00:00 2001 From: c3266260f7aecf4e352491877572e311 Date: Sat, 18 Apr 2020 18:30:27 +0000 Subject: [PATCH] =?UTF-8?q?Update=20exercice.ipynb=20-=20estimation=20"cor?= =?UTF-8?q?rig=C3=A9e"=20de=20l'=C3=A9cart=20type=20empirique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/exo2/exercice.ipynb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/module2/exo2/exercice.ipynb b/module2/exo2/exercice.ipynb index 77ef010..75c2331 100644 --- a/module2/exo2/exercice.ipynb +++ b/module2/exo2/exercice.ipynb @@ -27,7 +27,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -35,7 +35,7 @@ "output_type": "stream", "text": [ "14.113000000000001\n", - "4.312369534258399\n", + "4.334094455301447\n", "14.5\n", "2.8\n", "23.4\n" @@ -48,7 +48,7 @@ "moyenne=np.mean(data)\n", "print(moyenne)\n", "\n", - "ecartType=np.std(data)\n", + "ecartType=np.std(data, ddof=1)\n", "print(ecartType)\n", "\n", "mediane=np.median(data)\n", @@ -60,6 +60,13 @@ "maximum=np.max(data)\n", "print(maximum)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { -- 2.18.1