Why does the function ploterrcorr display a graph with the values of autocorrelation that are much more than 1?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
It is quite strange that the values of autocorrelation of each delay displayed in the graph are much greater than 1, and I don't know the reason and I wonder if there is someone that has ever found this case. I'm Chinese and my expression may be not quite clear and approriate, hope you could forgive me.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1062970/image.png)
7 comentarios
dpb
el 14 de Jul. de 2022
I'm guessing it's outputting the raw, unscaled estimator which, remember, is
Rxx(m)=E{x(n+m)x(n)}
Use
R=xcorr(res,20)
plot([-20:20],R)
and see if you don't get same result.
R=xcorr(res,20,'coeff');
that is the one you're expecting -- you'll also see it's nothing but the raw one divided by the actual R(0) so it's simple-enough to fixup your case by normalizing yourself.
Respuesta aceptada
nick
el 5 de Oct. de 2023
Hi 志顺 常,
I understand that you are facing an issue in figuring out the reason for “ploterrcorr” to display a graph with the values of autocorrelation greater than 1 at no time lag.
The autocorrelation at lag 0 is equal to the mean squared error and is not normalised. There are two common conventions for error autocorrelation plots:
Either the mean correlation is plotted directly, in which case the height at 0 lag will be the mean squared error, or the correlations are normalized by mean squared error so the lag 0 height is 1. The relative heights and relative confidence band, are the same with either convention. In ploterrcorr it is showing the former, as it shows the additional information of MSE. This is also a common convention for signal processing and control systems.
Kindly refer to “help ploterrcorr” in MATLAB command window to know more about “ploterrcorr”.
Hope it helps.
Regards,
Neelanshu.
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!