On 18 September 2013 20:57, Dave Angel 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, s
tried (1,) - still same error ...
printed "z" and looks right, len(z) OK
(puzzling)
--
https://mail.python.org/mailman/listinfo/python-list
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.
Accor
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
>
>
>
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
>
> BU
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