-
Book Overview & Buying
-
Table Of Contents
Practical Data Science Cookbook, Second Edition - Second Edition
By :
Linear regression models can be built to obtain preliminary insight about the trend and seasonal impact on the time series variable. The trend and seasonal components are specified as independent variables while the time series, visitors count here, is the dependent variable. We make the following assumptions while building the linear regression model:
Let Yt 1 < t < T, denote the time series which observations at the time points 1, 2, ..., T. For example, in our overseas visitors data, we have T = 228. In the simplistic regression model, the trend variable is the vector 1, 2, ..., T, that is, XTr = (1, 2, ..., T). We know that for monthly data, we have the month name as the seasonal indicator...