A dynamic partial-equilibrium model of the car market implemented in Julia using SquareModels and Ipopt. The model captures substitution between new and used cars across fuel types (petrol and electric), with habit formation in the used-car market. The car block is solved holding the rest of the economy fixed: non-car demand/prices are exogenous, and new-car supply is treated as perfectly elastic imports.
The household allocates total consumption
Total consumption C
├── Non-car consumption (c_nc)
└── Car-service aggregate (d)
├── New cars (d_new)
│ ├── Petrol
│ └── Electric
└── Used cars (d_used)
├── Petrol (with habit)
└── Electric (with habit)
Total consumption
The model is solved as a partial-equilibrium sequence with no feedback from the car market to the rest of the economy. At each date, total consumption
The car-service aggregate
New cars aggregate over fuel types:
Used cars aggregate over fuel types with habit formation:
The habit term
Let
Used cars of a given fuel type are perfect substitutes,
The user cost of a new car of fuel type
The CES aggregator in this nest is defined over habit-adjusted quantities
The user cost of a used car of fuel type
The third term is the habit premium: holding more used cars of type
The share parameters
| Parameter | Value | Description |
|---|---|---|
| 0.5 | Elasticity: cars vs. non-car | |
| 3.0 | Elasticity: new vs. used | |
| 3.0 | Elasticity: across fuel types (new) | |
| 3.0 | Elasticity: across fuel types (used) | |
| 0.8 | Habit parameter (both fuel types) | |
| 1.0 | Habit-premium discount (fully forward-looking) | |
| 0.04 | Interest rate | |
| 0.25 | First-period depreciation (new to used) | |
| 0.10 | Ongoing used-car depreciation |
The first scenario simulates a 10% reduction in the purchase price of electric cars from 2026 onward. The unfinanced subsidy shifts new-car demand toward electric vehicles, gradually building up the electric used-car stock as cheaper EVs flow through the depreciation pipeline, while all equilibrium prices adjust.
- New cars by fuel type — Electric purchases rise while petrol purchases contract.
- Used-car stock by fuel type — The stock responds with a lag as new electric cars depreciate into the used market; the petrol stock declines as fewer petrol cars enter the pipeline.
- Aggregates — Total new-car purchases increase, funded by the unfinanced subsidy.
- User costs by fuel type — The user cost of new electric cars drops directly with the price reduction; used-car user costs adjust endogenously as stock composition shifts.
- Used-car spot prices by fuel type — The growing stock of electric vehicles depresses electric resale values; used petrol prices edge up as the petrol stock thins.
- New-car purchase prices by fuel type — The exogenous shock: a flat 10% reduction for electric cars, petrol unchanged.
The second scenario pairs the 10% EV subsidy with a constant endogenous ad-valorem tax on petrol cars
The consumer-facing purchase price becomes
The required petrol tax rate depends critically on the substitution elasticities. High fuel-type substitutability (
- New cars by fuel type — The simultaneous tax on petrol and subsidy on electric drives a larger compositional shift than Scenario 1, since both margins push in the same direction.
- Used-car stock by fuel type — The petrol used-car stock declines more steeply as the tax chokes off new petrol inflows at the source.
-
Aggregates — Despite fiscal neutrality, the car aggregate
$d_t$ falls. Both the subsidy and the tax distort relative prices away from their undistorted values, and the CES aggregator registers the combined efficiency loss as a decline in the car-service aggregate. Revenue neutrality balances the budget, not welfare. - User costs by fuel type — A symmetric wedge opens up: petrol user costs rise due to the tax while electric user costs fall, creating a wider gap than the subsidy-only scenario.
- Used-car spot prices by fuel type — The petrol resale price rises as reduced future supply makes the surviving stock more scarce, while the electric resale price falls as subsidized vehicles flood the secondary market.
- Implied tax/subsidy rates — The constant −10% electric subsidy and the endogenous petrol tax that balances revenue in present value.
This analysis measures the market power of new-car sellers by computing the demand elasticity from a permanent 1% exogenous increase in all new-car purchase prices
-
(a) Durability — parameterised by the ongoing used-car depreciation rate
$\delta$ , with the first-period depreciation$\delta_0$ fixed. -
(b) The habit parameter
$h$ — which governs the strength of habit formation in the used-car nest. -
(c) The habit-premium discount
$\beta_h \in [0,1]$ — which controls how forward-looking households are with respect to the habit. When$\beta_h = 1$ the household fully internalises the effect of today's used-car holdings on tomorrow's reference point; when$\beta_h = 0$ the household ignores the forward-looking consequences of the habit (while still experiencing the habit in its utility function).
The metric is the demand elasticity
The elasticity is computed at the impact (short-run dynamic response in 2026) and in the steady state (long-run comparative static).
The share parameters
For each parameter variation, the un-swapped model is solved to obtain a counterfactual equilibrium — an economy with the same preferences (μ's) but different structural parameters. The cost-push shock is then applied on top of this counterfactual equilibrium and the demand response is measured.
| Impact |
SS |
||
|---|---|---|---|
| 0.96 | 0.04 | −0.596 | −0.381 |
| 0.94 | 0.06 | −0.548 | −0.378 |
| 0.92 | 0.08 | −0.519 | −0.376 |
| 0.90 | 0.10 | −0.500 | −0.374 |
| 0.88 | 0.12 | −0.485 | −0.372 |
| 0.84 | 0.16 | −0.464 | −0.370 |
| 0.80 | 0.20 | −0.449 | −0.368 |
| 0.75 | 0.25 | −0.435 | −0.367 |
| 0.70 | 0.30 | −0.424 | −0.366 |
More durable cars reduce market power. Lower
The effect is quantitatively more pronounced in the short run (impact) than in the steady state. The short-run response is larger because the used-car stock is predetermined at impact — it cannot adjust immediately — so the full forward-looking anticipation of future resale value changes is priced in at once, amplifying the demand response. At
| Impact |
SS |
|
|---|---|---|
| 0.00 | −0.679 | −0.382 |
| 0.20 | −0.641 | −0.380 |
| 0.35 | −0.610 | −0.379 |
| 0.55 | −0.565 | −0.376 |
| 0.70 | −0.527 | −0.375 |
| 0.80 | −0.500 | −0.374 |
| 0.85 | −0.484 | −0.374 |
| 0.90 | −0.468 | −0.374 |
Stronger habits increase market power. Higher
| Impact |
SS |
|
|---|---|---|
| 0.0 (myopic) | −0.542 | −0.385 |
| 0.3 | −0.530 | −0.382 |
| 0.5 | −0.521 | −0.380 |
| 0.7 | −0.513 | −0.378 |
| 1.0 (fully forward-looking) | −0.500 | −0.374 |
More forward-looking households face less elastic demand — i.e., new-car sellers have more market power. When
When
The effect is about 4 percentage points in the impact elasticity and 1 pp in the SS elasticity between the fully myopic and fully forward-looking cases.
| Channel | Effect on market power | Mechanism |
|---|---|---|
| Durability ↑ | ↓ Less market power | Durable goods compete with themselves (Coase conjecture) |
| Habits ↑ | ↑ More market power | Lock-in reduces competitive pressure from used cars; effect saturates at high |
| Forward-lookingness ↑ | ↑ More market power | Internalising habit premium raises the effective cost of used cars, weakening the used-car outside option |
julia --project=. cars.jl
julia --project=. market_power.jlcars.jl solves the baseline calibration, runs both counterfactual scenarios, and saves plots to cars_baseline.svg, cars_scenario1.svg, and cars_scenario2.svg.
market_power.jl calibrates the model once at baseline parameters, computes the demand elasticities for each parameter variation, and saves the three-panel figure to market_power.svg.
Both scripts share the model definition from car_model.jl.
- JuMP + Ipopt — nonlinear optimization
- SquareModels — model definition and solution framework
- CairoMakie — plotting
- Coase, R. H. (1972). Durability and Monopoly. Journal of Law and Economics, 15(1), 143-149.
- Stokey, N. L. (1981). Rational Expectations and Durable Goods Pricing. The Bell Journal of Economics, 12(1), 112-128.
- Berry, S., Levinsohn, J., & Pakes, A. (1995). Automobile Prices in Market Equilibrium. Econometrica, 63(4), 841-890.
- Goldberg, P. K. (1995). Product Differentiation and Oligopoly in International Markets: The Case of the U.S. Automobile Industry. Econometrica, 63(4), 891-951.
- Bento, A. M., Goulder, L. H., Jacobsen, M. R., & von Haefen, R. H. (2009). Distributional and Efficiency Impacts of Increased U.S. Gasoline Taxes. American Economic Review, 99(3), 667-699.
- Constantinides, G. M. (1990). Habit Formation: A Resolution of the Equity Premium Puzzle. Journal of Political Economy, 98(3), 519-543.
- Ravn, M., Schmitt-Grohé, S., & Uribe, M. (2006). Deep Habits. Review of Economic Studies, 73(1), 195-218.