Mathematical Model of a Bubble
Posted: Sat Mar 24, 2007 7:13 pm
I'm playing with some mathematical models to explore what is needed for a bubble. This is a first version and very simple. I will post more as I keep playing with the numbers.
v1. Assume price increases linearly with demand and demand increases linearly with a change in price.
Demand(t) = 50+PriceChange(t-1)/K
Price(t) = 1000*Demand(t)
PriceChange(t) = Price(t) - Price(t-1)
PriceChange(0) = 1000
Results for K=2000
demand price price change
50.00 50000.00 1000.00
50.50 50500.00 500.00
50.25 50250.00 -250.00
49.88 49875.00 -375.00
49.81 49812.50 -62.50
49.97 49968.75 156.25
50.08 50078.13 109.38
50.05 50054.69 -23.44
49.99 49988.28 -66.41
49.97 49966.80 -21.48
49.99 49989.26 22.46
50.01 50011.23 21.97
50.01 50010.99 -0.24
50.00 49999.88 -11.11
49.99 49994.45 -5.43
50.00 49997.28 2.84
50.00 50001.42 4.14
50.00 50002.07 0.65
50.00 50000.32 -1.74
50.00 49999.13 -1.20
50.00 49999.40 0.27
50.00 50000.14 0.73
The price oscillates up and down, but eventually settles to the base price I created in the function. This is NOT evidence that real property prices will do the same -- this model is way too simple.
As K increases the price settles more quickly since demand responds less to change in price. If K<1000, the oscillations grow to infinity. If K=1000 then the system oscillates at a constant amplitude. The price jumps the entire amplitude each time step. There is something wrong with the model there. Demand probably should not be based only on the last observation. An average of the past few observations might work better. I may also add a delay between price and demand to account for observation delay.
The more interesting change will be to make price increase non-linearly with demand.
v1. Assume price increases linearly with demand and demand increases linearly with a change in price.
Demand(t) = 50+PriceChange(t-1)/K
Price(t) = 1000*Demand(t)
PriceChange(t) = Price(t) - Price(t-1)
PriceChange(0) = 1000
Results for K=2000
demand price price change
50.00 50000.00 1000.00
50.50 50500.00 500.00
50.25 50250.00 -250.00
49.88 49875.00 -375.00
49.81 49812.50 -62.50
49.97 49968.75 156.25
50.08 50078.13 109.38
50.05 50054.69 -23.44
49.99 49988.28 -66.41
49.97 49966.80 -21.48
49.99 49989.26 22.46
50.01 50011.23 21.97
50.01 50010.99 -0.24
50.00 49999.88 -11.11
49.99 49994.45 -5.43
50.00 49997.28 2.84
50.00 50001.42 4.14
50.00 50002.07 0.65
50.00 50000.32 -1.74
50.00 49999.13 -1.20
50.00 49999.40 0.27
50.00 50000.14 0.73
The price oscillates up and down, but eventually settles to the base price I created in the function. This is NOT evidence that real property prices will do the same -- this model is way too simple.
As K increases the price settles more quickly since demand responds less to change in price. If K<1000, the oscillations grow to infinity. If K=1000 then the system oscillates at a constant amplitude. The price jumps the entire amplitude each time step. There is something wrong with the model there. Demand probably should not be based only on the last observation. An average of the past few observations might work better. I may also add a delay between price and demand to account for observation delay.
The more interesting change will be to make price increase non-linearly with demand.