Before running the code, make sure to check out and read the corresponding tutorials provided in the PDFs (the importance sampling tutorial is not up yet - coming soon!). These indicate - among other things - where in the code the actual algorithm is being implemented (vs. the part of the code that plots) and where the user-defined inputs are.
When you are ready to run the code, please follow the next steps:
- Open your terminal and
cd
to the location that your file is in. - Run
ipython
- Type
%matplotlib qt
- Type
%run rejectionSampling.py
or%run importanceSampling.py
or%run MCMC.py
And the animation should start.