Re: linregress and polyfit

2013-09-19 Thread chitturk
tried (1,) - still same error ... printed z and looks right, len(z) OK (puzzling) -- https://mail.python.org/mailman/listinfo/python-list

Re: linregress and polyfit

2013-09-19 Thread Oscar Benjamin
On 18 September 2013 20:57, Dave Angel da...@davea.name wrote: On 18/9/2013 09:38, chitt...@uah.edu wrote: Thanks - that helps ... but it is puzzling because np.random.normal(0.0,1.0,1) returns exactly one and when I checked the length of z, I get 21 (as before) ... I don't use Numpy, so

Re: linregress and polyfit

2013-09-18 Thread chitturk
Thanks - that helps ... but it is puzzling because np.random.normal(0.0,1.0,1) returns exactly one and when I checked the length of z, I get 21 (as before) ... On Tuesday, September 17, 2013 9:34:39 PM UTC-5, Krishnan wrote: I created an xy pair y = slope*x + intercept then I

Re: linregress and polyfit

2013-09-18 Thread Dave Angel
On 18/9/2013 09:38, chitt...@uah.edu wrote: Thanks - that helps ... but it is puzzling because np.random.normal(0.0,1.0,1) returns exactly one and when I checked the length of z, I get 21 (as before) ... I don't use Numpy, so this is just a guess, plus reading one web page. According

linregress and polyfit

2013-09-17 Thread Krishnan
I created an xy pair y = slope*x + intercept then I added some noise to y using numpy.random.normal - call it z I could recover the slope, intercept from (x,y) using linregress BUT cannot calculate the slope, intercept from (x, z) What is puzzling is that for both pairs (x,y) and (x,z) the

Re: linregress and polyfit

2013-09-17 Thread Josef Pktd
On Tuesday, September 17, 2013 10:34:39 PM UTC-4, Krishnan wrote: I created an xy pair y = slope*x + intercept then I added some noise to y using numpy.random.normal - call it z I could recover the slope, intercept from (x,y) using linregress BUT cannot calculate