sample_homework_problems

sample_homework_problems - Sample Homework Problems Using R...

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

View Full Document Right Arrow Icon
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.
Background image of page 1

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

View Full DocumentRight Arrow Icon
> 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
Background image of page 2
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.
Background image of page 3

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

View Full DocumentRight Arrow Icon
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
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 04/28/2011.

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 Right Arrow Icon
Ask a homework question - tutors are online