Home / Labs
Labs
14 interactive labs written in plain JavaScript. Each lives in the last tab of its chapter and has its own defaults for every mode.
Budget, preferences and utility
Chapter 1CHAPTER 01
Budget set and policy lab
Draw the budget line, then add a quantity tax, a subsidy, a lump-sum tax or a ration and watch the set change.
CHAPTER 01Preferences and indifference curves
Pick a utility function, move the reference bundle and read off the marginal rate of substitution.
Optimal choice and individual demand
Chapter 2Slutsky decomposition and market demand
Chapter 3CHAPTER 03
Slutsky decomposition
Split a price change into substitution and income effects, or classify a good from your own data.
CHAPTER 03Market demand and elasticity
Linear and constant-elasticity demand, revenue, marginal revenue and horizontal summation.
Choice over time and under uncertainty
Chapter 4CHAPTER 04
Intertemporal choice and present value
Two-period saving or borrowing, present values and the real interest rate.
CHAPTER 04Risk, expected utility and insurance
Compare expected value, expected utility, certainty equivalent and the best insurance cover.