lecture-python-intro
lecture-python-intro copied to clipboard
[intro_supply_demand] Improvement suggestions
trafficstars
This PR collects feedback from the reading group on intro_supply_demand.
Code
- [ ] Remove classes and use
NamedTuple - [ ] Add more explanation and comments on functions we used in the exercise
scipy.optimize.minimize_scalarandscipy.optimize.newton
Content
- [x] Explain willingness to pay and the actual price. We can add a visualization showing consumers' willingness to pay and calculate the discrepancy to the actual price (Can we run a simulation?).
Thanks @HumphreyYang, nice summary.
We can add a visualization showing consumers' willingness to pay and calculate the discrepancy to the actual price
Perhaps we could do this with a discrete bar graph first, so that readers can understand the integral is just an approximation of a sum.
Also, could have an introductory discussion of integration as computing area under a curve, and provide the simple integration rules that we are going to use.