Simon Premoze

Homework #1

CS684


Page 1


Page 2


Page 3


Page 4


Page 5


Page 6


Page 7


Page 8


Page 9

I finally figured out how to do graphs in Matlab. Ignore, pathetic stuff on page 8 and 9.

Uniform sampling graph


Stratified sampling graph


Importance sampling graph


Stratified importance sampling graph


Programs used for MC calculation:

Uniform sampling


Stratified sampling


Importance sampling


Stratified importance sampling