How to give probabilistic reward feedback? #1464
Unanswered
prashantig25
asked this question in
Q&A
Replies: 1 comment
-
I would assign the reward vs no reward responses ("You win 1 point", "You win 0 points") to an array and then use a jsPsych.randomization.sampleWithReplacement function to return feedback probabilistically. If you look at the documentation for randomizing with Jspsych (link here:https://www.jspsych.org/core_library/jspsych-randomization/) there are a couple different options for how you can return stimuli a certain amount of time, with different probabilities etc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I present my participants with two stimuli and they can respond by pressing the left or the right arrow. I want to repeat this trial 10 times but the feedback depends on the reward condition. For instance, if the reward condition is 50_50, I want the left arrow to be the correct response 5 times and the right arrow to be the correct response for the other five times. Depending on whether their keypress matches the correct response, they either win or lose points. How can I do that? Right now, I am just able to set the correct response to one of the key presses. I want it to change probabilistically. Here is the code that I have now.
Suggestions regarding the same are appreciated.
Beta Was this translation helpful? Give feedback.
All reactions