Solutions to Homework 11
Statistics 302 Professor Larget
Textbook Exercises
8.47 Body Mass Gain (Graded for Completeness) Computer output showing body mass gain (in grams) for
the mice after four weeks in each of the three light conditions is shown in the
Statistics 302
Spring 2014
Larget
Assignment #3
Due Friday, February 14
posted February 6, 2014
Textbook Exercises
3.20, 3.24, 3.25, 3.28, 3.36, 3.38, 3.54, 3.60, 3.61, 3.62, 3.76, 3.79, 3.80
Computer Exercises
R problem 1 Load the data set USStates from
Statistics 302
Spring 2014
Larget
Assignment #4
Due Friday, February 21
posted February 14, 2014
Textbook Exercises
3.102, 3.104, 3.105, 3.116, 4.17, 4.18, 4.214.25, 4.30, 4.32, 4.36, 4.40, 4.52, 4.60, 4.62, 4.63
Computer Exercises
For each R problem, tur
Statistics 302
Spring 2014
Larget
Assignment #1
Due Friday, January 31
posted January 22, 2014
Textbook Exercises
1.12, 1.14, 1.20, 1.24, 1.471.51, 1.53, 1.56, 1.63, 1.84, 1.87, 1.95
Computer Exercises
Before completing these exercises, you will need to i
Statistics 302
Spring 2014
Larget
Assignment #6
Due Friday, March 14
posted March 3, 2014
Textbook Exercises
5.29, 5.32, 5.36, 5.62, 5.64, 5.75, 11.30, 11.36, 11.39, 11.58, 11.60
Computer Exercises
For each R problem, turn in answers to questions with the
Statistics 302
Spring 2014
Larget
Assignment #7
Due Friday, March 28
posted March 14, 2014
Textbook Exercises
11.56, 11.83, 11.85, 11.87, 11.95, 11.117, 11.121, 11.128
Computer Exercises
For each R problem, turn in answers to questions with the written po
Statistics 302
Spring 2014
Larget
Assignment #8
Due Friday, April 4
posted March 27, 2014
Textbook Exercises
6.12, 6.20, 6.38, 6.50, 6.64, 6.70, 6.84, 6.97, 6.120, 6.130, 6.145, 6.150
Computer Exercises
For each R problem, turn in answers to questions wit
Statistics 302
Spring 2014
Larget
Assignment #10
Due Friday, April 25
posted April 17, 2014
Textbook Exercises
7.14, 7.17, 7.20, 7.40, 7.43, 7.47, 8.17, 8.22
Computer Exercises
For each R problem, turn in answers to questions with the written portion of t
Statistics 302
Spring 2014
Larget
Assignment #8
Due Friday, April 11
posted April 4, 2014
Textbook Exercises
6.160, 6.164, 6.176, 6.178, 6.185, 6.195, 6.202, 6.223, 6.238, 6.239, 6.259, 6.288
Computer Exercises
For each R problem, turn in answers to quest
Statistics 302
Spring 2014
Larget
Assignment #11
Due Wednesday, April 30
posted April 24, 2014
Textbook Exercises
8.47, 8.48, 9.18, 9.21, 9.42, 9.59, 9.60
Computer Exercises
For each R problem, turn in answers to questions with the written portion of the
Review before Exam 3
Simple Linear Regression Here are key things to recall.
Regression line minimizes sum of squared residuals.
Response Y and explanatory variable X are treated differently; analysis is made conditional on the values of X.
Slope is 1
Solutions to Statistics 302 Midterm 3
Larget, Spring 2014
1. 5 parts, 6 points each, 30 points total. A group of middle school students in
Michigan (grades 4 to 6) were asked whether grades, sports, or popularity was most
important to them. The results ar
1. True/False Problems. Write very brief explanations.
(a) Circle either True or False (and explain/correct if False):
A variable consists of the numbers 1, 2, 3, 4, 5. If the number 5 is replaced
by the value 20, the standard deviation will increase.
(b)
# Bret Larget
# February 19, 2014
# Exercise 3.109
#
#
#
#
Problem is to use the percentile bootstrap method
to find a 90% confidence interval for the difference
in mean interferon gamma responses between tea and coffee
drinkers as described in the text.
Activity: Examining the Effect of Videogames on Grades
In the questions below, we investigate answers to the questions: How much of an effect does your roommate
have on your grades? In particular, does it matter
Statistics 302
Spring 2017
Larget
Assignment #00
January 18, 2017
The first homework assignment is to upload a plain text file with answers to the following questions.
To receive full credit, your answers to these questions should uploaded as a plain text
Statistics 302
Spring 2017
Larget
Assignment #03
Due Wednesday, February 8
posted February 3, 2017
Textbook Exercises
2.136, 2.138, 2.174, 2.176, 2.177, 2.181, 2.201, 2.204, 2.205, 2.208
When the book asks you to use technology, use RStudio. Your answers
# Bret Larget
# April 25, 2014
# Example of plot for regression
# Shading for intervals from
(http:/stackoverflow.com/questions/7961865/creating-confidence-area-fornormally-distributed-scatterplot-in-ggplot2-and-r)
require(ggplot2)
require(Lock5Data)
data
# Bret Larget
# February 21, 2014
# Exercise 4.134
# Enter data, use 1's for successes and 0's for failures
# Note that rep(x,n) repeats the value x n times
electric = c(rep(1,12),rep(0,8)
sham = c(rep(1,4),rep(0,16)
# Combine the data into a single array
# Bret Larget
# February 7, 2014
# function to simulate a sampling distribution
#
#
#
#
population is a single vector of numbers
statistic is a function that returns a single number from a sample
n is the sample size
reps is the number of samples to take
#
#
#
#
#
Bret Larget
March 5, 2014
Example using heart rate data collected in class
to use normal approximation for confidence intervals
and hypothesis tests.
# Read in the data
heart = read.table("Data/heart-rate",header=TRUE)
# Write some info
cat('Hea
# Bret Larget
# February 12, 2014
# Bootstrap Example
# Loading Lock 5 Data
library(Lock5Data)
# Loading the StudentSurvey Data Set
data(StudentSurvey)
#str(StudentSurvey)
# Look at Exercise Variable
# Remove cases with missing values
exercise = with(Stud