drbenvincent / darc_toolbox

Run adaptive decision making experiments
MIT License
16 stars 2 forks source link

Posterior entropy over trials: calculate, store, plot #43

Closed drbenvincent closed 5 years ago

drbenvincent commented 5 years ago

Goal

Be able to generate figures like this

screen shot 2018-08-17 at 13 38 56

Approach

It's probably easiest/best to calculate entropy by:

NOTE: This implementation is done assuming the univariate distributions are Gaussian distributed.

drbenvincent commented 5 years ago

Progress so far. Note:

screen shot 2018-11-28 at 16 46 01

drbenvincent commented 5 years ago

This is approaching completion. I now use seaborn to do the plotting. It is nice. But I need to work out exactly what the error bars represent - it's slightly ambiguous from the documentation, but it looks like 95% CI on bootstrap estimates of the mean. That is, it does not represent the actual spread of the data. This is fine, but I want to know that for sure. I have an issue here: https://github.com/mwaskom/seaborn/issues/1619 screen shot 2018-11-29 at 15 43 48

Also, still need to decide between plotting posterior entropy of a normal distribution fitted to the posterior, or if I should do it based on a discrete prob density of the raw posterior samples. The latter is what I did in the original Matlab version.

drbenvincent commented 5 years ago

Now the plot conveys the spread over the various simulations. Shaded zones correspond to sd. screen shot 2018-12-22 at 09 21 56