Introduction to Statistics (MAT/SST 115.03 2008S)
Primary: [Front Door] [Syllabus] [Current Outline] [R] - [Academic Honesty] [Instructions]
Groupings: [Applets] [Assignments] [Data] [Examples] [Handouts] [Labs] [Outlines] [Projects] [Readings] [Solutions]
External Links: [R Front Door] [SamR's Front Door]
Okay, more data. Let's load it in.
ExamScores = read.csv("/home/rebelsky/Stats115/Data/ExamScores.csv")
They wouldn't give us more NA values, would they?
>summary(ExamScores)Student Exam1 Exam2S01 : 1 Min. :72.00 Min. :50.00S02 : 1 1st Qu.:82.25 1st Qu.:68.50S03 : 1 Median :88.50 Median :80.00S04 : 1 Mean :87.38 Mean :78.65S05 : 1 3rd Qu.:95.00 3rd Qu.:91.00S06 : 1 Max. :98.00 Max. :97.00(Other):18 NA's : 1.00
Yes, I guess they would. Let's get rid of it.
ExamScores = na.omit(ExamScores)
plot(ExamScores$Exam1, ExamScores$Exam2)
You should be able to compute this one on your own.
You can change the exam 1 grades en masse with
ExamScores$Exam1 = ExamScores$Exam1 - 10
If you look at 27-6 d., you should be able to figure out how to double the grades on exam 2.
exam1 = c(...) exam2 = exam1 + 10 plot(exam1, exam2) cor(exam1,exam2)
We can continue to use the exam 1 grades from part h. We just need to change the way we compute the exam 2 grade.
exam2 = exam1 * 2 plot(exam1, exam2) cor(exam1,exam2)
Primary: [Front Door] [Syllabus] [Current Outline] [R] - [Academic Honesty] [Instructions]
Groupings: [Applets] [Assignments] [Data] [Examples] [Handouts] [Labs] [Outlines] [Projects] [Readings] [Solutions]
External Links: [R Front Door] [SamR's Front Door]
Copyright (c) 2007-8 Samuel A. Rebelsky.
This work is licensed under a Creative Commons
Attribution-NonCommercial 2.5 License. To view a copy of this
license, visit http://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.