|
- In
my example, I will use 10 ordered pairs: (1,2) (3, 4) (2, 5) (1, 4) (4, 6)
(3, 3) (5, 10) (6, 9) (4, 7) (5, 12). Type the x-values in column A
,starting at A1 and pressing ENTER after each value. Now type the y-values
in column B, starting at B1 and pressing ENTER after each value.
- Select both columns of your data. For me, I select
A1:B10.
- Press the chart wizard button (the one the looks
like a graph.
- Choose XY (Scatter). It should be the fifth one in
the list. Press NEXT.
- Step 2: Choose NEXT.
- Step 3: Type in titles if wanted. Click off "Show Legend".
- Step 4: Choose "As object in" (or don't, your call.)
- After the chart has been created, click on the
Chart menu and select Add Trendline. (Trendline is another word for
regression line.) The first option is the linear regression line, which is
what we want.
- Click on the options tab.
- Click on the display equation on chart
box and the display R2 value on chart box.
- The regression equation is the line that is
"closest" to your data. The R2 value tells you what
proportion of the differences in the y-values can be explained by
differences in the x-values.
- If you want, you can forecast forward and
backward one or two units. It makes the line look a little nicer. I
forecast forward and backward one unit.
- Click okay. The equations can be moved to a more
aesthetically pleased location.
|
|