Today we will explore the
Stroop Task – a classic experiment first published in 1935 by J. Ridley Stroop. For original paper, see:
PDF or
HTML.
-
Run the PsychoPy3, e.g., in Windows: Start → PsychoPy3 → PsychoPy3. Three windows will appear:
Load the Stroop Task demo in Builder: Demos → Experiments → stroop
Now, you can see the PsychoPy builder with the experiment loaded:
The whole overview of the protocol is visible in Flow (at the bottom). There will be three parts in Stroop Task: instruct, trial repeated in loop, thanks.
Each block from the Flow is visible as a separate tab in Routines (on the Figure above you can see the instruct routine).
Finally, each line in the Routines depicts one Component.
Explore the interface. Click on the flow's and routines' elements. Take a look at dialog windows that will pop-up. We will modify these values later - now, it's time for some exploration.
Run the experiment:
Just click the big green button with an arrow.
Insert any values in the small window that will appear (these are important for real experiment; not for exercises like now):
Take part in the experiment! [there will be 30 items to evaluate]
Go to the directory with the stroop (PsychoPy3 Demos\Experiments\stroop\
). data directory was created here - take a look! There are four files for each participant:
[date].csv
contains the actual experiment results (i.e., the stimuli presentation log and the subject's responses) – it is the most important file!
[date].xlsx
contains a summary of the experiment – it do not add information and is not important at all.
[date].psydat
contains a great deal of information from experiment; it is not easy to open, but keep it as a backup (you can recreate a [date].csv
file from this one if the original csv file will be lost)
[date].log
contains execution log (the same log is presented in Experiment Runner window during the experiment) – it's a proper place to check whether the protocol was correctly executed and no errors occurred
Open the [date].csv
file in MS Excel/LibreOffice Calc/Google Sheets/any similar and perform the simple analysis of the Stroop Effect!
Sort the data by congruent
column. The first half of the table will have congruent=0
(incongruent, i.e., text and colour are different), and the second will have congruent=1
(text and colour are the same)
Simply calculate the averages of resp.rt
(response.reaction_time) for both halves of the table
Have you observed the Stroop Effect on yourself?
Now it is time to make changes to the experiment. Change the screen colour for the whole experiment (e.g., to black). Also, change the instructions font colour (e.g., to red).
More important task: change the language of the colour names (you can also change the messages, but it is not required).
If English is not your first language, then translate the study to your first language! If English is your first language, change it to French (red = rogue, green = vert, blue = bleu).
Tip 1: there is a trialTypes.csv
file in PsychoPy3 Demos\Experiments\stroop\
directory. You need to create a new copy called, e.g. trialTypes-french.csv
with alternated contents (letterColor
column specifies the actual colour of the text; it should be written down in English or as an RGB value)
Tip 2: click on the trials
block in the Flow (in Builder) – Conditions
field should be interesting for you
Run the experiment one more time (now, with the new language). Analyse the data (as above). Have you observed the Stroop Effect now? Is it stronger or weaker than before?
Now, examine the Reverse Stroop Effect. As you probably observed, the meaning of the word interfered with your ability to report the letter colour (i.e., Stroop Effect). But is there an equivalent effect in which the letter colour interferes with your ability to read? Stroop's original paper (linked at the beginning) suggested a lack of effect in this direction but he was running his study with paper ink and asking participants to call out the answers while he timed them on a stopwatch. Maybe with the somewhat more precise timing of modern computers we can reveal such an effect? Modify the protocol accordingly.
Check also the extended version of Stroop Task. To do so, in Builder select: Demos → Experiments → stroopExtended. What was changed? How it was done in the Builder?
Finally, if you want to see the Python code instead of
GUI-based builder, you can simply select: Tools → Compile, and the whole code will be generated and opened in the
Coder.