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
d453740234c5bbb9f6944701f2b02ff7
mooc-rr
Commits
ec42506f
Commit
ec42506f
authored
Mar 30, 2020
by
d453740234c5bbb9f6944701f2b02ff7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout des commentaires
parent
a8138c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
15 deletions
+49
-15
exercice.ipynb
module2/exo2/exercice.ipynb
+49
-15
No files found.
module2/exo2/exercice.ipynb
View file @
ec42506f
{
{
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "markdown",
"execution_count": 1,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"
import numpy as np
"
"
## Création du jeu de données avec Numpy
"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
2
,
"execution_count":
1
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"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",
"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",
" 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",
" 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,9 +22,16 @@
" 23.4, 12.1, 15.5, 15.4, 18.4, 15.7, 10.2, 8.9, 21.0])"
" 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",
"cell_type": "code",
"execution_count":
3
,
"execution_count":
2
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -34,7 +40,7 @@
...
@@ -34,7 +40,7 @@
"2.8"
"2.8"
]
]
},
},
"execution_count":
3
,
"execution_count":
2
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -43,9 +49,16 @@
...
@@ -43,9 +49,16 @@
"data.min()"
"data.min()"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Recherche du maximum"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
3
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -54,7 +67,7 @@
...
@@ -54,7 +67,7 @@
"23.4"
"23.4"
]
]
},
},
"execution_count":
5
,
"execution_count":
3
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -63,9 +76,16 @@
...
@@ -63,9 +76,16 @@
"data.max()"
"data.max()"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de la valeur moyenne"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
4
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -74,7 +94,7 @@
...
@@ -74,7 +94,7 @@
"14.113000000000001"
"14.113000000000001"
]
]
},
},
"execution_count":
6
,
"execution_count":
4
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -83,9 +103,16 @@
...
@@ -83,9 +103,16 @@
"data.mean()"
"data.mean()"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de l'écart type"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
5
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -94,7 +121,7 @@
...
@@ -94,7 +121,7 @@
"4.334094455301447"
"4.334094455301447"
]
]
},
},
"execution_count":
7
,
"execution_count":
5
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -103,9 +130,16 @@
...
@@ -103,9 +130,16 @@
"data.std(0, ddof=1)"
"data.std(0, ddof=1)"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Calcul de la valeur médiane"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
10
,
"execution_count":
6
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -114,7 +148,7 @@
...
@@ -114,7 +148,7 @@
"14.5"
"14.5"
]
]
},
},
"execution_count":
10
,
"execution_count":
6
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
...
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