A student wonders if tall women tend to date taller men than do short women. She measures herself, her dormitory roommate, and the women in the adjoining.

Slides:



Advertisements
Similar presentations
A student wonders if tall women tend to date taller men than do short women. She measures herself, her dormitory roommate, and the women in the adjoining.
Advertisements

AP Statistics Mrs Johnson
CHAPTER 3 Describing Relationships
A student wonders if tall women tend to date taller men than do short women. She measures herself, her dormitory roommate, and the women in the adjoining.
3.2 Least Squares Regression Line. Regression Line Describes how a response variable changes as an explanatory variable changes Formula sheet: Calculator.
Objective: Understanding and using linear regression Answer the following questions: (c) If one house is larger in size than another, do you think it affects.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 3 Describing Relationships 3.2 Least-Squares.
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.
Do Now Women (x): Men (y): Using your calculator, make a scatterplot. Describe the direction, strength, form, and any outliers.
Objective Find the line of regression. Use the Line of Regression to Make Predictions.
Least Squares Regression Remember y = mx + b? It’s time for an upgrade… A regression line is a line that describes how a response variable y changes as.
Least Squares Regression.   If we have two variables X and Y, we often would like to model the relation as a line  Draw a line through the scatter.
POD 09/19/ B #5P a)Describe the relationship between speed and pulse as shown in the scatterplot to the right. b)The correlation coefficient, r,
LEAST-SQUARES REGRESSION 3.2 Least Squares Regression Line and Residuals.
3.2 - Residuals and Least Squares Regression Line.
Chapter 5 Lesson 5.2 Summarizing Bivariate Data 5.2: LSRL.
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
CHAPTER 3 Describing Relationships
Linear Regression Special Topics.
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Chapter 3: Describing Relationships
Statistics 200 Lecture #5 Tuesday, September 6, 2016
Least-Squares Regression
LSRL Least Squares Regression Line
The Least-Squares Regression Line
Module 12 Math 075.
Finding the Best Fit Line
Ice Cream Sales vs Temperature
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Least-Squares Regression
^ y = a + bx Stats Chapter 5 - Least Squares Regression
Chapter 3: Describing Relationships
GET OUT p.161 HW!.
Least-Squares Regression
The SAT essay: Is Longer Better?
Chapter 3 Describing Relationships Section 3.2
Least-Squares Regression
Daniela Stan Raicu School of CTI, DePaul University
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
Least-Squares Regression
Correlation and Regression
Least-Squares Regression
Chapter 3: Describing Relationships
Least-Squares Regression
CHAPTER 3 Describing Relationships
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
Algebra Review The equation of a straight line y = mx + b
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
9/27/ A Least-Squares Regression.
Chapter 3: Describing Relationships
Chapter 3: Describing Relationships
CHAPTER 3 Describing Relationships
Presentation transcript:

A student wonders if tall women tend to date taller men than do short women. She measures herself, her dormitory roommate, and the women in the adjoining rooms. Then she measures the next man each woman date. Draw & discuss the scatterplot and calculate the correlation coefficient. Women (x) Men (y) 66 72 64 68 70 65 71

Find the correlation Coefficient: X Y Zx Zy Zx*Zy 4 6   8 15 22 19 18 27

Find the correlation Coefficient: X Y Zx Zy Zx*Zy 32 27   40 82 30 34 18 14 15 1 25 22

Find the correlation Coefficient: X Y Zx Zy Zx*Zy 2 72   8 60 10 64 14 52 28 43 32 40 18

Linear Regression

Guess the correlation coefficient http://istics.net/stat/Correlations/

Can we make a Line of Best Fit

Regression Line This is a line that describes how a response variable (y) changes as an explanatory variable (x) changes. It’s used to predict the value of (y) for a given value of (x). Unlike correlation, regression requires that we have an explanatory variable.

Let’s try some! http://illuminations.nctm.org/ActivityDetail.aspx?ID=146

Regression Line  

The following data shows the number of miles driven and advertised price for 11 used Honda CR-Vs from the 2002-2006 model years (prices found at www.carmax.com). The scatterplot below shows a strong, negative linear association between number of miles and advertised cost. The correlation is -0.874. The line on the plot is the regression line for predicting advertised price based on number of miles. Thousand Miles Driven Cost (dollars) 22 17998 29 16450 35 14998 39 13998 45 14599 49 14988 55 13599 56 69 11998 70 14450 86 10998

The regression line is shown below…. Use it to answer the following.   Slope: Y-intercept:

Predict the price for a Honda with 50,000 miles.  

Extrapolation This refers to using a regression line for prediction far outside the interval of values of the explanatory variable x used to obtain the line. They are not usually very accurate predictions.

  Slope: Y-int: Predict weight after 16 wk Predict weight at 2 years:

Residual  

The equation of the least-squares regression line for the sprint time and long-jump distance data is predicted long-jump distance = 304.56 – 27.3 (sprint time). Find and interpret the residual for the student who had a sprint time of 8.09 seconds with a long jump of 84 inches.

Regression Let’s see how a regression line is calculated.

Fat vs Calories in Burgers Fat (g) Calories 19 410 31 580 34 590 35 570 39 640 680 43 660

Let’s standardize the variables Fat Cal z - x's z - y's 19 410 -1.959 -2 31 580 -0.42 -0.1 34 590 -0.036 35 570 0.09 -0.2 39 640 0.6 0.56 680 1 43 660 1.12 0.78 The line must contain the point and pass through the origin.

Let’s clarify a little. (Just watch & listen) The equation for a line that passes through the origin can be written with just a slope & no intercept: y = mx. But, we’re using z-scores so our equation should reflect this and thus it’s Many lines with different slope pass through the origin. Which one fits our data the best? That is which slope determines the line that minimizes the sum of the squared residuals.

Line of Best Fit –Least Squares Regression Line It’s the line for which the sum of the squared residuals is smallest. We want to find the mean squared residual. Residual = Observed - Predicted Focus on the vertical deviations from the line.

Let’s find it. (just watch & soak it in) St. Dev of z scores is 1 so variance is 1 also. This is r!

𝒎= −𝟐(−𝟐𝒓 𝟐(𝟏) =𝒓 Continue…… Since this is a parabola – it reaches it’s minimum at 𝒎= −𝟐(−𝟐𝒓 𝟐(𝟏) =𝒓 Hence – the slope of the best fit line for z-scores is the correlation coefficient → r.

Slope – rise over run A slope of r for z-scores means that for every increase of 1 standard deviation in , there is an increase of r standard deviations in . “Over 1 and up r” Translate back to x & y values – “over one standard deviation in x, up r standard deviations in y. Slope of the regression line is:

Why is correlation “r” Because it was calculated from the regression of y on x after standardizing the variables – just like we have just done – thus he used r to stand for (standardized) regression.

The number of miles (in thousands) for the 11 used Hondas have a mean of 50.5 and a standard deviation of 19.3. The asking prices had a mean of $14,425 and a standard deviation of $1,899. The correlation for these variables is r = -0.874. Find the equation of the least-squares regression line and explain what change in price we would expect for each additional 19.3 thousand miles.

So let’s write the equation! Fat (g) Calories 19 410 31 580 34 590 35 570 39 640 680 43 660 Slope: Explain the slope:

Now for the final part – the equation! Y-intercept: Remember – it has to pass through the point . Solve for y-intercept:

Now it can be used to predict. How many calories do I expect to find in a hamburger that has 25 grams of fat?

Mean call -to-shock time Try another problem Mean call -to-shock time Survival Rate 2 90 6 45 7 30 9 5 12

Interpret the slope: Interpret the y-int: Predict the survival rate for a 10 min. call to shock time Predict the survival rate for a 20 min. call to shock time

Try another problem SAT Math SAT Verbal 600 650 720 800 540 450 500 620

Interpret the slope: Interpret the y-int: Predict the verbal score for a math score of 400 Predict the verbal score for a math score of 500

That’s…all…..Folks!