Can Non-linear regression be used for time series forecasting?

조회 수: 3 (최근 30일)
Ehsan na
Ehsan na 2016년 1월 14일
댓글: jgg 2016년 1월 18일
Hey,
Matlab has an example on analyzing a sample time series: Airline passenger data ( link ). In the end of the page, the presented code works very well in incorporating the most relevant information from the input data in constructing a non-linear regression model.
My question is can I use the created model to predict the future data? How?

답변 (1개)

jgg
jgg 2016년 1월 14일
The short answer is yes. At this point in the example:
[b,bint,resid] = regress(logts.data, X);
They've returned a set of coefficients for the independent variables in X. When they plot the fitted data they do the following: X*b.
You can do the same for future, or out of sample data. Set up a new matrix X_f which is the dependent variables for the future times, whatever those might be; in their example it would be time and month dummies. Then, get the predicted values Y_f = X_f*b.
  댓글 수: 4
jgg
jgg 2016년 1월 18일
Accept this answer if you think it solves your problem so other people can see it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multiple Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by