<?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 Amayas Allam on Medium]]></title>
        <description><![CDATA[Stories by Amayas Allam on Medium]]></description>
        <link>https://medium.com/@amayas.allam?source=rss-c6ec90e05021------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7awmawck8H3hr3y650KNvw.jpeg</url>
            <title>Stories by Amayas Allam on Medium</title>
            <link>https://medium.com/@amayas.allam?source=rss-c6ec90e05021------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:09:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amayas.allam/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[Forecast Reconciliation for the Energy Sector]]></title>
            <link>https://medium.com/sia-ai/forecast-reconciliation-for-the-energy-sector-82b6b184bed7?source=rss-c6ec90e05021------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b6b184bed7</guid>
            <category><![CDATA[time-series-forecasting]]></category>
            <category><![CDATA[energy-sector]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[forecast-reconciliation]]></category>
            <dc:creator><![CDATA[Amayas Allam]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 15:46:20 GMT</pubDate>
            <atom:updated>2026-07-03T11:46:05.067Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we tackle forecast reconciliation by first laying out the key conceptual foundations, then illustrating its practical relevance through concrete use cases and finally benchmarking different reconciliation approaches in an empirical study.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_I0XcwNgfyTt6A-M.png" /></figure><h3>Introduction: What is forecast reconciliation?</h3><h4>Operational context</h4><p>In many operational contexts, forecasts are produced across multiple dimensions, such as different time scales or spatial levels. However, these forecasts are often generated independently, which can result in inconsistencies, such as the sum of local forecasts not matching a national total, or forecasts at a hourly level diverging from daily projections. Forecast reconciliation is a set of statistical techniques designed to correct these inconsistencies by adjusting forecasts so they are coherent across a given structure. This study shows how forecasts performance can be improved using reconciliation techniques at temporal and spatial level.</p><h4>Empirical Study</h4><p>Our empirical study focuses on electricity consumption forecasts in France, using data aggregated at the regional level. Each of the 13 administrative regions has its own consumption pattern and forecast. At the same time, national-level forecasts are also produced independently. Moreover, forecasts are generated at several time horizons, such as hourly and daily forecasts. This creates a two-dimensional structure: one spatial (from regional to national) and one temporal (from short- to medium-term horizons).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYhKd0pc7Pc58ZBs8csf_Q.png" /><figcaption><strong>Temporal hierarchy: </strong>data is structured across three levels — quarters (Q), semesters (S) and year (Y).​</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZjuzO94th8Lu5bQbbxzwg.jpeg" /><figcaption><strong>Cross-temporal hierarchy: </strong>data is structured across three temporal levels (Q, S, Y) and two sectional levels — Country and Regions 1 &amp; 2.​</figcaption></figure><h4>Cross Temporal Reconciliation</h4><p>Cross temporal reconciliation aims at ensuring coherence both across regions (spatial coherence) and across time scales (temporal coherence). For example, if the sum of regional forecasts for a given day is higher than the independently forecasted national total, the reconciliation process will adjust the forecasts so that they are consistent, while minimizing distortion of the original predictions. Similarly, an hourly forecast should align with the corresponding daily forecast when aggregated over time. We believe that reconciling forecasts across both temporal and spatial levels can support operational decision-making, especially in the energy sector, where fine-grained regional forecasts and aggregate national outlooks are critical, but also enhance the accuracy of higher-level forecasts by leveraging information from lower-level data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vs6df0Zu42mSuWM2gjzZSA.png" /><figcaption><strong>Cross-Temporal Reconciliation:</strong> Cross-Temporal Reconciliation aims at reconciling forecast both on the temporal and geographical dimension.</figcaption></figure><h3>Business cases</h3><h4>Tourism</h4><p>In the tourism industry, demand may highly fluctuate across time and location, making it difficult for businesses and public stakeholders to plan resources efficiently. In this context, inconsistent forecasts across spatial or temporal levels can lead to poor decision-making, such as staff misallocation, underutilized infrastructure, or missed revenue opportunities. This makes the tourism sector a relevant use case for forecast reconciliation, which has been widely studied in the academic literature (Hyndman et al., 2009). By ensuring that forecasts remain coherent across spatial hierarchies and temporal resolutions, reconciliation techniques help improve the reliability of planning processes. Typical forecasts include hotel room bookings, restaurant attendance, or tourist activity volumes.</p><h4>Logistics services</h4><p>Last mile logistics services such as food delivery companies could also leverage Forecast Reconciliation for their operational and strategic efficiency. For example, within a food delivery platform, demand forecasts made at the half-hour level can be used for real time monitoring and to steer pricing towards areas under pressure, ensuring better operational performance. On the other hand, forecasts made at the daily or weekly level can help area managers plan decision on the long term. Ensuring spatial and temporal coherence across all these forecasts can help align the company’s operational and strategic objectives. The last mile logistics sector is particularly characterized by highly complex spatial hierarchies (Rombouts et al., 2024). It is therefore possible to apply a reconciliation process across multiple temporal scales, such as hourly, half-daily, daily, and weekly forecasts. In this context, reconciliation techniques are especially valuable, as coherent and accurate forecasts directly enhance business efficiency.</p><h4>Energy</h4><p>The energy sector also benefits from Forecast Reconciliation (Hong, Xie and Black, 2019). From our business perspective, one concrete application can be found in the operations of Natran (formerly GRTGaz), a major player in France’s natural gas transmission network. In this context, reconciliation is required across spatial hierarchies: national consumption forecasts must align with regional demand to ensure that gas is routed efficiently through the pipeline infrastructure. Failure to reconcile these forecasts accurately can result in supply mismatches, which are strictly regulated by the French energy commission (CRE). To mitigate this risk, operators often rely on conservative buffer strategies, maintaining excessive reserves or over-delivering, which translates into significant operational costs. The application of reconciliation methods, as discussed in this article, offers a concrete lever for both risk reduction and cost optimization. More broadly, it opens the door to smarter, data-driven decision-making in critical infrastructure sectors. The next section introduces key theoretical concepts behind Forecast Reconciliation and outlines the framework used in our empirical study.</p><h3>Forecast Reconciliation Principles</h3><h4>Linear methods</h4><p>Forecast reconciliation sits at the crossroads of statistical modeling, optimization, and machine learning. Foundational work in this area can be traced back to Hyndman et al. (2011), who provided a unified framework for existing reconciliation strategies — such as bottom-up, top-down, and middle-out — by formulating them as special cases of constrained linear combinations of base forecasts. Their approach introduced a matrix representation of hierarchical systems via a summation matrix S, allowing reconciliation to be posed as a linear optimization problem. For example, if the hierarchy admits 5 bottom levels and 1 upper level then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*BxrcanGrBaR5lnp4HdT8fg.png" /></figure><p>The MinT method, introduced by Wickramasuriya et al. (2019), uses a generalized least squares framework to minimize the covariance of reconciled forecast errors and offers several variants that differ in how this covariance is estimated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4UcqX0NW05kqBrCJYiwKw.png" /></figure><p>More recently, the concept of cross-temporal reconciliation has emerged, addressing not only coherence across hierarchical levels, but also consistency across different forecast horizons. Kourentzes and Athanasopoulos (2019) extended the MinT logic to a temporal framework, studying time-based aggregation coherence in the context of tourism forecasting in Australia. Their method optimizes both horizontal coherence (across spatial levels) and vertical coherence (across temporal resolutions). Building on this foundation, Di Fonzo and Girolimetto (2023) proposed a more comprehensive extension of the reconciliation framework, both theoretically and practically.</p><h4>Further achievements</h4><p>Several studies have recently explored non-linear machine learning methods for forecast reconciliation, including work by Rombouts, Ternes, and Wilms (2024). Their approach models the residuals between incoherent base forecasts and their aggregates using techniques such as Random Forests, XGBoost, and LightGBM, learning complex patterns in the residuals rather than relying only on linear projections or covariance-based adjustments. Concretely, two sets of base forecasts are generated using sliding windows of different sizes over a defined time interval, across all desired spatial and temporal scales. The first set serves as the training data and the second as the validation set for the chosen machine learning model. The model is trained on the first set of base forecasts to predict the reconciliation of the second set. The key takeaway is that this ML approach requires roughly twice the computational effort and a more complex implementation than traditional reconciliation methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsdRM2J4oIcbJzp9fxn2ug.png" /><figcaption><strong>Rolling-window procedure for machine-learning based forecast reconciliation: </strong>This figure is adapted from the article <em>Cross-Temporal Forecast Reconciliation at Digital Platforms with Machine Learning (Rombouts et al</em>., 2024). It shows how the rolling window is built. Q is the rolling window size, H is the forecast horizon, R is the number of rolling window iterations and N represents the size of the complete sample.</figcaption></figure><p>The framework has been tested on real-world applications such as on-demand delivery and bike-sharing systems and has demonstrated superior performance over traditional statistical methods — both in terms of forecast accuracy and coherence across the hierarchical structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-TyqNJV6EeGUpEeuP5ekQ.png" /><figcaption><strong>Forecast Reconciliation Workflow:</strong> Time-series data are modeled to produce independent base forecasts, which are then reconciled to ensure spatial and temporal consistency across the entire hierarchy.</figcaption></figure><h3>Case study: Energy consumption forecast</h3><h4>Design of the study</h4><p>For this study, we selected an electricity consumption dataset covering the entire French territory, with a two-level spatial hierarchy (13 administrative regions and the national level) and a 30-minute temporal resolution, allowing for both fine-grained and aggregated daily forecasts. Initial (base) forecasts were generated independently at each spatio-temporal level using a range of models, including linear methods (e.g., linear regression) and non-linear machine learning models (e.g., Random Forest, XGBoost). These base forecasts were then reconciled using various techniques:</p><ul><li>The Optimal Combination method, as formulated by Hyndman et al. (2011),</li><li>Heuristic approaches proposed by Di Fonzo and Girolimetto (2023),</li><li>Sequential reconciliation strategies (Cross-Sectional then Temporal, and Temporal then Cross-Sectional), introduced by Kourentzes and Athanasopoulos (2019),</li><li>The machine learning-based reconciliation framework from Rombouts, Ternes, and Wilms (2024).</li></ul><p>All these methods are available through the R package FoReco or the Python library hierarchicalforecast, except for the ML-based approach. Because FoReco provides ready-to-use built-in functions, we implemented it in Python by combining FoReco with the Rpy2 interface.</p><p>To ensure the robustness of our results, all forecasts were produced independently and iteratively using a rolling window approach. The machine learning method requires the construction of a dedicated training set to fit the reconciliation model, and a separate test set on which the final reconciled forecasts are produced. To this end, we followed the methodological framework proposed by Rombouts, Ternes, and Wilms (2024).</p><p>Specifically, the Weighted Absolute Percentage Error (WAPE) was computed at each level of the spatio-temporal hierarchy.</p><h4>Benchmark Results</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1D2VMTXY3JRueKcwaa3uUQ.png" /><figcaption><strong><em>Benchmark results (WAPE): </em></strong>The “Base Methods” column indicates the forecasting model used to generate the initial, unreconciled predictions. The “Reconciliation Methods” column specifies the approach applied to adjust these base forecasts for coherence across the hierarchy. For instance, a row listing Random Forest in both columns implies that Random Forest was used both to generate the base forecasts and as the reconciliation model within a machine learning-based reconciliation framework. Lower scores correspond to better performance, indicating more effective reconciliation. For each base method, the reconciliation method that achieved the best performance is highlighted in bold. For the sake of clarity, not all results have been displayed in this table.</figcaption></figure><p><strong>Across all scenarios, forecast reconciliation consistently outperforms base forecasts at the aggregated scale, whether temporal (daily) or spatial (France-level).</strong> When base forecasts rely on linear regression, temporal reconciliation of France-level predictions cuts WAPE from 7.24% up to 2.95% (2.5x improvement).</p><p>Another important insight from this study is the robustness of the machine learning–based reconciliation approach proposed by Rombouts, Ternes, and Wilms (2024). The method consistently performs well across different base forecasting techniques, whether linear or non-linear. However, this method comes with practical trade-offs. It requires the generation of two sets of forecasts: one for training the machine learning reconciliation model and another for final predictions. This can pose a non-negligible constraint in operational settings, especially when dealing with complex hierarchies, high-frequency temporal data, or limited computational resources.</p><h3>Conclusion</h3><p>Forecast reconciliation emerges from this study as both a practical necessity and a methodological frontier for organizations that operate across multiple spatial and temporal scales. Whether in tourism, last-mile logistics, or energy networks, the evidence shows that aligning forecasts across hierarchies not only prevents costly inconsistencies but also enhances the accuracy of high-level projections by leveraging granular information.</p><p>Classical linear approaches such as MinT remain strong, accessible baselines, while cross-temporal extensions further improve coherence when different forecast horizons must agree. At the same time, machine learning–based reconciliation introduces a new level of robustness by capturing complex residual patterns across the hierarchy, albeit with higher computational and implementation demands.</p><p>Together, these findings highlight a clear message: effective reconciliation is a key enabler of data-driven decision-making, offering measurable gains in efficiency, reliability, and strategic insight across diverse industries.</p><h3>Bibliography</h3><p>Athanasopoulos, G, RA Ahmed &amp; RJ Hyndman (2009). Hierarchical forecasts for Australian domestic tourism. International Journal of Forecasting 25(1), 146–166.</p><p>Hyndman, R. J., Ahmed, R. A., Athanasopoulos, G., Shang, H. L., sep 2011. Optimal combination forecasts for hierarchical time series. Computational Statistics &amp; Data Analysis 55 (9), 2579–2589.</p><p>Wickramasuriya, SL, G Athanasopoulos &amp; RJ Hyndman (2019). Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization. Journal of the American Statistical Association 114(526), 804–819.</p><p>Kourentzes, N &amp; G Athanasopoulos (2019). Cross-temporal coherent forecasts for Australian tourism. Annals of Tourism Research 75, 393–409.</p><p>Rombouts, J., Ternes, M., &amp; Wilms, I. (2024, 14 février). <em>Cross-Temporal Forecast Reconciliation at Digital Platforms with Machine Learning</em>.</p><p>Hong, T, J Xie &amp; J Black (2019). Global energy forecasting competition 2017: Hierarchical probabilistic load forecasting. International Journal of Forecasting 35(4), 1389–1399.</p><p>Di Fonzo, T &amp; D Girolimetto (2023a). Cross-temporal forecast reconciliation: Optimal combination method and heuristic alternatives. International Journal of Forecasting 39(1), 39–57.</p><p>Di Fonzo, T &amp; D Girolimetto (2023b). Spatio-temporal reconciliation of solar forecasts. Solar Energy 251, 13–29.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b6b184bed7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sia-ai/forecast-reconciliation-for-the-energy-sector-82b6b184bed7">Forecast Reconciliation for the Energy Sector</a> was originally published in <a href="https://medium.com/sia-ai">Sia AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>