IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v45y2026i3p1069-1076.html

Mortality Forecasting Using Variational Inference

Author

Listed:
  • Patrik Andersson
  • Mathias Lindholm

Abstract

This paper considers the problem of forecasting mortality rates. A large number of models have already been proposed for this task, but they generally have the disadvantage of either estimating the model in a two‐step process, possibly losing efficiency, or relying on methods that are cumbersome for the practitioner to use. We instead propose using variational inference and the probabilistic programming library Pyro for estimating the model. This allows for flexibility in modelling assumptions while still being able to estimate the full model in one step. The models are fitted on Swedish mortality data, and we find that the in‐sample fit is good and that the forecasting performance is better than other popular models. Code is available online (https://github.com/LPAndersson/VImortality).

Suggested Citation

  • Patrik Andersson & Mathias Lindholm, 2026. "Mortality Forecasting Using Variational Inference," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(3), pages 1069-1076, April.
  • Handle: RePEc:wly:jforec:v:45:y:2026:i:3:p:1069-1076
    DOI: 10.1002/for.70078
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/for.70078
    Download Restriction: no

    File URL: https://libkey.io/10.1002/for.70078?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
    ---><---

    References listed on IDEAS

    as
    1. Booth, H. & Tickle, L., 2008. "Mortality Modelling and Forecasting: a Review of Methods," Annals of Actuarial Science, Cambridge University Press, vol. 3(1-2), pages 3-43, September.
    2. Salinas, David & Flunkert, Valentin & Gasthaus, Jan & Januschowski, Tim, 2020. "DeepAR: Probabilistic forecasting with autoregressive recurrent networks," International Journal of Forecasting, Elsevier, vol. 36(3), pages 1181-1191.
    3. Carter, Lawrence R. & Lee, Ronald D., 1992. "Modeling and forecasting US sex differentials in mortality," International Journal of Forecasting, Elsevier, vol. 8(3), pages 393-411, November.
    4. David M. Blei & Alp Kucukelbir & Jon D. McAuliffe, 2017. "Variational Inference: A Review for Statisticians," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 112(518), pages 859-877, April.
    5. Mario Marino & Susanna Levantesi & Andrea Nigri, 2023. "A Neural Approach to Improve the Lee-Carter Mortality Density Forecasts," North American Actuarial Journal, Taylor & Francis Journals, vol. 27(1), pages 148-165, January.
    6. Gneiting, Tilmann & Raftery, Adrian E., 2007. "Strictly Proper Scoring Rules, Prediction, and Estimation," Journal of the American Statistical Association, American Statistical Association, vol. 102, pages 359-378, March.
    7. Hyndman, Rob J. & Shahid Ullah, Md., 2007. "Robust forecasting of mortality and fertility rates: A functional data approach," Computational Statistics & Data Analysis, Elsevier, vol. 51(10), pages 4942-4956, June.
    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. 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.
    2. Han Lin Shang & Yang Yang, 2025. "Nonstationary Functional Time Series Forecasting," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(4), pages 1347-1362, July.
    3. Ufuk Beyaztas & Hanlin Shang, 2022. "Machine-Learning-Based Functional Time Series Forecasting: Application to Age-Specific Mortality Rates," Forecasting, MDPI, vol. 4(1), pages 1-15, March.
    4. Shang, Han Lin & Haberman, Steven, 2017. "Grouped multivariate and functional time series forecasting:An application to annuity pricing," Insurance: Mathematics and Economics, Elsevier, vol. 75(C), pages 166-179.
    5. Zuo, Wenyun & Damle, Anil & Tuljapurkar, Shripad, 2025. "Sensitivity and uncertainty in the Lee–Carter mortality model," International Journal of Forecasting, Elsevier, vol. 41(2), pages 781-797.
    6. Ahbab Mohammad Fazle Rabbi & Stefano Mazzuco, 2021. "Mortality Forecasting with the Lee–Carter Method: Adjusting for Smoothing and Lifespan Disparity," European Journal of Population, Springer;European Association for Population Studies, vol. 37(1), pages 97-120, March.
    7. Niels Haldrup & Carsten P. T. Rosenskjold, 2019. "A Parametric Factor Model of the Term Structure of Mortality," Econometrics, MDPI, vol. 7(1), pages 1-22, March.
    8. de Jong, Piet & Tickle, Leonie & Xu, Jianhui, 2016. "Coherent modeling of male and female mortality using Lee–Carter in a complex number framework," Insurance: Mathematics and Economics, Elsevier, vol. 71(C), pages 130-137.
    9. Ayuso, Mercedes & Bravo, Jorge M. & Holzmann, Robert, 2021. "Getting life expectancy estimates right for pension policy: period versus cohort approach," Journal of Pension Economics and Finance, Cambridge University Press, vol. 20(2), pages 212-231, April.
    10. repec:osf:socarx:8u34d_v1 is not listed on IDEAS
    11. Basellini, Ugofilippo & Camarda, Carlo Giovanni, 2025. "Forecasting Cohort Mortality: Lee–Carter Methods and CCP-Splines," SocArXiv 8fxyk_v1, Center for Open Science.
    12. 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.
    13. Carlo G. Camarda & Ugofilippo Basellini, 2021. "Smoothing, Decomposing and Forecasting Mortality Rates," European Journal of Population, Springer;European Association for Population Studies, vol. 37(3), pages 569-602, July.
    14. Han Lin Shang & Rob Hyndman & Heather Booth, 2011. "Point and interval forecasts of mortality rates and life expectancy: A comparison of ten principal component methods," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 25(5), pages 173-214.
    15. Han Lin Shang & Steven Haberman, 2020. "Retiree Mortality Forecasting: A Partial Age-Range or a Full Age-Range Model?," Risks, MDPI, vol. 8(3), pages 1-11, July.
    16. Alex Isakson & Simone Krummaker & María Dolores Martínez-Miranda & Ben Rickayzen, 2021. "Calendar Effect and In-Sample Forecasting Applied to Mesothelioma Mortality Data," Mathematics, MDPI, vol. 9(18), pages 1-17, September.
    17. Kenneth Wong & Jackie Li & Sixian Tang, 2020. "A modified common factor model for modelling mortality jointly for both sexes," Journal of Population Research, Springer, vol. 37(2), pages 181-212, June.
    18. Péter Vékás, 2020. "Rotation of the age pattern of mortality improvements in the European Union," Central European Journal of Operations Research, Springer;Slovak Society for Operations Research;Hungarian Operational Research Society;Czech Society for Operations Research;Österr. Gesellschaft für Operations Research (ÖGOR);Slovenian Society Informatika - Section for Operational Research;Croatian Operational Research Society, vol. 28(3), pages 1031-1048, September.
    19. Francesco Billari & Rebecca Graziani & Eugenio Melilli, 2014. "Stochastic Population Forecasting Based on Combinations of Expert Evaluations Within the Bayesian Paradigm," Demography, Springer;Population Association of America (PAA), vol. 51(5), pages 1933-1954, October.
    20. Wang, Hong & Koo, Bonsoo & O'Hare, Colin, 2016. "Retirement planning in the light of changing demographics," Economic Modelling, Elsevier, vol. 52(PB), pages 749-763.
    21. Rob Hyndman & Heather Booth & Farah Yasmeen, 2013. "Coherent Mortality Forecasting: The Product-Ratio Method With Functional Time Series Models," Demography, Springer;Population Association of America (PAA), vol. 50(1), pages 261-283, February.

    More about this item

    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:wly:jforec:v:45:y:2026:i:3:p:1069-1076. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www3.interscience.wiley.com/cgi-bin/jhome/2966 .

    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.