For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
slope and intercept inverted in OLS_Slope_InterceptN
-
The class OLS_Slope_InterceptN calculates slope and intercept. However I think it is on the wrong order. It is as follows:
slope, intercept = sm.OLS(p0, p1).fit().params
I think the correct is:
intercept, slope = sm.OLS(p0, p1).fit().params
I am right?
-
Yes. I came here to report the same issue.
-
Added as an issue in Backtrader2... https://github.com/backtrader2/backtrader/issues/28