Week 12: April 24 - 28¶
Non-Uniform Random Numbers¶
The most interesting and useful probability distributions are not “uniform”, although we do know an exact formula for them. We would therefore like a way to generate samples from any probability distribution. This week we develop a way to do this through an appropriate transformation of a uniform random number.
Week 12 Notebook¶
NumPy¶
- numpy.random.randint
- numpy.random.normal
- numpy.random.randn
- numpy.random.choice
- argmin, argmax
Matplotlib¶
- axvline
- axhline
Quiz 10: NumPy Array Operations¶
- Vectorized code
- Axis-dependent operations: sum, mean, amin, amax