Skip to main content
. 2019 May 24;15(5):e1006299. doi: 10.1371/journal.pcbi.1006299

Fig 2. Generative model of Bayesian RSA.

Fig 2

The covariance structure U shared across all voxels in an ROI is treated as a hyper-parameter of the unknown response amplitude β. For voxel k, the BOLD time series Yk are the only observable data. We assume Yk is generated by task-related activity amplitudes βk (the k-th column of β), intrinsic fluctuation amplitudes β0k and spatially independent noise ϵk: Yk = Xβk + X0 β0k + ϵk, where X is the design matrix and X0 is the set of time courses of intrinsic fluctuations. ϵk is modeled as an AR(1) process with autocorrelation coefficient ρk and noise standard deviation σk. βk depends on the voxel’s pseudo-SNR sk and noise level σk in addition to U: βkN(0, (sk σk)2 U). By marginalizing over βk, β0k, σk, ρk and sk for each voxel, we can obtain the likelihood function p(Yk|X, X0, U) and search for U which maximizes the total log likelihood logp(Y|X,X0,U)=knVlogp(Yk|X,X0,U) of the observed data Y for all nV voxels. The optimal U^ can be converted to a correlation matrix, representing the estimated similarity between patterns.