Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to assess the effect of temperature on fish mortality. Both variables are time series, so the residual will be autocorrelated. Is there a regression method to deal with that?

Any advice will be appreciated

share|improve this question
One approach is prewhitening – Glen_b Feb 20 '13 at 4:08
@Glen_b: isn't your comment already an answer? – Stephan Kolassa Feb 20 '13 at 14:19
@StephanKolassa My comment (i) is giving a link not present in that answer, (ii) giving a search term not present in that answer, and (iii) acts as confirmation for the OP that this approach is not something that the answerer just pulled out of the blue. But if you really think that it adds nothing whatever, I can delete it. – Glen_b Feb 20 '13 at 22:09
@Glen_b: maybe I am misunderstanding your comment, or maybe you are misunderstanding my comment... I was not claiming your original comment was a subset of the answer already posted below - I wanted to suggest that you post your comment as an additional answer. Sorry for the confusion. – Stephan Kolassa Feb 20 '13 at 22:22
@StephanKolassa Oh, my apologies. I did indeed misunderstand you. It struck me as a little brief for an answer, especially when there was overlap with the answer already given. Edit - now put as an answer. – Glen_b Feb 20 '13 at 22:24
up vote 2 down vote accepted

You have to remove the auto-correlation from both variables calculating the auto-correlations from each variable at different lags Newx = x-Rho*x Good luck

share|improve this answer
Thanks, I'll try that. – Rafael Feb 20 '13 at 3:29
@TOM is suggesting a procedure called double-prewhitening which can be useful to suggest which variable is "causing" the other. Ultimately one prefers the single pre-whitening, generating Impulse response weights as it doesn't distort the identification of the Transfer Function Model. Care has to be taken to deal with Pulses, level Shifts, Seasonal Pulses and/or Local time trends in forming a useful model Addditionally one needs to be concewrned with time changing parameters and time-varying error variance. Pursue (automatic) Transfer Function identification – IrishStat Feb 20 '13 at 23:21

One approach is prewhitening. (I believe this is essentially the same suggestion @Tom is making, but it helps to have the jargon term to use in searches, and a link where you can read about it.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.