Compute rolling correlation
Posted: Wed Nov 02, 2022 10:56 pm
Suppose I have two series: x1 and x2. Daily data for 10 years.
While I have read through the rolling regression thread, I'm not sure that I'm able to apply that to rolling correlation. Could someone demonstrate how a program could create a new series based on a rolling window? I'd like to use a rolling 250 size window.
Thanks
While I have read through the rolling regression thread, I'm not sure that I'm able to apply that to rolling correlation. Could someone demonstrate how a program could create a new series based on a rolling window? I'd like to use a rolling 250 size window.
Thanks