Chapter 12 Inference for Linear Regression

Slides:



Advertisements
Similar presentations
Inference for Regression
Advertisements

CHAPTER 24: Inference for Regression
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 14: More About Regression Section 14.1 Inference for Linear Regression.
Chapter 14: Inference for Regression
Chapter 12: More About Regression
Objectives (BPS chapter 24)
Chapter 12 Section 1 Inference for Linear Regression.
Introduction to Linear Regression and Correlation Analysis
Inference for regression - Simple linear regression
Confidence Intervals for the Regression Slope 12.1b Target Goal: I can perform a significance test about the slope β of a population (true) regression.
BPS - 3rd Ed. Chapter 211 Inference for Regression.
Chapter 15 Inference for Regression
Ch 15 – Inference for Regression. Example #1: The following data are pulse rates and heights for a group of 10 female statistics students. Height
AP Statistics Section 15 A. The Regression Model When a scatterplot shows a linear relationship between a quantitative explanatory variable x and a quantitative.
Inference for Linear Regression Conditions for Regression Inference: Suppose we have n observations on an explanatory variable x and a response variable.
Chapter 12: More About Regression
+ Chapter 12: Inference for Regression Inference for Linear Regression.
12.1: Inference for Linear Regression. Section 12.1 Inference for Linear Regression CHECK conditions for performing inference about the slope β of the.
Chapter 14 Inference for Regression AP Statistics 14.1 – Inference about the Model 14.2 – Predictions and Conditions.
Lesson Inference for Regression. Knowledge Objectives Identify the conditions necessary to do inference for regression. Explain what is meant by.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Inference for Regression Chapter 14. Linear Regression We can use least squares regression to estimate the linear relationship between two quantitative.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Chapter 12 More About Regression Let’s look at the Warm-Up first to remind ourselves what we did with regression! Remember FODS!
AP STATISTICS LESSON 14 – 1 ( DAY 1 ) INFERENCE ABOUT THE MODEL.
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
I NFERENCE F OR R EGRESSION Is a child’s IQ linked to their crying as an infant?
Chapter 10 Inference for Regression
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
Inference with Regression. Suppose we have n observations on an explanatory variable x and a response variable y. Our goal is to study or predict the.
AP Statistics Section 15 A. The Regression Model When a scatterplot shows a linear relationship between a quantitative explanatory variable x and a quantitative.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
The Practice of Statistics Third Edition Chapter 15: Inference for Regression Copyright © 2008 by W. H. Freeman & Company.
Chapter 12 Inference for Linear Regression. Reminder of Linear Regression First thing you should do is examine your data… First thing you should do is.
BPS - 5th Ed. Chapter 231 Inference for Regression.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Inference for Linear Regression
Chapter 14: More About Regression
CHAPTER 12 More About Regression
CHAPTER 12 More About Regression
Regression Inferential Methods
Inference for Regression
Chapter 12: More About Regression
Chapter 12: More About Regression
CHAPTER 12 More About Regression
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
CHAPTER 29: Multiple Regression*
CHAPTER 26: Inference for Regression
Chapter 12: More About Regression
Chapter 14 Inference for Regression
Chapter 12: More About Regression
Basic Practice of Statistics - 3rd Edition Inference for Regression
Chapter 12: More About Regression
CHAPTER 12 More About Regression
Chapter 12: More About Regression
Chapter 12: More About Regression
Chapter 14 Inference for Regression
Inference for Regression
Chapter 12: More About Regression
CHAPTER 12 More About Regression
Chapter 12: More About Regression
Chapter 12: More About Regression
Chapter 12: More About Regression
Chapter 12: More About Regression
Inference for Regression
Chapter 12: More About Regression
Regression inference.
Presentation transcript:

Chapter 12 Inference for Linear Regression Target Goals: I can make predictions using regression for normal distributions. I can check conditions for performing inference about the slope β of the population (true) regression line. 12.1a h.w: pg 759: 1 – 11 odd

Inference about the Model We can use LSRL fitted to data to predict y for a given value of x for two quantitative variables. Now we will do tests and construct confidence intervals in this setting.

Pg. 752

Ex. Crying and IQ Infants who cry easily may be more easily stimulated than others and this may be a sign of higher IQ. The researchers snapped a rubber band on the sole of the foot of infants and caused the infants to cry. At age 3 years the measured IQ.

Step 1: Make a scatterplot of the data. Explanatory variable: Crying Response variable: IQ Enter “crying” data into L1 and “IQ” data into L2. Plot and Interpret. STAT:CALC:LinReg(a+bx) L1,L2,Y1 Y1:(VARS:Y-VARS:FUNCT:Y1) Scatterplot shows a roughly linear pattern. The correlation r describes the direction and strength of the relationship.

Step 2: Calculate the LSRL

Step 3: Identify outliers and influential points No extreme outliers or potentially influential observations.

Step 4: Calculate the Correlation (r value) The correlation between crying and IQ is r = 0.455.

Interpret r2 = 0.207, only about 21% of the variation in IQ scores (response variable) is explained by crying intensity. r2 is called the coefficient of determination. Is prediction of IQ accurate with this model? No

It is interesting though that behavior shortly after birth can partly predict IQ.

Conditions for Regression Inference How long it will take before Old Faithful erupts again based on the duration of the previous eruption. Conditions for Regression Inference 3 SRSs of 20 Old Faithful Eruptions The values of the slope b for the 1000 sample regression lines are plotted.

Pg. 742

Conditions for Regression Inference Our goal is to predict the behavior of y for a given value of x. Linear: The y responses for various samples vary according to a normal distribution. The mean response μy has a straight-line relationship with x. The true regression line is written in the form:

where μy is the mean response, and is the true y-intercept and β is the true slope.

Independent: The y responses are independent of each other. Normal: for any fixed value of x, the observed response value y varies according to a normal distribution having mean μy.

Equal Variance: The standard deviation s about the true regression line is the same for all values of x. (constant). It is usually an unknown parameter. Random: The data come from a well designed random sample or randomized experiment.

Linear Independent Normal Equal Variance Random

The LSRL : = a + b x where b is an unbiased estimator of the true slope β and a is the unbiased estimator of the true intercept .

The line is the true regression line, which shows how the mean response μy changes as the explanatory variable x changes.

Standard Deviation σ determines whether the points fall close to the true regression line (small σ) or are widely scattered (large σ). This is also the size of a typical prediction error if we use the least-squares regression line to predict “how long it will take before Old Faithful erupts again” based on the duration of the previous eruption.

Ex: Slope and Intercept The LSRL is = 91.27 + 1.493x The slope measures rate of change: how much higher average IQ is for children with one more peak in their crying measurements. b est. the unknown β; we est. that on the average IQ is about 1.5 points higher for each additional crying peak. crying peak IQ

Standard Deviation σ describes the variability of the response y about the true regression line. Recall that residuals estimate how much y varies about the true line and are the vertical deviations of the data points from the least-square line: Residual = observed y – predicted y

Standard Error about the LSRL We estimate σ with s, the sample standard deviation, which is also called the standard error (this is the key to inference about the regression). Since σ is unknown, we use s to estimate the value of σ. Note: (n – 2) is the degrees of freedom for the regression model.

Ex. Calculating Residuals and Standard Error The quickest way to do this is to: (use ex 14.1 data). Enter “crying” data into L1 and “IQ” data into L2. (We already did this.) Recall: LINREG (a+bx) automatically calculates the residuals and stores them in “Resid.” Store “Resid” in L3 STAT:CALC:1-Var Stats L3 ∑ resid2

To find s, first find s2: To find s2: Enter the value of ∑X2 by hand or (VARS:5: : ∑X2 ) and divide by (n-2) Take sqrt to find s.

A level C confidence interval for the slope b of the true regression line is

You will rarely have to calculate this by hand. Regression software gives you the standard error SE b and b itself.

Ex. Regression Output: Crying and IQ

There are 38 data points so df = n – 2 = 36. Find the critical value t* (critical value). For a 95% C.I. for true slope b, use critical value t* = 2.042 with df =30 from table C.

Conclude We are 95 % confident that mean IQ increases by, between 0.5 and 2.5 points, for each additional peak in crying.

Interpret SEb Seb estimates how much the slope of the sample regression line typically varies from the slope of the population (true) regression line if we repeat the data production process many times. If we repeated the experiment many times, the slope the slope of the sample regression line would typically vary by about .4870 from the slope of the true regression line for predicting IQ from cry count of infants.