Predict function from system identification toolbox, which algorithm is it?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Julian Jørn
el 10 de Abr. de 2022
Editada: Star Strider
el 13 de Abr. de 2022
Hi,
Using System Identification Toolbox I have generated an ARMAX polynomial model. I want to use this to predict a state and compare them to some measurements in order to generate residuals. I found the predict function and it seems like it does what I want.
I have two questions:
Which method does the predict function use to predict?
How do I know that I'm using the correct predict function? I found a lot of others, and they're all called just predict. (I'm coming from python, so this is a bit confusing for me)
0 comentarios
Respuesta aceptada
Star Strider
el 10 de Abr. de 2022
The documentation does not go into any details as to how it works.
To see how well the estimated system fits the data, use the compare function. I would do that first, to be certain that the identified system is appropriate.
8 comentarios
Star Strider
el 13 de Abr. de 2022
Editada: Star Strider
el 13 de Abr. de 2022
Thank you!
EDIT — (13 Apr 2022 at 19:36)
It turns out that my interpretation is correct.
MathWorks reply (in part):
- However, their main difference can be found on the documentation page itself. In the 'forecast' function documentation page Forecast identified model output - MATLAB forecast (mathworks.com), you can see under the Description: 'forecast performs prediction into the future, in a time range beyond the last instant of measured data. In contrast, the predict command predicts the response of an identified model over the time span of measured data. Use predict to determine if the predicted result matches the observed response of an estimated model. If sys is a good prediction model, consider using it with forecast'. This can be illustrated in the plots from the examples Forecast identified model output - MATLAB forecast (mathworks.com) using 'forecast' function and Predict K-step-ahead model output - MATLAB predict (mathworks.com) using 'predict' function.
So predict is the time-domain equivalent of compare, and forecast extends the model response to future values of the independent variable.
Más respuestas (0)
Ver también
Categorías
Más información sobre Time Series Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!