IDEAS home Printed from https://ideas.repec.org/a/eee/intfor/v41y2025i3p1022-1036.html

Constructing hierarchical time series through clustering: Is there an optimal way for forecasting?

Author

Listed:
  • Zhang, Bohan
  • Panagiotelis, Anastasios
  • Li, Han

Abstract

Forecast reconciliation has attracted significant research interest in recent years, with most studies taking the hierarchy of time series as given. We extend existing work that uses time series clustering to construct hierarchies to improve forecast accuracy in three ways. First, we investigate multiple approaches to clustering, including different clustering algorithms, how time series are represented, and how the distance between time series is defined. We find that cluster-based hierarchies improve forecast accuracy relative to two-level hierarchies. Second, we devise an approach based on random permutation of hierarchies, keeping the hierarchy structure fixed while time series are randomly allocated to clusters. In doing so, we find that improvements in forecast accuracy that accrue from using clustering do not arise from grouping similar series but from the structure of the hierarchy. Third, we propose an approach based on averaging forecasts across hierarchies constructed using different clustering methods that is shown to outperform any single clustering method. All analysis is carried out on two benchmark datasets and a simulated dataset. Our findings provide new insights into the role of hierarchy construction in forecast reconciliation and offer valuable guidance on forecasting practice.

Suggested Citation

  • Zhang, Bohan & Panagiotelis, Anastasios & Li, Han, 2025. "Constructing hierarchical time series through clustering: Is there an optimal way for forecasting?," International Journal of Forecasting, Elsevier, vol. 41(3), pages 1022-1036.
  • Handle: RePEc:eee:intfor:v:41:y:2025:i:3:p:1022-1036
    DOI: 10.1016/j.ijforecast.2024.10.002
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0169207024001031
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ijforecast.2024.10.002?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Jeon, Jooyoung & Panagiotelis, Anastasios & Petropoulos, Fotios, 2019. "Probabilistic forecast reconciliation with applications to wind power and electric load," European Journal of Operational Research, Elsevier, vol. 279(2), pages 364-379.
    2. Athanasopoulos, George & Hyndman, Rob J. & Kourentzes, Nikolaos & Panagiotelis, Anastasios, 2024. "Forecast reconciliation: A review," International Journal of Forecasting, Elsevier, vol. 40(2), pages 430-456.
    3. Fionn Murtagh & Pierre Legendre, 2014. "Ward’s Hierarchical Agglomerative Clustering Method: Which Algorithms Implement Ward’s Criterion?," Journal of Classification, Springer;The Classification Society, vol. 31(3), pages 274-295, October.
    4. Graham Elliott & Allan Timmermann, 2016. "Forecasting in Economics and Finance," Annual Review of Economics, Annual Reviews, vol. 8(1), pages 81-110, October.
    5. Makridakis, Spyros & Spiliotis, Evangelos & Assimakopoulos, Vassilios, 2022. "M5 accuracy competition: Results, findings, and conclusions," International Journal of Forecasting, Elsevier, vol. 38(4), pages 1346-1364.
    6. Hollyman, Ross & Petropoulos, Fotios & Tipping, Michael E., 2021. "Understanding forecast reconciliation," European Journal of Operational Research, Elsevier, vol. 294(1), pages 149-160.
    7. Raffaele Mattera & George Athanasopoulos & Rob Hyndman, 2024. "Improving out-of-sample forecasts of stock price indexes with forecast reconciliation and clustering," Quantitative Finance, Taylor & Francis Journals, vol. 24(11), pages 1641-1667, November.
    8. Wang, Xiaoqian & Hyndman, Rob J. & Li, Feng & Kang, Yanfei, 2023. "Forecast combinations: An over 50-year review," International Journal of Forecasting, Elsevier, vol. 39(4), pages 1518-1547.
    9. Athanasopoulos, George & Kourentzes, Nikolaos, 2023. "On the evaluation of hierarchical forecasts," International Journal of Forecasting, Elsevier, vol. 39(4), pages 1502-1511.
    10. Girolimetto, Daniele & Athanasopoulos, George & Di Fonzo, Tommaso & Hyndman, Rob J., 2024. "Cross-temporal probabilistic forecast reconciliation: Methodological and practical issues," International Journal of Forecasting, Elsevier, vol. 40(3), pages 1134-1151.
    11. Di Fonzo, Tommaso & Girolimetto, Daniele, 2024. "Forecast combination-based forecast reconciliation: Insights and extensions," International Journal of Forecasting, Elsevier, vol. 40(2), pages 490-514.
    12. Xiaoqian Wang & Yanfei Kang & Fotios Petropoulos & Feng Li, 2022. "The uncertainty estimation of feature-based forecast combinations," Journal of the Operational Research Society, Taylor & Francis Journals, vol. 73(5), pages 979-993, May.
    13. Shanika L. Wickramasuriya & George Athanasopoulos & Rob J. Hyndman, 2019. "Optimal Forecast Reconciliation for Hierarchical and Grouped Time Series Through Trace Minimization," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 114(526), pages 804-819, April.
    14. Athanasopoulos, George & Hyndman, Rob J. & Kourentzes, Nikolaos & Petropoulos, Fotios, 2017. "Forecasting with temporal hierarchies," European Journal of Operational Research, Elsevier, vol. 262(1), pages 60-74.
    15. Hyndman, Rob J. & Khandakar, Yeasmin, 2008. "Automatic Time Series Forecasting: The forecast Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i03).
    16. Li Li & Yanfei Kang & Fotios Petropoulos & Feng Li, 2023. "Feature-based intermittent demand forecast combinations: accuracy and inventory implications," International Journal of Production Research, Taylor & Francis Journals, vol. 61(22), pages 7557-7572, November.
    17. Panagiotelis, Anastasios & Gamakumara, Puwasala & Athanasopoulos, George & Hyndman, Rob J., 2023. "Probabilistic forecast reconciliation: Properties, evaluation and score optimisation," European Journal of Operational Research, Elsevier, vol. 306(2), pages 693-706.
    18. Li, Han & Li, Hong & Lu, Yang & Panagiotelis, Anastasios, 2019. "A forecast reconciliation approach to cause-of-death mortality modeling," Insurance: Mathematics and Economics, Elsevier, vol. 86(C), pages 122-133.
    19. Kourentzes, Nikolaos & Athanasopoulos, George, 2019. "Cross-temporal coherent forecasts for Australian tourism," Annals of Tourism Research, Elsevier, vol. 75(C), pages 393-409.
    20. Babai, Zied & Boylan, John E. & Kolassa, Stephan & Nikolopoulos, Konstantinos, 2016. "Supply chain forecasting: Theory, practice, their gap and the futureAuthor-Name: Syntetos, Aris A," European Journal of Operational Research, Elsevier, vol. 252(1), pages 1-26.
    21. Koning, Alex J. & Franses, Philip Hans & Hibon, Michele & Stekler, H.O., 2005. "The M3 competition: Statistical tests of the results," International Journal of Forecasting, Elsevier, vol. 21(3), pages 397-409.
    22. Hyndman, Rob J. & Ahmed, Roman A. & Athanasopoulos, George & Shang, Han Lin, 2011. "Optimal combination forecasts for hierarchical time series," Computational Statistics & Data Analysis, Elsevier, vol. 55(9), pages 2579-2589, September.
    23. Pritularga, Kandrika F. & Svetunkov, Ivan & Kourentzes, Nikolaos, 2021. "Stochastic coherency in forecast reconciliation," International Journal of Production Economics, Elsevier, vol. 240(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhang, Bohan & Panagiotelis, Anastasios & Kang, Yanfei, 2024. "Discrete forecast reconciliation," European Journal of Operational Research, Elsevier, vol. 318(1), pages 143-153.
    2. Athanasopoulos, George & Hyndman, Rob J. & Kourentzes, Nikolaos & Panagiotelis, Anastasios, 2024. "Forecast reconciliation: A review," International Journal of Forecasting, Elsevier, vol. 40(2), pages 430-456.
    3. Abolghasemi, Mahdi & Girolimetto, Daniele & Di Fonzo, Tommaso, 2025. "Improving cross-temporal forecasts reconciliation accuracy and utility in energy market," Applied Energy, Elsevier, vol. 394(C).
    4. Rombouts, Jeroen & Ternes, Marie & Wilms, Ines, 2025. "Cross-temporal forecast reconciliation at digital platforms with machine learning," International Journal of Forecasting, Elsevier, vol. 41(1), pages 321-344.
    5. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    6. Zhang, Bohan & Kang, Yanfei & Panagiotelis, Anastasios & Li, Feng, 2023. "Optimal reconciliation with immutable forecasts," European Journal of Operational Research, Elsevier, vol. 308(2), pages 650-660.
    7. Girolimetto, Daniele & Athanasopoulos, George & Di Fonzo, Tommaso & Hyndman, Rob J., 2024. "Cross-temporal probabilistic forecast reconciliation: Methodological and practical issues," International Journal of Forecasting, Elsevier, vol. 40(3), pages 1134-1151.
    8. Olivares, Kin G. & Meetei, O. Nganba & Ma, Ruijun & Reddy, Rohan & Cao, Mengfei & Dicker, Lee, 2024. "Probabilistic hierarchical forecasting with deep Poisson mixtures," International Journal of Forecasting, Elsevier, vol. 40(2), pages 470-489.
    9. Di Fonzo, Tommaso & Girolimetto, Daniele, 2024. "Forecast combination-based forecast reconciliation: Insights and extensions," International Journal of Forecasting, Elsevier, vol. 40(2), pages 490-514.
    10. Sagaert, Yves R. & Kourentzes, Nikolaos, 2025. "Inventory management with leading indicator augmented hierarchical forecasts," Omega, Elsevier, vol. 136(C).
    11. Daniele Girolimetto & Tommaso Di Fonzo, 2024. "Point and probabilistic forecast reconciliation for general linearly constrained multiple time series," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 33(2), pages 581-607, April.
    12. Di Fonzo, Tommaso & Girolimetto, Daniele, 2023. "Cross-temporal forecast reconciliation: Optimal combination method and heuristic alternatives," International Journal of Forecasting, Elsevier, vol. 39(1), pages 39-57.
    13. Li, Han & Hyndman, Rob J., 2021. "Assessing mortality inequality in the U.S.: What can be said about the future?," Insurance: Mathematics and Economics, Elsevier, vol. 99(C), pages 152-162.
    14. Corani, Giorgio & Azzimonti, Dario & Rubattu, Nicolò, 2024. "Probabilistic reconciliation of count time series," International Journal of Forecasting, Elsevier, vol. 40(2), pages 457-469.
    15. Zambon, Lorenzo & Agosto, Arianna & Giudici, Paolo & Corani, Giorgio, 2024. "Properties of the reconciled distributions for Gaussian and count forecasts," International Journal of Forecasting, Elsevier, vol. 40(4), pages 1438-1448.
    16. Pritularga, Kandrika F. & Svetunkov, Ivan & Kourentzes, Nikolaos, 2021. "Stochastic coherency in forecast reconciliation," International Journal of Production Economics, Elsevier, vol. 240(C).
    17. Wang, Xiaoqian & Hyndman, Rob J. & Wickramasuriya, Shanika L., 2025. "Optimal forecast reconciliation with time series selection," European Journal of Operational Research, Elsevier, vol. 323(2), pages 455-470.
    18. Panagiotelis, Anastasios & Gamakumara, Puwasala & Athanasopoulos, George & Hyndman, Rob J., 2023. "Probabilistic forecast reconciliation: Properties, evaluation and score optimisation," European Journal of Operational Research, Elsevier, vol. 306(2), pages 693-706.
    19. Eckert, Florian & Hyndman, Rob J. & Panagiotelis, Anastasios, 2021. "Forecasting Swiss exports using Bayesian forecast reconciliation," European Journal of Operational Research, Elsevier, vol. 291(2), pages 693-710.
    20. Kafa, Nadine & Babai, M. Zied & Klibi, Walid, 2025. "Forecasting mail flow: A hierarchical approach for enhanced societal wellbeing," International Journal of Forecasting, Elsevier, vol. 41(1), pages 51-65.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:intfor:v:41:y:2025:i:3:p:1022-1036. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ijforecast .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.