I use Python as a glue between programs. I use it as well to produce graphics and export results to LaTeX. Recently, I started using it to do animated graphs. Below are a couple of examples to perform certain tasks.

My preferred distribution of Python for computing is Annaconda. Easy to install and provides a ton of libraries useful for my work.

I intend on populating this page with code. Just be patient.

  • Transforming a K-year transition matrix into a J-year transition matrix (, markov.pdf)
  • Teaching expected utility and the risk premium (using Bokeh)