Skip to content
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

Running Regression Support x,y input #8

Closed
flare9x opened this issue Apr 9, 2018 · 3 comments
Closed

Running Regression Support x,y input #8

flare9x opened this issue Apr 9, 2018 · 3 comments

Comments

@flare9x
Copy link

flare9x commented Apr 9, 2018

Right now it regresses x as some index and y the dependent y::Array{Float64} input.

If I wanted to a run a regression between two variables, well I guess could change the xi part of the function to accept an Array input for x.

Lets say VIX and ES mini are sorted per date and want to find a rolling regression between ES / VIX (x,y)

Or in co-integration pairs trading, One may wish to run a rolling linear regression between Stock A / B. One as x,y independent/dependent variables.

An ADF test would be fantastic also :)

Great work. I just found Julia a few days ago and liking this package as I was familiar with TTR.

@dysonance
Copy link
Owner

Hey @flare9x thanks for the good suggestion, take a look at the pull request I opened to add this feature. Let me know if it's what you're after or if I didn't understand correctly.

Also, just wanted to say thanks for mentioning this package on one of your recent blog posts — very much appreciate the shout-out, and the blog post itself was really interesting in my opinion, so thumbs up all around 👍

@dysonance
Copy link
Owner

@flare9x This has been merged into master, let me know if more to be done. I will try to get it put into the Julia METADATA repo today so its widely available.

@flare9x
Copy link
Author

flare9x commented May 17, 2018

Hey! Sorry for such a late reply - i have been SUPER busy. I have not checked it out yet, i'm sure it is as intended. I am working on a rolling Hurst and Fisher transform. One method for calculating the hurst was to plot a regression of the lagged differences and the time lag number and divide the slope by 2 (Ernie Chan method). So that method I will be calling the rolling regression for sure. Another calculation was to estimate hurst by stdev, mean, min and max and divide the min,max difference by the standard deviation and take the log of that / length of the series (or rolling window) Anyway! Both are interesting - Once I finish - Perhaps its something you might want to review and incorporate to the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants