Re: Linear regression in NumPy

2006-12-05 Thread Robert Kern
Jianzhong Liu wrote: > Hello, Guys, > > I have a question about the linear_least_squares in Numpy. > > My linear_least_squares cannot give me the results. > > I use Numpy1.0. The newest version. So I checked online and get your > guys some examples. The package name for numpy 1.0 is "numpy", no

Re: Linear regression in NumPy

2006-12-05 Thread Jon
> I have a question about the linear_least_squares in Numpy. Not quite sure what is going on, it looks like there could be some confusion as to linear_least_squares is expecting as an argument of some Numeric arrays and what you are supplying (a Matrix) is perhaps not close enough to being the sam

Re: Linear regression in NumPy

2006-03-24 Thread nikie
> The version I have in front of me is a bit shorter, 252 pages, but describes > polyfit in section 5.3 on page 91 along with the other polynomial functions. > lstsq (linear_least_squares is a backwards-compatibility alias that was > recently > moved to numpy.linalg.old) is described in section 10

Re: Linear regression in NumPy

2006-03-24 Thread Robert Kern
nikie wrote: > Robert Kern wrote: > >>Both functions are described in the full book. Were you just looking at the >>sample chapter? > > No, I've got the full PDF by mail a few days ago, "numpybook.pdf", 261 > pages (I hope we're talking about the same thing). I entered > "linear_least_squares" an

Re: Linear regression in NumPy

2006-03-24 Thread nikie
Robert Kern wrote: > Both functions are described in the full book. Were you just looking at the > sample chapter? No, I've got the full PDF by mail a few days ago, "numpybook.pdf", 261 pages (I hope we're talking about the same thing). I entered "linear_least_squares" and "polyfit" in acrobat's "

Re: Linear regression in NumPy

2006-03-23 Thread Robert Kern
nikie wrote: > Although I think it's worth reading, it only covers the fundamental > structure (what arrays are, what ufuncs are..) of NumPy. Neither of the > functions dicussed in this thread (polyfit/linear_least_squares) is > mentioned in the file. Both functions are described in the full book.

Re: Linear regression in NumPy

2006-03-23 Thread nikie
Although I think it's worth reading, it only covers the fundamental structure (what arrays are, what ufuncs are..) of NumPy. Neither of the functions dicussed in this thread (polyfit/linear_least_squares) is mentioned in the file. -- http://mail.python.org/mailman/listinfo/python-list

Re: Linear regression in NumPy

2006-03-20 Thread Christopher Barker
Matt Crema wrote: > > "More generally: Is there any kind of documentation that tells me what > > the functions in NumPy do, and what parameters they expect, how to > > call them, etc. This is a good start too: http://www.tramy.us/guidetoscipy.html Yes, you have to pay for it, but the money go

Re: Linear regression in NumPy

2006-03-18 Thread Robert Kern
Matt Crema wrote: > To sum up a wordy post, "What do experienced users find is the most > efficient way to navigate the numpy docs? (assuming one has already > read the FAQs and tutorials)" You're not likely to get much of an answer here, but if you ask on [EMAIL PROTECTED], you'll get plenty

Re: Linear regression in NumPy

2006-03-18 Thread Matt Crema
nikie wrote: > > Hello, I'm glad that helped, but let's not terminate this discussion just yet. I am also interested in answers to your second question: nikie wrote: > "More generally: Is there any kind of documentation that tells me what > the functions in NumPy do, and what parameters

Re: Linear regression in NumPy

2006-03-18 Thread nikie
Thank you! THAT's what I've been looking for from the start! -- http://mail.python.org/mailman/listinfo/python-list

Re: Linear regression in NumPy

2006-03-18 Thread Matt Crema
Matt Crema wrote: > Robert Kern wrote: > >> nikie wrote: >> >>> I still don't get it... >>> My data looks like this: >>> x = [0,1,2,3] >>> y = [1,3,5,7] >>> The expected output would be something like (2, 1), as y[i] = x[i]*2+1 >>> >>> (An image sometimes says more than 1000 words, so to make myse

Re: Linear regression in NumPy

2006-03-18 Thread Matt Crema
Robert Kern wrote: > nikie wrote: > >>I still don't get it... >>My data looks like this: >> x = [0,1,2,3] >> y = [1,3,5,7] >>The expected output would be something like (2, 1), as y[i] = x[i]*2+1 >> >>(An image sometimes says more than 1000 words, so to make myself clear: >>this is what I want to

Re: Linear regression in NumPy

2006-03-17 Thread Robert Kern
nikie wrote: > I still don't get it... > My data looks like this: > x = [0,1,2,3] > y = [1,3,5,7] > The expected output would be something like (2, 1), as y[i] = x[i]*2+1 > > (An image sometimes says more than 1000 words, so to make myself clear: > this is what I want to do: > http://www.statist

Re: Linear regression in NumPy

2006-03-17 Thread nikie
I still don't get it... My data looks like this: x = [0,1,2,3] y = [1,3,5,7] The expected output would be something like (2, 1), as y[i] = x[i]*2+1 (An image sometimes says more than 1000 words, so to make myself clear: this is what I want to do: http://www.statistics4u.info/fundstat_eng/cc_regr

Re: Linear regression in NumPy

2006-03-17 Thread marek . rocki
nikie napisal(a): > I'm a little bit stuck with NumPy here, and neither the docs nor > trial&error seems to lead me anywhere: > I've got a set of data points (x/y-coordinates) and want to fit a > straight line through them, using LMSE linear regression. Simple > enough. I thought instead of looking

Re: Linear regression in NumPy

2006-03-17 Thread Robert Kern
nikie wrote: > I'm a little bit stuck with NumPy here, and neither the docs nor > trial&error seems to lead me anywhere: > I've got a set of data points (x/y-coordinates) and want to fit a > straight line through them, using LMSE linear regression. Simple > enough. I thought instead of looking up t