Skip to content
Prev 327116 / 398502 Next

Test if 2 samples differ if they have autocorrelation

I imagine that most readers of this list will put your question in the 
too hard basket.
That being so, here is my inexpert take on the question.

The issue is to estimate the uncertainty in the estimated difference of 
the means.
This uncertainty depends on the nature of the serial dependence of the 
series.
Therefore in order to get anywhere you need to *model* this dependence.

Different models could yield very different values for the variance of 
the estimated
difference of the means.

If the series are observed at the same times I would suggest taking the 
pointwise
difference of the two series: D_t = X_t - Y_t, say.

Fit the best arima model that you can to D_t. Then the standard error of 
what
is incorrectly labelled "intercept" (it is actually the estimate of the 
series *mean*)
is the appropriate estimate of the uncertainty. The ratio of the 
"intercept" value
to its standard error is the test statistic you are looking for.

If the series are *not* observed at the same times but can be assumed to be
independent then model *each* series as well as you can (different 
models for
each series) and obtain the standard error of the "intercept" for each 
series.
Your test statistic is then the difference of the "intercept estimates 
divided by
sqrt(se_X^2 + se_Y^2) in what I hope is an "obvious" notation.

If the series are not observed at the same times and cannot be assumed to be
independent then you probably haven't got sufficient information to answer
the question that you wish to answer.

I hope that there is some value in the forgoing.

cheers,

Rolf Turner
On 18/07/13 21:50, Eric Jaeger wrote: