regression using set intercept

G

Guest

Please help

I can use the SLOPE and INTERCEPT formulas but I want to be able to
recalculate the 'best-fit' SLOPE using a defined intercept. I could do this
with the Regression data analysis tool but this seems very long winded when I
want to try out different intercepts and use them for different Y values.

Is there a simple formula I can use? TREND doesn't seem to do the job

many thanks in advance

Peter
 
B

Bernard Liengme

You could do this with Solver
Send me (my private email NOT newsgroup) a sample file
best wishes
 
G

Guest

If you want to estimate the slope of simple linear regression where the
intercept has been forced to be the constant (a), then use
=LINEST(ydata-a,xdata,FALSE)
Since you are only interested in a single value (slope), it is not necessary
to array enter this. This should be more numerically accurate than using
Solver.

If you are interested in the related statistics that LINEST can return, you
should be aware that for Excel versions prior to 2003, LINEST returns
incorrect values for R^2, F, and SSreg when the intercept is forced to zero.

Jerry
 
B

Bernard Liengme

I have a worksheet for you but your server will not accept any messages
(with/without attachments)
 
B

Bernard Liengme

I used Solver and then thought about translation with LINEST. I got the same
results.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top