Jump to content

Talk:Multiple regression: Difference between revisions

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==
1,707

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.