<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ishan Buddhika on Medium]]></title>
        <description><![CDATA[Stories by Ishan Buddhika on Medium]]></description>
        <link>https://medium.com/@ishanbuddhika40?source=rss-696a15c5dd4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*k4ore5YnpMfQpfE5</url>
            <title>Stories by Ishan Buddhika on Medium</title>
            <link>https://medium.com/@ishanbuddhika40?source=rss-696a15c5dd4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:56:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishanbuddhika40/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Time Series Forecasting — From ARIMA to Machine Learning]]></title>
            <link>https://medium.com/@ishanbuddhika40/time-series-forecasting-from-arima-to-machine-learning-d2a718442cde?source=rss-696a15c5dd4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2a718442cde</guid>
            <dc:creator><![CDATA[Ishan Buddhika]]></dc:creator>
            <pubDate>Wed, 05 Nov 2025 07:13:47 GMT</pubDate>
            <atom:updated>2025-11-05T07:13:47.301Z</atom:updated>
            <content:encoded><![CDATA[<h3>Time Series Forecasting — From ARIMA to Machine Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Hecz0MMgY5f5EL3GcZ4P2g.png" /><figcaption>Source: <a href="https://www.shutterstock.com/search/time-series?image_type=illustration&amp;dd_referrer=https%3A%2F%2Fwww.google.com%2F"><em>shutterstock</em></a></figcaption></figure><p>In today’s data-driven world, the ability to <strong>predict the future using past data</strong> has become one of the most valuable capabilities for organizations. Whether it’s forecasting sales, anticipating energy demand, or predicting stock movements, <strong>time series forecasting</strong> sits at the heart of these decisions</p><p>From the early days of classical statistical models like <strong>ARIMA </strong>to modern <strong>machine learning (ML)</strong> and <strong>deep learning (DL)</strong> techniques, forecasting has evolved dramatically. This involves blending mathematics, algorithms, and data intuition into a discipline that continues to shape industries.</p><h3><strong>What Is Time Series Data?</strong></h3><p>Before diving into models, let’s understand what makes <strong>time series data</strong> unique.</p><p>Time series data represents <strong>a sequence of observations collected over time</strong>, usually at equal intervals such as daily, weekly, monthly, or even by the millisecond. The key here is <strong>time dependency! </strong>Every observation is linked to what came before it.</p><p>This differs from <strong>cross-sectional data</strong>, where we analyze multiple entities (like people, stores, or regions) at a single point in time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*FFqIEPBM1E6sJMz2sitknQ.png" /></figure><p><strong>Example:</strong></p><ul><li><em>Time Series:</em> A store’s daily sales over one year.</li><li><em>Cross-Sectional:</em> Sales across 100 stores on one particular day.</li></ul><p>Understanding this distinction is crucial because <strong>time order and temporal correlation</strong> make forecasting both challenging and insightful.</p><h3>Real-World Applications of Time Series Data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*btWhfKCv3JarC674ItCTRg.png" /></figure><p>Time series data is everywhere, in every industry, every second. Here’s how it manifests across different frequencies:</p><p><strong>High Frequency</strong></p><ul><li>High-frequency trading (stock tick data — milliseconds)</li><li>IoT sensor monitoring (machine vibration, temperature)</li><li>Website clickstream or event tracking (every few seconds</li></ul><p><strong>Mid Frequency</strong></p><ul><li>Hourly electricity or energy demand</li><li>Daily retail sales, website traffic, or temperature readings</li></ul><p><strong>High Frequency</strong></p><ul><li>Monthly retail revenue or marketing spend</li><li>Quarterly GDP or inflation indicators</li><li>Annual climate or environmental data</li></ul><p>According to <a href="https://mittrinsights.s3.amazonaws.com/HighPerformanceAI.pdf"><strong>AWS &amp; MIT Technology Review Insights (2021)</strong></a><strong>,</strong></p><blockquote>“Time-series data is the most common data type used in machine learning — found in 90% of organizations and used in over 40% of all ML applications.”</blockquote><p>That statistic underscores the importance of mastering forecasting techniques. They power real-world decisions in nearly every data-driven business.</p><h3>The Core Components of Time Series</h3><p>Every time series can be decomposed into a few underlying patterns. Understanding these helps us model and forecast better.</p><ol><li><strong>Trend (T)</strong> — The long-term direction of change over time.<br> <em>Example:</em> <em>A steady increase in e-commerce sales over the years.</em></li><li><strong>Seasonality (S)</strong> — Regular, repeating patterns at fixed intervals.<br> <em>Example:</em> <em>Higher electricity usage during the summer months.</em></li><li><strong>Cyclic (C)</strong>— Fluctuations that occur over irregular time spans, often linked to economic cycles.<br><em> Example: Stock market boom–bust cycles.</em></li><li><strong>Irregular / Random (I)</strong> — Sudden, unpredictable variations.<br> <em>Example:</em> A sudden spike in demand due to viral marketing.</li></ol><figure><img alt="Time series components" src="https://cdn-images-1.medium.com/max/888/1*SEhy7Mp9eJPujPTv1imTKw.png" /></figure><blockquote>“Every time series has a story — trend tells its direction, seasonality tells its rhythm, and randomness adds the surprises.”</blockquote><p>Understanding these components is like reading the DNA of your data. Before you forecast, you must understand what drives it.</p><p>Usually in time series domain, the primarily interest is to capture <strong>trend </strong>and <strong>seasonality</strong> component, as cyclic and irregular components are associated with both short and long term random fluctuations</p><h3>Classical Time Series Models: The ARIMA Family</h3><p>Before the machine learning revolution, forecasting was dominated by <strong>statistical models</strong>, particularly the <strong>ARIMA (AutoRegressive Integrated Moving Average)</strong> model. Despite its age, ARIMA remains a powerful and reliable choice for many real-world forecasting problems.</p><p><strong>How ARIMA Works</strong></p><p>ARIMA combines three components:</p><ul><li><strong>AR (Auto-Regressive):</strong> Uses past values to predict future ones.</li><li><strong>I (Integrated):</strong> Removes trends to make the data stationary.</li><li><strong>MA (Moving Average):</strong> Smooths out random fluctuations by using past errors.</li></ul><p>When fine-tuned correctly, ARIMA balances <strong>memory</strong> and <strong>noise</strong>, providing stable, interpretable forecasts.</p><p><strong>ARIMA Extensions</strong></p><p>Real-world data is rarely simple, it often includes <strong>seasonality</strong> and <strong>external factors</strong>. That’s where ARIMA’s extensions come in:</p><ul><li><strong>SARIMA</strong> — Seasonal ARIMA, adds parameters to handle repeating seasonal patterns (e.g., monthly or quarterly peaks).</li><li><strong>SARIMAX</strong> — Incorporates external variables (like price, promotions, or holidays) to improve accuracy.</li></ul><p>These models are statistically sound, easy to interpret, and work best for <strong>small, stable, and linear datasets</strong>.</p><h3>The Rise of Machine Learning in Forecasting</h3><p>As data became more complex and multi-dimensional, <strong>machine learning models</strong> entered the scene. Unlike ARIMA, ML models can capture <strong>non-linear patterns</strong> and <strong>interactions</strong> among multiple features.</p><p>However, the key to success in ML forecasting lies in <strong>feature engineering </strong>that<strong> </strong>transforming time-dependent characteristics into inputs that models can learn from.</p><h4>Common Time-Based Features</h4><ul><li>Day of the week, week of the year, month, quarter</li><li>Holidays and promotional flags</li><li>Rolling averages and lag values (e.g., last 7-day or 30-day sales)</li><li>Fourier terms for periodic patterns</li><li>Lag variables (both response and predictors)</li></ul><p><strong>Popular Machine Learning Models</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*Wfmd79jpv1VFouyZLgp2Tw.png" /></figure><p>These models offer flexibility, can handle multiple external drivers, and often outperform classical methods when data is rich and noisy.</p><h3>Deep Learning: The Next Frontier</h3><p>For massive datasets with complex temporal dependencies, <strong>deep learning</strong> has become the new powerhouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*veKdrrGiafO4NHGjJIJEkg.png" /></figure><p>These models are data-hungry but powerful. They can learn intricate, time-varying dependencies that traditional models struggle to capture.</p><p>However, they come with trade-offs. H<strong>igh computational cost</strong> and <strong>low interpretability</strong>. In many business contexts, a hybrid approach combining <strong>classical stability</strong> and <strong>ML flexibility</strong> works best.</p><h3>Comparing the Three Generations of Forecasting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*PsEi8LhBf2CtqKvWJxznLQ.png" /></figure><p>Each approach offers unique advantages and in practice, combining them often yields the best performance.</p><h3>Choosing the Right Path Forward</h3><ul><li>If your data is <strong>stable and limited</strong>, start with <strong>ARIMA or SARIMA</strong>.</li><li>If you have <strong>multiple influencing factors</strong>, try <strong>Random Forest, XGBoost</strong>, or <strong>Gradient Boosted Trees</strong>.</li><li>For <strong>massive, fast-changing systems</strong>, explore <strong>LSTM</strong> or <strong>Transformer-based models</strong>.</li></ul><p>Forecasting isn’t about picking one model over another . It’s about matching the <strong>model’s assumptions</strong> to your <strong>data’s reality</strong>.</p><p><strong><em>Mastering time series forecasting is not just about predicting numbers, it’s about understanding how change unfolds over time and using that understanding to make smarter, faster, and more confident decisions.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2a718442cde" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>