This homework is due at the start of class on Monday, December 4th.
SDM4 22.31, 22.33, 22.35, 22.51, 22.53, 22.55, 22.57, 22.59, 22.75
SDM4 23.11, 23.13, 23.15, 23.17, 23.37
The painful wrist condition called carpal tunnel syndrome can be trated with surgery or less invasive write splints. Recently, Time magazine reported on a study of 176 patients. Among the 88 who had surgery, 70 showed improvement after three months. Among the 88 who used wrist splints, only 42 improved.
SOLUTION:
SOLUTION:
# use the prop.test() function
SOLUTION:
Some archaeologists theorize that ancient Egyptians interbred with several different immigrant populations over thousands of years. To see if there is any indication of changes in body structure that might have resulted, they measured 30 skulls of male Egyptians dated from 4000 B.C.E. and 30 others dated from 200 B.C.E. (Source: A Thomson and R. Randall-Maciver, Ancient Races of the Thebaid, Oxford: Oxford University Press, 1905)
Egyptians <- read_csv("https://mhc-stat140-2017.github.io/data/sdm4/Egyptians.csv")
## Parsed with column specification:
## cols(
## `200 BCE` = col_integer(),
## `4000 BCE` = col_integer()
## )
names(Egyptians) <- c("skulls_200bce", "skulls_4000bce")
head(Egyptians)
## # A tibble: 6 x 2
## skulls_200bce skulls_4000bce
## <int> <int>
## 1 141 131
## 2 141 125
## 3 135 131
## 4 133 119
## 5 131 136
## 6 140 138
SOLUTION:
# Your code goes here
SOLUTION:
# use the t.test() function
SOLUTION:
Which of the following scenarios should be analyzed as paired data?
SOLUTION:
SOLUTION:
SOLUTION:
In the 2000 Olympics, was the use of a new wetsuit design responsible for an observed increase in swim velocities? In a study designed to investigate this question, twelve competitive swimmers swam 1500 meters at maximal speed, once wearing a wetsuit and once wearing a regular swimsuit (De Lucas et. al, The effects of wetsuits on physiological and biomechanical indices during swimming. 2000; 3(1): 1-8}). The order of wetsuit versus swimsuit was randomized for each of the 12 swimmers. The R chunk below reads in the data, with the average velocity recorded for each swimmer, measured in meters per second (m/s).
swim_times <- read_csv("https://mhc-stat140-2017.github.io/data/misc/olympic_wet_suits/olympic_wet_suits.csv") %>%
mutate(
velocity_difference = wet_suit_velocity - swim_suit_velocity
)
## Parsed with column specification:
## cols(
## swimmer_id = col_integer(),
## wet_suit_velocity = col_double(),
## swim_suit_velocity = col_double()
## )
head(swim_times)
## # A tibble: 6 x 4
## swimmer_id wet_suit_velocity swim_suit_velocity velocity_difference
## <int> <dbl> <dbl> <dbl>
## 1 1 1.57 1.49 0.08
## 2 2 1.47 1.37 0.10
## 3 3 1.42 1.35 0.07
## 4 4 1.35 1.27 0.08
## 5 5 1.22 1.12 0.10
## 6 6 1.75 1.64 0.11
SOLUTION:
# Your code goes here
SOLUTION:
# use the t.test() function
SOLUTION: