.. Created by Adam Cunnningham on Sat Dec 10 2016. **Week 11: April 10 - 14** ========================== Generating Random Numbers ------------------------- Sequences of random numbers are frequently needed to simulate processes in which outcomes are uncertain. Although computers work on deterministic principles, we see that they can be used to generate "pseudo-random" numbers that satisfy various tests for randomness. Monte Carlo Methods ------------------- Monte Carlo methods use sequences of random numbers to obtain numerical results for functions or processes that are otherwise difficult to analyze. We apply such methods to integration, to estimating probabilities, and to a simple model of stock price movements. NumPy ----- - **random.rand** - Axis-dependent operations: **sum**, **mean**, **amin**, **amax** Matplotlib ---------- - **hist** - **polar** Quiz 10: NumPy Array Operations ------------------------------- - Vectorized code - Axis-dependent operations: **sum**, **mean**, **amin**, **amax**, **argmin**, **argmax** :download:`Sample Quiz 10 <../Quizzes/Quiz10Sample.pdf>`