topic Re: Stationariy time series in Discussions
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99368#M38793
<P><A href="https://en.wikipedia.org/wiki/Augmented_Dickey%E2%80%93Fuller_test" target="_self">https://en.wikipedia.org/wiki/Augmented_Dickey%E2%80%93Fuller_test</A> states that "<SPAN>The augmented Dickey–Fuller (ADF) statistic, used in the test, is a negative number. The more negative it is, the stronger the rejection of the hypothesis that there is a unit root ..." The Zero Mean ADF is not significant but that is likely due to the daily cycles in your data.</SPAN></P><P> </P><P>I added columns for Date, Day of Week and Time of Day. Below is a variability plot of OCC by Day of Week and Time of Day. The black line is the mean pattern for each day of the week. Note 11/01/2018 had an unusual pattern, (day after Halloween).</P><P> </P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/15029i5A2712CFB99E4035/image-size/large?v=1.0&px=999" role="button" title="image.png" alt="image.png" /></span></P>Mon, 07 Jan 2019 20:38:17 GMTgzmorgan02019-01-07T20:38:17ZStationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/98490#M38781
<P>I have a time series (Occ (%ocupation) vs. time stamp cfr. Time series model in annex) where the autocorrelation function shows a slow decay indicating non-stationarity, however the ADF test all are negative indicating a statationary Occ time series. Which criterion is right? I get extremely good resuts with ARMA as well as ARIMA (diffeferenced) models. Can I assess a non differenced (4,2) ARMA model as reliable taking into account the slow decay autocorrelation function? Or is differencing necessary? Remark: only after two differencing operations ACF & PCF become similar indicating stationarity. Kind regards Frank</P>Mon, 07 Jan 2019 14:08:23 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/98490#M38781frankderuyck2019-01-07T14:08:23ZRe: Stationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99155#M38786
<P>In addition to my foregoing question I have a problem with the location of the saved prediction formula; I would expect it to be saved in the last column of my data sheet as is the case for other models. Here, in time series analysis the model is saved in a new "Untiteled" data sheet? Can this be adjusted? </P>Mon, 07 Jan 2019 17:02:45 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99155#M38786frankderuyck2019-01-07T17:02:45ZRe: Stationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99368#M38793
<P><A href="https://en.wikipedia.org/wiki/Augmented_Dickey%E2%80%93Fuller_test" target="_self">https://en.wikipedia.org/wiki/Augmented_Dickey%E2%80%93Fuller_test</A> states that "<SPAN>The augmented Dickey–Fuller (ADF) statistic, used in the test, is a negative number. The more negative it is, the stronger the rejection of the hypothesis that there is a unit root ..." The Zero Mean ADF is not significant but that is likely due to the daily cycles in your data.</SPAN></P><P> </P><P>I added columns for Date, Day of Week and Time of Day. Below is a variability plot of OCC by Day of Week and Time of Day. The black line is the mean pattern for each day of the week. Note 11/01/2018 had an unusual pattern, (day after Halloween).</P><P> </P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/15029i5A2712CFB99E4035/image-size/large?v=1.0&px=999" role="button" title="image.png" alt="image.png" /></span></P>Mon, 07 Jan 2019 20:38:17 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99368#M38793gzmorgan02019-01-07T20:38:17ZRe: Stationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99403#M38796
<P>Hello, thanks for your comment and effort to clarify avrage evolution, the unusual room occupation pattern indeed is halloween.</P><P>The goal of our study is to predict in next 15 - 60 minutes the room occupation level so we need to stay within the 15 minute lag intervals and try to construct a reliable time series model. You mention correctly that there are strong daily cycles so I assume that seasonal differencing is necessary? However doing so, even several times seasonality does not disappear, really confusing.. Even more surprising is that all models I checked - differenced or not - yield R² > 99%! Too good to be true, is there something fundamentally wrong in this analysis here?</P>Mon, 07 Jan 2019 21:25:29 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/99403#M38796frankderuyck2019-01-07T21:25:29ZRe: Stationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/104350#M38809
<P>I am sorry that I will not have time to propose a detailed solution. But hopefully this will provide a few leads:</P>
<UL>
<LI>The daily pattern for Sunday is quite different from the the other days of the week, and Friday and Saturday have much higher usage.</LI>
<LI>I would try creating a cycle by day and use a deviation model (cycles removed).</LI>
<LI>I'd probably use an adjustable smooth, I have had good luck with Trigg & Leech methods that adjusts the lambda when the deviations are large, so that it can catch up.</LI>
</UL>
<P>Of course your RSquares will be larger that a real prediction since you are using all the data. You might want to take teh approach similar to control charts. You take an early period to create the baseline pattern, the model, then use, that model on the remaining period and the true RSquare will be based upon the residuals of actual - predicted for data not included in the model.</P>
<P>Finally, I would put a monitor, a control chart, to flag when the model is no longer predicting very well, especiall if you need a rapid response to escalating usage. </P>
<P> </P>
<P>You shouls post which version of JMP, or JMP PRO and which OS. There are some new platforms and methods for this type of "process" that might be more useful than time series.</P>
<P> </P>Tue, 08 Jan 2019 11:12:30 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/104350#M38809gzmorgan02019-01-08T11:12:30ZRe: Stationariy time series
https://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/104473#M38813
<P>Hi, thanks a lot for your input. Fyi I am usig JMP 13.1version.</P><P>Indeed the daily patterns are different, do you mean that if the patterns were characteristic (like a fingerprint) for each day then one can, after differencing, create a predictive time series model for each? Unfortunately daily patterns may be disturbed by e.g. a holidyay so I think this will not always work? </P><P>I did several simulations with a testset (all new data) and my simple ARMA (4,2) model predictions work out fine for max.45 minutes, after that strong deviations start to show up although trends are kept. </P><P>I have an issue with the saved prediction formula: it is not saved in the last column of my original data sheet (as stated in the jmp tutorial) but in a new "untiteled" data sheet? Do you also encouter this? As for the prediction formula itself, what is the meaning of () - (number) What does that number mean? Can it be different from the number at the top in the equation? Regards, Frank</P><P> </P>Tue, 08 Jan 2019 14:41:51 GMThttps://community.jmp.com/t5/Discussions/Stationariy-time-series/m-p/104473#M38813frankderuyck2019-01-08T14:41:51Z