load('data/temps2.RData')
# split observations into two groups by sex
<- split(temps$body.temp, temps$sex)
temps.split
# store male and female temperatures
<- temps.split$male
temps.m <- temps.split$female
temps.f
# part a: confidence interval for mean body temps for female
# part b: confidence interval for mean body temps for male
Homework 2
The provided code splits the body temperature data into two groups by sex. Use this data to do the following.
- Compute a 90% confidence interval for the mean female body temperature and interpret the interval in context in the style introduced in class.
- Compute a 90% confidence interval for the mean male body temperature and interpret the interval in context in the style introduced in class.
- Based on your intervals, is it plausible that there is no difference in mean temperature by sex? Why or why not?
Solution
- [your answer here]
- [your answer here]
- [your answer here]
The
armspans
dataset contains the 32 armspan measurements from last class.- Construct a histogram of the armspans and describe its shape.
- Would an armspan of 201cm be unusual? Explain.
- Find your armspan (the command
view(armspans)
will open the data table in a viewer window). Which quartile of the class are you in with respect to armspan? - Pretend that our class is a representative sample of some broader population with respect to armspan. Compute and interpret a 95% confidence interval for the mean armspan.
Solution
# load armspan data
# part a: construct a histogram
# part b: would 201cm be unusual? (hint: check deviation relative to sd)
# part c: find your armspan and compute percentile
# part d: confidence interval for mean armspan
- [your answer here]
- [your answer here]
- [your answer here]
- [your answer here]