Introduction: In this analysis, there will be an investigation of the impact of alcohol intake. There are two data sets, utilized to analyze the reaction time of drivers before and after 2 beers.

Data set:

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

Within this data set it is seen that based on the differences, there may be an increase and a few decreases with the reaction times of alcohol consumption.

Plots

Figure 1:

Figure 1 shows that the the distribution of differences has a normal distribution, indicating that there are no errors. As there seems to be more negative differences than positive, it may suggest that the data will prove the null hypothesis to be false.

Figure 2:

Figure 2 shows a QQ plot, as it follows the line and within the margins of error, suggesting that the data is approximately normal.

Null hypothesis: suggesting that there is no significant difference in the reaction times before and after consuming two beers.

\(H_0:\mu_d = \mu_0\)

Alternative hypothesis:Suggesting that there is a positive difference in the reaction times before and after consuming two beers.

\(H_a:\mu_d > 0\)

Hypothesis Testing

T-test:

## 
##  Paired t-test
## 
## data:  two_beers_combined$After and two_beers_combined$Before
## t = 2.6031, df = 19, p-value = 0.008734
## alternative hypothesis: true mean difference is greater than 0
## 95 percent confidence interval:
##  0.1690516       Inf
## sample estimates:
## mean difference 
##          0.5035

Based on the results of the T test the P value is 0.008734, indicating that there may be a rejection of the null hypothesis. The confidence interval for the mean difference is 0.1690 to infinity, it suggest the 95% confidence that the true mean different lies between 0,1690 and postitive infinity, asserting the confidence that the mean difference is greater than 0.

Decision: p= 0.008734<0.05, we will reject the null hypothesis. Conclusion: At a 0.05 level of significance, there is enough evidence to suggest that there is an increase in the average reaction time after alcohol consumption.

Worksited:https://bolt.mph.ufl.edu/6050-6052/unit-4b/module-13/paired-t-test/