Download presentation
Presentation is loading. Please wait.
Published byBrittney Wilson Modified over 8 years ago
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
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.