-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of Yule-Walker Analysis Method #902
Conversation
Hello @josemanuel22. Thanks for the PR. However, please see StatsBase.jl/src/signalcorr.jl Lines 570 to 608 in 77e63df
|
@andreasnoack Thank you very much for your comment. I had not seen it, but it seems that this function is not documented, nor is it exported. It is for internal use, maybe it could be documented and exported. What do you think? |
Sorry for being a bit brief here. I made the comment a bit in a hurry. The point was mostly that you can compute the Yule-Walker estimates efficiently by reusing existing functions, i.e. Yule-Walkerjulia> -StatsBase.durbin(autocor(x, 1:4))
4-element Vector{Float64}:
1.2600631466569998
-0.4558455606978694
-0.17590708455408563
0.011391047373061776 Least-squaresjulia> [ones(length(x) - k) [x[k - j + i] for i in 1:length(x)-k, j in 1:k]]\x[k+1:end]
5-element Vector{Float64}:
28.267780791960924
1.2864783021078277
-0.48686426630545226
-0.16910686502522418
0.017892893292120397 Thinking a bit more about it, I think a function for estimating coefficients might also be better located in a dedicated time series package. The |
Perfect, thank you for the clarification. I am not aware of any time series package in Julia that has this functionality, as it seems they resort to |
This pull request proposes the addition of a method to perform Yule-Walker analysis in Julia, analogous to the yule_walker method available in Python's statsmodels.regression.linear_model. The aim is to extend Julia's statistical analysis capabilities, specifically for autoregressive processes, by implementing a method that estimates the parameters of an AR model using the Yule-Walker equations.
https://stackoverflow.com/questions/77107822/how-to-do-a-yule-walker-analysis-in-julia/77117406#77117406
Details:
I look forward to feedback and suggestions for improvements.