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

Home » Public Forums » archive » Regression fit and random noise
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Regression fit and random noise [message #83691] Thu, 28 March 2013 11:27 Go to next message
kisCA is currently offline  kisCA
Messages: 78
Registered: January 2011
Member
Hi there,
I am actually testing a multiple linear regression model by adding random noise to the original meteorological time series. When the noise/signal ratio become really high (20), the R2 value stabilize to 0.3-0.4. Is there any more explanation than that the maths "do their job" and will try to fit whatever it is with whatever you give the model to work with ? Is it an IDL thing ?
Thank you for your help
Cheers
Re: Regression fit and random noise [message #84722 is a reply to message #83691] Thu, 28 March 2013 14:50 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Not quite sure what you're asking here with such limited information. What routine are you using to do the fit? When you say noise/signal ratio, do you mean signal to noise ratio (SNR)? Do you have some sort of example data?

Regardless, consider the following "simple" linear regression, adapted from the IDL help:

PRO test_model

npts = 100
x = FINDGEN(npts)

noiseFactor = 0.

y = x + noiseFactor*(RANDOMU(seed, npts)-0.5)

plot, x, y, psym=2

result = REGRESS(X, Y, SIGMA=sigma, CONST=const, corr = r2, $
MEASURE_ERRORS=measure_errors)

PRINT, 'Constant: ', const
PRINT, 'Coefficients: ', result[*]
PRINT, 'Standard errors: ', sigma
PRINT, 'Correl Coeff: ', r2

END

Notice as you increase the noise factor, the correlation coefficient gets worse. This is entirely expected and is not a IDL-only thing. Basically, the "signal" gets swamped out by the "noise". You should get your hands on a good statistics book (e.g., Data Reduction and Error Analysis in the Physical Sciences by Bevington, Statistical Methods in the Atmospheric Sciences by Wilks) to better interpet what's going on "under the hood". For instance, according to regress.pro, the fit is done via chi squared minimization.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Using "the IDL way" and it's still not fast enough
Next Topic: PRINTF format statement

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

Current Time: Wed Oct 08 11:35:18 PDT 2025

Total time taken to generate the page: 0.00497 seconds