Skip to content

Instantly share code, notes, and snippets.

View da5nsy's full-sized avatar

Danny Garside da5nsy

View GitHub Profile
clear, clc, close all
nTrials = 1000;%30000;
nOptions = 3;
choices = randi(nOptions,[nTrials,1]); % random (integer) from 1:nOptions, nTrials times
loglikelihood = 0;
for trial = 1:nTrials
randFixed = rand(4,1); % random (uniformally) from 0:1, 4 times

Keybase proof

I hereby claim:

  • I am da5nsy on github.
  • I am da5nsy (https://keybase.io/da5nsy) on keybase.
  • I have a public key ASC3P4aUybfUqaEoujlUKvZ83O1Nqva-BJFQbR2_s4jqkQo

To claim this, I am signing this object: