15
Regression in EXCEL Pum pkin experim ent R egression S tatistics M ultiple R 0.968 R Square 0.937 Adjusted R Square 0.934 Standard Error 3.260 Observations 23.000 ANOVA df SS MS F S ignificance F Regression 1 3334.239 3334.239 313.650 0.000 R esidual 21 223.239 10.630 Total 22 3557.478 C oefficients S tandard E rror t S tat P-value Lower 95% Upper 95% Intercept 33.293 1.372 24.272 0.000 30.440 36.145 Circumference 0.011 0.001 17.710 0.000 0.010 0.013 r 2 SSE SST b 1 b 0

Regression in EXCEL

Embed Size (px)

DESCRIPTION

Regression in EXCEL. r 2. SSE. b 0. SST. b 1. Prediction Watch Outs. Consider only the relevant range of the explanatory variable (x) Interpolation is valid Extrapolation is not!!!. Linear Regression in Excel Method 1. - PowerPoint PPT Presentation

Citation preview

Page 1: Regression in EXCEL

Regression in EXCELPumpkin experiment

Regression StatisticsMultiple R 0.968R Square 0.937Adjusted R Square 0.934Standard Error 3.260Observations 23.000

ANOVAdf SS MS F Significance F

Regression 1 3334.239 3334.239 313.650 0.000Residual 21 223.239 10.630Total 22 3557.478

Coefficients Standard Error t Stat P-value Lower 95% Upper 95%Intercept 33.293 1.372 24.272 0.000 30.440 36.145Circumference 0.011 0.001 17.710 0.000 0.010 0.013

r2

SSE

SSTb1b0

Page 2: Regression in EXCEL

Prediction Watch Outs Consider only the relevant range

of the explanatory variable (x) Interpolation is valid Extrapolation is not!!!

Page 3: Regression in EXCEL

Linear Regression in ExcelMethod 1

When all you need is the slope and intercept of a best fit line, you can use Excel functions (SLOPE and INTERCEPT) to determine these values. You can also use RSQ to find the coefficient of determination (R2)

Page 4: Regression in EXCEL

Example #1

Using Excel’s Functions to find the slope, intercept, and

coefficient of determination

Page 5: Regression in EXCEL

Linear Regression in ExcelMethod 2

Performing a linear regression in Excel is very easy. Once the data have been graphed, regression can be done very simply. Just because it is easy, does not mean that a linear regression always makes sense. Graph the data first and always inspect the “quality” of the fit.

Page 6: Regression in EXCEL

Linear Regression in ExcelMethod 2

When regression is done with the trend line feature of Excel, the fitted curve is automatically added to the graph.

Page 7: Regression in EXCEL

Linear Regression in ExcelMethod 2

The process of performing a linear regression for a slope and intercept requires the computation of various sums using both the independent (x) values and dependant (y) values in the data set being analyzed.

Page 8: Regression in EXCEL

Linear Regression in ExcelMethod 2 You can calculate the slope b1 and

intercept b0 with formula’s, but Excel will do this for you

When trying to find the best fit, always start with a linear fit (unless it is obvious that won’t work), then try exponential and polynomial fits if you think you can get a better fit.

Page 9: Regression in EXCEL

Example #2

Using Excel’s Trendline feature find the equation for a

model that fits the data

Page 10: Regression in EXCEL

Linear Regression in ExcelMethod 3 There is an add-in under tools

(regression) that can provide you all the details resulting from a linear regression.

It is easy to use, but interpreting the results requires some understanding of regression terminology

Page 11: Regression in EXCEL

Example #3

Using Excel’s Regression Analysis Tool

Page 12: Regression in EXCEL

Solving Equations

You can use Excel to solve a single equation. Like most things in Excel you can do this in many different ways

Graphical solution (find the roots of an equation)

Trial and guess Excel features…solver and goal seek

Page 13: Regression in EXCEL

Example #1

Using Graphical means to find equation solution

Page 14: Regression in EXCEL

Example #2

Using Goal Seek to find equation solution

Page 15: Regression in EXCEL

Example #3

Using Solver to find solutions