Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2507 > unrolled thread

Question about DurbinWatsonD

Started byGilmar Rodriguez-pierluissi <peacenova@yahoo.com>
First post2011-05-20 10:37 +0000
Last post2011-05-21 10:49 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Question about DurbinWatsonD Gilmar Rodriguez-pierluissi <peacenova@yahoo.com> - 2011-05-20 10:37 +0000
    Re: Question about DurbinWatsonD richard i pelletier <bitbucket@comcast.net> - 2011-05-21 10:46 +0000
    Re: Question about DurbinWatsonD Peter Pein <petsie@dordos.net> - 2011-05-21 10:49 +0000

#2507 — Question about DurbinWatsonD

FromGilmar Rodriguez-pierluissi <peacenova@yahoo.com>
Date2011-05-20 10:37 +0000
SubjectQuestion about DurbinWatsonD
Message-ID<ir5g8t$t1m$1@smc.vnet.net>
In:
 
http://reference.wolfram.com/mathematica/RegressionCommon/ref/DurbinWatsonD.html

it says that:
 
"As of Version 7.0, DurbinWatsonD has become a property of LinearModelFit".
 
But, when I evaluate:
 
data = {{0.05, 90}, {0.09, 95}, {0.14, 110}, {0.17, 125}, {0.2, 140}, {0.21, 150}, {0.23, 175}, {0.25, 190}, {0.3, 210}, {0.35, 255}};
 
LinearModelFit[data, {1, x^2}, x, RegressionReport -> {DurbinWatsonD}]
 
the above line will not produce the DurbinWatsonD value of 1.14 shown in the example on that web page.
 
How can I then get the DurbinWatsonD value?
 
Thank you!
 
Gilmar Rodriguez Pierluissi

[toc] | [next] | [standalone]


#2557

Fromrichard i pelletier <bitbucket@comcast.net>
Date2011-05-21 10:46 +0000
Message-ID<ir856q$bdj$1@smc.vnet.net>
In reply to#2507
In article <ir5g8t$t1m$1@smc.vnet.net>,
 Gilmar Rodriguez-pierluissi <peacenova@yahoo.com> wrote:

> when I evaluate:
>  
> data = {{0.05, 90}, {0.09, 95}, {0.14, 110}, {0.17, 125}, {0.2, 140}, {0.21, 
> 150}, {0.23, 175}, {0.25, 190}, {0.3, 210}, {0.35, 255}};
>  
> LinearModelFit[data, {1, x^2}, x, RegressionReport -> {DurbinWatsonD}]
>  
> the above line will not produce the DurbinWatsonD value of 1.14 shown in the 
> example on that web page.

The correct syntax for LinearModelFit is

LinearModelFit[data,{1,x^2},x]["DurbinWatsonD"]

Vale,
rip

-- 
email address is r i p 1 AT c o m c a s t DOT n e t

[toc] | [prev] | [next] | [standalone]


#2573

FromPeter Pein <petsie@dordos.net>
Date2011-05-21 10:49 +0000
Message-ID<ir85c3$bhu$1@smc.vnet.net>
In reply to#2507
Am 20.05.2011 12:37, schrieb Gilmar Rodriguez-pierluissi:
> In:
>  
> http://reference.wolfram.com/mathematica/RegressionCommon/ref/DurbinWatsonD.html
> 
> it says that:
>  
> "As of Version 7.0, DurbinWatsonD has become a property of LinearModelFit".
>  
> But, when I evaluate:
>  
> data = {{0.05, 90}, {0.09, 95}, {0.14, 110}, {0.17, 125}, {0.2, 140}, {0.21, 150}, {0.23, 175}, {0.25, 190}, {0.3, 210}, {0.35, 255}};
>  
> LinearModelFit[data, {1, x^2}, x, RegressionReport -> {DurbinWatsonD}]
>  
> the above line will not produce the DurbinWatsonD value of 1.14 shown in the example on that web page.
>  
> How can I then get the DurbinWatsonD value?
>  
> Thank you!
>  
> Gilmar Rodriguez Pierluissi
> 
Hi,

The option RegressionReport appears red in my Version (8.01) of Mathematica.

Are you sure you didn't want *Non*LinearModelFit (as x^2 is'nt linear at
all)??

In[1]:=
data={{0.05,90},{0.09,95},{0.14,110},{0.17,125},{0.2,140},{0.21,150},{0.23,175},{0.25,190},{0.3,210},{0.35,255}};

NonLinearModelFit[data,{1,x^2},x,RegressionReport->{DurbinWatsonD}]

Out[2]=
NonLinearModelFit[{{0.05,90},{0.09,95},{0.14,110},{0.17,125},{0.2,140},{0.21,150},{0.23,175},{0.25,190},{0.3,210},{0.35,255}},{1,x^2},x,RegressionReport->{DurbinWatsonD}]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web