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}# | 224 | 222 | 228 | 257 | 225 | 238 | 231 | 249 | 230 | 248 | 261 | 234 | 247 | 238 |
#Y:\,\text{After}# | 228 | 213 | 226 | 252 | 227 | 236 | 225 | 251 | 232 | 246 | 254 | 233 | 243 | 234 |
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