Which Dickey-Fuller test should I apply to this time series?

In summary, the conversation discusses testing for stationarity in a time series of climate data. The underlying model is expected to have an intercept term, a positive linear time trend, and a normally distributed error term. The discussion focuses on using the Dickey-Fuller test to test for a unit root in the model, and whether to use a test that includes only an intercept or one that includes both an intercept and a linear time trend. The conversation also touches on the implications of using a test with a quadratic trend term.
  • #1
pythonscript
7
0
I have a time series of climate data that I'm testing for stationarity. Based on previous research, I expect the model underlying the data to have an intercept term, a positive linear time trend, and some normally distributed error term. In other words, I expect the underlying model to look something like this:

yt = a0 + a1t + β yt-1 + ut $

where ut is normally distributed. Since I'm assuming the underlying model has both an intercept and a linear time trend, I tested for a unit root with equation #3 of the simple Dickey-Fuller test, as shown:

∇yt = α01t+δ yt-1+ut

This test returns a critical value that would lead me to reject the null hypothesis and conclude that the underlying model is non-stationary. However, I question if I'm applying this correctly, since even though the underlying model is assumed to have an intercept and a time trend, this does not imply that the first difference ∇yt will as well. Quite the opposite, in fact, if my math is correct.

Calculating the first difference based on the equation of the assumed underlying model gives:
∇yt = yt - yt-1 = [a0 + a1 + β yt-1 + ut] - [a0 + a1(t-1) + β yt-2 + ut-1]

∇yt = [a0 - a0] + [a1t - a1(t-1)] + β[yt-1 - yt-2] + [ut - ut-1]

∇yt = a1 + β * ∇yt-1 + ut - ut-1$

Therefore, the first difference ∇yt appears to only have an intercept, not a time trend.

Because the underlying model has an intercept and a time trend, should I use the Dickey-Fuller test that includes an intercept and time trend when it tests for a unit root, or should I use the Dickey-Fuller test that only includes an intercept because the first difference of the original time series only has an intercept?
 
Mathematics news on Phys.org
  • #2
You are correct that the difference operation a linear trend term (k)(t) produces a constant, not another linear trend term.

It's interesting to try to read that Wikipedia article you linked. It's about some hypothesis tests, but it never manages to state the null hypotheses and the test statistics. Apparently you understand the test statistics - which is more than I know.

However, I did find this page: http://stats.stackexchange.com/questions/18133/selecting-regression-type-for-dickey-fuller-test where the reply mentions that using the test with term of the form (k)(t) implies we are investigating a model with a quadratic trend. So my guess is that you don't use that form to test your null hypothesis.
 
  • #3
As far as I know, the null hypothesis is that a unit root exists and that the process is therefore stationary. I had found that thread you linked, and I'm the user who started the short but ongoing discussion in the comments. The linked post (listed in the right-hand column) is also mine, and is quite similar to my post here.

http://stats.stackexchange.com/q/44647

I don't understand why using a test with a trend term a1t would be used with a quadratic term, however. Can you shed any light on that?
 
  • #4
The only light I can shed is that if [itex] f(t) = kt^2 [/itex] then
[itex] \triangle f(t) = f(t+1) - f(t) = k(t+1)^2 - kt^2 = k( t^2 + 2t + 1) - kt^2 = 2kt + k [/itex]
So the [itex] \triangle [/itex] of a model with a [itex] t^2 [/itex] term has a term linear in [itex] t [/itex].
 
  • #5


I would recommend using the Dickey-Fuller test that includes both an intercept and time trend when testing for a unit root in this scenario. While it is true that the first difference of the original time series only has an intercept, this does not necessarily mean that the underlying model does not have a time trend. In fact, the fact that the first difference only has an intercept suggests that the time trend is already accounted for in the model.

Additionally, it is important to consider the assumptions and expectations of the underlying model when choosing the appropriate Dickey-Fuller test. In this case, you have stated that the underlying model is expected to have both an intercept and a time trend, which aligns with the Dickey-Fuller test that includes both of these terms. Using the incorrect test may lead to inaccurate conclusions about the stationarity of the data.

Furthermore, it is important to note that the Dickey-Fuller test is not the only method for testing for stationarity. Other tests, such as the Augmented Dickey-Fuller test, may also be appropriate to consider in this scenario.

In conclusion, as a scientist, I would recommend using the Dickey-Fuller test that includes both an intercept and time trend when testing for a unit root in this time series data. It is important to consider the assumptions and expectations of the underlying model, and using the appropriate test will lead to more accurate and reliable results.
 

1. What is the purpose of a Dickey-Fuller test?

A Dickey-Fuller test is used to determine whether a time series data is stationary or not. Stationary time series have a constant mean and variance over time, while non-stationary time series have trends and/or seasonal patterns.

2. How does a Dickey-Fuller test work?

The Dickey-Fuller test calculates a test statistic based on the difference between the current observation and the previous observation in the time series. This test statistic is then compared to critical values to determine if the time series is stationary or not.

3. What are the different types of Dickey-Fuller tests?

There are three main types of Dickey-Fuller tests: the ADF (Augmented Dickey-Fuller) test, the DF-GLS (Dickey-Fuller Generalized Least Squares) test, and the PP (Phillips-Perron) test. These tests differ in their assumptions and statistical properties, and the choice of which one to use depends on the characteristics of the time series data being analyzed.

4. When should I use the ADF test?

The ADF test is commonly used for testing the stationarity of a time series with a single trend. This includes time series data with a constant or linear trend.

5. Can I apply the Dickey-Fuller test to all types of time series data?

No, the Dickey-Fuller test assumes that the time series data is a stationary process. If the data has a strong trend or seasonal patterns, the test results may be misleading. In these cases, other tests such as the KPSS (Kwiatkowski-Phillips-Schmidt-Shin) test may be more appropriate.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
474
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
447
  • Set Theory, Logic, Probability, Statistics
Replies
10
Views
932
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Classical Physics
Replies
1
Views
987
Back
Top