Talk:Multiple regression: Difference between revisions

python example not good
(python example not good)
Line 37:
 
The note in the introduction is incorrect. So I deleted it. This task is a multiple ''linear'' regression problem; the use of OLS indicates that we are dealing with a ''linear model''. This is very different from a polynomial fitting problem which, by definition, is generally non-linear. At best, the multiple regression task is ''multi-linear'' and it is most certainly a subset of polynomial fitting problems. The note would be correct if we were talking about a multi-variate polynomial fitting task (which would actually make an excellent task). --[[User:Treefall|Treefall]] 22:36, 20 August 2010 (UTC)
 
== Python example is not correct??? ==
 
The Python example solves a different problem, namely fitting a quadratic polynomial in one variable to a set of points in the plane. What is asked for is a way of fitting a _linear_ poynomial in _several_ variables to a set of points in some dimension. I think np.linalg.lstsq() , a function from numpy , is what is needed.
Anonymous user