r/statistics • u/mandemting03 • 1d ago
Question [Q] Moving Average model. Iterative process to figure out residuals & coefficients?
Edit: The guy in the video mentions something about "iterative convergence". I'm assuming he means how the residuals and coefficients converge to their true values after multiple iterations
I recently started learning about Moving Average models and came across this video where the guy does an iterative process until which he gets the correct residuals and coefficients but I can't for the life of me understand the theory behind why it works.
Basically, for the very first iteration he assumes the errors are the demeaned values. He then regresses them against the Y variables and ends up with coefficients. He then calculates new residuals from the 1st iterative model and uses them as the regressors for the next iteration. He repeats this until the residuals and coefficients barely change.
Why and how does this work?
The only thing I'm familiar with for the MA residuals process is Maximum Likelihood but that's not what he's doing here at all.
Thank you very much
2
u/gyp_casino 1d ago
It actually *is* related to Maximum Likelihood, because MLE typically requires a numerical solver.
You start with a guess of the values, calculate a derivative numerically, and take steps (descend) in the direction towards the minimum.
There are many algorithms for doing so, but some famous ones are c("Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN", "Brent"). (These are the available options in R optim())