455
Views
2
CrossRef citations to date
0
Altmetric
Statistical Practice

Using Differentiable Programming for Flexible Statistical Modeling

ORCID Icon, , , , , , & show all
Pages 270-279 | Received 07 Dec 2020, Accepted 17 Oct 2021, Published online: 21 Dec 2021
 

ABSTRACT

Differentiable programming has recently received much interest as a paradigm that facilitates taking gradients of computer programs. While the corresponding flexible gradient-based optimization approaches so far have been used predominantly for deep learning or enriching the latter with modeling components, we want to demonstrate that they can also be useful for statistical modeling per se, for example, for quick prototyping when classical maximum likelihood approaches are challenging or not feasible. In an application from a COVID-19 setting, we use differentiable programming to quickly build and optimize a flexible prediction model adapted to the data quality challenges at hand. Specifically, we develop a regression model, inspired by delay differential equations, that can bridge temporal gaps of observations in the central German registry of COVID-19 intensive care cases for predicting future demand. With this exemplary modeling challenge, we illustrate how differentiable programming can enable simple gradient-based optimization of the model by automatic differentiation. This allowed us to quickly prototype a model under time pressure that outperforms simpler benchmark models. We thus exemplify the potential of differentiable programming also outside deep learning applications to provide more options for flexible applied statistical modeling.

Supplementary Materials

The supplementary material contains the code for the original Julia implementation of the loss function and model optimization as well as additional results on the comparison of the proposed model with benchmarks, sensitivity analysis with respect to model covariates and data subsets, and model validation.

Acknowledgments

The authors thank Gerta Rücker for her thoughtful comments on the article.

Notes

Additional information

Funding

MH acknowledges funding by the DFG (German Research Foundation, grant no. 322977937/GRK2344).

Log in via your institution

Log in to Taylor & Francis Online

PDF download + Online access

  • 48 hours access to article PDF & online version
  • Article PDF can be downloaded
  • Article PDF can be printed
USD 61.00 Add to cart

Issue Purchase

  • 30 days online access to complete issue
  • Article PDFs can be downloaded
  • Article PDFs can be printed
USD 106.00 Add to cart

* Local tax will be added as applicable

Related Research

People also read lists articles that other readers of this article have read.

Recommended articles lists articles that we recommend and is powered by our AI driven recommendation engine.

Cited by lists all citing articles based on Crossref citations.
Articles with the Crossref icon will open in a new tab.