Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple regression in Python

I am currently using scipy's linregress function for single regression. I am unable to find if the same library, or another, is able to do multiple regression, that is, one dependent variable and more than one independent variable. I'd like to avoid R if possible. If you're wondering, I am doing FX market analysis with the goal of replicating one currency pair with multiple other currency pairs. Anyone help? Thanks,

Thomas

like image 973
Thomas Browne Avatar asked Dec 23 '22 10:12

Thomas Browne


1 Answers

Use the OLS class [http://www.scipy.org/Cookbook/OLS] from the SciPy cookbook.

like image 61
wierob Avatar answered Dec 26 '22 11:12

wierob