Introduction

The original Iowa Gambling Task studies decision making using a cards. The participant needs to choose one out of four card decks (named A,B,C, and D). The participant can win or loose money with each card.

The task was designed by Bechera and colleagues, 1994. Note that author Antonio Damasio is one of the most famous cognitive neuroscientists and that this specific paper is very highly cited.

The original paper used real cards, whereas nowadays, the Iowa Gambling Task is often computer based. The task was originally developed to detect problems patients with damage to the ventromedial prefrontal cortex. This part of the brain is, among other things, involved in processing risk, fear, emotion, and decision making:

Following damage to the ventromedial prefrontal cortex, humans develop a defect in real-life decision-making, which contrasts with otherwise normal intellectual functions. Currently, there is no neuropsychological probe to detect in the laboratory, and the cognitive and neural mechanisms responsible for this defect have resisted explanation. Here, using a novel task which simulates real-life decision-making in the way it factors uncertainty of premises and outcomes, as well as reward and punishment, we find that prefrontal patients, unlike controls, are oblivious to the future consequences of their actions, and seem to be guided by immediate prospects only. This finding offers, for the first time, the possibility of detecting these patients' elusive impairment in the laboratory, measuring it, and investigating its possible causes.

— Bechara et al.
1994

The original scheme

In the original paper (Bechera and colleagues, 1994), the following procedure was followed:

  • There were 4 decks of cards (A, B, C, and D)

  • Participants had to choose in total 100 cards, one at the time

  • Each time they choose a card, they get feedback about winning and/or loosing some money

  • Participants did not know what each card would yield in advance (i.e., like a lottery)

  • Participants started with a "loan" of of $2000 and were told to make a profit

  • Decks A and B always yielded $100

  • Decks C and D always yielded $50

  • For each card chosen, there is a 50% chance of having to pay a penalty as well. For decks A and B, the penalty is $250, whereas for decks C and D it is $50.

"Decks A and B are disadvantageous in the long run because they cost the most in the long run, while decks C and D are advantageous because they result in an overall gain int he long run." (Bechara et al., 1994, p.10).

About this implementation

The basics are the same except that this is an online experiment. Instead of four decks of cards, you now see four "buttons" like on a slot machine labeled A, B, C, or D.

The rewards are the same as in the original study. As you will note, it is pretty easy to figure out. Of course, you can make the rules more complicated by changing the code a bit.

Analysis

When you are analyzing the data, you need to think carefully about what exactly you want to find out.

  • One interesting outcome is how often people decided for the "high risk" decks (A/B) or the "low risk" decks (C/D).

  • Another interesting question is how long it took people to decide before they made a low or high risk decision.

Currently, there are no "direct" easy ways to analyze this within the PsyToolkit website. Instead you are recommended to look at the "raw" files and read them in yourself (e.g., with R) and look for the outcomes you are interested in.

Run the demo

In this experiment, you will see a basic instruction followed by 100 trials of the Iowa Gambling Task. Each time, you need to select A,B,C, or D and you can win/loose some money. At the top of the screen you see how much money you have. You start with 2000 dollars.

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

reaction time (mouse click)

2

which button click (A=1,B=2,C=3,D=4)

3

whether there was a fee to pay (1) or not (0)

4

the amount in bank before participant clicked

5

the amount in bank after participant clicked

6

the amount won ($50 or $100)

7

the fee to pay ($0, $50, or $250)

PsyToolkit code

Click to expand the PsyToolkit script code (part of zip file below)
options
 bitmapdir stimuli
 set &bank 2000
 mouse on
 
bitmaps
 instructions
 win100
 win50
 fee250
 fee50
 button_a
 button_b
 button_c
 button_d
 button_a_dark
 button_b_dark
 button_c_dark
 button_d_dark
 choose_bar
 collectmoney

fonts
 arial 18

task igt
 text align left
 set $bankbefore &bank ## save the current amount in your bank
 show bitmap button_a -300 125
 show bitmap button_b -100 125
 show bitmap button_c  100 125
 show bitmap button_d  300 125
 show bitmap choose_bar 0 250
 show text &bank -225 -250   255 255 255
 show text "Your money:" -390 -250
 readmouse l 1 99999 range 1 4
 show bitmap button_a_dark -300 125
 show bitmap button_b_dark -100 125
 show bitmap button_c_dark  100 125
 show bitmap button_d_dark  300 125
 set $decisiontime RT
 clear 5
 set $a under MOUSE_X MOUSE_Y
 #################################################
 ## did people press left buttons (1,2) or right buttons (3,4)
 if $a == 1 || $a == 2
   set $ab 1 ## ab=1 means that people pressed a or b
   set &bank increase 100
   show bitmap win100 -175 -100
   set $win 100
 fi
 if $a == 3 || $a == 4
   set $ab 0
   set &bank increase 50
   show bitmap win50 -175 -100
   set $win 50
 fi
 ######################################################################
 ## did people get fee (1) or not (0) and press a or b?
 set $fee_or_not &&fees remove random ## take random from the list of 1s and 0s
 if $fee_or_not == 1 && $ab == 1
   set &bank decrease 250
   show bitmap fee250 175 -100
   set $fee 250
 fi
 if $fee_or_not == 1 && $ab == 0
   set &bank decrease 50
   show bitmap fee50  175 -100
   set $fee 50   
 fi
 show bitmap collectmoney 0 250
 readmouse l 9 999999
 clear -1
 show text &bank -225 -250
 save $decisiontime $a $fee_or_not $bankbefore &bank $win $fee

block test
  set &&feeset 1 0 ## a fee can be given (1) or not (0)
  set &&fees &&feeset times 50 ## we need a set of 1s (50x) and 0s (50x)
  message instructions
  tasklist
    igt 100 fixed
  end

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

  • Bechara, A., Damasio A.R., Damasio H., Anderson S.W. (1994). Insensitivity to future consequences following damage to human prefrontal cortex. Cognition, 50, 7-15.