This is a course assignment for SYDE 655 at the University of Waterloo.
A rendered version of the LaTex document can be found here.
pip install numpy matplotlib memoize
python gambling_problem.py
Graphs found in the paper is generated in the current directory.