The Stroop effect is a demonstration of interference in the reaction time of a task.
The task has two conditions:
In the congruent words condition, the words being displayed are color words whose names match the colors in which they are printed: for example RED, BLUE. In the incongruent words condition, the words displayed are color words whose names do not match the colors in which they are printed: for example PURPLE, ORANGE.
Null Hypothesis and Alternative Hypothesis:
$$H_0:\mu_c-\mu_i\geq0$$
$$H_a:\mu_c-\mu_i<0$$
The null hypothesis $(H_0)$ is that the mean of the population reaction time of the task under the incongruent words condition is not significantly longer than that of the congruent words condition. The alternative hypothesis $(H_a)$ is that the mean of the population reaction time of the task under the incongruent words condition is significantly longer than that of the congruent words condition.
Each subject is tested under two conditions hence we will be performing Dependent t-Test for paired samples.
Descriptive Statistics is calculated using Google Sheets.
The average time taken under congruent condition: $\overline{x}_c$ = 14.051125
The average time taken under incongruent condition: $\overline{x}_i$ = 22.01591667
The point estimate for the sample is:
$\overline{x}_c - \overline{x}_i$ = -7.964791667
Standard Deviation(SD) of the difference between two conditions in time: 4.86482691
import pandas as pd
import seaborn as sns
stroop_data = pd.read_csv("C:/Users/Vinay/Desktop/stroop_data.csv")
sns.boxplot(data=stroop_data)
The plot above and below visualizes the distribution of the sample data using boxplot and distplot from seaborn library respectively. Based on the plot, the reaction time of the task under incongruent words condition appears to be longer than that of the congruent words condition.
data = pd.DataFrame(stroop_data, columns=['Congruent', 'Incongruent'])
sns.distplot(data['Congruent'])
sns.distplot(data['Incongruent'])
t-statistic:
$$t = \frac{\overline{x}_c - \overline{x}_i}{\frac{SD}{\sqrt{n}}}$$
$$t = \frac{-7.964791667}{\frac{4.86482691}{\sqrt{24}}}$$
$$t = -8.023$$
t-critical:
For $\alpha$-level of 0.05 on one side (negative tail)
$$t_{critical} = -1.714$$
P - Value:
The two-tailed P value is less than 0.0001
By conventional criteria, this difference is considered to be extremely statistically significant.
Confidence Interval(CI) for mean population difference at 95%:
$$CI = M_D - t_{critical}(\frac{SD}{\sqrt{n}})$$
$$CI = -7.964791667 - (-1.714)(\frac{4.86482691}{\sqrt{24}})$$
$$CI = -6.2627$$
Conclusion:
Since t-statistic is past the t-critical value we will reject the null hypothesis, which means participants took more time under incongruent condition.
Indeed my result match up with the outcome of this test.
Stroop Effect interferes people reaction time significantly.