Bayesian Inference Lee Harrison York Neuroimaging Centre 14 / 05 / 2010.

Slides:



Advertisements
Similar presentations
Design of Experiments Questions Network Inference Working Group October 8, 2008.
Advertisements

The General Linear Model (GLM)
J. Daunizeau Institute of Empirical Research in Economics, Zurich, Switzerland Brain and Spine Institute, Paris, France Bayesian inference.
Bayesian inference Lee Harrison York Neuroimaging Centre 01 / 05 / 2009.
Event-related fMRI Christian Ruff With thanks to: Rik Henson.
Bayesian inference Jean Daunizeau Wellcome Trust Centre for Neuroimaging 16 / 05 / 2008.
SPM – introduction & orientation introduction to the SPM software and resources introduction to the SPM software and resources.
Statistical Inference
1 -Classification: Internal Uncertainty in petroleum reservoirs.
Wellcome Trust Centre for Neuroimaging
Overview of SPM p <0.05 Statistical parametric map (SPM)
The General Linear Model Christophe Phillips Cyclotron Research Centre University of Liège, Belgium SPM Short Course London, May 2011.
SPM Course Zurich, February 2012 Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London.
SPM 2002 Experimental Design Daniel Glaser Institute of Cognitive Neuroscience, UCL Slides from: Rik Henson, Christian Buchel, Karl Friston, Chris Frith,
SPM Software & Resources Wellcome Trust Centre for Neuroimaging University College London SPM Course London, May 2011.
SPM Software & Resources Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2008.
SPM for EEG/MEG Guillaume Flandin
Event-related fMRI (er-fMRI)
Wellcome Centre for Neuroimaging at UCL
Unit 14 Assessment Objective Three. Unit 14 Assessment Objective Three.
Group Analyses Guillaume Flandin SPM Course Zurich, February 2014
Group analysis Kherif Ferath Wellcome Trust Centre for Neuroimaging University College London SPM Course London, Oct 2010.
Multiple comparison correction
1st level analysis: basis functions, parametric modulation and correlated regressors. 1 st of February 2012 Sylvia Kreutzer Max-Philipp Stenner Methods.
Experimental design of fMRI studies SPM Course 2014 Sandra Iglesias Translational Neuromodeling Unit University of Zurich & ETH Zurich With many thanks.
Experimental design of fMRI studies Methods & models for fMRI data analysis in neuroeconomics April 2010 Klaas Enno Stephan Laboratory for Social and Neural.
Bayesian models for fMRI data
Experimental design of fMRI studies SPM Course 2012 Sandra Iglesias Translational Neuromodeling Unit University of Zurich & ETH Zurich With many thanks.
Bayesian Inference Chris Mathys Wellcome Trust Centre for Neuroimaging UCL SPM Course London, May 12, 2014 Thanks to Jean Daunizeau and Jérémie Mattout.
Multiple testing Justin Chumbley Laboratory for Social and Neural Systems Research Institute for Empirical Research in Economics University of Zurich With.
The General Linear Model (GLM) Methods & models for fMRI data analysis in neuroeconomics November 2010 Klaas Enno Stephan Laboratory for Social & Neural.
Multiple testing Justin Chumbley Laboratory for Social and Neural Systems Research Institute for Empirical Research in Economics University of Zurich With.
Multiple comparison correction Methods & models for fMRI data analysis 18 March 2009 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
The General Linear Model (GLM)
The General Linear Model (GLM) SPM Course 2010 University of Zurich, February 2010 Klaas Enno Stephan Laboratory for Social & Neural Systems Research.
J. Daunizeau Wellcome Trust Centre for Neuroimaging, London, UK Institute of Empirical Research in Economics, Zurich, Switzerland Bayesian inference.
Group analyses of fMRI data Methods & models for fMRI data analysis 28 April 2009 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
Multiple comparison correction Methods & models for fMRI data analysis 29 October 2008 Klaas Enno Stephan Branco Weiss Laboratory (BWL) Institute for Empirical.
Group analyses of fMRI data Methods & models for fMRI data analysis 26 November 2008 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
02/08/2015Regional Writing Centre2 02/08/2015Regional Writing Centre3.
Introduction to SPM SPM fMRI Course London, May 2012 Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London.
The General Linear Model
Multiple testing Justin Chumbley Laboratory for Social and Neural Systems Research Institute for Empirical Research in Economics University of Zurich With.
SPM Course Zurich, February 2015 Group Analyses Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London With many thanks to.
Methods & models for fMRI data analysis – HS 2013 David Cole Andrea Diaconescu Jakob Heinzle Sandra Iglesias Sudhir Shankar Raman Klaas Enno Stephan.
Methods for Dummies Second level Analysis (for fMRI) Chris Hardy, Alex Fellows Expert: Guillaume Flandin.
SPM Software & Resources Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2009.
Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009.
Mixture Models with Adaptive Spatial Priors Will Penny Karl Friston Acknowledgments: Stefan Kiebel and John Ashburner The Wellcome Department of Imaging.
Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Zurich, February 2008 Bayesian Inference.
Bayesian Inference in SPM2 Will Penny K. Friston, J. Ashburner, J.-B. Poline, R. Henson, S. Kiebel, D. Glaser Wellcome Department of Imaging Neuroscience,
The General Linear Model (GLM)
Wellcome Trust Centre for Neuroimaging University College London
הוראת מיומנויות של עבודה בקבוצה מחקר פעולה
Keith Worsley Keith Worsley
The General Linear Model (GLM)
Chapter 18 Bayesian Statistics.
From buttons to code Eamonn Walsh & Domenica Bueti
Statistical Parametric Mapping
SPM2: Modelling and Inference
ON BAYESIAN TESTS IN AUDITING
The General Linear Model (GLM)
Statistical Parametric Mapping
Wellcome Centre for Neuroimaging at UCL
Bayesian Inference in SPM2
Wellcome Centre for Neuroimaging, UCL, UK.
Mixture Models with Adaptive Spatial Priors
The General Linear Model (GLM)
Discovery of Hidden Structure in High-Dimensional Data
Presentation transcript:

Bayesian Inference Lee Harrison York Neuroimaging Centre 14 / 05 / 2010

realignmentsmoothing normalisation general linear model template Gaussian field theory p <0.05 statisticalinference Bayesian segmentation and normalisation Bayesian segmentation and normalisation Spatial priors on activation extent Spatial priors on activation extent Dynamic Causal Modelling Dynamic Causal Modelling Posterior probability maps (PPMs) Posterior probability maps (PPMs)

ParadigmResults Attention to Motion Büchel & Friston 1997, Cereb. Cortex Büchel et al. 1998, Brain V5+ SPC V3A Attention – No attention - fixation only - observe static dots+ photic V1 - observe moving dots+ motion V5 - task on moving dots+ attention V5 + parietal cortex

Paradigm - fixation only - observe static dots - observe moving dots - task on moving dots Dynamic Causal Models Attention to Motion V1 V5 SPC Motion Photic Attention V1 V5 SPC Motion Photic Attention Model 1 (forward): attentional modulation of V1V5: forward Model 2 (backward) : attentional modulation of SPCV5: backward Bayesian model selection: Which model is optimal?

Responses to Uncertainty Long term memory Short term memory

Responses to Uncertainty Paradigm Stimuli sequence of randomly sampled discrete events Model simple computational model of an observers response to uncertainty based on the number of past events (extent of memory) Question which regions are best explained by short / long term memory model? … trials 1432 ? ?

Overview Introductory remarks Some probability densities/distributions Probabilistic (generative) models Bayesian inference A simple example – Bayesian linear regression SPM applications –Segmentation –Dynamic causal modeling –Spatial models of fMRI time series

k=2 Probability distributions and densities

k=2

Probability distributions and densities k=2

Probability distributions and densities k=2

Probability distributions and densities k=2

Probability distributions and densities k=2

Probability distributions and densities k=2

Generative models estimation time space generation space

posterior likelihood prior Bayes theorem allows one to formally incorporate prior knowledge into computing statistical probabilities. The posterior probability of the parameters given the data is an optimal combination of prior knowledge and new data, weighted by their relative precision. new data prior knowledge Bayesian statistics

Given data y and parameters, their joint probability can be written in 2 ways: Eliminating p(y, ) gives Bayes rule: Likelihood Prior Evidence Posterior Bayes rule

y y Observation of data likelihood p(y| ) prior distribution p( ) likelihood p(y| ) prior distribution p( ) Formulation of a generative model Update of beliefs based upon observations, given a prior state of knowledge Principles of Bayesian inference

Normal densities Univariate Gaussian Posterior mean = precision-weighted combination of prior mean and data mean

Normal densities Bayesian GLM: univariate case

Normal densities Bayesian GLM: multivariate case β2β2 β1β1 One step if C e and C p are known. Otherwise iterative estimation.

Approximate inference: optimization True posterior Approximate posterior iteratively improve free energy mean-field approximation Value of parameter Objective function

Simple example – linear regression DataOrdinary least squares

Simple example – linear regression Bases (explanatory variables) Data and model fit Bases (explanatory variables)Sum of squared errors Ordinary least squares

Simple example – linear regression Data and model fit Bases (explanatory variables) Ordinary least squares Sum of squared errors

Simple example – linear regression Data and model fit Bases (explanatory variables)Sum of squared errors Ordinary least squares

Simple example – linear regression Data and model fit Bases (explanatory variables)Sum of squared errors Over-fitting: model fits noise Inadequate cost function: blind to overly complex models Solution: include uncertainty in model parameters Ordinary least squares

Bayesian linear regression: priors and likelihood Model:

Bayesian linear regression: priors and likelihood Model: Prior:

Sample curves from prior (before observing any data) Mean curve Bayesian linear regression: priors and likelihood Model: Prior:

Bayesian linear regression: priors and likelihood Model: Prior: Likelihood:

Bayesian linear regression: priors and likelihood Model: Prior: Likelihood:

Bayesian linear regression: priors and likelihood Model: Prior: Likelihood:

Bayesian linear regression: posterior Model: Prior: Likelihood: Bayes Rule:

Bayesian linear regression: posterior Model: Prior: Likelihood: Bayes Rule: Posterior:

Bayesian linear regression: posterior Model: Prior: Likelihood: Bayes Rule: Posterior:

Bayesian linear regression: posterior Model: Prior: Likelihood: Bayes Rule: Posterior:

Posterior distribution: probability of the effect given the data Posterior probability map: images of the probability (confidence) that an activation exceeds some specified threshold s th, given the data y Two thresholds: activation threshold s th : percentage of whole brain mean signal (physiologically relevant size of effect) probability p th that voxels must exceed to be displayed (e.g. 95%) Two thresholds: activation threshold s th : percentage of whole brain mean signal (physiologically relevant size of effect) probability p th that voxels must exceed to be displayed (e.g. 95%) mean: size of effect precision: variability Posterior Probability Maps (PPMs)

Bayesian linear regression: model selection Bayes Rule: normalizing constant Model evidence:

grey matterPPM of belonging to … CSFwhite matter aMRI segmentation

Neural state equation: Electric/magnetic forward model: neural activity EEG MEG LFP Neural model: 1 state variable per region bilinear state equation no propagation delays Neural model: 8 state variables per region nonlinear state equation propagation delays fMRIERPs inputs Hemodynamic forward model: neural activity BOLD Dynamic Causal Modelling: generative model for fMRI and ERPs

m2m2 m1m1 m3m3 m4m4 V1 V5 stim PPC attention V1 V5 stim PPC attention V1 V5 stim PPC attention V1 V5 stim PPC attention [Stephan et al., Neuroimage, 2008] m1m1 m2m2 m3m3 m4m V1 V5 stim PPC attention estimated effective synaptic strengths for best model (m 4 ) models marginal likelihood Bayesian Model Selection for fMRI

AR coeff (correlated noise) prior precision of AR coeff VB estimate of β ML estimate of β aMRI Smooth Y (RFT) fMRI time series analysis with spatial priors observations GLM coeff prior precision of GLM coeff prior precision of data noise Penny et al 2005 degree of smoothnessSpatial precision matrix

Mean (Cbeta_*.img) Std dev (SDbeta_*.img) activation threshold Posterior density q(β n ) Probability mass p n fMRI time series analysis with spatial priors: posterior probability maps probability of getting an effect, given the data mean: size of effect covariance: uncertainty Display only voxels that exceed e.g. 95% PPM (spmP_*.img)

fMRI time series analysis with spatial priors: Bayesian model selection Compute log-evidence for each model/subject model 1 model K subject 1 subject N Log-evidence maps

fMRI time series analysis with spatial priors: Bayesian model selection BMS maps PPM EPM model k Joao et al, 2009 Compute log-evidence for each model/subject model 1 model K subject 1 subject N Log-evidence maps Probability that model k generated data

Reminder… Long term memory Short term memory

Short-term memory model long-term memory model onsets Missed trials IT indices: H,h,I,i H=entropy; h=surprise; I=mutual information; i=mutual surprise Compare two models IT indices are smoother

primary visual cortex Regions best explained by short- term memory model Regions best explained by long-term memory model frontal cortex (executive control) Group data: Bayesian Model Selection maps

Thank-you