In this project, I conducted a study to answer the research question “Does listening to classical music for 10 minutes enhance the attention and performance of islanders aged 20 to 39?” The population parameter of interest in this study is the true difference in the mean of attention test results of islanders who listened to classical music for 10 minutes and islanders who didn’t, and I suspect that the actual parameter value is lower since I expect to see a positive association between music and attention and a smaller test result indicates better attention.
There were a few studies that inspired me to plan a study about this research question. One of them was a study conducted by Shirin Taheri and more (Taheri S, Razeghi M, Choobineh A, Kazemi R, Rasipisheh P, Vali M. Investigating the effect of background music on cognitive and skill performance: A cross-sectional study. Work. 2022;71(4):871-879. doi: 10.3233/WOR-213631. PMID: 35253719. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/35253719/)) where they investigated how background music affects people’s cognitive and skill performance. They planned this study because there are existing studies with varying results of whether music enhances or annoys the performance and those previous studies had a lack of study and evidence. They found out that background music enhances the performance skills in tasks. Another study was ran by Michael El Boghdady and Beatrice Marianne Ewalds-Kvist (El Boghdady M, Ewalds-Kvist BM. The influence of music on the surgical task performance: A systematic review. Int J Surg. 2020 Jan;73:101-112. doi: 10.1016/j.ijsu.2019.11.012. Epub 2019 Nov 22. PMID: 31760139. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/31760139/)) to find out if background music negatively affects on the surgeon’s attention and task performance. They concluded that the specific type of music can improve the surgical task performance. Also, the study conducted by Ryan R Sun and more (Sun RR, Wang Y, Fast A, Dutka C, Cadogan K, Burton L, Kubay C, Drachenberg D. Influence of musical background on surgical skills acquisition. Surgery. 2021 Jul;170(1):75-80. doi: 10.1016/j.surg.2021.01.013. Epub 2021 Feb 16. PMID: 33608147. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/33608147/)) try to find if musical experience of surgeons affects their performance. Unlike the second study, they questioned if having musical experience can help surgeons to have better performance in their job. They found out that having musical background is associated with the better performance of surgeons. All three studies did research to find if music has influence on the performance in any shape or form. However, some of those studies required the further study. For example, the first study mentioned that finding the role of personality affecting the association between music and performance requires further study and the second study said they need the further study to find if difference between low-beat and high-beat music affect surgeons performance differently. For this reason, I was inspired to conduct my own study to cover those lack of study from previous studies.
In order to collect the data, I used the observational units of all islanders between 20 to 39 years old. I used this specific range of age to avoid the ability of attention from being affected by the difference in age. One of the variables I choose to work with is if islanders listened to the classical music before performing another task and I could easily do this through the task, classical music for 10 minutes, provided on the island website. It is important to use the same type of music for all experimental units so we can find the association between music and attention instead of the effects of different types of music. I used classical music in my study. Also, I asked observational units to perform another task immediately after listening to music to make sure that music is the variable affecting the result of the study or is the explanatory variable. This variable is categorical binary variable since this question will be answered in either listened or didn’t listen to the music before performing another task. This is also a treatment vs control group as I am going to randomly assign randomly sampled observational units into two group where one group listened to the music before performing another task (treatment group) while the other group performs the task without listening to the music (control group). Another variable I choose to work with is the result of the attention test which is also provided by the island website task, attention test for 10 minutes. During this test, islanders will watch series of letters and press button every time they see letter z, then we will count how many times they missed. This is quantitative response variable since we are counting numerical value which is the number of times they missed letter z and how the results differ between treatment and control group.
In order to measure the variables, I first randomly sampled by numbering all the cities and ran the random number generator to choose which city, house, and from whom to get consent from. Instead of choosing number of islanders to ask for consents, I asked for consents until 80 people give consents to participate in the study. After getting consents from 80 people, I randomly assigned the observational units into two groups by numbering all observational units and writing python code that randomly assign number 1 to 80 into two different groups. For the control group, I ask them to complete 10 minutes long attention test, provided under the task tab, and recorded the results. For the treatment group, I ask them to listen to the classic music for 10 minutes right before doing the same test. Nothing really went wrong during the data collection other than I had to collect data from two groups on different day because some of islanders went to sleep at 5:30 PM.
library(readr)
Final_Data <-
read_csv("~/Documents/Math_247_Fall_2023/Mini Project/Math-247_ Mini Project 3 -- Jun Cha - Sheet3.csv")
bwplot(Music ~ Missed,
horizontal = TRUE,
main="Side-by-side boxplots",
data = Final_Data)
favstats(Missed ~ Music, data = Final_Data)
Looking at the side-by-side boxplot and summary of statistics, the difference in mean of two group is \(\bar{x}_{music} - \bar{x}_{nomusic} = -4.525\) and there are no big differences in medians and standard deviations between two groups. Also, there is a big overlap between two group and it looks like there is no association, but it is difficult to say if there is association between two variables or not without determining if the sample statistic is statistically significant.
The population of this study is islanders of age 20 to 39 and parameter is the true difference of attention test results between islanders who listened to the classical music before the performance and islanders who didn’t. Based on these information, I stated my null and alternative hypotheses. The null hypothesis in this study tells that there is no association between listening to music and attention, and listening to the classical music 10 minutes before the performance doesn’t enhance the attention during the performance. This means that the true mean difference will be 0. \[H_0: \mu_{music} - \mu_{nomusic} = 0\] The alternative hypothesis tells that there is positive association, and listening to the classical music 10 minutes before the performance enhances the attention during the performance. This means that the true mean difference will be smaller than the 0 because music group will miss less than the no music group and have smaller mean if there is positive association. \[H_A: \mu_{music} - \mu_{nomusic} < 0\]
Note that, in the context of study, the type I error in this study would represent the case when there is no association between music and attention but accidentally state that there is association while Type II error would represent the case when there is association but accidentally state that there is no association.
stat(t.test(Missed ~ Music, data = Final_Data))
## t
## 1.614351
Using the R-code, I obtained the standardized statistic of about 1.61 meaning sample statistic is about 1.61 standard deviation away from the center of the null distribution which is 0. Since 2 to 3 standard deviations away from the center is considered to be tail of the distribution, we fail to reject the null hypothesis.
p.value <- pval(t.test(Missed ~ Music, data = Final_Data))/2
cat(p.value)
## 0.055305
Also, I obtained the one-sided p-value of about 0.055 and this p-value indicates that the probability of obtaining mean difference that is equal or more extreme than the sample statistic is about 0.055 assuming the null hypothesis is true. Since we obtained the p-value that is slightly greater than the significance level of 0.05, which is arbitrary value, we have moderate evidence against the null hypothesis and fail to reject it.
Based on the t-test and p-value, we fail to reject the null hypothesis and we can’t conclude that listening to the classical music for 10 minutes enhance the attention during the performance. It is important to note that the measurements can be reasonably be considered a representative sample from the population of interest since I used of random sampling when collecting data.
However, in order to use the theory-based approach, validity conditions of symmetric distribution for quantitative variable or at least 20 observations in each group, and not strongly skewed sample distribution must be satisfied. The first condition is met because while we don’t know what the population distribution is, we have sample size of 40 in each group which is large enough. Nevertheless, when we look at the side-by-side boxplot, we can see that the data is strongly skewed right since most data are clustered on the left side and the second condition is not met. Because the validity conditions were not satisfied, I had to perform simulation-based approach too.
I used R-code to create a null distribution and found standardized statistic and p-value.
set.rseed(7777)
Final.null <- do(1000) * diffmean(shuffle(Missed) ~ Music, data = Final_Data)
dotPlot(~ diffmean,
data = Final.null,
main="Simulated null distribution of the difference in sample means",
xlab="difference in sample means",
width = 1, cex = 1,
groups = (diffmean <= -4.525))
favstats(~ diffmean, data = Final.null)
t.test <- (-4.525-0.0212 )/2.900277
cat(t.test)
## -1.567505
p_value<-prop(~(diffmean <= -4.525), data = Final.null)
cat("left-tailed p-value is", p_value)
## left-tailed p-value is 0.057
Comparing the theory-based and simulation-based p-values, even though the validity conditions for theory-based approach were not satisfied, they both provided similar value for p-value and ended up with same result of failing to reject the null hypothesis.
confint(t.test(Missed ~ Music, data = Final_Data))
Using the R-code, I calculated the upper and lower bound for 95% confidence interval. All the numbers between lower bound and upper bound are the plausible value for my population parameter and interpreting my confidence interval, we are 95% confident that the true difference in mean of attention test results of music group and no music group is about between 10.1 and -1.06. Since the value 0 is included in the confidence interval, we fail to reject the null hypothesis based of significance level of 0.05 because 0 is a plausible value. Comparing results from the p-value and 95% confident interval, they both fail to reject the null hypothesis.
In conclusion, based on the p-value of 0.057 and 95% confidence interval, we fail to reject the null hypothesis and we can’t conclude that listening to the classical music for 10 minutes enhance the attention during the performance. Throughout this study, I learned that, even though the validity conditions are not satisfied, it is possible to obtain similar value for standardized statistic and p-value from theory-based and simulation-based approaches. When I was collecting the data, they didn’t behave as I expected because I was expecting to see more distinctive difference between two groups. Finally, as I mentioned, it is reasonable to generalize my sample to the larger population of all islanders of age 20 to 39, but nothing more than that. Especially, since I collected data from the islanders, the sample shouldn’t be representative of real people. If I get chance to do later, I would make islanders to take attention tests while listening to the classical music instead of listening before the test. Also, I think it will be nice if someone else conduct the similar study to investigate how different types of music affects the attention since I only used of classical music in my study.
Bibliography:
Taheri S, Razeghi M, Choobineh A, Kazemi R, Rasipisheh P, Vali M. Investigating the effect of background music on cognitive and skill performance: A cross-sectional study. Work. 2022;71(4):871-879. doi: 10.3233/WOR-213631. PMID: 35253719. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/35253719/)
El Boghdady M, Ewalds-Kvist BM. The influence of music on the surgical task performance: A systematic review. Int J Surg. 2020 Jan;73:101-112. doi: 10.1016/j.ijsu.2019.11.012. Epub 2019 Nov 22. PMID: 31760139. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/31760139/)
Sun RR, Wang Y, Fast A, Dutka C, Cadogan K, Burton L, Kubay C, Drachenberg D. Influence of musical background on surgical skills acquisition. Surgery. 2021 Jul;170(1):75-80. doi: 10.1016/j.surg.2021.01.013. Epub 2021 Feb 16. PMID: 33608147. (https://pubmed-ncbi-nlm-nih-gov.ezproxy.whitman.edu/33608147/)