On Tue, Sep 30, 2008 at 4:37 PM, Anne Archibald
<[EMAIL PROTECTED]>wrote:
> 2008/9/30 bevan <[EMAIL PROTECTED]>:
> > Hello,
> >
> > I have some XY data. I would like to generate the equations for an upper
> and
> > lower envelope that excludes a percentage of the data points.
> >
> > I would like
Anne Archibald gmail.com> writes:
>
> 2008/9/30 bevan gmail.com>:
> > Hello,
> >
> > I have some XY data. I would like to generate the equations for an upper
and
> > lower envelope that excludes a percentage of the data points.
> >
> > I would like to define the slope of the envelope line (sa
2008/9/30 bevan <[EMAIL PROTECTED]>:
> Hello,
>
> I have some XY data. I would like to generate the equations for an upper and
> lower envelope that excludes a percentage of the data points.
>
> I would like to define the slope of the envelope line (say 3) and then have my
> code find the intercep
Bevan,
You can estimate the intercept and slope using least-squares
(scipy.optimize.leastsq). Make sure though that errors in X are small
compared to errors in Y, otherwise, your slope will be underestimated.
Using the slope, you can write a function lower(b,a, X,Y) that will compute
y=aX+b and r
Hello,
I have some XY data. I would like to generate the equations for an upper and
lower envelope that excludes a percentage of the data points.
I would like to define the slope of the envelope line (say 3) and then have my
code find the intercept that fits my requirements (say 5% of data below