GET OUT p.161 HW!.

Slides:



Advertisements
Similar presentations
Scatter Diagrams and Linear Correlation
Advertisements

CHAPTER 3 Describing Relationships
Regression, Residuals, and Coefficient of Determination Section 3.2.
C HAPTER 3: E XAMINING R ELATIONSHIPS. S ECTION 3.3: L EAST -S QUARES R EGRESSION Correlation measures the strength and direction of the linear relationship.
1 Chapter 3: Examining Relationships 3.1Scatterplots 3.2Correlation 3.3Least-Squares Regression.
AP STATISTICS LESSON 3 – 3 LEAST – SQUARES REGRESSION.
A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. DosageHeart rate
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 3 Describing Relationships 3.2 Least-Squares.
WARM-UP Do the work on the slip of paper (handout)
Examining Bivariate Data Unit 3 – Statistics. Some Vocabulary Response aka Dependent Variable –Measures an outcome of a study Explanatory aka Independent.
CHAPTER 5 Regression BPS - 5TH ED.CHAPTER 5 1. PREDICTION VIA REGRESSION LINE NUMBER OF NEW BIRDS AND PERCENT RETURNING BPS - 5TH ED.CHAPTER 5 2.
Chapter 2 Examining Relationships.  Response variable measures outcome of a study (dependent variable)  Explanatory variable explains or influences.
A P STATISTICS LESSON 3 – 3 (DAY 3) A P STATISTICS LESSON 3 – 3 (DAY 3) RISIDUALS.
Residuals Recall that the vertical distances from the points to the least-squares regression line are as small as possible.  Because those vertical distances.
LEAST-SQUARES REGRESSION 3.2 Least Squares Regression Line and Residuals.
CHAPTER 3 Describing Relationships
LEAST-SQUARES REGRESSION 3.2 Role of s and r 2 in Regression.
CHAPTER 3 Describing Relationships
Aim – How can we analyze the results of a linear regression?
LEAST – SQUARES REGRESSION
Statistics 101 Chapter 3 Section 3.
CHAPTER 3 Describing Relationships
Linear Regression Special Topics.
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
LSRL Least Squares Regression Line
Least-Squares Regression
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Least-Squares Regression
^ y = a + bx Stats Chapter 5 - Least Squares Regression
Chapter 3: Describing Relationships
Least-Squares Regression
Chapter 3 Describing Relationships Section 3.2
Least Squares Regression
Chapter 3: Describing Relationships
M248: Analyzing data Block D UNIT D2 Regression.
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Least-Squares Regression
Least-Squares Regression
Chapter 3: Describing Relationships
Least-Squares Regression
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Warmup A study was done comparing the number of registered automatic weapons (in thousands) along with the murder rate (in murders per 100,000) for 8.
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
3.2 – Least Squares Regression
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret.
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapters Important Concepts and Terms
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Homework: PG. 204 #30, 31 pg. 212 #35,36 30.) a. Reading scores are predicted to increase by for each one-point increase in IQ. For x=90: 45.98;
Review of Chapter 3 Examining Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Presentation transcript:

GET OUT p.161 HW!

Least-Squares Regression 3.2 Residuals and Residual Plots

Residuals A residual is the difference between an observed value of the response variable and the value predicted by the regression line. residual = observed y – predicted y residual = y - ŷ In most cases, no line will pass exactly through all the points in a scatterplot. A good regression line makes the vertical distances of the points from the line as small as possible.

Special Property of Residuals The mean of the LS residuals are always zero!

Example, p. 169 How much is that truck worth? Find and interpret the residual for the Ford F-150 that had 70,583 miles driven and a price of $21,994. Regression Line: 𝑝𝑟𝑖𝑐𝑒 =38,257−0.1629 𝑚𝑖𝑙𝑒𝑠 𝑑𝑟𝑖𝑣𝑒𝑛 Need the predicted price: 𝑝𝑟𝑖𝑐𝑒 =38,257−0.1629 70,583 ≈26,759 dollars Residual = 𝑦− 𝑦 = 21,994−26,759=−4765 𝑑𝑜𝑙𝑙𝑎𝑟𝑠 So the actual price of the truck is $4765 lower than expected based on its mileage. Why is this? Could have been in an accident. Could need some work.

Least Squares Regression Line The least-squares regression line of y on x is the line that makes the sum of the squared residuals as small as possible. Different regression lines produce different residuals. The regression line we want is the one that minimizes the sum of the squared residuals.

Residual Plot A scatterplot of the regression residuals against the explanatory variable (x). Helps us assess the fit of a regression line. One of the first principles of data analysis is to look for an overall pattern and for striking departures from the pattern. A regression line describes the overall pattern of a linear relationship between two variables. We see departures from this pattern by looking at the residuals.

Residuals vs. Correlation Never rely on correlation alone to determine if an LSRL is the best model for the data. You must check the residual plot!

Examining Residual Plots A residual plot magnifies the deviations of the points from the line, making it easier to see unusual observations and patterns. The residual plot should show no obvious patterns The residuals should be relatively small in size. Pattern in residuals Linear model not appropriate Sometimes you may think the linear model is appropriate. You must check the residual plot!

Residual Plots Uniform scatter of points indicates that the regression line fits the data well, so the line is a good model.

Residual Plots A curved pattern shows that the relationship is not linear. A straight line would not be a good model for the data.

Residual Plots Increasing or decreasing spread about the line as x increases indicates that prediction of y will be less accurate for larger x.

HW Due: Monday p.193 # 39, 41, 45, 52, 54