Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.17 KB

cornerplot

cornerplot takes a nSamples-by-nDimensions array, and makes density plots of every combination of the dimensions, and histograms for each dimension. This is especially useful when using MCMC; you can see how the parameters in your model interact, and whether there are any tradeoffs between them.

Inspired by corner.py by Dan Foreman-Mackey.

Usage

You can obtain a plot like that pictured to the left with cornerplot(randn(500, 3)).








You can also label parameters and mark true parameter values, as in cornerplot(randn(500, 3), {'a', 'b', 'c'}, randn(1, 3)).







Installation

Just put cornerplot.m in your MATLAB path. You also need to install the free kernel density estimator kde2d by Zdravko Botev.