weighted least squares R^2
Posted: Sat Sep 14, 2013 8:31 am
I do not understand what R^2 is in the WLS output.
In the Weighted Least Squares output, the manual states the statistics are from the actual estimated equation.
If that means R^2 is computed as 1 minus Residual SS / Total SS , and we use the output, the R^2 computed that
way is not the reported R^2.
Example:
Dependent Variable: LRATMUR
Method: Least Squares
Date: 09/13/13 Time: 13:55
Sample: 1 703
Included observations: 703
Weighting series: 1/DENSITY
Weight type: Inverse standard deviation (no scaling)
Variable Coefficient Std. Error t-Statistic Prob.
C 6.941144 1.473009 4.712220 0.0000
LOG(RPCPI) 0.243077 0.167021 1.455373 0.1460
LOG(ARRMURD) -0.720749 0.030417 -23.69553 0.0000
LOG(CONVMURD) -0.665553 0.030671 -21.69945 0.0000
LOG(DENSITY) -0.320790 0.030445 -10.53667 0.0000
LOG(PPB) 0.002043 0.023552 0.086740 0.9309
Weighted Statistics
R-squared 0.615787 Mean dependent var 0.057614
Adjusted R-squared 0.613031 S.D. dependent var 0.150715 R^2 = 1 - 0.686284/(0.150715*(703-6))=1-0.686284/15.94545=.956951
S.E. of regression 0.031379 Akaike info criterion -4.076874
Sum squared resid 0.686284 Schwarz criterion -4.037995
Log likelihood 1439.021 Hannan-Quinn criter. -4.061848
F-statistic 223.4198 Durbin-Watson stat 1.678864
Prob(F-statistic) 0.000000 Weighted mean dep. 2.490813
Unweighted Statistics
R-squared -0.073278 Mean dependent var 1.691755
Adjusted R-squared -0.080977 S.D. dependent var 0.841445
S.E. of regression 0.874851 Sum squared resid 533.4590
Durbin-Watson stat 0.796153
And that agrees with the R^2 calculated in a least squares with weighted variables
Dependent Variable: LRATMUR/DENSITY
Method: Least Squares
Date: 09/14/13 Time: 10:15
Sample: 1 703
Included observations: 703
Variable Coefficient Std. Error t-Statistic Prob.
1/DENSITY 6.941144 1.473009 4.712220 0.0000
LOG(RPCPI)/DENSITY 0.243077 0.167021 1.455373 0.1460
LOG(ARRMURD)/DENSITY -0.720749 0.030417 -23.69553 0.0000
LOG(CONVMURD)/DENSITY -0.665553 0.030671 -21.69945 0.0000
LOG(DENSITY)/DENSITY -0.320790 0.030445 -10.53667 0.0000
LOG(PPB)/DENSITY 0.002043 0.023552 0.086740 0.9309
R-squared 0.956962 Mean dependent var 0.057614
Adjusted R-squared 0.956653 S.D. dependent var 0.150715
S.E. of regression 0.031379 Akaike info criterion -4.076874
Sum squared resid 0.686284 Schwarz criterion -4.037995
Log likelihood 1439.021 Hannan-Quinn criter. -4.061848
Durbin-Watson stat 1.678864
Another interpretation (and the original) is the correlation squared between the actual and the predicted.
The correlation is .978249 which squared is .956971 -
So what is 0.615787???
Additionally, what is the unweighted NEGATIVE R^2? Yes it is calculated as 1 - RSS/TSS from
R-squared -0.07327801 Mean dependent var 1.691754524
Adjusted R-squared -0.080977278 S.D. dependent var 0.841445199
S.E. of regression 0.874851054 Sum squared resid 533.4589635
Durbin-Watson stat 0.796153391
but what do those numbers mean (what are their exact formulas)
Bob
In the Weighted Least Squares output, the manual states the statistics are from the actual estimated equation.
If that means R^2 is computed as 1 minus Residual SS / Total SS , and we use the output, the R^2 computed that
way is not the reported R^2.
Example:
Dependent Variable: LRATMUR
Method: Least Squares
Date: 09/13/13 Time: 13:55
Sample: 1 703
Included observations: 703
Weighting series: 1/DENSITY
Weight type: Inverse standard deviation (no scaling)
Variable Coefficient Std. Error t-Statistic Prob.
C 6.941144 1.473009 4.712220 0.0000
LOG(RPCPI) 0.243077 0.167021 1.455373 0.1460
LOG(ARRMURD) -0.720749 0.030417 -23.69553 0.0000
LOG(CONVMURD) -0.665553 0.030671 -21.69945 0.0000
LOG(DENSITY) -0.320790 0.030445 -10.53667 0.0000
LOG(PPB) 0.002043 0.023552 0.086740 0.9309
Weighted Statistics
R-squared 0.615787 Mean dependent var 0.057614
Adjusted R-squared 0.613031 S.D. dependent var 0.150715 R^2 = 1 - 0.686284/(0.150715*(703-6))=1-0.686284/15.94545=.956951
S.E. of regression 0.031379 Akaike info criterion -4.076874
Sum squared resid 0.686284 Schwarz criterion -4.037995
Log likelihood 1439.021 Hannan-Quinn criter. -4.061848
F-statistic 223.4198 Durbin-Watson stat 1.678864
Prob(F-statistic) 0.000000 Weighted mean dep. 2.490813
Unweighted Statistics
R-squared -0.073278 Mean dependent var 1.691755
Adjusted R-squared -0.080977 S.D. dependent var 0.841445
S.E. of regression 0.874851 Sum squared resid 533.4590
Durbin-Watson stat 0.796153
And that agrees with the R^2 calculated in a least squares with weighted variables
Dependent Variable: LRATMUR/DENSITY
Method: Least Squares
Date: 09/14/13 Time: 10:15
Sample: 1 703
Included observations: 703
Variable Coefficient Std. Error t-Statistic Prob.
1/DENSITY 6.941144 1.473009 4.712220 0.0000
LOG(RPCPI)/DENSITY 0.243077 0.167021 1.455373 0.1460
LOG(ARRMURD)/DENSITY -0.720749 0.030417 -23.69553 0.0000
LOG(CONVMURD)/DENSITY -0.665553 0.030671 -21.69945 0.0000
LOG(DENSITY)/DENSITY -0.320790 0.030445 -10.53667 0.0000
LOG(PPB)/DENSITY 0.002043 0.023552 0.086740 0.9309
R-squared 0.956962 Mean dependent var 0.057614
Adjusted R-squared 0.956653 S.D. dependent var 0.150715
S.E. of regression 0.031379 Akaike info criterion -4.076874
Sum squared resid 0.686284 Schwarz criterion -4.037995
Log likelihood 1439.021 Hannan-Quinn criter. -4.061848
Durbin-Watson stat 1.678864
Another interpretation (and the original) is the correlation squared between the actual and the predicted.
The correlation is .978249 which squared is .956971 -
So what is 0.615787???
Additionally, what is the unweighted NEGATIVE R^2? Yes it is calculated as 1 - RSS/TSS from
R-squared -0.07327801 Mean dependent var 1.691754524
Adjusted R-squared -0.080977278 S.D. dependent var 0.841445199
S.E. of regression 0.874851054 Sum squared resid 533.4589635
Durbin-Watson stat 0.796153391
but what do those numbers mean (what are their exact formulas)
Bob