Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Investing Regression Example
def investing_example():
This method creates a set of regression analyses based on fundamental trading (revenues)
# b: blue, g: green, r: red, c: cyan, m: magenta, y: yellow, k: black, w: white
statsmodels_args_inv = StatsModelsSettings(2, False)
quandl_args_inv = QuandlSettings(5, 1, "yearly")
regressions_inv = [RegressionAnalysis("DMDRN/GOOG_REV_LAST", quandl_args_inv, statsmodels_args_inv, 'b'),
RegressionAnalysis("DMDRN/YHOO_REV_LAST", quandl_args_inv, statsmodels_args_inv, 'g'),
RegressionAnalysis("DMDRN/AAPL_REV_LAST", quandl_args_inv, statsmodels_args_inv, 'k')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment