Skip to content

Commit 0b1ef49

Browse files
committed
sarima model studied
1 parent 84355fb commit 0b1ef49

File tree

44 files changed

+4059
-592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4059
-592
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "Time Series Analysis and SARIMA Model for Stock Price Prediction"
3+
date: 2024-07-04T00:00:00+01:00
4+
description: "Short Stock price analysis on AAPL, then a prediction is tested using SARIMA model"
5+
menu:
6+
sidebar:
7+
name: SARIMA
8+
identifier: SARIMA
9+
parent: stock_prediction
10+
weight: 11
11+
hero: images/test_forecast.png
12+
tags: ["Finance", "Statistics", "Forecasting"]
13+
categories: ["Finance"]
14+
---
15+
16+
ok

content/posts/finance/stock_prediction/SARIMA/sarima_example.ipynb

+700
Large diffs are not rendered by default.

content/posts/physics/quantum_computing/qsvm/03_quantum_kernel.ipynb

+101-40
Large diffs are not rendered by default.

public/categories/finance/index.html

+45
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,51 @@
293293

294294

295295

296+
<div class="post-card">
297+
<div class="card">
298+
<div class="card-head">
299+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
300+
<img class="card-img-top" src='/images/default-hero.jpg' alt="Hero Image">
301+
</a>
302+
</div>
303+
<div class="card-body">
304+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
305+
<h5 class="card-title">Time Series Analysis and ARIMA Model for Stock Price Prediction</h5>
306+
<p class="card-text post-summary">1. Introduction Time series analysis is a fundamental technique in quantitative finance, particularly for understanding and predicting stock price movements. Among the various time series models, ARIMA (Autoregressive Integrated Moving Average) models have gained popularity due to their flexibility and effectiveness in capturing complex patterns in financial data.
307+
This article will explore the application of time series analysis and ARIMA models to stock price prediction. We&rsquo;ll cover the theoretical foundations, practical implementation in Python, and critical considerations for using these models in real-world financial scenarios.</p>
308+
</a>
309+
310+
<div class="tags">
311+
<ul style="padding-left: 0;">
312+
313+
314+
<li class="rounded"><a href="/tags/finance/" class="btn btn-sm btn-info">Finance</a></li>
315+
316+
317+
<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>
318+
319+
320+
<li class="rounded"><a href="/tags/forecasting/" class="btn btn-sm btn-info">Forecasting</a></li>
321+
322+
</ul>
323+
</div>
324+
325+
326+
</div>
327+
<div class="card-footer">
328+
<span class="float-start">
329+
Thursday, July 4, 2024
330+
| 9 minutes </span>
331+
<a
332+
href="/posts/finance/stock_prediction/sarima/"
333+
class="float-end btn btn-outline-info btn-sm">Read</a>
334+
</div>
335+
</div>
336+
</div>
337+
338+
339+
340+
296341
<div class="post-card">
297342
<div class="card">
298343
<div class="card-head">

public/categories/finance/index.xml

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
<description>Recent content in Finance on Stefano Giannini</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
9-
<lastBuildDate>Fri, 28 Jun 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/categories/finance/index.xml" rel="self" type="application/rss+xml" /><item>
9+
<lastBuildDate>Thu, 04 Jul 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/categories/finance/index.xml" rel="self" type="application/rss+xml" /><item>
10+
<title>Time Series Analysis and ARIMA Model for Stock Price Prediction</title>
11+
<link>http://localhost:1313/posts/finance/stock_prediction/sarima/</link>
12+
<pubDate>Thu, 04 Jul 2024 00:00:00 +0100</pubDate>
13+
14+
<guid>http://localhost:1313/posts/finance/stock_prediction/sarima/</guid>
15+
<description>1. Introduction Time series analysis is a fundamental technique in quantitative finance, particularly for understanding and predicting stock price movements. Among the various time series models, ARIMA (Autoregressive Integrated Moving Average) models have gained popularity due to their flexibility and effectiveness in capturing complex patterns in financial data.
16+
This article will explore the application of time series analysis and ARIMA models to stock price prediction. We&amp;rsquo;ll cover the theoretical foundations, practical implementation in Python, and critical considerations for using these models in real-world financial scenarios.</description>
17+
</item>
18+
19+
<item>
1020
<title>Time Series Analysis and ARIMA Models for Stock Price Prediction</title>
1121
<link>http://localhost:1313/posts/finance/stock_prediction/arima/</link>
1222
<pubDate>Fri, 28 Jun 2024 00:00:00 +0100</pubDate>

public/categories/index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<description>Recent content in Categories on Stefano Giannini</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
9-
<lastBuildDate>Wed, 03 Jul 2024 08:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
9+
<lastBuildDate>Thu, 04 Jul 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
1010
</channel>
1111
</rss>

public/index.json

+1-1
Large diffs are not rendered by default.

public/index.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66
<description>Recent content on Stefano Giannini</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
9-
<lastBuildDate>Wed, 03 Jul 2024 08:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" /><item>
9+
<lastBuildDate>Thu, 04 Jul 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" /><item>
10+
<title>Time Series Analysis and SARIMA Model for Stock Price Prediction</title>
11+
<link>http://localhost:1313/posts/finance/stock_prediction/sarima/</link>
12+
<pubDate>Thu, 04 Jul 2024 00:00:00 +0100</pubDate>
13+
14+
<guid>http://localhost:1313/posts/finance/stock_prediction/sarima/</guid>
15+
<description>ok</description>
16+
</item>
17+
18+
<item>
1019
<title>Quantum Computing - Fundementals - Teleportation</title>
1120
<link>http://localhost:1313/posts/physics/quantum_computing/teleportation/</link>
1221
<pubDate>Wed, 03 Jul 2024 08:00:00 +0100</pubDate>

public/posts/data-science/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@
315315
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
316316

317317

318+
319+
320+
321+
322+
323+
324+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
325+
326+
318327

319328
</ul>
320329
</li>

public/posts/finance/index.html

+54
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,15 @@
318318
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
319319

320320

321+
322+
323+
324+
325+
326+
327+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
328+
329+
321330

322331
</ul>
323332
</li>
@@ -463,6 +472,51 @@
463472

464473

465474

475+
<div class="post-card">
476+
<div class="card">
477+
<div class="card-head">
478+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
479+
<img class="card-img-top" src='/images/default-hero.jpg' alt="Hero Image">
480+
</a>
481+
</div>
482+
<div class="card-body">
483+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
484+
<h5 class="card-title">Time Series Analysis and ARIMA Model for Stock Price Prediction</h5>
485+
<p class="card-text post-summary">1. Introduction Time series analysis is a fundamental technique in quantitative finance, particularly for understanding and predicting stock price movements. Among the various time series models, ARIMA (Autoregressive Integrated Moving Average) models have gained popularity due to their flexibility and effectiveness in capturing complex patterns in financial data.
486+
This article will explore the application of time series analysis and ARIMA models to stock price prediction. We&rsquo;ll cover the theoretical foundations, practical implementation in Python, and critical considerations for using these models in real-world financial scenarios.</p>
487+
</a>
488+
489+
<div class="tags">
490+
<ul style="padding-left: 0;">
491+
492+
493+
<li class="rounded"><a href="/tags/finance/" class="btn btn-sm btn-info">Finance</a></li>
494+
495+
496+
<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>
497+
498+
499+
<li class="rounded"><a href="/tags/forecasting/" class="btn btn-sm btn-info">Forecasting</a></li>
500+
501+
</ul>
502+
</div>
503+
504+
505+
</div>
506+
<div class="card-footer">
507+
<span class="float-start">
508+
Thursday, July 4, 2024
509+
| 9 minutes </span>
510+
<a
511+
href="/posts/finance/stock_prediction/sarima/"
512+
class="float-end btn btn-outline-info btn-sm">Read</a>
513+
</div>
514+
</div>
515+
</div>
516+
517+
518+
519+
466520
<div class="post-card">
467521
<div class="card">
468522
<div class="card-head">

public/posts/finance/index.xml

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
<description>Recent content in Finance on Stefano Giannini</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
9-
<lastBuildDate>Fri, 28 Jun 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/posts/finance/index.xml" rel="self" type="application/rss+xml" /><item>
9+
<lastBuildDate>Thu, 04 Jul 2024 00:00:00 +0100</lastBuildDate><atom:link href="http://localhost:1313/posts/finance/index.xml" rel="self" type="application/rss+xml" /><item>
10+
<title>Time Series Analysis and ARIMA Model for Stock Price Prediction</title>
11+
<link>http://localhost:1313/posts/finance/stock_prediction/sarima/</link>
12+
<pubDate>Thu, 04 Jul 2024 00:00:00 +0100</pubDate>
13+
14+
<guid>http://localhost:1313/posts/finance/stock_prediction/sarima/</guid>
15+
<description>1. Introduction Time series analysis is a fundamental technique in quantitative finance, particularly for understanding and predicting stock price movements. Among the various time series models, ARIMA (Autoregressive Integrated Moving Average) models have gained popularity due to their flexibility and effectiveness in capturing complex patterns in financial data.
16+
This article will explore the application of time series analysis and ARIMA models to stock price prediction. We&amp;rsquo;ll cover the theoretical foundations, practical implementation in Python, and critical considerations for using these models in real-world financial scenarios.</description>
17+
</item>
18+
19+
<item>
1020
<title>Time Series Analysis and ARIMA Models for Stock Price Prediction</title>
1121
<link>http://localhost:1313/posts/finance/stock_prediction/arima/</link>
1222
<pubDate>Fri, 28 Jun 2024 00:00:00 +0100</pubDate>

public/posts/finance/monte_carlo/black-scholes/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,15 @@
331331
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
332332

333333

334+
335+
336+
337+
338+
339+
340+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
341+
342+
334343

335344
</ul>
336345
</li>
@@ -775,6 +784,9 @@ <h2 id="8-conclusion">8. Conclusion</h2>
775784

776785

777786

787+
788+
789+
778790

779791

780792

public/posts/finance/monte_carlo/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@
321321
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
322322

323323

324+
325+
326+
327+
328+
329+
330+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
331+
332+
324333

325334
</ul>
326335
</li>

public/posts/finance/stock_prediction/arima/index.html

+14-2
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,15 @@
331331
<li><a class="active list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
332332

333333

334+
335+
336+
337+
338+
339+
340+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
341+
342+
334343

335344
</ul>
336345
</li>
@@ -928,6 +937,9 @@ <h3 id="next-steps">Next Steps</h3>
928937

929938

930939

940+
941+
942+
931943

932944

933945

@@ -948,9 +960,9 @@ <h3 id="next-steps">Next Steps</h3>
948960

949961

950962
<div class="col-md-6 next-article">
951-
<a href="/posts/machine-learning/deep-learning/computer-vision/florence/" title="Florence-2 - Vision Foundation Model - Examples" class="btn filled-button">
963+
<a href="/posts/finance/stock_prediction/sarima/" title="Time Series Analysis and SARIMA Model for Stock Price Prediction" class="btn filled-button">
952964
<div>Next <i class="fas fa-chevron-circle-right"></i></div>
953-
<div class="next-prev-text">Florence-2 - Vision Foundation Model - Examples</div>
965+
<div class="next-prev-text">Time Series Analysis and SARIMA Model for Stock Price Prediction</div>
954966
</a>
955967
</div>
956968

public/posts/finance/stock_prediction/gru/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,15 @@
331331
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
332332

333333

334+
335+
336+
337+
338+
339+
340+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
341+
342+
334343

335344
</ul>
336345
</li>
@@ -848,6 +857,9 @@ <h2 id="conclusion">Conclusion</h2>
848857

849858

850859

860+
861+
862+
851863

852864

853865

public/posts/finance/stock_prediction/index.html

+54
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@
321321
<li><a class=" list-link" href="/posts/finance/stock_prediction/arima/" title="ARIMA">ARIMA</a></li>
322322

323323

324+
325+
326+
327+
328+
329+
330+
<li><a class=" list-link" href="/posts/finance/stock_prediction/sarima/" title="SARIMA">SARIMA</a></li>
331+
332+
324333

325334
</ul>
326335
</li>
@@ -466,6 +475,51 @@
466475

467476

468477

478+
<div class="post-card">
479+
<div class="card">
480+
<div class="card-head">
481+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
482+
<img class="card-img-top" src='/images/default-hero.jpg' alt="Hero Image">
483+
</a>
484+
</div>
485+
<div class="card-body">
486+
<a href="/posts/finance/stock_prediction/sarima/" class="post-card-link">
487+
<h5 class="card-title">Time Series Analysis and ARIMA Model for Stock Price Prediction</h5>
488+
<p class="card-text post-summary">1. Introduction Time series analysis is a fundamental technique in quantitative finance, particularly for understanding and predicting stock price movements. Among the various time series models, ARIMA (Autoregressive Integrated Moving Average) models have gained popularity due to their flexibility and effectiveness in capturing complex patterns in financial data.
489+
This article will explore the application of time series analysis and ARIMA models to stock price prediction. We&rsquo;ll cover the theoretical foundations, practical implementation in Python, and critical considerations for using these models in real-world financial scenarios.</p>
490+
</a>
491+
492+
<div class="tags">
493+
<ul style="padding-left: 0;">
494+
495+
496+
<li class="rounded"><a href="/tags/finance/" class="btn btn-sm btn-info">Finance</a></li>
497+
498+
499+
<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>
500+
501+
502+
<li class="rounded"><a href="/tags/forecasting/" class="btn btn-sm btn-info">Forecasting</a></li>
503+
504+
</ul>
505+
</div>
506+
507+
508+
</div>
509+
<div class="card-footer">
510+
<span class="float-start">
511+
Thursday, July 4, 2024
512+
| 9 minutes </span>
513+
<a
514+
href="/posts/finance/stock_prediction/sarima/"
515+
class="float-end btn btn-outline-info btn-sm">Read</a>
516+
</div>
517+
</div>
518+
</div>
519+
520+
521+
522+
469523
<div class="post-card">
470524
<div class="card">
471525
<div class="card-head">

0 commit comments

Comments
 (0)