Ajout des commentaires

parent a8138c1b
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np"
"## Création du jeu de données avec Numpy"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"data = np.array([14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7.3, 9.8, 10.9,12.2, 9.9, 2.9, 2.8,\n",
" 15.4, 15.7, 9.7, 13.1, 13.2, 12.3, 11.7, 16.0, 12.4, 17.9, 12.2, 16.2, 18.7, 8.9, 11.9, 12.1, 14.6, 12.1,\n",
" 4.7, 3.9, 16.9, 16.8, 11.3, 14.4, 15.7, 14.0, 13.6, 18.0, 13.6, 19.9, 13.7, 17.0, 20.5, 9.9, 12.5, 13.2,\n",
......@@ -23,9 +22,16 @@
" 23.4, 12.1, 15.5, 15.4, 18.4, 15.7, 10.2, 8.9, 21.0])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Recherche du minimum"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
......@@ -34,7 +40,7 @@
"2.8"
]
},
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
......@@ -43,9 +49,16 @@
"data.min()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Recherche du maximum"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
......@@ -54,7 +67,7 @@
"23.4"
]
},
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
......@@ -63,9 +76,16 @@
"data.max()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de la valeur moyenne"
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [
{
......@@ -74,7 +94,7 @@
"14.113000000000001"
]
},
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
......@@ -83,9 +103,16 @@
"data.mean()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de l'écart type"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 5,
"metadata": {},
"outputs": [
{
......@@ -94,7 +121,7 @@
"4.334094455301447"
]
},
"execution_count": 7,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
......@@ -103,9 +130,16 @@
"data.std(0, ddof=1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de la valeur médiane"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 6,
"metadata": {},
"outputs": [
{
......@@ -114,7 +148,7 @@
"14.5"
]
},
"execution_count": 10,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment