stats/rolling_correlation_utils library
Rolling (sliding-window) Pearson correlation (roadmap #577).
Computes the Pearson correlation between two series within each window of a fixed size as it slides one step at a time, revealing how the strength of the relationship changes over the course of the data.