Introduction

This is just another version of the Stroop task. This code is easy translatable in another language. This specific version uses German colors (Rot, Grün, Blau, Weiss). This one does not work with "bitmaps", so they can be quickly edited and changed to any language.

The Stroop Task is one of the best known psychological experiments named after John Ridley Stroop. The Stroop phenomenon demonstrates that it is difficult to name the ink color of a color word if there is a mismatch between ink color and word. For example, the word GREEN printed in red ink. The wikipedia web site gives a good description of the effect.

Colin MacLeod’s (1991) review article in the influential psychological journal Psychological Bulletin is frequently cited when discussing the effect.

There are many variations on the basic effect using other stimuli than colored words.

It is easier to measure key presses than the time it takes to name a task; therefore, there are "manual" Stroop tasks in which you need to press colored keys.

About this implementation

  • The demo takes less than 2 minutes to complete.

  • The demo uses German color words. It is easy to translate the PsyToolkit script to other langueges, there are just a few obvious places to change the text.

  • The demo below requires button presses instead of just naming (as in the original study)

  • In the demo, there are only 40 trials. In a real experiment, you should use considerably more trials to have a more reliable measure of the Stroop effect.

  • At the end of the demo, you get feedback about your response times in the compatible and incompatible condition:

    • Compatible: The color of the word and the meaning is the same (e.g., GREEN)

    • Incompatible: The color of the word and the meaning is different (e.g., GREEN)

  • The Stroop effect is here reported as the average response time in incompatible trials minus compatible trials.

  • Note, you can show your response times and copy and paste them to a local file for your own data analysis.

Run the demo

Data output file

In PsyToolkit, the data output file is simply a textfile. The save line of the PsyToolkit experiment script determines what is being saved in the data output file. Typically, for each experimental trial, you would have exactly one line in your text file, and each number/word on that line gives you the information you need for your data analysis, such as the condition, response speed, and whether an error was made.

Meaning of the columns in the output datafile. You need this information for your data analysis.

Colum Meaning

1

name of block

2

name of the word (e.g., "ROT")

3

the color the word is printed in (e.g., "GRÜN")

4

Stroop color match (1=compatible, 0=incompatible)

5

tablerow number

6

the pressed key number

7

Status (1=correct, 2=wrong, 3=timeout)

8

Response time (milliseconds)

Download

If you have a PsyToolkit account, you can upload the zipfile directly to your PsyToolkit account. Watch a video on how to do that. If you want to upload the zipfile into your PsyToolkit account, make sure the file is not automatically uncompressed (some browsers, especially Mac Safari, by default uncompress zip files). Read here how to easily deal with this.

Further reading

  • Stroop, J.R. (1935). Studies of interference in serial verbal reactions. Journal of Experimental Psychology, 18, 643-662. Read here on Classics in the history of psychology.

  • MacLeod, C.M. (1991). Half a century of research on the Stroop effect: An integrative review. Psychological Bulletin, 109, 163-203.