5.7.2 The Price Model
Last updated
Last updated
The token price model we have developed is essentially a stochastic differential equation model based on Geometric Brownian Motion (GBM). It integrates elements of supply and demand, as well as a yield curve derived from the Nelson-Siegel-Svensson model, to predict the token price over time.
This approach allows for the consideration of multiple variables affecting the price:
Supply and Demand: The model considers the cumulative supply of tokens () and the total demand for tokens (). The difference between these two factors impacts the mean return () of the token price.
Entropy: The model also factors in entropy, which represents the randomness or uncertainty in the system. Higher entropy accelerates the token price growth rate, while lower entropy slows it down.
Yield Curve: The yield curve (), derived from the Nelson-Siegel-Svensson model, represents interest rates over time and is used to simulate the volatility of the token price.
Viscosity Factor: As the price approaches an upper limit, a viscosity factor is applied to slow down the growth and prevent the price from exceeding this limit.
Random Fluctuations: Random fluctuations in price are accounted for by incorporating a stochastic term , following a normal distribution.
The model algorithm:
Initialization:
o Token price is initialized to which is the minimum token price limit.
o is initialized with random normal values scaled by sqrt(dt) (square root of time step).
Iteration over time: The model iterates over time from the second time step to the end (since the first time step was used for initialization).
o Growth Ratecalculation: , the growth rate of token price, is calculated for each time step. It is determined by the entropy of the system and the difference between total demand for tokens and cumulative supply of tokens. The entropy reflects the unpredictability of the system, while the demand-supply difference reflects the scarcity or abundance of tokens in the system. A scaling factor () is used to adjust the effect of entropy.
o Volatility () calculation: , the volatility of token price, is calculated for each time step. It is determined by the yield curve and scaled by a factor to adjust the level of price fluctuations.
o Token Price Change Calculation: The change in token price for each time step is calculated using a formula similar to geometric Brownian motion, which includes the growth rate, volatility, and a random factor .
Viscosity Effect: If the token price exceeds a certain threshold close to the maximum limit , a viscosity factor is applied to slow down the price growth.
Token Price Adjustment: After calculating the new token price, it is adjusted to ensure it stays within the predefined minimum and maximum limits and .