Correct encoding for binary choice data #184
-
Hi, I have a one armed-bandit task where, on each trial, an agent sees two stimuli A and B, chooses one of them and receives a reward with probability p(chosen) = 1-p(not chosen), i.e., at each trial one of the stimuli will lead to a reward. My data is stored as follows where
I am trying to estimate parameters using a binary hgf like as follows (based on the multilevel tutorial) hgf_logp_op = HGFDistribution(
n_levels=2,
model_type="binary",
input_data=u,
response_function=binary_softmax_inverse_temperature,
response_function_inputs=responses,
) I have tried various encoding:
but neither of these encodings seem to produce sensible parameters estimates for tonic_volatility_2 and inverse_temperature (the pymc model is defined similarly to the parameter recovery tutorial). What is the correct way to encode this type of data? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @filippoferrari , so we probably need to create a response function to handle this kind of design, The |
Beta Was this translation helpful? Give feedback.
Hi Nicolas, I found that by using outcomeB as your input_data everything works fine, as it correctly matches the contingency space encoding described in the Tapas manual.
It already works for a single participants and for multilevel setup as in the tutorial.
Thanks!