Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Regression with zero intercept

When I regress 86 pairs of lab duplicates, I get a better fit by hard-coding
0 intercept than letting XL calculate it. This seems wrong: the least squares
regression should be the best fit of the data. I compared LINEST and the
Regression tool in the Data Analysis Tool Pak and they yield the same answer.
I suspected that XL adds a (0,0) to the data set because the total df in the
ANOVA output is one larger for the fixed intercept, but testing that with RSQ
yielded a different value. The stats (below) all favor the fixed intercept;
even the calculated slope is closer to 1 and the confidence limits are
tighter:

Stat b=calc b=0
Intercept -0.02048 0
Rsq 0.9929 0.9991
std Err 0.2318 0.2306
Slope 1.0045 1.0020
std Err 0.0093 0.0033
L 95.0% 0.9861 0.9955
U 95.0% 1.0230 1.0085

Thanks in advance for any input.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
Default Regression with zero intercept

Fri, 18 Jan 2008 13:40:00 -0800 from TheMoth
:
When I regress 86 pairs of lab duplicates, I get a better fit by hard-coding
0 intercept than letting XL calculate it. This seems wrong: the least squares
regression should be the best fit of the data. I compared LINEST and the
Regression tool in the Data Analysis Tool Pak and they yield the same answer.
I suspected that XL adds a (0,0) to the data set because the total df in the
ANOVA output is one larger for the fixed intercept, but testing that with RSQ
yielded a different value. The stats (below) all favor the fixed intercept;
even the calculated slope is closer to 1 and the confidence limits are
tighter:

Stat b=calc b=0
Intercept -0.02048 0
Rsq 0.9929 0.9991
std Err 0.2318 0.2306
Slope 1.0045 1.0020
std Err 0.0093 0.0033
L 95.0% 0.9861 0.9955
U 95.0% 1.0230 1.0085


These are not large differences, but like you I am surprised by their
direction.

What do the residuals look like under either scenario? It's fairly
easy (in Excel) to calculate the sum of squares of residuals for each
of the two lines. I suspect (I hope) that the figure will be a bit
larger for the b=0 line.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work." -- Marie Dressler, in /Dinner at Eight/
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default Regression with zero intercept

Rsq values with and without an intercept are not directly comparable. With
an intercept, Rsq indicates the improvment of regression over simply
representing each value by the mean of all the values. Without an intercept,
Rsq indicates the improvement of regression over representing each value by
zero. Unless the mean of the data values happens to be zero, Rsq without an
intercept will be larger than Rsq with an intercept, but that does not mean
that the fit is better.

Jerry

"TheMoth" wrote:

When I regress 86 pairs of lab duplicates, I get a better fit by hard-coding
0 intercept than letting XL calculate it. This seems wrong: the least squares
regression should be the best fit of the data. I compared LINEST and the
Regression tool in the Data Analysis Tool Pak and they yield the same answer.
I suspected that XL adds a (0,0) to the data set because the total df in the
ANOVA output is one larger for the fixed intercept, but testing that with RSQ
yielded a different value. The stats (below) all favor the fixed intercept;
even the calculated slope is closer to 1 and the confidence limits are
tighter:

Stat b=calc b=0
Intercept -0.02048 0
Rsq 0.9929 0.9991
std Err 0.2318 0.2306
Slope 1.0045 1.0020
std Err 0.0093 0.0033
L 95.0% 0.9861 0.9955
U 95.0% 1.0230 1.0085

Thanks in advance for any input.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
regression using set intercept Canary Pete Excel Discussion (Misc queries) 4 November 18th 06 02:37 PM
Linear Regression by set Slope (not intercept) Ben Excel Discussion (Misc queries) 5 May 21st 06 10:49 AM
Excel Linear Regression by set slope (not intercept) Ben Excel Worksheet Functions 1 May 15th 06 11:49 AM
Regression intercept to 0 squalidae Excel Worksheet Functions 2 February 22nd 06 05:56 AM
Intercept and Indirect Graham Haughs Excel Worksheet Functions 2 February 19th 06 06:51 AM


All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"