[ Home ]   [ Research ]   [ IO Montreal Group ]   [ CV ]   [ Interactive Graphs ]   [ Teaching ]

Mario Samano

Associate Professor of Economics

Interactive Graphs for Microeconomics

I wrote this interactive webpage using the amazing JSXGraph and the Plotly libraries. Please enjoy!

Jump to:



1. Horizontal sum of demand curves

Drag the intersection points of the demand curves for markets A and B with the axis and see how the aggregate demand changes.





2. Competitive firm

Drag the demand or the supply curve on the second panel, which represents the market, and see how the market price affects profits given some fixed costs curves for a typical firm represented on the first panel. The cost function is C(q) = 1 + q + 0.5q^2.





3. Monopolist

Drag the demand curve and see how profits are affected. The cost function is C(q) = 1 + q + 0.5q^2





4. Cournot-Nash Equilibrium (1)

Change the parameter values using the sliders and see how the equilibrium quantities and price change. Parameters a and b are the intercept and the absolute value of the market demand curve's slope, respectively. Parameters c1 and c2 represent the constant marginal costs for Firm 1 and Firm 2, respectively. Observe how the value of the demand curve's slope does not affect the equilibrium price.





5. Cournot-Nash Equilibrium (2)

Drag the vertical dashed lines to change the output levels, q1 and q2, to see how the two firms' profit functions change and by how much the output levels are off from their optimal point. Change with the sliders the parameter values as well. Parameters a and b are the intercept and the absolute value of the market demand curve's slope, respectively. Parameters c1 and c2 represent the constant marginal costs for Firm 1 and Firm 2, respectively.





6. The El Farol Bar Problem

Read this.

Click on the button below to change the first four numbers that represent the attendance to the bar in the first four time periods. The attendance in the rest of the periods is calculated following the deterministic rules of six type of individuals (not equally represented in the set of 100 people that can potentially go to the bar).




7. Hyperbolic Discounting

Press the buttons to compare the effect of the parameter r and the hyperbolic discounting parameter γ.

Exponential: discount factor = 1 / (1 + r)^t
Quasi-hyperbolic: discount factor = γ / (1 + r)^t for t > 0, and 1 if t = 0
Hyperbolic: discount factor = 1 / (1 + γ t)

Zoom-in with the help of the slider.