Bayesian inference

29
Bayesian inference Jean Daunizeau Wellcome Trust Centre for Neuroimaging 16 / 05 / 2008

description

Bayesian inference. Jean Daunizeau Wellcome Trust Centre for Neuroimaging 16 / 05 / 2008. Overview of the talk. 1 Probabilistic modelling and representation of uncertainty 1.1 Introduction 1.2 Bayesian paradigm 1.3 Specification of priors 1.4 Hierarchical models - PowerPoint PPT Presentation

Transcript of Bayesian inference

Page 1: Bayesian inference

Bayesian inference

Jean Daunizeau

Wellcome Trust Centre for Neuroimaging

16 / 05 / 2008

Page 2: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 3: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 4: Bayesian inference

Introduction

Page 5: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 6: Bayesian inference

Bayesian paradigm (1) : theory of probability

Degree of plausibility desiderata:- should be represented using real numbers (D1)- should conform with intuition (D2)- should be consistent (D3)

a=2b=5

a=2

• normalization:

• marginalization:

• conditioning :(Bayes rule)

Page 7: Bayesian inference

Bayesian paradigm (2) : Likelihood and priors

generative model m

Likelihood:

Prior:

Bayes rule:

Page 8: Bayesian inference

Bayesian paradigm (3) : Model comparison

“Occam’s razor” :

Principle of parsimony :« plurality should not be assumed without necessity »

mo

de

l evi

de

nce

p(y

|m)

space of all data sets

y=f(

x)y

= f(

x)

x

Model evidence:

Page 9: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 10: Bayesian inference

Specification of priors

lack of information/entropy

order/structure

priors = population behaviour / information available before having observed the data

• subjectivist approach : “informative” priors• objectivist approach : “non-informative” priors

Principle of maximum entropy :

find the probability distribution functionwhich maximizes the entropy under some constraints (normalization, expectation, …)

Page 11: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 12: Bayesian inference

Hierarchical models (1) : principle

••• hierarchy

causality

Page 13: Bayesian inference

Hierarchical models (2) : directed acyclic graphs (DAGs)

Page 14: Bayesian inference

Hierarchical models (3) : univariate linear hierarchical model

•••

prior posterior

Page 15: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 16: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 17: Bayesian inference

Sampling methods

MCMC example: Gibbs sampling

Page 18: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 19: Bayesian inference

Variational methods

VB/EM/ReML: find (iteratively) the “variational” posterior q(θ)which maximizes the free energy F(q)under some mean-field approximation:

Page 20: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 21: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 22: Bayesian inference

aMRI segmentation

grey matterPPM of belonging to… CSFwhite matter

1

2

3

212

223

iiy

class variances

class priorfrequencies

ith voxel label

class means

ith voxel value

1

2

3

212

223

iiy

1

2

3

212

223

iiy

class variances

class priorfrequencies

ith voxel label

class means

ith voxel value

Page 23: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 24: Bayesian inference

fMRI time series analysiswith spatial priors

observations

GLM coeff

prior varianceof GLM coeff

prior varianceof data noise

AR coeff(correlated noise)

ML estimate of W VB estimate of W

aMRI smoothed W (RFT)

Page 25: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 26: Bayesian inference

Dynamic causal modelling

state-space formulation:

Page 27: Bayesian inference

Overview of the talk

1 Probabilistic modelling and representation of uncertainty

1.1 Introduction

1.2 Bayesian paradigm

1.3 Specification of priors

1.4 Hierarchical models

2 Numerical Bayesian inference methods

2.1 Sampling methods

2.2 Variational methods (EM, VB)

3 SPM applications

3.1 aMRI segmentation

3.2 fMRI time series analysis with spatial priors

3.3 Dynamic causal modelling

3.4 EEG source reconstruction

Page 28: Bayesian inference

EEG source reconstruction

Page 29: Bayesian inference

Homoapriorius

Homopragmaticus

Homofrequentistus

Homosapiens

Homobayesianis

y ,y

y

y