Personal Site

Welcome to the Mathematica Interface for CosmoMC v1.1.

With this tool you can:
1) Analyze your MCMC chains made with CosmoMC or downloaded from the WMAP site.
2) Use it as an educational tool, eg while teaching a cosmology class.
3) Harness the power of Mathematica and apply it to your cutting edge research.

Hint 1: Click on the photos for a slideshow. Then use the left and right arrows to navigate!
Hint 2: Internet Explorer sucks and doesn't render this page correctly, so please use a real browser (Firefox, Chrome, Safari etc).

Snapshots of the Interface
mifcmc mifcmc mifcmc mifcmc









Detailed instructions:
1) Grab the code from here.
2) Unzip the file in some folder.
3) Open "chains_interface_v1.nb" with Mathematica. Version 8.0.1+ recommended.
4) Evaluate the cell that contains "Chains[]".
5) If you get a message about evaluating "all the initialization cells", click yes.
6) Click the button "Open WMAP chain..." or "Open CosmoMC chain..." and navigate to a folder where you keep your chains. For testing purposes I have included a sample CosmoMC chain in the ".\test_chain" directory.
7) To save a plot right click on it and choose "Save graphic as...". Then choose the name of the file, the filetype (pdf, eps etc), a folder where you intend to put the figure and click OK.
8) Have fun!

Developed in Windows 7 with Mathematica 8.0.1.

New in this version (v1.1):
1) Fixed issue where some of the Greek letters are not properly displayed in the 2D tab.

Current issues with this version (v1.1):
1) You have to quit the kernel before loading a new chain. This may be bypassed temporarily by assigning a new kernel, other than Local, to the notebook. This way, even if you quit the kernel you will not lose all your other calculations.
2) Linux users might experience some lag (<0.5secs).
3) Mathematica on Macs may give a warning in the first tab about assigning "a raw object", however the rest of the code seems to be working OK.

The lag on Linux seems to be an OS specific problem, ie the Linux version of Mathematica does not handle Dynamic content as well as it does on Windows. I have asked for help from Wolfram Research to see if it can somehow be fixed.

A thread for reporting problems etc has been set up over at the CosmoCoffee forum.

---------------------

NEW: There are a couple of new CosmoMC versions out (March 2013 and April 2013), which may be incompatible with these scripts, so use at your own risk...

An example code (with mock data) that can read the data created by "getdist" (CosmoMC's program that makes contours etc) and makes nice Mathematica plots instead, can be found here.

Parts of the code (the Confid2D[] function) have been used in the "Mathematica Interface for CosmoMC" program (mifcmc) as well. The difference between this code and "mifcmc" is that the latter makes the plots directly from the chains but the former gets them from the data created by "getdist". Both approaches have different pros and cons, but the results should be more or less the same.

More updates coming soon!