正在学习
21.1 FORECASTING COUNT DATA
21.1 FORECASTING COUNT DATA
Often we are interested in forecasting outcomes for variables restricted to take on integer values. For example, could have a support , where M could be infinite. In such situations it seems appropriate to take this support into account both for the elicitation of the loss function as well as in the construction of the forecasting model. It would seem as though nearly all forecasting problems fit this situation; for example, forecasting the number of jobs added to the economy fits this situation since the number of jobs is a natural number. This also holds when forecasting the level of GDP since this is often rounded to millions of dollars and in any case cannot be fractions of cents. However, for large values of the “count data” nature of the problem can appropriately be ignored because taking it into consideration considerably complicates the forecasting process with no hope of any gains to either predictive accuracy or our understanding of the problem. Hence, applications of count data really refer to situations where M is quite small, typically no more than 5 or 10. Examples include forecasting the size of a household, or the number of cars or computers owned by the household, or the number of individual stocks held by private investors.
There appears to be very little work done on understanding loss functions for count data problems. Nearly all point forecasting methods revolve around the provision of estimates of the conditional mean, implicitly assuming a squared error loss function.
21.1.1 Parametric Models for Count Data
Parametric approaches to modeling count data choose distributions for which the support includes only nonnegative integers. The parametric model of choice in this literature is the Poisson model. The Poisson(λ), model has support , so M is infinite and assigns probabilities . Both the mean and variance of the Poisson distribution equal λ and all moments exist for this distribution.
More generally, in a regression setting we could allow the Poisson parameter λ to be a function of conditioning variables, , once again imposing that is positive. The standard approach to modeling λ(z) is to use the exponent of a linear index,
Assuming that the parametric model is correctly specified, maximum likelihood procedures are available. Results are also available for other estimators. The literature on estimation of these models is specialized and lengthy; Cameron and Trivedi (1998) provide an excellent overview.
Models of the type in (21.1) can include lags of the counts in . In the Poisson model this would also make the variance of the outcome depend on lags of the counts. Alternatively, a wide set of dynamic models are aimed at generalizing autoregressive models. McKenzie (2003) provides a wide ranging review of such models.
A popular generalization of autoregressive specifications for use in modeling and forecasting count data is the integer autoregressive model of order denoted , introduced by Al-Osh and Alzaid (1987). The most common version of this model takes the form
where , where each of the terms are Bernoulli(ai ) 0–1 random variables with . The motivation for this approach comes from always being integer valued—as opposed to, say, including a lagged dependent variable with a fixed coefficient. Typically, is drawn from a parametric distribution that is nonnegative and independent of and past values of . This ensures that is independent of the lagged component of the model, which is integer valued, and so requires to also be integer valued. Again, the most common specification for is the Poisson(λ) distribution, although other distributions such as the binomial are also used. The distribution for is nonnegative and so has a nonzero mean, which explains the absence of a constant term in the model (21.2). Using that and are independent, we have . As , past values for the count have a damped effect on the current count.1 For stationary models we require that . Numerous variations on this model result in different properties; see McKenzie (2003).
Estimation of the INAR(1) model with observations on is relatively straightforward. Assuming to be Poisson(λ), the parameters can be estimated using either maximum likelihood or simply by OLS regression of on a constant and with aˆ being the OLS coefficient on the lagged dependent variable, followed by setting . Using these plug-in estimators, a prediction of the mean of can be computed as , where the extra term arises through the mean of . Alternatively, since the model is fully parametric, we can construct the forecast distribution directly (Freeland and McCabe, 2004). This approach does not generally result in an integer-valued prediction, although the forecast can be rounded to the nearest integer value.
Using recursive substitution and taking expectations results in the h-step-ahead forecast,2
where the first term is familiar from the AR(1) model and the second term arises due to the nonzero mean of
To construct the forecast distribution directly, consider the INAR(1) model with Poisson(λ) residuals:
for each . To derive this expression, note that there are a number of combinations of the autoregressive component and the residual that sum to For each of these combinations, the probability is simply the product of the binomial and Poisson terms that give rise to that sum. This follows from the independence of these terms. If the binomial part equals some value , then the Poisson part must be for the total sum to be Plug-in estimates of can be used to generate an estimated h-step-ahead forecast distribution and, provided these parameters are consistently estimated, the probabilities constructed in this manner are also consistent. Bayesian prediction methods have also been developed for this class of models; see McCabe and Martin (2005).
Less parametric approaches have also been considered. McCabe, Martin, and Harris (2011) study the model (21.2) but leave the distribution of unrestricted apart from imposing that its support is the set of nonnegative integers. Instead they suggest a nonparametric MLE approach for estimating the distribution of the residuals; for details of this method, see section 2.3 of their paper.
练习题
Which of the following is an example of count data forecasting?
What is the support of the Poisson() model?
Select all the correct statements about the Poisson distribution.
For large values of , the count data nature of the problem can be ignored without affecting predictive accuracy.
In a regression setting, the Poisson parameter can be modeled as a function of conditioning variables using , ensuring is ___.
Explain why the squared error loss function is implicitly assumed in nearly all point forecasting methods for count data.
Which model is a popular generalization of autoregressive specifications for count data?
Select all the correct properties of the INAR(p) model.
The INAR(p) model always includes a constant term to account for the nonzero mean of .
Describe the motivation behind using in the INAR(p) model.
When forecasting the number of cars owned by households, which of the following statements is correct regarding the choice of model and its properties?
Which of the following statements are true regarding the estimation of Poisson models and their applications in forecasting count data?
The INAR(p) model is a generalization of autoregressive models that ensures the forecasted values are always nonnegative integers.
登录后解锁笔记、知识点解析、AI 问答
立即登录