1 / 29

Linear regression T-test

Linear regression T-test. Your last test !!. Crying and IQ.

Télécharger la présentation

Linear regression T-test

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. Linear regression T-test Your last test !!

  2. 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.

  3. 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?

  4. 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.

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

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. Linear Regression T – Test • t = 3.07 • 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.

  13. 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.

  14. 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.

  15. 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.

  16. Beers & BAC 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

  17. 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

  18. 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

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

  20. 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.

  21. (.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.

  22. 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.

  23. 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.

More Related