Тёмный
No video :(

Autocorrelation (part 3): Box-Pierce and Ljung-Box Q-tests (Excel) 

NEDL
Подписаться 26 тыс.
Просмотров 11 тыс.
50% 1

Despite Breuch-Godfrey test being easy to apply and reasonably accurate, Q-tests (Box-Pierce and Ljung-Box) have been much more popular among econometricians. In today's video, we will learn how to apply these in Excel, discuss their advantages and limitations compared to each other and previously discussed tests, as well as how to ultimately ensure there is no autocorrelation in your data.
Please consider supporting NEDL on Patreon: / nedleducation

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@NEDLeducation
@NEDLeducation 4 года назад
You can find the spreadsheets for this video and some additional materials here: drive.google.com/drive/folders/1sP40IW0p0w5IETCgo464uhDFfdyR6rh7 Please consider supporting NEDL on Patreon: www.patreon.com/NEDLeducation
@user-ez5ju4cr2c
@user-ez5ju4cr2c 4 года назад
Sooner or later your channel will be the most powerful learning station for students from economics, finance, statistics, and econometrics on youtube, simply because your content is awesome and helpful. It will be even more helpful if you could introduce some related literature or sources every time you talk about a topic. many thanks!
@NEDLeducation
@NEDLeducation 4 года назад
Hi Hayo, and thank you so much for such kind words! Thanks for the advice as well, we are planning to do as such and post links for additional materials on the topic in every video description. It might take some time, but I think we will complete updating all of our descriptions with some further reading materials as well as spreadsheet Google Drive by late August :) Hope it helps!
@minchen1970
@minchen1970 3 года назад
I hardly comment on any videos, but I have to say you are doing an amazing job. The way how you explain in excel truly improves the learning process.
@NEDLeducation
@NEDLeducation 3 года назад
Hi, thanks for the comment! Glad the video helped you with your studies :)
@ivanklful
@ivanklful 3 года назад
Another extraordinary video! Would suggest you to offer as many practical examples as possible, including more complex models. So far it's underway to become the first learning tool for quantitative methods.
@antoniofernandes5751
@antoniofernandes5751 3 года назад
once more, an amazing job!!!! thanks! u are my new statistics teacher xD
@panaishechibondo4497
@panaishechibondo4497 3 года назад
Very helpful. Thank you
@saipri
@saipri 4 года назад
Found this extremely helpful!! Do you have a similar video for Dickey fuller augmented unit root test? Kindly put it up if you find the time! Thanks for this!
@NEDLeducation
@NEDLeducation 4 года назад
Hi Priya and many thanks for the feedback! We have already got a video on Dickey-Fuller test and augmented Dickey-Fuller test, check it out: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KCFLfQHZODM.html
@saipri
@saipri 4 года назад
@@NEDLeducation I am wondering if you will be adding videos explaining time - varying auto regression...
@NEDLeducation
@NEDLeducation 4 года назад
@@saipri Hi Priya, time-varying autocorrelation is a rather broad topic, there are multiple approaches to it. First, we can use some variable to hypothesise that autoregression magnitude depends on it (for example, autoregression is negative when traders are unexperienced and closer to zero when traders are experienced due to behavioural reasons). Second, we can have completely arbitrary autoregressive coefficients observation to observation and use a procedure like LASSO to arrive at optimal trade-off and avoid overfitting. We might do a video on the latter in the near future. Hope it helps!
@saipri
@saipri 4 года назад
@@NEDLeducation Sure! Appreciate your reply...
@gamechanger97
@gamechanger97 Год назад
How do we actually choose number of lags?
@subhat6673
@subhat6673 2 года назад
Hey can you just tell me how come degree of freedom is 3
@NEDLeducation
@NEDLeducation 2 года назад
Hi Subha, and thanks for the question! For an F-test, you do have two degrees of freedom parameters, one equal to the number of explanatory variables (here 3), and another equal to the more conventional number of observations minus the number of restrictions. Hope this helps!
@subhat6673
@subhat6673 2 года назад
Hey sorry to disturb you again I didn't get you yes there are 3 explanatory variables but what is conventional number and number of restrictions that you are referring to
@NEDLeducation
@NEDLeducation 2 года назад
@@subhat6673 Hi Subha, and thanks for the follow-up question! The number of restrictions is the number of parameters which is typically one larger than the number of explanatory variables as it includes the constant.
@farbrorclemenz
@farbrorclemenz 2 года назад
Amazing video! Just a question, I think I remember reading somewhere that the Ljung-Box test performs worse as you increase the amount of lags. Could that be true? And how does one find the optimal lag to use?
@NEDLeducation
@NEDLeducation 2 года назад
Hi Johannes, and glad you liked the video! It is true that as the number of lags substantially increases, there is a degrees of freedom reduction and a risk of multicollinearity as well. You could select the appropriate number of lags using either an F-test or an information criterion, for example the Akaike information criterion.
@andodjango1589
@andodjango1589 2 года назад
If I want to test the statistical significance of autocorrelations of unlagged with lagged stock returns that I calculated for the Volatility Scaling of the unlagged stock returns: Can I use my direct estimation of the autocorrelation coefficients (Rho’s) for lags 1-3 as an input for the Q-Statistic? That would be, the computed values similar to your video “Volatility Scaling with Autocorrelations“ instead of using the LINEST function on residual returns (Beta‘s).
@NEDLeducation
@NEDLeducation 2 года назад
Hi Ando, and many thanks for the excellent question! While autocorrelation coefficients are very similar to autoregressive terms from the Ljung-Box test, these need to be estimated simultaneously, so I do not feel the analogy is correct unfortunately.
@andodjango1589
@andodjango1589 2 года назад
@@NEDLeducation Thanks for your answer. Allow me to ask a follow-up question. I constructed an AR11 model with the LINEST function to get 11 autoregressive terms, and I also calculated the first 11 autocorrelations from a time series of stock returns. I did this to scale monthly Sigma to annual Sigma following [Lo, 2002]. However, when looking at both, I was confused: The AR11 terms are substantially different from the 11 (independently) calculated autocorrelation coefficients. In particular, my AR11 Lag 1 coefficient is something like -0.11 while the Lag 1 autocorrelation coefficient that I calculated from stock returns directly is only -0.0285. Moreover, the AR11 terms plugged into Q-Statistic indicate that the returns have statistically significant autocorrelations while my directly computed autocorrelation coefficients (when plugged violently into Q-Test lol) are not statistically significant. On a similar note, an additional AR3 model I constructed gives terms that are quite similar to my direct calculations of the Lag 1-3 autocorrelation coefficients, differ substantially from the first 3 AR11 terms, and are not statistically significant. Now, given that both coefficients differ substantially, I am wondering which one is actually a correct estimation of the autocorrelation. What would be your take on this? I am very new to the whole topic so maybe I am missing something obvious.
@genchmot3688
@genchmot3688 4 года назад
Arch and Garch next?
@NEDLeducation
@NEDLeducation 4 года назад
Hi Mot, thanks for your request! We will record a video on Arch and Garch after we finish with heteroscedasticity series, so stay tuned!
@vaibhav1131
@vaibhav1131 3 года назад
in the excel file when i try it shows 1257 observations and not 1258. What am I missing
@NEDLeducation
@NEDLeducation 3 года назад
Hi Vaibhav, cannot state with certainty as I cannot see what is going on in your spreadsheet, but I suspect the sample size is either reduced because of 1258 prices generating 1257 returns, or because you reduce the number of returns by 1 naturally when calculating the lags. Hope it helps!
Далее
2.13: The Ljung-Box test
5:54
Просмотров 15 тыс.
Volatility scaling with autocorrelation (Excel)
32:53
Просмотров 4,1 тыс.
Ljung-Box Test for Autocorrelation
12:53
Просмотров 46 тыс.
What is autocorrelation? Extensive video!
36:02
Просмотров 136 тыс.
Creating the Sample ACF and PACF with Stata
6:48
Просмотров 24 тыс.