filters data using the time series model given by tproc.
- KalmanFilter allows data to be a list or TemporalData.
- All the parameters in the time series model tproc must be numeric.
- KalmanFilter output is decided by the type of the input. The first element of the output is initialized to be zero, so the length of the output agrees with the length of the input.
Examplesopen allclose all
Basic Examples (2)
Use KalmanFilter with TimeSeriesModel:
Compare filtering with given initial values:
Create a sample from a weakly stationary ARMA:
Filter using ARMA with given initial values:
Find a filter for a multivariate model and data:
Compare filters using autoregressive and moving-average processes:
Build an autoregressive filter:
Build a moving-average filter:
Find residuals for a fitted time series model:
Consider the following time series data and determine whether it is adequately modeled by a MAProcess:
The correlation function drops off after lag 3. This is evidence of an MAProcess:
Fit an MAProcess model to the data:
Find the model residuals and determine whether they are normally distributed white noise:
The null hypothesis of normality cannot be rejected:
Analyze residuals in TimeSeriesModel:
Calculate residuals from Kalman filtering:
Compare to residuals from TimeSeriesModelFit:
Properties & Relations (1)
Possible Issues (1)
KalmanFilter requires the process to have all parameters numeric:
Wolfram Research (2012), KalmanFilter, Wolfram Language function, https://reference.wolfram.com/language/ref/KalmanFilter.html.
Wolfram Language. 2012. "KalmanFilter." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KalmanFilter.html.
Wolfram Language. (2012). KalmanFilter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KalmanFilter.html