CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

CosmoMC: drawing samples according to a MVNormal distribution
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
gongbo zhao



Joined: 04 Jan 2005
Posts: 69
Affiliation: ICG, Portsmouth

PostPosted: September 26 2016  Reply with quote

Dear Antony and all,

Suppose I want to draw samples for a set of parameters which obey a given multivariate Gaussian distribution, is it easy to hack CosmoMC to do this? I see there is a patch for this purpose for early cosmomc versions (https://sites.google.com/site/adambmantz/work/cosmomc_priors#version), and I am wondering if it is easier to do it with new versions? It would be great if you could help with instructions.

Many thanks,
GB
Back to top
View user's profile [ Hidden ] Visit poster's website
Antony Lewis



Joined: 23 Sep 2004
Posts: 1278
Affiliation: University of Sussex

PostPosted: September 27 2016  Reply with quote

You can set 'test_likelihood=T. This will use as a likelihood your prior bounds and a Gaussian given by the covariance matrix (propose matrix) supplied.

Or you can use generic_mcmc=T and write your own in Generic_GetLogLikeMain.
Back to top
View user's profile [ Hidden ] Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.