Introduction to Statistics (MAT/SST 115.03 2008S)

Class 40: Topic 29: Inference for Correlation and Regression

Back to Topic 28: Least Squares Regression. On to Wrapup.

This outline is also available in PDF.

Held: Wednesday, 7 May 2008

Summary: We conclude our exploration of statistics by examining what regression lines between two variables from a sample of a population tell us about the relationships between the variables within the populations from which the sample was drawn.



The Progression Continues: What Samples Tell us About Populations

Getting Information from R

> TBP = read.csv("/home/rebelsky/Stats115/Data/TextbookPrices.csv")
> summary(lm(TBP$Price ~ TBP$Pages))

lm(formula = TBP$Price ~ TBP$Pages)

     Min       1Q   Median       3Q      Max 
-65.4748 -12.3241  -0.5838  15.3037  72.9909 

            Estimate Std. Error t value Pr(>|t|)    
(Intercept) -3.42231   10.46374  -0.327    0.746    
TBP$Pages    0.14733    0.01925   7.653 2.45e-08 ***
Signif. codes:  0 "***" 0.001 "**" 0.01 "*" 0.05 "." 0.1 " " 1 

Residual standard error: 29.76 on 28 degrees of freedom
Multiple R-Squared: 0.6766,	Adjusted R-squared: 0.665 
F-statistic: 58.57 on 1 and 28 DF,  p-value: 2.452e-08 

Back to Topic 28: Least Squares Regression. On to Wrapup.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Wed May 7 12:55:23 2008.
The source to the document was last modified on Mon Apr 28 11:19:47 2008.
This document may be found at

You may wish to validate this document's HTML ; Valid CSS! ; Creative Commons License

Samuel A. Rebelsky,

Copyright © 2008 Samuel A. Rebelsky. This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License. To view a copy of this license, visit or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.