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 3
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]
Find the dataset that contains the measurements we took in class.
- Construct a histogram of the measurements and describe its shape.
- What value(s) would be considered unusual? Explain.
- Find your measurement (clicking the dataset in your environment will open the data table in a viewer window). Which quartile of the class are you in?
- Pretend that our class is a representative sample of adults. Compute and interpret a 95% confidence interval for the mean.
Solution
# load armspan data
# part a: construct a histogram
# part b: what value(s) would be unusual? (hint: consider the SD)
# part c: find your measurement and compute percentile
# part d: confidence interval for population mean
- [your answer here]
- [your answer here]
- [your answer here]
- [your answer here]