Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
f509977a31a17c4fcd1bbfffba0b4c91
mooc-rr
Commits
c0f581ca
Commit
c0f581ca
authored
Apr 20, 2026
by
f509977a31a17c4fcd1bbfffba0b4c91
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
395dafe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
exercice.ipynb
module2/exo2/exercice.ipynb
+10
-10
No files found.
module2/exo2/exercice.ipynb
View file @
c0f581ca
...
@@ -55,16 +55,16 @@
...
@@ -55,16 +55,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
2
,
"execution_count": 1
6
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"Moyenne : 14.11
3000000000001
\n",
"Moyenne : 14.11\n",
"Attention l'écart-type est calculé avec ddof = 1\n",
"Attention l'écart-type est calculé avec ddof = 1\n",
"Écart-type (NumPy ddof=1) : 4.33
4094455301447
\n",
"Écart-type (NumPy ddof=1) : 4.33\n",
"Médianne : 14.5\n",
"Médianne : 14.5\n",
"Max : 23.4\n",
"Max : 23.4\n",
"Min : 2.8\n",
"Min : 2.8\n",
...
@@ -74,25 +74,25 @@
...
@@ -74,25 +74,25 @@
],
],
"source": [
"source": [
"# Calcule de la valeur moyenne\n",
"# Calcule de la valeur moyenne\n",
"mean_val_np = np.mean(data)\n",
"mean_val_np = np.mean(data)
.round(2)
\n",
"\n",
"\n",
"# Calcul avec ddof=1 pour l'écart-type corrégi\n",
"# Calcul avec ddof=1 pour l'écart-type corrégi\n",
"std_val_np = np.std(data, ddof=1)\n",
"std_val_np = np.std(data, ddof=1)
.round(2)
\n",
"\n",
"\n",
"# Calcul min\n",
"# Calcul min\n",
"min_val_np = np.min(data)\n",
"min_val_np = np.min(data)
.round(2)
\n",
"\n",
"\n",
"# Calcul max \n",
"# Calcul max \n",
"max_val_np = np.max(data)\n",
"max_val_np = np.max(data)
.round(2)
\n",
"\n",
"\n",
"# Calcule meadianne\n",
"# Calcule meadianne\n",
"med_val_np = np.median(data)\n",
"med_val_np = np.median(data)
.round(2)
\n",
"\n",
"\n",
"\n",
"\n",
"print(\n",
"print(\n",
" f\"Moyenne : {mean_val}\\n\"\n",
" f\"Moyenne : {mean_val
_np
}\\n\"\n",
" f\"Attention l'écart-type est calculé avec ddof = 1\\n\"\n",
" f\"Attention l'écart-type est calculé avec ddof = 1\\n\"\n",
" f\"Écart-type (NumPy ddof=1) : {std_val}\\n\"\n",
" f\"Écart-type (NumPy ddof=1) : {std_val
_np
}\\n\"\n",
" f\"Médianne : {med_val_np}\\n\"\n",
" f\"Médianne : {med_val_np}\\n\"\n",
" f\"Max : {max_val_np}\\n\"\n",
" f\"Max : {max_val_np}\\n\"\n",
" f\"Min : {min_val_np}\\n\"\n",
" f\"Min : {min_val_np}\\n\"\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment