The research question in this study was whether exercise has an effect on memory. In order to test this two groups were created, one was not asked to exercise before a memory test, and the other was asked to exercise before a memory test. The population parameter of interest in this study is the difference in mean memory test scores between the no exercise group and the exercise group. It was suspected that the actual parameter value would be a significant difference between the two groups, or the parameter value would be either greater than or less than zero. It was not conjectured which group would score higher because there was thought to be a chance that the no-exercise group could score higher, since they had not been tired out from exercise before their test, and there was thought to be a chance the exercise group could score higher, because exercise is often associated with better cognitive and academic performance (Mandolesi).
The observational units in this study were the 42 islanders randomly selected from the island Ironbard. The islanders were randomly selected using a random number generator for village number, house number, and person in house number. After the islanders consented to be in the study, they were randomly assigned to groups. The explanatory variable was whether a subject was asked to exercise or not, and so two groups were made: a no-exercise group and an exercise group. This was a categorical, binary explanatory variable. These 42 islanders were randomly assigned to groups of either not asked to exercise before the test, or asked to exercise, in the form of a 200 meter swim, before the test. There were 21 islanders in each group. The response variable was score on a memory card test where islanders were given time to remember 10 cards and then asked to recall them. The number of cards correctly recalled translated to their score on the memory test with 10 being a perfect score. This was a quantitative response variable, represented by a number score from 0-10. The only issues with data collection were islanders refusing to participate in the study, which occurred rather frequently, but islanders were not assigned to groups until they had consented to be in the study and therefore this problem was not a big hindrance to data collection.
library(readr)
Memory_Data <- read_csv("~/Documents/Math 247/Projects/Final Project/Mini Project 2-Stats - Data for R.csv")
head(Memory_Data, n=2)
The explanatory variable in this study was categorical and binary, and was whether subjects were either not asked to exercise before their memory test or were asked to exercise, in the form of a 200 meter swim, before their memory test. The response variable was quantitative and was the score a subject got on a memory test from 0 to 10, based on the number of cards they were able to correctly remember out of 10.
bwplot(Swim ~ Score, horizontal = TRUE, data = Memory_Data)
From the side by side boxplot, it can be seen that the islanders who were not asked to exercise before their memory test performed better on the memory test, with a higher mean score than the exercise beforehand group. The exercise beforehand group can also be seen to have a lot more variability, with the first quartile of this group being much larger, and the minimum score a lot smaller than the minimum score of the no exercise group.
data(Memory_Data)
favstats(Score ~ Swim, data = Memory_Data)
Looking at the summary of statistics of the data, the mean of the no exercise group is 8.00, with a median of 8. This shows this data set is not strongly skewed as the mean and the median are the same. The standard deviation of this group is 1.58, the minimum score is 5, and the maximum score is 10. The exercise group has a lower mean score of 7.10, with a median of 7. This shows the data in this group is also not too strongly skewed because the mean and the median are very close. The standard deviation of this group is larger than the no exercise group at 2.10, showing more variability. The minimum score is significantly smaller at 2, and the maximum score is the same as the other group at 10. There may be a difference in mean score between these two groups, but the small difference in means and the large standard deviations may mean there is not evidence of significant difference in scores between the two groups.
Focusing back on the population of interest in this study, it is the islanders of Ironbard, and the parameter of interest is the difference in mean memory test scores between the no exercise and the exercise group. The null hypothesis is that there is no difference in mean memory test score between the no exercise and the exercise group:
\(H_0:\mu_{no-exercise}-\mu_{exercise}=0\)
The alternative hypothesis is that there is a significant difference in mean memory test score between the no exercise and the exercise group:
\(H_A:\mu_{no-exercise}-\mu_{exercise}\neq0\)
In this setting, a type I error would mean rejecting the true null, or finding a significant difference in mean memory test score between the two groups when there is none. A type II error in this setting would mean failing to reject a false null, or concluding that the null is plausible and not accepting the alternative, when there actually is a significant difference in mean memory test score between the two groups. As far as generalizability, the measurements in this study can be considered to be a representative sample from the island of Ironbard, because subjects were randomly selected from this island and therefore can be generalized to the population of the island Ironbard. The results cannot reasonably be generalized beyond the island of Ironbard, because there were no islanders sampled from any other islands. If significant difference is found then this study can also be used to draw cause and effect conclusions because random assignment to groups was used in this study.
Using an observed statistic of a difference in mean scores of 0.90, we can obtain a t-statistic using R.
stat(t.test(Score ~ Swim, data = Memory_Data))
## t
## 1.579499
The t-statistic is 1.58, which likely means there will be no significant difference between the groups. In order to do a theory based test, the validity conditions that need to be met are: at least 20 observations in each group, and the sample distributions not too strongly skewed. These conditions are met in this study, as there are 21 observations in each group and the sample distributions are not too strongly skewed, as evidenced by the means and medians of each being very close to each other in each group.
pval(t.test(Score ~ Swim, data = Memory_Data))
## p.value
## 0.1226884
The theory based p-value is 0.12. According to this p-value, the probability of observing a difference in means as great as or greater than 0.90, or as small as or smaller than -0.90, assuming the null hypothesis is true, is 12%. The p-value of 0.12 means that we do not have significant evidence to reject the null hypothesis, and it is in fact plausible that the null hypothesis is true. In the context of this study, this means we do not have significant evidence to show that there is a difference in mean memory test score between the two groups.
confint(t.test(Score ~ Swim, data = Memory_Data))
The theory based confidence interval is -0.26 to 2.07. Based on the theory based confidence interval, we are 95% confident that the mean score of the no exercise group is greater than the mean score of the exercise group by -0.26 to 2.07 correct cards. Because 0 is in this confidence interval, this means it is plausible there is no difference between these two groups, and therefore we do not have significant evidence to show there is a difference in mean memory test score between the two groups. This agrees with the conclusion reached by looking at the theory based p-value, which did not give us sufficient evidence to reject the null hypothesis.
Based on the theory based p-value of 0.12 and the theory based confidence interval of -0.26 to 2.07, we did not find significant evidence against the null hypothesis, and therefore were not able to show a significant difference in mean memory test score between the no exercise and exercise groups in this study. The data in this study did not behave as I would have expected. I thought that there would be a significant difference in mean memory test score between the two groups. I thought either the no exercise group would score higher, because they had not been tired out before their test, or the exercise group would score higher, because exercise is often associated with better cognitive performance. It is reasonable to generalize these results to the entire island of Ironbard because islanders were randomly selected from this island, but it is not reasonable to generalize these results beyond the population of Ironbard. Next time it could be interesting to see whether this conclusion holds on the other islands in the Islands, so the results of this study could be more broadly generalized. Next time I also think it could be interesting to see whether this conclusion holds for all types of cognitive performance, or whether significant results might be found for another type of test administered after exercising, like reading comprehension or other types of tests. A final thing I might do different next time would be to see if the type of exercise made a difference by testing a form of exercise other than swimming before a memory test. A similar question that someone might investigate in the future to build on these results is whether long term exercise has an effect on memory. For example, a researcher could ask participants in a study to exercise for 30 minutes a day for a month in one group, and not ask participants to exercise at all in another and see if this improves memory, or if there is a significant difference in memory between the two groups after a month of consistent exercise in the exercise group. This could possibly lead to more interesting and significant results for a researcher.
Works Cited
Mandolesi, Laura, et al. “Effects of Physical Exercise on Cognitive Functioning and Wellbeing: Biological and Psychological Benefits.” Frontiers in Psychology, vol. 9, 2018, https://doi.org/10.3389/fpsyg.2018.00509.