1 / 14

Correlation and Regression-II

Correlation and Regression-II. QSCI 381 – Lecture 37 (Larson and Farber, Sects 9.2+9.4). Introduction.

rcraver
Download Presentation

Correlation and Regression-II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Correlation and Regression-II QSCI 381 – Lecture 37 (Larson and Farber, Sects 9.2+9.4)

  2. Introduction • Having determined that the correlation between two variables is significant, we now need to quantify the relationship by the line that best fits the data. This line is called the and it can be used to predict the value of y for a given value of x. regression line

  3. Fitting a Regression Line-I • We refer to the difference between each value of y and the value predicted by the regression line as a . • The regression line (or the line of best fit) is chosen so that the sum of squared residuals is minimized. residual

  4. Fitting a Regression Line-II d3 d2 d1 Minimize

  5. Equation of a Regression Line-I Slope = m Intercept=b The equation of a regression line for an independent variable x and a dependent variable y is: where is the predicted y-value for a given x-value.

  6. Equation of a Regression Line-II • The slope m and the y-intercept b are estimated using the equations: where is the mean of the y-values and is the mean of the x-values. The regression line always passes through the point .

  7. Example-I • Length and weight are related by a power curve: • This equation can be transformed to a linear relationship by taking logarithms: • We will estimate the values for a and c for blue warehou.

  8. Example-II The relationship looks linear after log-transformation

  9. Example-III

  10. Example IV

  11. Using EXCEL to Estimate a Regression Line-I Data – Data Analysis – Regression

  12. Using EXCEL to Estimate a Regression Line-II • The function LINEST implements the regression dialog box. • INDEX(LINEST(Y1:Y10,X1:X10),1) – slope • INDEX(LINEST(Y1:Y10,X1:X10),2) – intercept. • This function includes several other features which we will discover in the next lecture.

  13. Application of Regression Lines • Use the regression line from the first example to find the logarithm of the weight of a fish whose length is 50cm.

  14. Multiple Linear Regression-I • It is not uncommon to be able to make better predictions using more than one independent (explanatory) variable. A equation has the form: where are the explanatory variables. multiple regression

More Related