-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
What's the meaning of rolling_slope, rolling_rsquare, and rolling_resi? #283
Comments
Hi, What you said "there is only one parameter without window size" where can I find the related code? return (N*self.xy_sum - self.x_sum*self.y_sum) / (N*self.x2_sum - self.x_sum*self.x_sum) |
The slope function code is:
in this slope function, the x means window size, and y means update value, right? My question is, if the inputs are update value and window size, what's the meaning for this regression? |
|
Thank you for answering my question, but I'm still confusing about the input x, and y. So, could you give me an example for Slope function? What does the input data set look like? |
The return value of |
For the example, x, the series.index, is range(4), and y, the series.value, is array([1,2,7,10]), is this right? Is there any economic meaning for this regression? |
Hi, what you said is almost right (in fact, there are still some small details that you must read the code to know). These operators are just basic operations
And they may be used when calculating some alpha factors, such as Idiosyncratic volatility |
Thank you. I get the basic knowledge for those operators, but I'm still not clear about how to use those operators. For example, the alpha factor 'Beta5', which is 'Slope($close, 5)/$close'. In my knowledge, the beta means the correlation between the returns of benchmark index and the returns of a stock. But, for the explanation you give me, i can't find the relationship. |
Wow, I’m not sure about the meaning of |
This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
In the document, slope means regression slope, but in rolling_slope function, there is only one parameter without window size, i just confuse about the regression for what, the parameter autoregression? And, the same question for rolling_rsquare and rolling_resi.
The text was updated successfully, but these errors were encountered: