4

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

2 Answers 2

9

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

Sign up to request clarification or add additional context in comments.

2 Comments

I think the relevant python reference should now be statsmodels.sourceforge.net/regression.html installable through pypi
The reference in the above comment is now at statsmodels.sourceforge.net/stable/regression.html
2

I'm not sure if this is what you need, but the Modular toolkit for Data Processing (MDP) libray recently implemented multivariate linear regression. It is under LGPL license.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.