N-back test

471 views
Skip to first unread message

onyeu...@belmonthill.org

unread,
Oct 18, 2013, 7:22:01 PM10/18/13
to psychop...@googlegroups.com
In creating an n-back game (http://en.wikipedia.org/wiki/N-back), whenever a stimulus from n times back is presented to the player again, the player must correctly give a response such as a "spacebar", <=, or =>. 

For example: In a 2 back version of the game, if a small square appears in position 1, then position 2, then 1, the player should hit => (right) as a way of signaling that the smaller square was in the same position 2 (n) times back.

My Question: How would I go about creating a correct/incorrect response for a stimulus that is now being presented and that was also presented n times back? In other words, I can put the square in random spots, but how would I make an n-back game out of it?

Thank you,

James

Andrew Poppe

unread,
Oct 18, 2013, 11:04:21 PM10/18/13
to psychop...@googlegroups.com
Hi James,

Have a look at the attached builder script. The key part is the getEarlierTrial function. However, with an N back task, it may be better to create a spreadsheet (or group of spreadsheets) that has a set order of stimulus types or locations with a correct answer column. Then, you can just run through this list sequentially. This allows much more control over the number and spacing of target and non-target trials compared with the random strategy used in my example.


Andrew 


--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/4cff37de-8d47-4c1d-bdc5-91c664eb1d3b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

2back.psyexp
letters.xlsx
Reply all
Reply to author
Forward
0 new messages