Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Python for Finance Cookbook - Second Edition

You're reading from  Python for Finance Cookbook - Second Edition

Product type Book
Published in Dec 2022
Publisher Packt
ISBN-13 9781803243191
Pages 740 pages
Edition 2nd Edition
Languages
Author (1):
Eryk Lewinson Eryk Lewinson
Profile icon Eryk Lewinson

Table of Contents (18) Chapters

Preface Acquiring Financial Data Data Preprocessing Visualizing Financial Time Series Exploring Financial Time Series Data Technical Analysis and Building Interactive Dashboards Time Series Analysis and Forecasting Machine Learning-Based Approaches to Time Series Forecasting Multi-Factor Models Modeling Volatility with GARCH Class Models Monte Carlo Simulations in Finance Asset Allocation Backtesting Trading Strategies Applied Machine Learning: Identifying Credit Default Advanced Concepts for Machine Learning Projects Deep Learning in Finance Other Books You May Enjoy
Index

Detecting patterns in a time series using the Hurst exponent

In finance, a lot of trading strategies are based on one of the following:

  • Momentum – the investors try to use the continuance of the existing market trend to determine their positions
  • Mean-reversion – the investors assume that properties such as stock returns and volatility will revert to their long-term average over time (also known as anOrnstein-Uhlenbeck process)

While we can relatively easily classify a time series as one of the two by inspecting it visually, this solution definitely does not scale well. That is why we can use approaches such as the Hurst exponent to identify if a given time series (not necessarily a financial one) is trending, mean-reverting, or simply ahttps://en.wikipedia.org/wiki/Random_walk random walk.

A random walk is a process in which a path consists of a succession of steps taken at random. Applied to stock prices, it suggests that changes in stock prices have the same distribution...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}