Log-periodic power law singularity model and Tesla stock

  • And show how one may react to all the hype about Tesla (at least, from the model point of view)

Theory

The model is about exponential growth. In finance exponential growth is most likely to occur during financial bubbles. The essence of exponential growth: the rate of growth is proportional to the quantity itself.

At first glance, Tesla stock fits nicely in this pattern.

The second pillar — nothing can grow exponentially forever, therefore there must exist a point in time that this pattern breaks. Let’s call it tc — critical time.

Now, let’s perform the most beloved trick in econometrics and finance — linearize the time series by taking logarithm of stock price.

The logarithm of price is not quite linear: it has ups and downs and we need to somehow change the regression to account for it. Logical choice is to use trigonometric functions, like cosines. And also we should remember about critical point in time when this pattern breaks.

Let’s construct a function that can account for both effects:

It’s a first approximation to LPPLS model. We have a linear part and cosines part. Logarithm under cosines helps to model variability: it is approaching infinity as the time gets closer to the end. Moreover, ω helps to model the number of waves, and C - their sizes. If we fit this equation using Excel solver, results should be similar to those below

This equation predicts several outcomes:

  • secondly, waves become more short-lived.

Several improvements can be made to come to the canonical LPPLS model. At first, instead of linear part we can insert power part, secondly, to connect the behavior of linear and cosines part — multiply them.

Power part helps to model super-exponential growth, i.e. around the critical time the stock rises above any expectations (“mania” period).

A few words about restrictions to facilitate the optimization process:

  • 0<β<1 (according to practitioners, it can be further restricted to 0,2<β<0,8)
  • 5<ω<15
  • t is measured as a fractions of year (t = 1/365). For instance, 1.3 means 1.3 years from the start of the data.

Both models predict 2–2,5x increase around New Year: 800–100 USD per share. Maybe, it as an inflection point. This model also predicts 4000 USD next March (10x greater), which 99,9999% will not happen.

Conclusion

LPPLS model is a simple tool that can be used to measure the possibilities of future growth in fast growing assets, like gold, Tesla, Amazon, Zoom etc. The main difficulty is to calibrate coefficients, in Excel it can be made by running solver from different starting sets and narrowing coefficients restrictions.

A book with theory and examples: Why Stock Markets Crash: Critical Events in Complex Financial Systems

--

--

--

Finance + Data + Python.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Anime recommendations by using Collaborative Filtering

The Most Essential Skills for a Data Scientist

4th of July Data Visualized: Top 5 Cities that Flocked to the Fireworks

Leverage Data to Drive Decisions with Hypothesis Testing

Image of the google app on an iphone

Data analysis — best practices

Big Query partitioned tables aren’t so magical

Header image: bigquery, calendar and clouds

Data Scientist: my code snippets

A journey into the most accurate earthquake forecast model (so far)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrey Babynin

Andrey Babynin

Finance + Data + Python.

More from Medium

Why the Ultimate Trading Strategy isn’t a Single Strategy — It’s Tool Belt

The Commodity Report #57

Why the media oversimplified the interpretation of the yield curve

Federal Reserve Hikes Up Interest Rates