Models of Learning

Developed by
Jill O'Reilly
Hanneke den Ouden
-August 2015

Simulating data

We often think about modelling in terms of fitting a model to a participant's behaviour.

However, we can also use the model to simulate what an 'ideal' participant would do, given certain values of the parameters such as learning rate.

This can help us get an intuitive understanding of:

  • how these parameters may describe behaviour
  • what sort of behaviour our model may capture

Therefore, before we are going to fit the behavioural data, we will first actually generate or simulate some data. This means that we will use our model, which is simply the 2 equations above, to 'play' the slot machine game.

The equations

The codes implement the update and observation equations.

  • Open the file RLtutorial_simulate.m
  • Can you find the observation (softmax) equation?
    ?
  • Can you find the update (Rescorla-Wagner) equation?
    ?

►►►