/Journal of Mathematical Psychology/, /54/(1), 39–52.
page 42, section 4.1
(b) Ratcliff, R., & McKoon, G. (2008). The diffusion decision
model: theory and data for two-choice decision tasks. /Neural
Computation/, /20/(4), 873–922. doi:10.1162/neco.2008.12-06-420
page 897, section 4.3
Guido Biele Email: g.p....@psykologi.uio.no Phone: +47 228 45172 Website
Visiting Address Psykologisk Institutt Forskningsveien 3 A 0373 OSLO |
Mailing Address Psykologisk Institutt Postboks 1094 Blindern 0317 OSLO |
In your response you mention using a hybrid. I agree with the approach, even if I don't understand why you call it stimulus-coding, because 1 is always associated with the correct response, and not always with "left response" or always with "right response".*
More generally, when the data are from a task where correct and incorrect responses can be determined, I think one should always use accuracy coding, so that one can estimate the difficulty of a condition (or capability of a participant/group). I am not sure what the meaning of the drift rate would be if the data were stimulus/direction-coded.
Hello all,I have some questions about this. If accuracy coding is used, movement of the starting point bias does not impact the response distributions in the same manner as if the data were stimulus coded. For example, in the case of Exp3 in the Ratcliff & McKoon paper, upwards bias in z increases the relative probability of reaching the A bound and decreases the probability of reaching the alternative bound. If the data are accuracy coded the probability of correctly identifying each alternative increases, despite the experimental manipulation of one having a higher prior probability of occurring. Am I missing something crucial here?
-- Joachim Vandekerckhove Assistant Professor Department of Cognitive Sciences University of California, Irvine
Guido Biele Email: g.p....@psykologi.uio.no Phone: +47 228 45172 Website
Guido Biele Email: g.p....@psykologi.uio.no Phone: +47 228 45172 Website
Hi,
I generally agree with your point, but I think that i omitted important details.
I think there are at least 2 ways to estimate bias in the starting point when data are accuracy coded:
1) split the data by stimuli and then fit the accuracy coded data
in hddm this would be a model in which you estimate one v and where z depends on the stimulus (in the results you should find that one z parameter is above and the other below .5, consistent with the fact that bias leads to accuracy increase for one stimulus and for accuracy decrease for the other stimulus).
I think this approach is similar to the approach used by ratcliff and colleagues.
The (minor?) issue I have with this approach is that I don't think that the magnitude of the bias should be allowed to vary by stimulus type, which is what is implicitly happening in the approach I just described. I think bias magnitude is independent of stimulus type (because how should one set the magnitude of the bias dependent on stimulus before knowing what the stimulus is ...).
hence, I think an alternative way to set this up would be preferable:
2) split the data by stimuli and then fit the accuracy coded data
in hddm set up a model where with one v, and one z, but implement z for one condition as z and for the other condition as 1-z.
As far as i can tell this is not supported out of the box by hddm, but I am currently trying to figure out if I can find a way to make this (I think the bottle neck is my unfamiliarity with python ...)
In the best of worlds, one would not need approach 2) because the drift diffusion model is so stable that even in the first approach the results would show that z1 is very close to 1-z2, but the few tests I have made do not show this (which might be because the design includes a few more variables). Hence, I think it is worth looking into how approach 2) can be implemented in hddm.
Hi Joachim,
I don't understand the point with negative and positive drift rates and ability.
I would have thought that analyzing bias with response coded data in a simple experiment with 2 stimulus types and 2 response options A and B amounts to:
- coding response A to 1 and response B to 0
- "estimating" one drift rate and one bias parameter
I don't see how I get from there to a setup where one can interpret drift rate as an indicator of ability/difficulty, except one also splits the data by stimulus-type. but if one does that, it seem to me one would be back to accuracy coding. (true response coding to me is when the responses coded into one category contain both error and correct responses, which is why I have difficulties to understand how drift rate estimates from response coded data can be an indicator of ability/difficulty)
I must be missing something. Can you give me a hint what I am missing?
Cheers - Guido
On 11/09/2012 19:54, Joachim Vandekerckhove wrote:
Just to add my $.02, I don't think there are usually any disadvantages to using response coding. In those cases, the bias parameter has a sensible interpretation, and the only thing that gets a little trickier is that you need to keep in mind that in some conditions, high ability implies a strongly negative drift rate. It's trivial to just flip the drift rate for those conditions during postprocessing, though.
On 09/11/2012 10:47 AM, Thomas Wiecki wrote:
On Tue, Sep 11, 2012 at 1:01 PM, DunovanK <duno...@gmail.com> wrote:
Hello all,
I have some questions about this. If accuracy coding is used, movement of the starting point bias does not impact the response distributions in the same manner as if the data were stimulus coded. For example, in the case of Exp3 in the Ratcliff & McKoon paper, upwards bias in z increases the relative probability of reaching the A bound and decreases the probability of reaching the alternative bound. If the data are accuracy coded the probability of correctly identifying each alternative increases, despite the experimental manipulation of one having a higher prior probability of occurring. Am I missing something crucial here?
Not sure what your question is but what you say sounds correct. The critical point is that bias influences the decision process before any accumulation happens. So if you use accuracy coding and the correct response in one condition is not constant (e.g. sometimes left, sometimes right or sometimes word, sometimes non-word) it is pretty hard to justify how you could be biased to make the correct response before you know which one will actually be correct.
Thomas
Best,
Kyle
On Monday, September 10, 2012 11:21:20 AM UTC-4, Guido Biele wrote:hi thomas,
glad that we are agree!
I never exclude that I am missing something ;-)
I'll think about something for the how to, but I first want to test a
few things, because I think that this issues is really not so trivial
...
cheers - guido
On Mon Sep 10 17:17:04 2012, Thomas Wiecki wrote:
> Hi Guido,
>
> On Mon, Sep 10, 2012 at 11:04 AM, Guido Biele
> <g.p....@psykologi.uio.no <mailto:g.p....@psykologi.uio.no>> wrote:
>
> In your response you mention using a hybrid. I agree with the
> approach, even if I don't understand why you call it
> stimulus-coding, because 1 is always associated with the correct
> response, and not always with "left response" or always with
> "right response".*
>
>
> You are right, in fact it's accuracy (upper is correct) and stimulus
> (upper is left/right, depending on condition) coding simultaneously.
>
> More generally, when the data are from a task where correct and
--
Guido Biele Email: g.p....@psykologi.uio.no Phone: +47 228 45172 Website
Visiting Address Psykologisk Institutt Forskningsveien 3 A 0373 OSLO Mailing Address Psykologisk Institutt Postboks 1094 Blindern 0317 OSLO
------------------------------------------------------------------------
Knode(pm.Deterministic, 'z_inv', eval=lambda z: 1-z, z=z_knode)
Thanks!
I think if one splits by stimulus type and uses response coded data, one has to fit separate drift rates for the 2 stimulus types. the problem with this is that it seems implausible to me that the drift rate should be allowed to have a different magnitude, dependent on stimulus. More pragmatically (and maybe more relevant to some) this allows that the bias effect is captured by the drift rates (such that the more frequently choose stimulus with a lower mean RT has a drift rate with a higher magnitude). This is especially unwelcome if you want to compare a model which assumes effect of bias-manipulation on bias of starting point with a model that assumes effect of bias-manipulation on drift rate.
Similarly, if one splits by stimulus and uses accuracy coded data, one allows for different magnitudes of |.5-z|, and I also think that it implausible that the magnitude of the bias should be allowed to vary dependent on stimulus type.
@data:
if the data are accuracy coded: can't one just calculate 2 likelihoods, one for stimulus A, and the other for stimulus B, whereby the likelihoods for RT distributions for A and B are generated from the same parameters, except for z which is set to z for one condition and to 1-z for the other condition?
I would have thought one approach is to first generate a model where z depends on stimulus type, and where one then deletes one knode for z. lets say z2, and replaces it with with 1-z2.
[this is admittedly all very general, and I don't know if it is possible at all to remove nodes and replace parameters in the likelihood function as easy as I am assuming. (with likelihood function i mean the function that gives me the likelihood of the oberved RT distribution given the model and the parameters.)]
class KnodeWfptInvZ(Knode):
def create_node(self, name, kwargs): #overloading original method
if kwargs['z'].__name__.find('stim2'):
kwargs['z_orig'] = copy(kwargs['z'])
kwargs['z'] = 1-kwargs['z_orig']
return selp.pymc_node(name=name, **kwargs)
<mailto:Email%3Ag.p.biele@psykologi.uio.no>
<https://sites.google.com/a/____neuro-cognition.org/guido/home <https://sites.google.com/a/__neuro-cognition.org/guido/home>
<https://sites.google.com/a/__neuro-cognition.org/guido/home
<https://sites.google.com/a/neuro-cognition.org/guido/home>__>__>(401)-863-6872 <tel:%28401%29-863-6872>
Visiting Address
Psykologisk Institutt
Forskningsveien 3 A
0373 OSLO
Mailing Address
Psykologisk Institutt
Postboks 1094
Blindern 0317 OSLO
--
Michael J Frank, PhD, Associate Professor
Laboratory for Neural Computation and Cognition
Brown University
http://ski.clps.brown.edu
--
------------------------------____----------------------------__--__------------
Guido Biele
Email: g.p....@psykologi.uio.no
<mailto:g.p.biele@psykologi.uio.no>
Phone: +47 228 45172 <tel:%2B47%20228%2045172>
Website
<https://sites.google.com/a/____neuro-cognition.org/guido/home <https://sites.google.com/a/__neuro-cognition.org/guido/home>
<https://sites.google.com/a/__neuro-cognition.org/guido/home
<https://sites.google.com/a/neuro-cognition.org/guido/home>__>__>(401)-863-6872 <tel:%28401%29-863-6872>
Visiting Address
Psykologisk Institutt
Forskningsveien 3 A
0373 OSLO
Mailing Address
Psykologisk Institutt
Postboks 1094
Blindern 0317 OSLO
--
Michael J Frank, PhD, Associate Professor
Laboratory for Neural Computation and Cognition
Brown University
http://ski.clps.brown.edu
--
------------------------------__------------------------------__------------
Guido Biele
Email: g.p....@psykologi.uio.no <mailto:g.p.biele@psykologi.uio.no>
<mailto:g.p.biele@psykologi.uio.no><mailto:g.p.biele@psykologi.__uio.no
<mailto:Email%253Ag.p.biele@psykologi.uio.no>>
<mailto:g.p.biele@psykologi.__uio.no
<mailto:g.p.biele@psykologi.uio.no>>
<mailto:g.p.biele@psykologi.uio.no><mailto:g.p.biele@psykologi.__uio.no
<mailto:g.p.biele@psykologi.uio.no>>
<tel:%2B47%20228%2045172>
Website
<https://sites.google.com/a/____neuro-cognition.org/guido/home <https://sites.google.com/a/__neuro-cognition.org/guido/home>
<https://sites.google.com/a/__neuro-cognition.org/guido/home
<https://sites.google.com/a/neuro-cognition.org/guido/home>__>__>
Visiting Address
Psykologisk Institutt
Forskningsveien 3 A
0373 OSLO
Mailing Address
Psykologisk Institutt
Postboks 1094
Blindern 0317 OSLO
--
------------------------------__------------------------------__------------
Guido Biele
Email: g.p....@psykologi.uio.no <mailto:g.p.biele@psykologi.uio.no>