Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linear Regression. Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was.

Similar presentations


Presentation on theme: "Linear Regression. Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was."— Presentation transcript:

1 Linear Regression

2 Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was run.

3 Plot Yield vs Temperature

4 Clearly yield is dependent on the temperature run.

5 Regression Model } e i

6 Regression Model Our job is to find the best estimate a for the true but unknown parameter  and the best estimate b for the true but unknown parameter .

7 Regression Model Now whatever line we make, for any given point I, we will miss by amount. So how do we find the best line. } e i

8 Regression Model Two ideas –Minimize the sum of the errors

9 Regression Model Two ideas –Minimize the sum of the errors All three lines yield a sum of errors equal to 0.

10 Regression Model Second idea –Minimize the sum of squared errors

11 Sum of Squared Errors So I have an equation and two parameters to estimate. How do I do that so as to minimize SSE?

12 Calculus Review How do we find the minimum of this curve? y x

13 Estimating a Do the same here, take the derivative w/respect to x and set it equal to zero

14 Estimating b

15

16

17 Estimating a and b

18 Regression in Excel Set up the Analysis Add- in Toolpak; click on File/options/addins Click on Analysis Toolpak With Analysis Toolpak Highlighted, click on Go

19 Regression in Excel Add In dialogue box opens With Analysis ToolPak Selected, click ok

20 Regression in Excel You should now be able to see the Data Analysis ToolPak Click on the Data tab, look for data analysis on the right Scroll down and click on Regression in the data analysis dialogue box

21 Enter Appropriate cells for y, x, output

22 Excel Results


Download ppt "Linear Regression. Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was."

Similar presentations


Ads by Google