![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jun 2003
Posts: 177
|
Hi,
I have the following data: X_1 = A + B * Y_1 X_2 = A + B * Y_2 X_3 = A + B * Y_3 ….. X_200=A+B*Y_200 I have the data for X_1 thru X_200 and Y_1 through Y_200 Now I need to a regression in Excel..so thatI can “optimally” estimate A and B. How do I do that? Thanks a lot, buff |
|
|
|
|
|
#2 |
|
Join Date: Feb 2002
Location: Tampa, FL USA
Posts: 886
|
Easiest way:
Just plot the 2 columns of known x's and y's in a scatterplot, add a trendline. A and B can be pulled from the lines slope and intercept. You can also show the Rsquared value. Another way: Go to Tools/Add-ins and add the analysis toolpak. you can then go to tools/data analysis to run a regression. HTH Adam |
|
|
|
|
|
#3 |
|
Join Date: May 2003
Location: Round Rock, TX
Posts: 767
|
You can also use the LINEST function to get the coefficiencts and constant. You can read about it in the help file.
Hope this helps!
__________________
Loren The numbers don't lie, but sometimes they don't tell the whole truth. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|