Talk:Multiple regression: Difference between revisions
→Python example is not correct???: I think it's okay.
(→Python example is not correct???: I think it's okay.) |
|||
Line 41:
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.
: The method with the matrix operations was basically correct, but it was hard to see with it using random data. I substituted the Wikipedia example data so it was more clear that the method works. I also added a np.linalg.lstsq() version, which I understand is preferred. —[[User:Sonia|Sonia]] ([[User talk:Sonia|talk]]) 21:37, 3 April 2015 (UTC)
==Task description has too many equations and not enough guidance==
|