wip

parent b3ead60b
......@@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 13,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -45,7 +45,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 14,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -115,7 +115,7 @@
"4 1958-04-26 316.48"
]
},
"execution_count": 8,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
......@@ -146,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 15,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -188,7 +188,7 @@
"Index: []"
]
},
"execution_count": 9,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
......@@ -204,7 +204,7 @@
"hidePrompt": false
},
"source": [
"Il ne manque aucune donnée.\n",
"Il n'y a pas de date sans mesure.\n",
"\n",
"### Vérification des écarts entre les données\n",
"On attend un écart de 7 jours entre chaque mesure."
......@@ -212,7 +212,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 16,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -276,7 +276,7 @@
"1958-04-12 1958-04-12 317.69"
]
},
"execution_count": 10,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
......@@ -289,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 17,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -348,12 +348,14 @@
"hidePrompt": false
},
"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",
"execution_count": 13,
"execution_count": 18,
"metadata": {
"hideCode": false,
"hidePrompt": false
......@@ -362,10 +364,10 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cea6d30>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fbf140a1b38>"
]
},
"execution_count": 13,
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
},
......@@ -390,21 +392,21 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"On a un signal oscillant, mais toujours croissant."
"On a un signal oscillant/pulsatil, mais toujours croissant."
]
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cd4d240>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fbf13e3eba8>"
]
},
"execution_count": 17,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
},
......@@ -427,16 +429,16 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f898cc18160>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fbf13df3240>"
]
},
"execution_count": 19,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
},
......@@ -465,7 +467,40 @@
"hidePrompt": false
},
"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é)"
]
}
],
......
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