Wellcome Trust Centre for Neuroimaging, UCL, UK.

Similar documents
Bayesian inference J. Daunizeau

Bayesian inference J. Daunizeau

An introduction to Bayesian inference and model comparison J. Daunizeau

Bayesian Inference. Chris Mathys Wellcome Trust Centre for Neuroimaging UCL. London SPM Course

DCM: Advanced topics. Klaas Enno Stephan. SPM Course Zurich 06 February 2015

Will Penny. SPM short course for M/EEG, London 2013

Will Penny. SPM for MEG/EEG, 15th May 2012

The General Linear Model (GLM)

Will Penny. DCM short course, Paris 2012

Dynamic Causal Models

Group analysis. Jean Daunizeau Wellcome Trust Centre for Neuroimaging University College London. SPM Course Edinburgh, April 2010

Experimental design of fmri studies

A prior distribution over model space p(m) (or hypothesis space ) can be updated to a posterior distribution after observing data y.

Will Penny. SPM short course for M/EEG, London 2015

Models of effective connectivity & Dynamic Causal Modelling (DCM)

Dynamic Causal Modelling : Advanced Topics

The General Linear Model (GLM)

Group Analysis. Lexicon. Hierarchical models Mixed effect models Random effect (RFX) models Components of variance

Experimental design of fmri studies

Bayesian inference. Justin Chumbley ETH and UZH. (Thanks to Jean Denizeau for slides)

Experimental design of fmri studies & Resting-State fmri

Experimental design of fmri studies

Model Comparison. Course on Bayesian Inference, WTCN, UCL, February Model Comparison. Bayes rule for models. Linear Models. AIC and BIC.

Experimental design of fmri studies

Dynamic Causal Modelling for fmri

Models of effective connectivity & Dynamic Causal Modelling (DCM)

Effective Connectivity & Dynamic Causal Modelling

First Technical Course, European Centre for Soft Computing, Mieres, Spain. 4th July 2011

DCM for fmri Advanced topics. Klaas Enno Stephan

Extracting fmri features

The General Linear Model. Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London

Bayesian Inference for the Multivariate Normal

Modelling temporal structure (in noise and signal)

Dynamic Causal Modelling for EEG/MEG: principles J. Daunizeau

Dynamic causal modeling for fmri

Signal Processing for Functional Brain Imaging: General Linear Model (2)

Bayesian Analysis. Bayesian Analysis: Bayesian methods concern one s belief about θ. [Current Belief (Posterior)] (Prior Belief) x (Data) Outline

Mixed effects and Group Modeling for fmri data

Dynamic causal modeling for fmri

Stochastic Dynamic Causal Modelling for resting-state fmri

Uncertainty, precision, prediction errors and their relevance to computational psychiatry

Morphometrics with SPM12

Model Selection for Gaussian Processes

Statistical inference for MEG

Morphometrics with SPM12

M/EEG source analysis

NeuroImage. Tractography-based priors for dynamic causal models

Computational Brain Anatomy

Dynamic Modeling of Brain Activity

Statistical Inference

Annealed Importance Sampling for Neural Mass Models

Comparing Families of Dynamic Causal Models

Overview of SPM. Overview. Making the group inferences we want. Non-sphericity Beyond Ordinary Least Squares. Model estimation A word on power

Jean-Baptiste Poline

Bayesian modelling of fmri time series

Contents. Introduction The General Linear Model. General Linear Linear Model Model. The General Linear Model, Part I. «Take home» message

Morphometry. John Ashburner. Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK. Voxel-Based Morphometry

Morphometry. John Ashburner. Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.

Spatial Statistics with Image Analysis. Outline. A Statistical Approach. Johan Lindström 1. Lund October 6, 2016

HMM part 1. Dr Philip Jackson

Beyond Univariate Analyses: Multivariate Modeling of Functional Neuroimaging Data

Bayesian Treatments of. Neuroimaging Data Will Penny and Karl Friston. 5.1 Introduction

Bayesian Inference Course, WTCN, UCL, March 2013

Part 2: Multivariate fmri analysis using a sparsifying spatio-temporal prior

Dynamic Causal Modelling for EEG and MEG

Dynamic Causal Modelling for EEG and MEG. Stefan Kiebel

Dynamic Causal Modelling for evoked responses J. Daunizeau

Comparing hemodynamic models with DCM

Minimum Message Length Analysis of the Behrens Fisher Problem

Hierarchical Dirichlet Processes with Random Effects

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Data Analysis I: Single Subject

Searching for Nested Oscillations in Frequency and Sensor Space. Will Penny. Wellcome Trust Centre for Neuroimaging. University College London.

Inference and estimation in probabilistic time series models

Neuroimaging for Machine Learners Validation and inference

Probabilistic Graphical Networks: Definitions and Basic Results

Principles of DCM. Will Penny. 26th May Principles of DCM. Will Penny. Introduction. Differential Equations. Bayesian Estimation.

Peak Detection for Images

Statistical learning. Chapter 20, Sections 1 3 1

Statistical Inference

Time Series Prediction by Kalman Smoother with Cross-Validated Noise Density

Algorithmisches Lernen/Machine Learning

David Giles Bayesian Econometrics

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Linear regression example Simple linear regression: f(x) = ϕ(x)t w w ~ N(0, ) The mean and covariance are given by E[f(x)] = ϕ(x)e[w] = 0.

MIXED EFFECTS MODELS FOR TIME SERIES

Hierarchical Models. W.D. Penny and K.J. Friston. Wellcome Department of Imaging Neuroscience, University College London.

The Ensemble Kalman Filter:

Correspondence*: W. Penny 12 Queen Square, London WC1N 3BG, United Kingdom,

Lecture 3: Pattern Classification. Pattern classification

ANALYSES OF NCGS DATA FOR ALCOHOL STATUS CATEGORIES 1 22:46 Sunday, March 2, 2003

State Space and Hidden Markov Models

Linear Models for Classification

Model Averaging (Bayesian Learning)

Default Priors and Effcient Posterior Computation in Bayesian

John Ashburner. Wellcome Trust Centre for Neuroimaging, UCL Institute of Neurology, 12 Queen Square, London WC1N 3BG, UK.

Continuous Time Particle Filtering for fmri

HST 583 FUNCTIONAL MAGNETIC RESONANCE IMAGING DATA ANALYSIS AND ACQUISITION A REVIEW OF STATISTICS FOR FMRI DATA ANALYSIS

SYDE 372 Introduction to Pattern Recognition. Probability Measures for Classification: Part I

Modelling and forecasting of offshore wind power fluctuations with Markov-Switching models

Transcription:

Bayesian Inference Will Penny Wellcome Trust Centre for Neuroimaging, UCL, UK. SPM Course, Virginia Tech, January 2012

What is Bayesian Inference? (From Daniel Wolpert)

Bayesian segmentation and normalisation realignment smoothing general linear model normalisation statistical inference p <0.05 Gaussian field theory template

Bayesian segmentation and normalisation Smoothness modelling realignment smoothing general linear model normalisation statistical inference p <0.05 Gaussian field theory template

Bayesian segmentation and normalisation Smoothness estimation Posterior probability maps (PPMs) realignment smoothing general linear model normalisation statistical inference p <0.05 Gaussian field theory template

Bayesian segmentation and normalisation Smoothness estimation Posterior probability maps (PPMs) Dynamic Causal Modelling realignment smoothing general linear model normalisation statistical inference p <0.05 Gaussian field theory template

Overview Parameter Inference PPMs, DCMs Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

Overview Parameter Inference PPMs, DCMs Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

SPM Interface

Posterior Probability Maps Y X p 1 1 N 0, L 2 amri Smooth Y (RFT) Observation noise prior precision of GLM coeff prior precision of AR coeff GLM A AR coeff (correlated noise) ML Bayesian Y observations

ROC curve Sensitivity 1-Specificity

Posterior Probability Maps activation threshold s th Probability mass p Display only voxels that exceed e.g. 95% p p th Mean (Cbeta_*.img) Posterior density PPM (spmp_*.img) probability of getting an effect, given the data Std dev (SDbeta_*.img) q( n) N( n, n) mean: size of effect covariance: uncertainty

Overview Parameter Inference PPMs, DCMs Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

Dynamic Causal Models SPC Posterior Density V1 V5 Priors are physiological or encourage stable dynamics V5->SPC

Parameter Inference GLMs, PPMs, DCMs Overview Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

Model Evidence Bayes Rule: ) ( ) ( ), ( ), ( y m p m p m y p m y p normalizing constant d m p m y p y m p ) ( ), ( ) ( Model evidence

Model Posterior Evidence p( y m) p( m) pm ( y) p( y) Model Prior B ij Bayes factor: p( y m i) p( y m j) Model, m=i Model, m=j SPC SPC V1 V1 V5 V5

Model Posterior Evidence p( y m) p( m) pm ( y) p( y) Model Prior B ij Bayes factor: p( y m i) p( y m j) For Equal Model Priors

Overview Parameter Inference PPMs, DCMs Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

Bayes Factors versus p-values Two sample t-test Subjects Conditions

p=0.05 Bayesian BF=3 Classical

Bayesian BF=20 BF=3 Classical

p=0.05 Bayesian BF=20 BF=3 Classical

p=0.01 p=0.05 Bayesian BF=20 BF=3 Classical

Parameter Inference GLMs, PPMs, DCMs Overview Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

Initial Point Free Energy Optimisation Precisions, Parameters,

Parameter Inference GLMs, PPMs, DCMs Overview Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

incorrect model (m 2 ) correct model (m 1 ) u 2 u 2 x 3 x 3 u 1 x 1 x 2 u 1 x 1 x 2 m 2 m 1 Sim ulated data sets -5-4 -3-2 -1 0 1 2 3 4 5 Log model evidence differences Figure 2

LD LD LVF MOG FG FG MOG MOG FG FG MOG LD RVF LD LVF LD LD LG LG LG LG RVF stim. LD LVF stim. RVF stim. LD RVF LVF stim. Subjects m 2 m 1 Models from Klaas Stephan -35-30 -25-20 -15-10 -5 0 5 Log model evidence differences

Random Effects (RFX) Inference 0.8 A log p(y a) n m) r 0.6 0.4 0.2 Subjects 5 10 15 0 1 2 3 4 5 6 Models 20 1 2 3 4 5 6 Models

Initial Point Gibbs Sampling p( r A, y) Frequencies, r Stochastic Method Assignments, A p( A r, Y )

log p(y a) log p(y n m) ) ( ] log ) ( exp[log ' ' n n m nm nm nm m n nm g Mult a u u g r m y p u ) ( 0 Dir r a n nm m m ), ( Y r A p ), ( y A r p Gibbs Sampling

LD LD LVF MOG FG FG MOG MOG FG FG MOG LD RVF LD LVF LD LD LG LG LG LG RVF stim. LD LVF stim. RVF stim. LD RVF LVF stim. Subjects m 2 m 1 11/12=0.92-35 -30-25 -20-15 -10-5 0 5 Log model evidence differences

5 p(r 1 >0.5 y) = 0.997 4.5 4 3.5 3 p(r 1 y) 2.5 2 1.5 1 0.5 r 1 0.843 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 r 1

Parameter Inference GLMs, PPMs, DCMs Overview Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference

PPMs for Models log p( y m) F( q) Log-evidence maps model 1 subject 1 subject N model K Compute log-evidence for each model/subject

PPMs for Models log p( y m) F( q) Log-evidence maps BMS maps subject 1 model 1 subject N q( 0.5) r k 0.941 r k PPM q( r k ) model K Compute log-evidence for each model/subject r k k EPM Probability that model k generated data Rosa et al Neuroimage, 2009

Computational fmri: Harrison et al (Frontiers 2010) Short Time Scale Long Time Scale Primary visual cortex Frontal cortex

Double Dissociations Short Time Scale Long Time Scale Primary visual cortex Frontal cortex

Parameter Inference GLMs, PPMs, DCMs Summary Model Inference Model Evidence, Bayes factors (cf. p-values) Model Estimation Variational Bayes Groups of subjects RFX model inference, PPM model inference