This is a study conducted to see how reaction times when driving would differ after the consumption of alcohol. Below is a table showing the reaction times of all subjects before drinking alcohol and after. The graph has an added calculated field to show the difference between the two. As you can see, most reaction times got worse, and oddly enough, a few actually were faster.
| SubjectID | Before | After | AfterMinusBefore |
|---|---|---|---|
| 2 | 2.96 | 4.78 | 1.82 |
| 13 | 3.16 | 4.55 | 1.39 |
| 4 | 3.94 | 4.01 | 0.07 |
| 16 | 4.05 | 5.59 | 1.54 |
| 17 | 4.42 | 3.96 | -0.46 |
| 20 | 4.69 | 3.72 | -0.97 |
| 6 | 4.81 | 5.34 | 0.53 |
| 5 | 4.85 | 5.91 | 1.06 |
| 10 | 4.88 | 5.75 | 0.87 |
| 3 | 4.95 | 5.57 | 0.62 |
| 18 | 4.99 | 5.93 | 0.94 |
| 19 | 5.01 | 6.03 | 1.02 |
| 9 | 5.15 | 4.19 | -0.96 |
| 12 | 5.26 | 7.23 | 1.97 |
| 8 | 5.33 | 5.84 | 0.51 |
| 15 | 5.49 | 5.25 | -0.24 |
| 11 | 5.75 | 6.25 | 0.50 |
| 1 | 6.25 | 6.85 | 0.60 |
| 7 | 6.60 | 6.09 | -0.51 |
| 14 | 6.65 | 6.42 | -0.23 |
The two diagrams below depict the normality of the distribution. As you can see, the sample is normally distributed, with all samples falling within the confidence band. Something to take note of, however, is the gap in the histogram. It is important to conduct these normality tests because the sample size is fairly small, at 20 people.
## [1] 2.96 3.16 3.94 4.05 4.42 4.69 4.81 4.85 4.88 4.95 4.99 5.01 5.15 5.26 5.33
## [16] 5.49 5.75 6.25 6.60 6.65
## [1] 4.78 4.55 4.01 5.59 3.96 3.72 5.34 5.91 5.75 5.57 5.93 6.03 4.19 7.23 5.84
## [16] 5.25 6.25 6.85 6.09 6.42
##
## Paired t-test
##
## data: after and before
## t = 2.6031, df = 19, p-value = 0.008734
## alternative hypothesis: true difference in means is greater than 0
## 95 percent confidence interval:
## 0.1690516 Inf
## sample estimates:
## mean of the differences
## 0.5035
\[alpha > p\] \[H0:mu=0\] \[Ha:mu>0\] The calculations shown above, illustrate a paired t test I conducted to find the p-value. At a p-value of 0.008734, we reject the null. At a 0.05 level of significance, there is enough evidence to conclude that there is an increase in the average reaction time after alcohol intake.
University of Florida. (n.d.). Paired samples. Biostatistics. https://bolt.mph.ufl.edu/6050-6052/unit-4b/module-13/paired-t-test/