8. Testing for Differences in Means and Proportions: Paired Samples t-test
Paired Samples t-test: Test Statistic and p-value
The government of Canada wants to know whether the legalization of marihuana has had any effect on the rate of drug-related offenses. To investigate this matter, a researcher selects a simple random sample of #14# cities and compares the rates of drug-related offenses before #(X)# and after #(Y)# the legalization was implemented.
The values in the table below are the number of drug-related offenses per #100#,#000# residents:
City | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
#X:\,\text{Before}# | 237 | 254 | 256 | 267 | 264 | 225 | 240 | 240 | 268 | 237 | 245 | 232 | 241 | 225 |
#Y:\,\text{After}# | 234 | 250 | 252 | 271 | 266 | 221 | 234 | 237 | 264 | 238 | 238 | 226 | 244 | 223 |
You may assume that the population distributions of drug-related offenses both before and after the legalization are normal.
The researcher plans on using a paired samples #t#-test to determine whether the legalization of marihuana has had a significant effect on the number of drug-related offenses.
Define #D=Y-X#.
State the null and alternative hypotheses of the proposed test.
#H_0 : \mu_D\,\,#
#H_a : \mu_D\,\,#
#H_a : \mu_D\,\,#
Unlock full access