CosmoMC: Fisher Matrix

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Maria Beltran
Posts: 2
Joined: November 23 2004
Affiliation: University of Chicago

CosmoMC: Fisher Matrix

Post by Maria Beltran » November 23 2004


Does anybody know whether the actual Fisher matrix of the posterior distribution can be calculated using CosmoMC?
Since this distribution is not exactly a multivariate gaussian, its Fisher matrix should be different from the covariance matrix, shouldn't it?


Antony Lewis
Posts: 1685
Joined: September 23 2004
Affiliation: University of Sussex

Re: CosmoMC: Fisher Matrix

Post by Antony Lewis » November 23 2004

In recent CosmoMC versions you can set

estimate_propose_matrix = T

in the .ini file. This will find the approx best fit point (by conjugate gradients) and then work out the inverse Hessian about this point by taking numerical derivatives. It outputs the result to a file called


The program will then continue with a normal MCMC run, using the inverse Hessian for the proposal density matrix. If you just want the Hessian you can kill the process after the local_invhessian file is produced.

Post Reply