sample_homework_problems

# sample_homework_problems - Sample Homework Problems Using R...

This preview shows pages 1–5. Sign up to view the full content.

Sample Homework Problems Using R STAT 3011, Section 007 Friday, September 10, 2010 Problem 1. A 20-sided die a) Roll a 20-sided die 11 times, and use R to take the mean of the values an.d to draw a boxplot of the values. Interpret it (note: we will learn how to interpret boxplots in Chapter 2). > rolls <- c(11,1,10,6,7,20,19,7,13,9,1) > rolls [1] 11 1 10 6 7 20 19 7 13 9 1 > mean(rolls) [1] 9.454545 The mean of the 11 rolls was 9.454545.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
> boxplot(rolls) The boxplot tells us that the minimum roll was 1, the maximum roll was 20 and the median roll was 9. Follow-up question: Is the die “loaded”? If the die is fair, the “expected value” of the average of 11 rolls would be. .. 10.5 The actual average of 11 rolls was. ..9.4545
Is the difference between these two numbers “large enough” to conclude that the die is loaded? We will learn how to answer this question using the tools of statistical inference later in the course.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Problem 2. Study Hours per Week by College Enrollment a) Read in the class survey data on U college enrollment and hours studies per week found at http://www.stat.umn.edu/~crolling/data/CollegeStudy_f10.txt
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 10

sample_homework_problems - Sample Homework Problems Using R...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online