Skip to main content

Section 22.3 Example 4.3: Distracted Driving?

Try these questions yourself before you use the solutions following to check your answers.
Recall the Distracted Driving study from Example 2.2. The reaction times (in milliseconds) for 16 students appear below and in the file driving.txt.
Subject A B C D E F G H I J K L M N O P
Cell 636 623 615 672 601 600 542 554 543 520 609 559 595 565 573 554
Control 604 556 540 522 459 544 513 470 556 531 599 537 619 536 554 467

Checkpoint 22.3.1. Descriptive Analysis of Differences.

Analyze the differences in reaction times (cell phone minus control) for these subjects. Include numerical and graphical summaries of the distribution of differences. Comment on what this descriptive analysis reveals about whether talking on a cell phone tends to produce slower reaction times.
Solution.
Analyzing the differences:
Dotplot of reaction time differences
The sample mean difference in reaction times (cell minus control) is \(\bar{x}_{diff} = 47.125\) milliseconds, with a standard deviation of \(s_d = 51.331\) milliseconds. The dotplot reveals that most of the differences are positive, suggesting that subjects talking on a cell phone tend to take longer to react than subjects listening to a book-on-tape.

Checkpoint 22.3.2. State Hypotheses.

State the appropriate null and alternative hypotheses to be tested, in order to investigate the research question of whether talking on a cell phone tends to produce slower reaction times.
Solution.
The null hypothesis says that the mean reaction time is the same among cell phone users as among book-on-tape listeners (\(H_0: \mu_{cell} - \mu_{control} = 0\)). The alternative says that the mean reaction time is larger among cell phone users than among book-on-tape listeners (\(H_a: \mu_{cell} - \mu_{control} > 0\)).

Checkpoint 22.3.3. Randomization Test.

Conduct a simulation analysis of a randomization test for testing these hypotheses. Report the empirical p-value. Summarize the conclusion that you would draw from this analysis.
Solution.
We can carry out the simulation easily with the Matched Pairs applet or with R.
Copying and pasting the data into the Matched Pairs applet with 1,000 repetitions we get the results shown here:
Randomization distribution from Matched Pairs applet
Using R to carry out the simulation instead:
MeanDiffs=0
for (i in 1:10000){
  multiplier=sample(c(-1,1), 16, replace=TRUE)
  RandomizedData=differences*multiplier
  MeanDiffs[i]=mean(RandomizedData)
}
From R: The empirical p-value is the proportion of these 10,000 repetitions in which the mean difference is 47.125 or more, because 47.125 is the value of the sample mean difference from the actual experimental data. None of the 10,000 repetitions produced such a large mean difference, so the empirical p-value is 0. The simulation therefore shows that we would almost never get a result as extreme as the actual experiment did, if there were really no difference between reactions to cell phone vs. book-on-tape, so we have extremely strong evidence that the cell phone really does increase reaction times.

Checkpoint 22.3.4. Technical Conditions for Paired t-Test.

Comment on whether the conditions for applying a paired t-test and t-interval are satisfied for these data.
Solution.
Because the sample size (16) is fairly small, the t-procedures are valid only if the population of differences follows a normal distribution. The dotplot of differences from these 16 subjects looks roughly symmetric, so the t-procedures are probably valid to apply here.

Checkpoint 22.3.5. Paired t-Test.

Conduct a paired t-test of these hypotheses. Report the value of the standardized statistic and the p-value. Indicate your test decision at the 0.05 and 0.01 significance levels, and summarize your conclusion.
Solution.
The standardized statistic is \(t = \frac{\bar{x}_{diff} - 0}{s_{diff}/\sqrt{n_{diff}}} = \frac{47.125}{51.331/\sqrt{16}} \approx 3.67\text{.}\) The p-value is the probability that a t-distribution with 15 degrees of freedom is 3.67 or larger; R reveals this p-value to be 0.001137. This p-value is very small, so we would reject the null hypothesis at the 0.05 and 0.01 significance levels. The experimental data provide very strong evidence that talking on a cell phone does cause an increase in mean reaction time, as compared to listening to a book-on-tape. The cause/effect conclusion is justified because this is a randomized experiment with a very small p-value.
Note: This evidence is stronger than what we saw with the sign test in Example 2.2.

Checkpoint 22.3.6. Confidence and Prediction Intervals.

Produce and interpret a 95% t-confidence interval for the population mean difference. Also produce and interpret a 95% prediction interval. Comment on how these two intervals compare.
Solution.
A 95% confidence interval for the population mean difference \(\mu_d\) is:
\begin{equation*} \bar{x}_{diff} \pm t_{n-1}^* \times \frac{s_{diff}}{\sqrt{n_{diff}}} \end{equation*}
which is \(47.125 \pm 2.131 \times \frac{51.331}{\sqrt{16}}\text{,}\) which is \(47.125 \pm 27.347\text{,}\) which is \((19.778, 74.472)\text{.}\)
We can be 95% confident that the mean reaction time while talking on a cell phone is between roughly 20 and 75 milliseconds longer than when listening to a book-on-tape.
A 95% prediction interval for the difference in reaction times for a particular subject is:
\begin{equation*} \bar{x}_{diff} \pm t_{n-1}^* \times s_{diff}\sqrt{1 + \frac{1}{n_{diff}}} \end{equation*}
which is \(47.125 \pm 2.131 \times 51.331\sqrt{1 + \frac{1}{16}}\text{,}\) which is \(47.125 \pm 112.753\text{,}\) which is \((-65.628, 159.878)\text{.}\)
We can be 95% confident that an individual subject will react anywhere from 65 milliseconds more quickly to 160 milliseconds more slowly talking on a cell phone as compared to listening to a book-on-tape.

Checkpoint 22.3.7. Compare to Sign Test.

Compare these analyses to that in Example 2.2Β 11.2. Which analysis would you recommend and why?
Solution.
An advantage of the sign test from Chapter 2 is we don’t need to rely on large sample sizes or normality of the differences for the procedure to be valid. However, by ignoring some information in the data, we would expect this procedure to have lower power and we lose information about the size of the difference. The conditions for the t-procedure seem to be satisfactorily met here.
You have attempted of activities on this page.