pDickeyFullerConstant¶
- pDickeyFullerConstant(x, tail=False)¶
Cumulative distribution function of the Dickey-Fuller statistic.
- Parameters:
- xfloat
The location.
- tailbool, optional
Tail flag. Default value is False. If True, the complementary CDF is computed.
- Returns:
- pfloat
The CDF or its complementary at .
Notes
Refer to Dickey-Fuller stationarity test.
Let denote the data and the Wiener process. Let us define and .
The Dickey-Fuller statistic is the asymptotic distribution of the Student statistic used to test the model with drift but no trend in a time series:
We test:
thanks to the Student statistic defined by:
where is the least square estimate of the standard deviation of . Under the null hypothesis , converges towards the Dickey-Fuller distribution:
Examples
>>> import openturns as ot >>> q = ot.DistFunc.pDickeyFullerConstant(5.4) >>> q = ot.DistFunc.pDickeyFullerConstant(5.4, True)