codes

Teaching Materials for Intro-Micro

Some Python codes (in jupyter notebook) plotting graphs for introductory microeconomics.

Utility functions and indifference curves

A jupyter notebook file in Github.

  • indifference curves as contours of a utility function (3D-plot)

  • monotone transformation of a utility function ( w/ contours on the bottom)

  • CES function changing from linear to Leontief (animation)

  • examples of homothetic and non-homothetic utility functions (contours in 2D, subplot using for-loop)

Optimization

A jupyter notebook file in Github

  • An example of a saddle point (3D animation exported to gif)

Normal/inferior goods; Substitution/Income/Total Effects

A jupyter notebook file in Github

  • Marshallian demand of inferior goods and normal goods.

('fsolve' in 'scipy' to derive the optimal consumption bundle)

  • Substitution/Income/Total Effects. (arrows and annotations)