Homework 11 in STAT400 @ CSU
Be sure to set.seed(400)
at the beginning of your
homework. Please use \(2000\) bootstrap
samples in the problems below.
Nike has hired you to help analyze their data on their customers who run. They want to make sure that you understand how their running gear fits their customers. A sample of 25 randomly selected customers was selected, and the customers were asked to submit their weights. The data:
wt <- c(149, 136, 139, 117, 137, 132, 122, 130, 134, 153, 140, 151, 203, 143, 145, 123, 127, 146, 139, 118, 143, 123, 133, 153, 136)
boot
and
simpleboot
packages as shown in the class handouts.
type=c("norm","basic", "perc", "bca")
in the boot.ci
commandgeom_segment
.For the Verizon
dataset from the class handouts
construct a 95% CI for the difference of two medians. Construct 4 types
of intervals that we discussed in class by using
type=c("norm","basic", "perc", "bca")
in the boot.ci
command.
This data set is the cars
data in R
.
The goal is to create a regression model about the relationship between
stopping distance (dist
) and speed (speed
) in
cars.
speed
vs. dist
in
mpg
and describe the relationship.dist
on
speed
. Describe the result, including diagnostic plots, and
create 95% CIs for the coefficients.type=c("norm","basic", "perc", "bca")
in the boot.ci
command.type=c("norm","basic", "perc", "bca")
in the boot.ci
command.Turn in in a pdf of your homework to canvas. Your .Rmd file on the server will also be used in grading, so be sure they are identical and reproducible.
Be sure to share your server project with the instructor and grader:
Open your hw-11 project on liberator.stat.colostate.edu
Click the drop down on the project (top right side) > Share Project…
Click the drop down and add “stat400instructors” to your project.
This is how you receive points for reproducibility on your homework!