Publications

Perceptual decisions often require the integration of noisy sensory evidence over time. This process is formalized with sequential …

Experiences of war and displacement can have profound effects on children’s affective development and mental health, although the …

Previous studies suggest that associations between numbers and space are mediated by shifts of visuospatial attention along the …

Blog Posts

A probability question that was posed in an interview for a major financial firm.

In this new covid-19 world it happens more and more often that I need to record full-screen videos, for example for lectures. This is …

A friend was working on a paper and found himself in the situation of having to defend the null hypothesis that a particular effect is …

Miscellaneous

Some resources (short notes, slides, code) on various topics, mainly statistics.

  • Multilevel modelling: frequentist and Bayesian approaches. These are the slides for a more advanced course on multilevel modeling. I start by introducing multilevel models from a frequentist perspective, then introduce the Bayesian approach. (The slides are in html format; use arrowkeys to advance) The analyses are performed using Stan and its R interface. Download also the R code that documents the analyses step-by-step (code); the two dataset used in the examples (bisection, mixture); the Stan code of the models discussed (sleepstudy, glmm, mixture). You can also check the Github repository with the Rmarkdown script used to generate the presentation here.

  • Bayesian model selection at the group level. This note illustrated the principles of Bayesian model selection at the group level, that is treating models as random effects and allowing for individual differences in the model that best describe the behavior of a given participant (see Penny, Daunizeau, Moran, and Friston. Bayesian model selection for group studies. NeuroImage, 46(4):1004–1017, 2009). I implemented (mainly: translated from Matlab, SPM 12) the iterative algorithm and computations to compute exceedance probabilities, and put them in an R package available at this Github repository.

  • Adaptive maximum likelihood estimation of psychometric slope. Short note illustrating how to set up an adaptive maximum likelihood procedure optimized to estimate the psychometric slope. Contains a closed-form expression of the expected variance of the slope that takes lapse rates into account (thus can be used to compute the so-called sweet points). A Matlab implementation can be found (in additiona to a simple implementation of the Quest+ procedure) in this Github repo.

  • Linear and generalized linear mixed-effects models in R. These are the slides for an introductory class on mixed-effects models in R. Only assume some notions on linear models and some basic experience with R. Download also: R script; additional dataset, for the last example. Here is also an updated version of part 1 (linear mixed-models only), which I recently presented at the UCL Institute of Ophthalmology.

  • Eye movements in cognitive sciences (book chapter; in italian). This is an introductory book chapter about the study of eye movements in cognitive sciences. Contains some informations about how they are classified, measured and analysed, and how they can be used to test hypotheses about the mind. The chapter is contained in a volume published by Il Mulino editore, (Title: Il cervello al lavoro. Nuove prospettive in neuropsicologia; ISBN 978-88-15-27211-9), which should be used as textbook at the School of Psychology, in the University of Padova. (english translation)

  • Note on Signal Detection Theory and Generalized Linear Models. Short note about the equivalence between equal-variance signal detection theory models and GLMs.

Contact

  • Department of Psychology, Royal Holloway University of London, Egham, Surrey TW20 0EX
  • DM Me