Skip to content

Commit

Permalink
Merge pull request #55 from Ab2nour/refactor/improve-notebook-present…
Browse files Browse the repository at this point in the history
…ation

Refactor/improve notebook presentation
  • Loading branch information
Ab2nour authored Feb 5, 2024
2 parents 9b1f0fd + 778df7e commit 4bf012f
Show file tree
Hide file tree
Showing 8 changed files with 1,568 additions and 835 deletions.
Binary file modified assets/img/candle-stick-explanation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 28 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jupyter = "^1.0.0"
mplfinance = "^0.12.10b0"
dash = "^2.14.0"
prophet = "^1.1.5"
xgboost = "^2.0.3"


[tool.poetry.group.dev.dependencies]
Expand Down
223 changes: 212 additions & 11 deletions src/notebooks/detrend.ipynb

Large diffs are not rendered by default.

41 changes: 34 additions & 7 deletions src/notebooks/exploratory-data-analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,22 @@
},
{
"cell_type": "markdown",
"id": "4162d6d6",
"id": "5732c485",
"metadata": {},
"source": [
"### todo :\n",
"- tableau\n",
"- dire le format des données (ohlc)\n",
"- dire qu'on a 50 * 5 * 3 données\n",
" - donc qu'on a uniquement les jours ouvrés, pas les week-ends et les jours fériés\n",
" - on a des données journalières, donc on veut faire des prédictions à j+10"
"### Jeu de données"
]
},
{
"cell_type": "markdown",
"id": "f04027b3",
"metadata": {},
"source": [
"Cours de l'action Apple de janvier 2019 à janvier 2022 (3 ans)\n",
"\n",
"- 756 dates (weekends et jours fériés exclus) => données journalières\n",
"- 6 valeurs par date : Open, High, Low, Close, Adj. Close et Volume\n",
"- nous n'étudierons que le cours de fermeture Close"
]
},
{
Expand Down Expand Up @@ -498,6 +505,26 @@
"plt.title(f\"Lag plot ({lag = })\")\n",
"pd.plotting.lag_plot(df[\"Close\"], lag=lag)"
]
},
{
"cell_type": "markdown",
"id": "2c9155c7",
"metadata": {},
"source": [
"## Problématique"
]
},
{
"cell_type": "markdown",
"id": "9c40fcb1",
"metadata": {},
"source": [
"Nous cherchons à prédire le cours boursier d'Apple à horizon 2 mois.\n",
"\n",
"Objectifs :\n",
"- prédiction à 60 jours pour pouvoir spéculer\n",
"- avoir un intervalle de confiance (pour ne pas prendre trop de risque)"
]
}
],
"metadata": {
Expand Down
1,421 changes: 1,262 additions & 159 deletions src/notebooks/prediction.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 4bf012f

Please sign in to comment.