Teaching

Office hours

My office hours are:

  • Tuesdays: 10.30am to 11.30am
  • Thursdays: 10.30am to 11.30am

Office MSB 2.15

Lecture notes

Lecture notes will be made available here shortly before the material is taught in class.

ST337/ST405: Bayesian forecasting and intervention

*see instructions in the following section

Running the Python scripts

Instructions for using the Python scripts:

  1. With Anaconda (possible on all platforms, tested on MS Windows 10)
    • install Anaconda
    • run the Anaconda Prompt from the start menu and enter:
      conda install bokeh
    • move to the directory where the scripts are, e.g.:
      cd Documents\ST337_plots
    • then, for instance, if you want to run the Python script StandardDistributions.py:
      bokeh serve StandardDistributions.py
      this will give an address of the form http://localhost:5006/StandardDistributions that you can copy/paste into the web browser of your choice.
  2. Without Anaconda (tested but Linux or Mac only)
    • install the package python3.6:
      sudo apt-get update
      sudo apt-get install python3-venv
    • run the following to create a virtual environment (safer) and install the required packages:
      python3 -m venv ST337_plots
      cd ST337_plots
      source bin/activate
      pip install --upgrade pip
      pip install --upgrade bokeh
      pip install --upgrade scipy
    • then, for instance, if you want to run the Python script StandardDistributions.py:
      bokeh serve StandardDistributions.py
      this will give an address of the form http://localhost:5006/StandardDistributions that you can copy/paste into the web browser of your choice
    • once you are done, you can exit the virtual environment with:
      deactivate