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
57e92ddd8e047446b30777d5b69846d1
mooc-rr
Commits
62fef0dd
Commit
62fef0dd
authored
Mar 05, 2023
by
57e92ddd8e047446b30777d5b69846d1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
b3ead60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
21 deletions
+56
-21
exercice.ipynb
module3/exo3/exercice.ipynb
+56
-21
No files found.
module3/exo3/exercice.ipynb
View file @
62fef0dd
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
13
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
14
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"4 1958-04-26 316.48"
"4 1958-04-26 316.48"
]
]
},
},
"execution_count":
8
,
"execution_count":
14
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
9
,
"execution_count":
15
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
"Index: []"
"Index: []"
]
]
},
},
"execution_count":
9
,
"execution_count":
15
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
"hidePrompt": false
"hidePrompt": false
},
},
"source": [
"source": [
"Il n
e manque aucune donné
e.\n",
"Il n
'y a pas de date sans mesur
e.\n",
"\n",
"\n",
"### Vérification des écarts entre les données\n",
"### Vérification des écarts entre les données\n",
"On attend un écart de 7 jours entre chaque mesure."
"On attend un écart de 7 jours entre chaque mesure."
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
0
,
"execution_count": 1
6
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -276,7 +276,7 @@
...
@@ -276,7 +276,7 @@
"1958-04-12 1958-04-12 317.69"
"1958-04-12 1958-04-12 317.69"
]
]
},
},
"execution_count": 1
0
,
"execution_count": 1
6
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
1
,
"execution_count": 1
7
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -348,12 +348,14 @@
...
@@ -348,12 +348,14 @@
"hidePrompt": false
"hidePrompt": false
},
},
"source": [
"source": [
"Il y avait de nombreuses données manquantes."
"Il y avait de nombreuses données manquantes, la plupart de une à 2 mesures consécutives.\n",
"\n",
"### Analyse visuelle"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
3
,
"execution_count": 1
8
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": false
...
@@ -362,10 +364,10 @@
...
@@ -362,10 +364,10 @@
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
898cea6d30
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
bf140a1b38
>"
]
]
},
},
"execution_count": 1
3
,
"execution_count": 1
8
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -390,21 +392,21 @@
...
@@ -390,21 +392,21 @@
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
"source": [
"source": [
"On a un signal oscillant, mais toujours croissant."
"On a un signal oscillant
/pulsatil
, mais toujours croissant."
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
7
,
"execution_count": 1
9
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
898cd4d240
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
bf13e3eba8
>"
]
]
},
},
"execution_count": 1
7
,
"execution_count": 1
9
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -427,16 +429,16 @@
...
@@ -427,16 +429,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
19
,
"execution_count":
20
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
898cc1816
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
bf13df324
0>"
]
]
},
},
"execution_count":
19
,
"execution_count":
20
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -465,7 +467,40 @@
...
@@ -465,7 +467,40 @@
"hidePrompt": false
"hidePrompt": false
},
},
"source": [
"source": [
"La période du signal semble annuel, avec un pic vers le mois de juin et le plus bas vers octobre-novembre."
"La période du signal semble annuel, avec un pic vers le mois de juin et le plus bas vers octobre-novembre.\n",
"\n",
"## Analyse\n",
"Pour se protéger du bruit, on va réaliser une moyenne glissante\n",
"### Analyse de la pulsation\n",
"Les systèmes oscillants peuvent être caractérisés par une fréquence de pulsation et une amplitude du système.\n",
"### Analyse globale : évolution de la concentration dans le temps"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1958-03-29 00:00:00\n",
"DatetimeIndex(['1958-03-30', '1958-04-06', '1958-04-13', '1958-04-20',\n",
" '1958-04-27', '1958-05-04', '1958-05-11', '1958-05-18',\n",
" '1958-05-25', '1958-06-01',\n",
" ...\n",
" '2022-11-20', '2022-11-27', '2022-12-04', '2022-12-11',\n",
" '2022-12-18', '2022-12-25', '2023-01-01', '2023-01-08',\n",
" '2023-01-15', '2023-01-22'],\n",
" dtype='datetime64[ns]', length=3383, freq='W-SUN')\n"
]
}
],
"source": [
"print( timestamp[0] )\n",
"x_lissé = pd.date_range(timestamp[0], timestamp[-1], freq='W')\n",
"print(x_lissé)"
]
]
}
}
],
],
...
...
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