Linear regression T-test

Slides:



Advertisements
Similar presentations
Linear regression T-test Your last test !!. How good does this line fit the data?  What are some things that determine how good the line fits the.
Advertisements

AP Statistics Section 15 C
1.What is Pearson’s coefficient of correlation? 2.What proportion of the variation in SAT scores is explained by variation in class sizes? 3.What is the.
Chapter 12 Inference for Linear Regression
Inference for Regression
Regression Inferential Methods
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
PPA 415 – Research Methods in Public Administration
Linear Regression and Correlation Analysis
Correlation and Regression Analysis
Chapter 12 Section 1 Inference for Linear Regression.
Inference for regression - Simple linear regression
Inference for Regression Find your notes from last week, Put # of beers in L1 and BAC in L2, then find LinReg(ax+b)
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
A.P. STATISTICS LESSON 14 – 2 ( DAY 2) PREDICTIONS AND CONDITIONS.
Regression. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution.
Regression. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for each. Using the slope from each.
Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for.
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.
12.1 WS Solutions. (b) The y-intercept says that if there no time spent at the table, we would predict the average number of calories consumed to be
+ 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!
Lecture 10 Chapter 23. Inference for regression. Objectives (PSLS Chapter 23) Inference for regression (NHST Regression Inference Award)[B level award]
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.
I NFERENCE F OR R EGRESSION Is a child’s IQ linked to their crying as an infant?
Chapter 10 Inference for Regression
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.
Regression Inference. Height Weight How much would an adult male weigh if he were 5 feet tall? He could weigh varying amounts (in other words, there is.
Inference for Linear Regression
Chapter 14: More About Regression
Inference about the slope parameter and correlation
CHAPTER 12 More About Regression
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
Regression.
AP Statistics Chapter 14 Section 1.
Regression Inferential Methods
Inferences for Regression
Inference for Regression
Regression.
Inference for Regression Lines
CHAPTER 26: Inference for Regression
Chapter 12 Regression.
Regression Inference.
Regression.
Regression.
Unit 3 – Linear regression
Regression.
Regression.
Basic Practice of Statistics - 3rd Edition Inference for Regression
Regression.
Day 68 Agenda: 30 minute workday on Hypothesis Test --- you have 9 worksheets to use as practice Begin Ch 15 (last topic)
Inference for Regression
Inferences for Regression
Day 60 Agenda: Quiz 10.2 & before lunch.
Regression inference.
Presentation transcript:

Linear regression T-test Your last test !!

Crying and IQ Infants who cry easily may be more stimulated than others. This may be a sign of higher IQ. Researchers recorded the crying of 38 infants and measured its intensity by the number of peaks in the most active 20 seconds. They later measured the children’s IQ at age three years using the Stanford- Binet IQ test.

How good does this line fit the data? What are some things that determine how good the line fits the data? R^2 The residual plot. Any obvious curvature in the data?

Conditions/Assumptions/requirements S---Sample, Identify it! N--Normally distributed residuals(no outliers) A--and I----each piece of data is independent. L----Linear Relationship S---Scattered Residual Plot.

If a baby doesn’t cry, what is their predicted IQ? If a baby doesn’t cry their predicted IQ is 91.3

Explain the meaning of the slope in context of the problem. For every unit increase in crycount we can expect an average increase of 1.49 in predicted IQ.

Explain the meaning of the S? Interpret in context of the problem. S is the standard deviation of the residuals. The avg difference between actual IQ and predicted IQ is about 17.5.

What is the meaning of the correlation coefficient in terms of this problem? What is its value? R = .445….There is a weak positive linear association between infant crycount and predicted IQ at age 3.

What is the meaning of coefficient of determination in this problem What is the meaning of coefficient of determination in this problem? What is its value? 20.7% of the variation in predicted IQ can be explained by the approximate linear relationship with infant crycount.

What is the standard deviation of the slope in this problem What is the standard deviation of the slope in this problem? What does it mean? Seb = .4870……With different samples of this size we can expect a difference in slope to vary as much as .4870.

Run the Test Ho: B = 0 vs Ha: B > 0, where B is the the true slope of the relationship between infants crying and later IQ. Assumptions/Conditions………..SNAILS We have a random sample of 38 infants cry counts and IQ measured later at 3 years old. The residuals can be considered Normal because of the CLT. IQ scores can be considered independent and all infants from the selected population is more than 10x the sample. We have a linear association between crying and IQ. The residuals are randomly scattered about the regression line.

Linear Regression T – Test P-value = .004 This p-value is low enough to reject Ho at any level of alpha. This is strong evidence that there may be a positive linear relationship between infants cry counts and later IQ score.

CI for the slope: Using the data from the crying problem, give a 90% confidence interval for the slope of the problem. Formula is on next slide…..degrees of freedom is N-2 since any two points will make a line, so we discard 2.

Linear Regression T Interval Conditions have been met. (0.6709, 2.3149) We are 90% confident that mean IQ increases is between .6709 and 2.3149 point for each additional peak in crying. Since 0 is not included in this interval we have strong evidence that there may be a positive linear relationship between infant cry counts and later IQ.

Blood alcohol content and Beer 16 student volunteers at Ohio State University drank a randomly assigned number of cans of beer. Thirty minutes later, a police officer measured their BAC.

Beers & BAC Student 1 2 3 4 5 6 7 8 Beers 9 BAC 0.10 0.03 0.19 0.12 0.04 0.095 0.07 0.06 10 11 12 13 14 15 16 0.02 0.05 0.085 0.09 0.01 Is there a positive relationship between the number of beers consumed and blood alcohol content(BAC)? Run a Linear Regression T Test…..follow the PHANTOMS

Hypothesis Ho: B = 0 The number of beers has no effect on BAC Ha: B > 0 The number of beers has a positive effect on BAC

Assumptions/Conditions We have an independent sample of 16 student volunteers. Residuals are normally distributed and scattered around the regression line(check/show boxplot) We have a linear relationship

Name the Test, Test Statistic & P-value Linear Regression T – Test t = 7.48 P-value = 0

Make a Decision, Sentence in Context This p-value is low enough to reject Ho at any level This is very strong evidence to suggest that an increase in the number of beers may increase BAC. Do a 95% CI for the slope of the relationship between BAC and beers.

(.01281, .02311) Since 0 is not included in our interval we have evidence to suggest that there may be a positive linear relationship between beers consumed and BAC.

If you have drank no beers, what is you predicted BAC If you have drank no beers, what is you predicted BAC? Is this reasonable? Interpret the slope in context. Interpret the correlation coefficient for this question? Interpret the coefficient of determination for this question? What does the S mean? Interpret this in context.

If no beers are consumed we can expect a BAC of -. 0127 If no beers are consumed we can expect a BAC of -.0127. Since this is less than zero it is not reasonable. For every beer consumed we can expect on average an increase in BAC of .0180. R = .8944….There is a strong positive linear association between beers consumed and predicted BAC. 80% of the variation in BAC can be explained by the approximate linear relationship with beers consumed. S is the standard deviation of the residuals…The average difference between the actual BAC and predicted BAC is .02044.