1. A non-transitory storage medium storing instructions readable and executable by an electronic data processing device to perform a method comprising: generating a Fourier model of history of demand for a resource comprising time series data; estimating demand for the resource at a prediction time by evaluating the Fourier model at the prediction time; and generating a prediction of demand for the resource at the prediction time by evaluating a regression function operating on an input data set including at least the estimated demand for the resource at the prediction time estimated by evaluating the Fourier model at the prediction time and measured values of demand for the resource measured at one or more times prior to the prediction time.