Here I have two data sets The first with reactions times of people with no alcahol in their system. The second is the same people after drinking two beers. Here I have a histagram of the differnce between the two data sets.
This histogram shows that the data is normally distributed, but it is even easier to see that it is evenly distributed with this qq-plot.
Every single one of the data points are in the confidence band, this shows that this is normally distributed
Now I will determine whether these data indicate that there is an increase in the average reaction time after alcohol intake
\[H_O:\mu=0\] \[H_a:\mu > 0\] Here is a t.test that I have made
##
## One Sample t-test
##
## data: beforeAndAfter2$AfterMinusBefore
## t = 2.6031, df = 19, p-value = 0.01747
## alternative hypothesis: true mean is not equal to 0
## 95 percent confidence interval:
## 0.09866782 0.90833218
## sample estimates:
## mean of x
## 0.5035
Decision: p-value=0.01747 < \(\alpha\) = 0.05
p-value is less than \(\alpha\)
therefore we regect the null
Concusion: At 0.05 level of significance there is enough evindence to conclued that after having two beers there is a slower reaction time.
Notes: I used chatgpd to create the \(\alpha\) symbol.
Citation: Paired samples. Biostatistics. (n.d.). https://bolt.mph.ufl.edu/6050-6052/unit-4b/module-13/paired-t-test/