Linear weighted regression

O

oliver

Hi all,

I would like to perform a weighted linear regression. Does
anybody know about an add-in that is able to perform such
an analysis?

Unfortunately, the Data-Analysis-Add-In is only good for
unweighted regressions.

Thanks a lot for your help!!

oliver
 
J

Jerry W. Lewis

Calculate a weighted average by

=SUMPRODUCT(<y-data>,<weights>)/SUM(<weights>)

(handle x-data analogously). The slope of weighted linear regression is
then

=SUMPRODUCT(<y-data>-<y-wtd_ave>,<x-data>-<x-wtd_ave>,<weights>) /
SUMPRODUCT((<x-data>-<x-wtd_ave>)^2,<weights>)

and the intercept of weighted linear regression is

=<y-wtd_ave> - <x-wtd_ave>*<wtd_slope>

These should work if there is no missing data. With missing data, you
must insure that the averages do not include unmatched data.

Jerry
 

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