comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » REGRESS Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: REGRESS Question [message #36721 is a reply to message #31982] Wed, 22 October 2003 06:03 Go to previous messageGo to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
"Christopher Lee" <cl> wrote:
> "Kevin M. Lausten" <kevinlausten@hotmail.com> wrote:

>> I am having difficulty working with the REGRESS function. I continually
>> get values <1 for my slope when doing a regression between two vectors.
>> When I do a regression mapping y to x (slope = regress(x, y, const =
>> const)) and when I do a regression mapping x to y (slope = regress(y, x,
>> const = const) I get a slope<1 for both calculations. Shouldn't the
>> y=mx+b of these two regressions be inverses of each other (leading to
>> one slope>1, and one<1?) Maybe I am misunderstanding regressions?

You've certainly misunderstood some basic maths: the inverse (as in
reciprocal) of -1 is -1, not 1. If the regression of y against x
has a negative slope, then you would expect the regression of x against y
to have too.

OTOH the relation is *not* reciprocal anyway, unless the fit is perfect.
(probably because the fit is asymmetric: y values are assumed uncertain,
x values exact).

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Programming Techniques, 3rd edition
Next Topic: Reading fortran

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 19:01:07 PDT 2025

Total time taken to generate the page: 1.68051 seconds