Suppose I measure two quantities at regular intervals, and I have N
pairs of measurements (X[1], Y[1])...(X[N], Y[N]). I would like to
find the correlation between the two but assign a linear "weight" to
each pair of measurements, such that (X[1], Y[1]) has a weight of 1/N,
(X[2], Y[2]) has a weight of 2/N, etc, and (X[N], Y[N]) has a weight
of N/N or 1. The weights are intended to give more relevance to
recent measurements and less to old ones.
What equations would I use to calculate the effective M, B, and R
values for a time-weighted correlation between X and Y as described above? |