Day 16 - Thursday, May 22, 2014

Summary: Pseudo-random Numbers and Monte Carlo Simulations


These tours were posted on PolyLearn early on May 22, so some students may have been able to complete them before class, but not all.


1. Open terminal, practice workflow:

$ cd PHYS202-S14
$ git pull origin master
$ git status
$ mkdir RandomNumbers
$ mkdir MonteCarlo
$ ipynb

2. Navigate to the RandomNumbers directory and create a new notebook called RandomNumbersTour with title cell (Heading 1) "Random" Numbers.

3. Open the "Random Numbers" webpage on PolyLearn in one Browser Window. Follow the self-guided tour, entering code into your RandomNumbersTour notebook as you go. Add markdown cells with your notes, if you like.

No copy/paste!

Type the commands yourself to get the practice doing it. This will also slow you down so you can think about the commands and what they are doing as you type them.

4. Navigate to the MonteCarlo directory and create a new notebook called MonteCarloTour with title cell (Heading 1) Monte Carlo Sampling and Simulation.

5. Open the "Monte Carlo Sampling" webpage on PolyLearn in one Browser Window. Follow the self-guided tour, entering code into your MonteCarloTour notebook as you go. Add markdown cells with your notes, if you like.

No copy/paste!

Type the commands yourself to get the practice doing it. This will also slow you down so you can think about the commands and what they are doing as you type them.

6. At the end of the self-guided tours open the "Random Number Execrises" and "MC Sampling Exercises" pages on PolyLearn and start working on them. They will be due as HW by Wednesday, May 28, 2014 at 11:59pm.

5. Before leaving, save your work in the notebook, then practice your workflow:

$ git status
$ git add .
$ git commit -m "<summary message goes here>"
$ git push origin master
$ git status

Check github to be sure the work got there so you have it for the weekend.


All content is under a modified MIT License, and can be freely used and adapted. See the full license text here.