[SciPy-User] Multivariate linear (bilinear) fit

Sergio Rojas sergio_r at mail.com
Wed Apr 19 16:54:50 EDT 2017


----------------------------------------------------------------------

Message: 1
Date: Tue, 18 Apr 2017 11:17:26 -0600
From: Daniele Nicolodi <daniele at grinta.net>
To: scipy-user at python.org
Subject: [SciPy-User] Multivariate linear (bilinear) fit
Message-ID: <7728d109-52a4-50f5-1289-e75961a7a5d6 at grinta.net>
Content-Type: text/plain; charset=utf-8

Hello,

before I write my own, does SciPy come with a function for multivariate
(often also called bilinear, in the case of two variables) linear fits?

I would like to fit a function if the form:

y = c + p1 * x1 + p2 * x2 + ... + pn * xn

which is a simple least squares problem, but I would like to avoid to
write the code :-)

Thanks. Cheers,
Daniele

=====================

Take a look at the optimization tools from SciPy 

    http://www.scipy-lectures.org/advanced/mathematical_optimization/index.html

Sergio 

Enhance your #MachineLearning and #BigData skills via #Python #SciPy:

1) https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video
2) https://www.packtpub.com/big-data-and-business-intelligence/learning-scipy-numerical-and-scientific-computing-second-edition


More information about the SciPy-User mailing list