Skip to content

Pattern Component Modelling toolbox for multivariate analysis

License

Notifications You must be signed in to change notification settings

jdiedrichsen/pcm_toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c72c0b · Mar 1, 2025
Aug 23, 2022
Dec 21, 2023
Oct 9, 2023
Apr 14, 2023
Dec 2, 2017
Dec 30, 2017
Mar 23, 2022
May 11, 2017
Dec 5, 2022
Aug 12, 2016
Dec 5, 2022
Dec 5, 2022
Dec 5, 2022
Dec 5, 2022
Dec 5, 2022
Jan 10, 2021
Sep 11, 2017
Sep 5, 2017
Aug 12, 2016
Nov 21, 2017
Jan 27, 2017
Mar 1, 2025
Feb 21, 2023
Nov 19, 2017
Jun 17, 2019
Jun 28, 2019
Sep 15, 2016
Dec 5, 2022
Feb 24, 2018
Dec 29, 2017
Nov 7, 2017
Mar 30, 2019
Apr 26, 2023
May 5, 2020
Sep 29, 2017
Aug 23, 2022
Dec 4, 2017
Mar 27, 2020
May 5, 2020
Dec 5, 2022
Jan 27, 2017
Dec 4, 2019
Mar 30, 2019
Sep 14, 2017
Feb 27, 2017
Oct 3, 2019
Nov 27, 2017
Sep 1, 2017
Nov 15, 2020
Nov 15, 2020
Jan 10, 2021
Nov 20, 2020
Nov 20, 2020
Mar 27, 2020
Aug 12, 2022
Oct 21, 2016
Jun 17, 2019
Aug 23, 2022
Jan 4, 2018
Feb 27, 2017
May 5, 2020
Sep 5, 2017
Apr 5, 2022
Dec 31, 2020
Dec 31, 2020
Dec 31, 2020
Dec 31, 2020
Apr 5, 2022
Jan 27, 2017
Jan 27, 2017
Dec 31, 2020
Jan 27, 2017
Oct 9, 2017

Repository files navigation

Pattern Component Modelling toolbox (Matlab)

Pattern component modeling (PCM) is a likelihood approach for evaluating representational models - models that specify how complex patterns of neural activity relate to visual stimuli, motor actions, or abstract thoughts. Similar to encoding models, PCM evaluates the ability of models to predict novel brain activity patterns. In contrast to encoding models, however, the activity of individual voxels across conditions (activity profiles) is not directly fitted. Rather, PCM integrates over all possible activity profiles and computes the marginal likelihood of the data under the activity profile distribution specified by the representational model. By using an analytical expression for the marginal likelihood, PCM allows the fitting of flexible representational models, in which the relative strength and form of different feature sets can be estimated from the data.

This repository is for the MATLAB version. For a Python verion of this toolbox, see PcmPy.

Documentation

Full documentation can be found under in the documentation folder.

Tutorials

We have created three tutorials as part of this toolbox. These three examples were included in a publication on this toolbox (Diedrichsen et al., 2018). The tutorials can be accessed under the recipe_correlation, recipe_finger, and recipe_nonlinear folders.

Licence and Acknowledgements

The PCM toolbox is being developed by members of the Diedrichsenlab including Jörn Diedrichsen, Spencer Arbuckle, Eva Berlot, and Atsushi Yokoi. It is distributed under MIT License, meaning that it can be freely used and re-used, as long as proper attribution in form of acknowledgments and links (for online use) or citations (in publications) are given. The relevant references are:

  • Diedrichsen, J., Yokoi, A., & Arbuckle, S. A. (2018). Pattern component modeling: A flexible approach for understanding the representational structure of brain activity patterns. Neuroimage. 180(Pt A), 119-133. [link]
  • Diedrichsen, J., Ridgway, G., Friston, K.J., Wiestler, T., (2011). Comparing the similarity and spatial structure of neural representations: A pattern-component model. Neuroimage. [link]

For more theoretical background:

  • Diedrichsen, J. (2018). Representational models and the feature fallacy. In M. S. Gazzaniga (Ed.), The Cognitive Neurosciences. [link]
  • Diedrichsen, J., & Kriegeskorte, N. (2017). Representational models: A common framework for understanding encoding, pattern-component, and representational-similarity analysis. PLoS Comput Biol. [link]