10 most bike-friendly cities in the world
Mandated active speed limiters in cars
https://jalopnik.com/new-york-city-bill-would-mandate-active-speed-limiters-1849445929
Ebike tool kit
https://talesontwowheels.com/2022/07/10/ebike-tool-kit-the-2022-edition/
AC tinkering, whole house cool down
https://www.greenbuildingadvisor.com/article/a-shortcut-for-whole-house-air-conditioning
‘extra’ dimension of time
https://www.livescience.com/fibonacci-material-with-two-dimensions-of-time
Timymaxaix Machine learning for microcontrollers
Limitless Fusion
**How I get students excited about math with Python and Raspberry Pi | Opensource.com** |
https://opensource.com/article/22/8/math-python-raspberry-pi
**10+ High-Fiber, Low-Carb Dinner Recipes | EatingWell** |
Fusion energy milestone
https://www.newsweek.com/nuclear-fusion-energy-milestone-ignition-confirmed-california-1733238
**The Best Way to Learn Faster and Improve Your Memory Includes 10 Science-Backed Cognitive Benefits | Inc.com** |
**Argentinean Houses with Less than 100 m2: 40 Examples of Floor Plans | ArchDaily** |
https://www.archdaily.com/984803/argentinean-houses-with-less-than-100-m2-40-examples-of-floor-plans
See a rare alignment of all the planets in the night sky
Bike RV
AIR BNB Gettng started
https://www.businessinsider.com/opened-three-airbnbs-one-year-advice-getting-started-2022-6
Parenting Advice
Crispr
The Ultimate Travel Guide To Hudson, New York
Bank on your self concept
https://paradigmlife.net/blog/personal-family-banking-system/
https://www.nytimes.com/2021/12/28/business/tax-break-qualified-small-business-stock.html
https://parade.com/1125059/ashleylauretta/plant-based-protein/
https://www.nextplatform.com/2021/09/09/the-cheapest-compute-in-the-intel-xeon-lineup/
https://www.onegreenplanet.org/vegan-recipe/chickpea-flour-muffins-vegan/
**Tom Brady Shares His 6 Plant-Based Recipes | The Beet** |
https://thebeet.com/tom-brady-shares-his-6-plant-based-recipes/
https://www.youtube.com/watch?v=w36OEv85OM8
https://medium.com/codex/data-preparation-wrangling-with-python-pandas-d844053d728f
https://www.nps.gov/dewa/planyourvisit/trails.htm
Bars snack recipes
https://krollskorner.com/recipes/to-go-breakfast-bars/
date bars
Ingredients:
200 grams seedless dates (1 cup)
1 cup rolled oats (any instant oats brand)
½ cup almonds
½ cup desiccated coconut
¼ cup coconut chips (optional)
2 tbsp smooth peanut butter
2 tbsp honey
2 tbsp coconut oil
The Best 5 Google Maps Alternatives With Offline Maps Support
The Home Office Deduction
https://turbotax.intuit.com/tax-tips/small-business-taxes/the-home-office-deduction/L1RZyYxzv
Make your coding job so much easier by learning Git and GitHub - TechRepublic
https://www.techrepublic.com/article/make-your-coding-job-so-much-easier-by-learning-git-and-github/
Git Organized: A Better Git Flow - DEV Community
https://dev.to/render/git-organized-a-better-git-flow-56go
25 books Jeff Bezos, Elon Musk, and Bill Gates love to read
https://www.businessinsider.com/25-books-jeff-bezos-elon-musk-bill-gates-loved-read-2022-1
**Create Stunning Plots on Pandas Dataframes in One Line of Code | Towards Data Science** |
https://towardsdatascience.com/advanced-pandas-plots-e2347a33d576
10 Datasets from Kaggle You Should Practice On to Improve Your Data Science Skills
Ultimate Guide to Bitcoin Retirement Savings
https://unchained.com/blog/ultimate-guide-to-bitcoin-retirement-savings/
https://www.zdnet.com/article/why-my-two-person-company-bought-a-google-workspace-enterprise-plan/
https://www.analyticsvidhya.com/blog/2022/01/top-10-github-repositories-for-data-science/
https://www.cantorsparadise.com/these-books-will-make-you-fall-in-love-with-mathematics-f1304a6a82a
https://cointelegraph.com/news/wait-and-see-approach-3-4-of-bitcoin-supply-now-illiquid
https://www.neverendingvoyage.com/carry-on-travel-packing-list/
**Plant-Based Coffee Creamer | Original Superfood Creamer | Laird Superfood®** |
https://lairdsuperfood.com/collections/tim/products/superfood-creamer-original
https://www.cantorsparadise.com/ludwig-wittgenstein-on-mathematical-truth-8a7a5b14d03a
https://www.brooklynpaper.com/film-tv-brooklyn-nyc-shows-netflix-hbo/
https://kirbiecravings.com/3-ingredient-no-bake-banana-oatmeal-cookies/
https://www.cantorsparadise.com/hilberts-hotel-an-ingenious-explanation-of-infinity-1d1a79932080
https://towardsdatascience.com/an-introduction-to-the-magic-of-machine-learning-6b213e88b54c
**My Favorite Lbry Channels — Crypto, Blockchain, Investing Category | by MamaeCrypto Michelle M. | Medium** |
The Great Inheritors: How Three Families Shielded Their Fortunes From Taxes for Generations
https://www.darngoodveggies.com/web-stories/chickpea-patties/
**Rensselaer County declares state of emergency for flooding | WRGB** |
https://cbs6albany.com/news/local/rensselaer-county-declares-state-of-emergency-for-flooding
https://www.cantorsparadise.com/15-best-science-books-of-all-time-2193cf1f19cb
https://www.yahoo.com/lifestyle/tiktok-convinced-skip-shampoo-7-000251874.html
https://www.insider.com/foraging-mushrooms
Mortar Mix Ratio Guide
https://www.homehow.co.uk/blog/mortar-mix-ratio
https://techcrunch.com/2021/10/28/bionic-hydroponic/
https://anothermusicinadifferentkitchen.com/mung-bean-curry/
https://ny.eater.com/maps/where-to-eat-bay-ridge-brooklyn-nyc
https://www.mykidsmychoice.com/index.html
https://www.vox.com/the-goods/22722978/estate-lawyer-planning-will-inheritance
https://greenhouseemporium.com/blogs/greenhouse-gardening/polycarbonate-thickness-greenhouse/
https://www.justpolycarbonate.com/post/what-is-cellular-polycarbonate-twin-wall-multi-wall
7 Google Keep Tips & tricks to take your note-taking skills to the next level
https://www.thespruce.com/free-greenhouse-plans-1357126
Ranked: The World’s 100 Most Valuable Brands in 2021
https://www.visualcapitalist.com/top-100-most-valuable-brands-in-2021/
https://www.freecodecamp.org/news/how-to-learn-programming/
Dept. of Ed announces Public Service Loan Forgiveness Program changes
https://www.travelawaits.com/2549586/gorgeous-hikes-in-new-york/
https://www.epicurious.com/shopping/mushroom-foraging-equipment-article
https://simpleveganblog.com/coconut-milk/
https://www.cntraveler.com/story/inn-to-inn-hiking-trails-us
15 Of The Absolute Best Hiking Spots Near New York City
https://www.buzzfeed.com/eviecarrick/best-hikes-near-new-york-city
https://www.youtube.com/watch?v=VxzMtjEKWBA
https://www.jerseyfamilyfun.com/best-hiking-trails-nj-waterfalls/
https://www.inc.com/jessica-stillman/sleep-technique-andrew-weil-university-arizona.html
https://finance.yahoo.com/news/giant-p-500-options-trade-183959467.html
https://hackaday.com/2021/10/01/awesome-python-video-tutorials-keep-you-motivated/
https://www.lonelyplanet.com/articles/best-hikes-in-new-jersey
**Pandas Cheat Sheet for Data Preprocessing | by Ryota Kiuchi | Sep, 2021 | Towards Data Science** |
https://towardsdatascience.com/pandas-cheat-sheet-for-data-preprocessing-cd1bcd607426
TikTokers Are Trading Stocks By Copying What Members of Congress Do
TikTokers Are Trading Stocks By Copying What Members of Congress Do https://news.slashdot.org/story/21/09/22/2133219/tiktokers-are-trading-stocks-by-copying-what-members-of-congress-do?utm_source=rss1.0mainlinkanon&utm_medium=feed
Real Estate Investing Resources - Physician on FIRE
https://www.physicianonfire.com/real-estate-crowdfunding/
25 Python Projects for Beginners – Easy Ideas to Get Started Coding Python
https://www.freecodecamp.org/news/python-projects-for-beginners/
**How to Learn Git in Simple Words. A playbook for protecting your job… | by Pedram Ataee, PhD | Sep, 2021** |
https://towardsdatascience.com/how-to-learn-git-in-simple-words-263618071dd8
Fall foliage in Upstate NY: Grab your train ticket to an autumnal wonderland
See the Wacky, Weird and Wonderful Finalists of the 2021 Comedy Wildlife Photography Awards
https://people.com/pets/2021-wildlife-photo-comedy-awards-finalists/
https://analyticsindiamag.com/top-10-things-you-should-never-say-in-a-data-science-interview/
The Pros and Cons of Buying Real Estate as an LLC
https://www.accountingweb.com/practice/clients/the-pros-and-cons-of-buying-real-estate-as-an-llc
An Introduction To The Yield Curve
https://www.forbes.com/advisor/investing/yield-curve/
https://www.bonappetit.com/story/how-to-cook-eggplant-perfectly-every-time
https://stylebyemilyhenderson.com/blog/the-affordable-way-to-clad-your-home-in-brick
https://www.barcham.co.uk/how-do-i-plant-screening-trees-for-privacy-in-containers/
https://www.inc.com/joe-procopio/coding-no-code-java-zapier-slack-flutter-bubbleio.html
https://oldsaltfarm.com/diy-built-in-bunk-beds-with-stairs/
https://www.freightwaves.com/news/are-you-shipping-me-32000-container-move-from-china-to-la
https://www.youtube.com/watch?v=zKHT6QpcTG0
chrome-distiller://adab5ec8-405b-49be-8927-2dbe0319454c_79f30024d6b48fbc92d1f4a097181f2010edbe7c8db049e7e975ad1d998cc7b4/?title=Masonry+and+Cement+Products+Buying+Guide&url=https%3A%2F%2Fwww.lowes.com%2Fn%2Fbuying-guide%2Fmasonry-and-cement-products-buying-guide
Chickpea-Potato Chaat Is the Low-Cook Recipe I’m Making All Summer
https://www.epicurious.com/expert-advice/how-to-make-easy-chickpea-potato-chaat-article
https://www.nycrenovators.com/top-2021-roofing-over-deck-ideas/
No Soil. No Growing Seasons. Just Add Water and Technology.
https://www.nytimes.com/2021/07/06/dining/hydroponic-farming.html
https://www.youtube.com/watch?v=9zyyvXCxYwI
An Artificial Network Kept on The ‘Edge of Chaos’ Acts Much Like a Human Brain
https://nypost.com/2020/10/27/how-to-start-defusing-nycs-pension-bomb/
AI Designs Quantum Physics Experiments Beyond What Any Human Has Conceived
How Does Science Say the Most Effective Leaders Solve Complex Problems? They Embrace the Subtraction Habit
The Top 7 Gene-Editing Stocks to Buy for the Biggest Scientific Breakthrough of the Century
Are we ready? Advances in CRISPR means the era of germline gene editing has arrived
https://medicalxpress.com/news/2021-06-ready-advances-crispr-era-germline.html
https://towardsdatascience.com/7-common-file-system-operations-you-can-do-with-python-e4670c0d92f2
CRISPR on the Cutting Edge of Gene Editing Technology
https://finance.yahoo.com/news/crispr-cutting-edge-gene-editing-083751454.html
**The Rise of Carry | Risky Finance** |
https://riskyfinance.com/2020/02/09/the-rise-of-carry/
The controversy over Bill Gates becoming the largest private farmland owner in the US
https://www.vox.com/recode/22528659/bill-gates-largest-farmland-owner-cascade-investments
Ryobi Power Packs As Ebike Batteries
https://hackaday.com/2021/06/07/ryobi-power-packs-as-ebike-batteries/
https://www.thrillist.com/travel/boston/vermont-vacation-ideas-itinerary
https://www.androidpolice.com/2021/06/02/how-to-google-photos-pixel-free/
https://dev.to/devdefinitive/33-github-projects-i-have-bookmarked-and-you-should-298o
How I Transformed My LinkedIn Profile To An Opportunity Magnet
https://twitter.com/mcgillmd921/status/1399064788395823110?s=09
https://twitter.com/mcm_ct/status/1399085914425638914?s=09
https://twitter.com/EricRWeinstein/status/1398861408385699843?s=09
https://twitter.com/ProfFeynman/status/1398492567017197573?s=09
Building your own Synology NAS Google Photos replacement
https://9to5toys.com/2021/05/28/synology-nas-google-photos-replacement/
The Fed Targets a Crafted Measure of Inflation: A Cautionary Tale
https://www.aier.org/article/the-fed-targets-a-crafted-measure-of-inflation-a-cautionary-tale/
**PDF-XChange Editor Portable (PDF editor and viewer) | PortableApps.com** |
PDF-XChange Editor Portable (PDF editor and viewer) | PortableApps.com https://portableapps.com/apps/office/pdf-xchange-editor-portable |
Wise Registry Cleaner Portable 10.3.4 (registry cleaner and optimizer) Released
Wise Registry Cleaner Portable 10.3.4 (registry cleaner and optimizer) Released https://portableapps.com/news/2021-02-26–wise-registry-cleaner-portable-10.3.4-released
visual money
https://money.visualcapitalist.com/
How the Mathematics of Fractals Can Help Predict Stock Markets Shifts
How the Mathematics of Fractals Can Help Predict Stock Markets Shifts
Picture by whiteMocca/shutterstock.com.
In financial markets, two of the most common trading strategies used by investors are the momentum and mean reversion strategies. If a stock exhibits momentum (or trending behavior as shown in the figure below), its price on the current period is more likely to increase (decrease) if it has already increased (decreased) on the previous period.
Section of the time series of the S&P 500 Index or SPY. This is an example of trending behavior.
When the return of a stock at time t depends in some way on the return at the previous time t-1, the returns are said to be autocorrelated. In the momentum regime, returns are positively correlated.
In contrast, the price of a mean-reverting stock fluctuates randomly around its historical mean and displays a tendency to revert to it. When there is mean reversion, if the price increased (decreased) in the current period, it is more likely to decrease (increase) in the next one.
Section of the time series of log returns of the Apple stock (adjusted closing price). This is an example of mean-reverting behavior.
Note that, since the two regimes occur in different time frames (trending behavior usually occurs in larger timescales), they can, and often do, coexist.
In both regimes, the current price contains useful information about the future price. In fact, trading strategies can only generate profit if asset prices are either trending or mean-reverting since, otherwise, prices are following what is known as a random walk (see the animation below).
Example of random walk in 2D (source).
Mean-Reverting Time Series
Stock prices rarely display mean-reverting behavior. In the vast majority of cases, they follow random walks (their corresponding returns, however, are mean-reverting and fluctuate randomly around zero). Mean-reverting price series can, however, be synthesized by combining different stocks to build a cointegrated portfolio (see this reference for more details) which displays the property of stationarity (a lot more about this below). Though stationarity can be identified using a variety of well-known standard statistical tests, in this article, I will focus on one powerful type of analysis based on the so-called Hurst exponent, which is related to the fractal exponent of the price time series. The Hurst exponent provides a way to measure the amount by which a financial time series deviates from a random walk. It is a surprisingly simple tool that can help investors determine which strategy to apply.
Stationarity
In this article, for practical purposes, I will informally use the terms mean-reverting and stationary interchangeably. Now, suppose the price of a given stock, which I will represent by S(t), exhibits mean-reverting behavior. This behavior can be more formally described the following stochastic differential equation (SDE)
SDE describing a mean-reverting process.
Here, the symbols

are, respectively, the stock price at time t, a Wiener process (or Brownian motion) at time t, the rate of reversion θ to the mean, the equilibrium or mean value of the process μ and its volatility σ. According to this SDE, the variation of the price at t+1 is proportional to the difference between the price at time t and the mean. As we can see, the price variation is more likely to be positive (negative) if the price is smaller (greater) than the mean. A well-known special case of this SDE is the so-called Ornstein-Uhlenbeck process.
The Ornstein-Uhlenbeck process was named after the Dutch physicist Leonard Ornstein and the Dutch-American physicist George Eugene Uhlenbeck.
Two of the best-known tests for (non-)stationarity are the Dickey-Fuller test (DF) and the Augmented Dickey-Fuller (ADF) tests.
Dickey-Fuller and Augmented Dickey-Fuller Tests: A Bird’s-Eye View
The ADF test is an extension of the DF test, so let us first understand the latter. It can be illustrated as follows. Consider the simple model given by:

where S(t) are stock prices varying in time, ρ is a coefficient and the last term is an error term. The null hypothesis here is that ρ=1. Since under the null hypothesis both S(t) and S(t-1) are non-stationary, the central limit theorem is violated and one has to resort to the following trick.
The Dickey-Fuller test is named for the statisticians Wayne Fuller and David Dickey. The ADF is an extension of this test for more complex time series models.
Defining the first difference and the parameter δ as follows

the regression model can be conveniently rewritten as:

The Dickey-Fuller then tests the hypothesis (technically the null hypothesis) that

where the distribution of δ was tabulated by Wayne Fuller and David Dickey.
The logic behind the DF test can be heuristically understood as follows. If S(t) is stationary it tends to return to some constant mean (or possibly a trend that evolves deterministically) which means that larger values are likely to follow smaller ones and vice-versa. That makes the current value of the series a strong predictor of the following value and we would have δ < 0. If S(t) is non-stationary future changes do not depend on the current values (for example, if the process is a random walk, the current value does not affect the next).
The ADF test follows a similar procedure but it is applied to a more complex hence more complete model given by:

Here, α is a real constant, β is the coefficient of the trend in time (a drift term), the δs are the coefficients of the differences

where p is the lag order of the process and the last term is the error. The test statistic here is

where the denominator is the standard error of the regression fit. The distribution of this test statistic was also tabulated by Dickey and Fuller. As in the case of the DF test, we expect γ<0. Details on how to carry on the test can be found in any time series book.
Python Code
The following Python snippet illustrates the application of the ADF test to Apple stocks prices. Though stock prices are rarely mean reverting, stock log returns usually are. The Python code below obtains log differences, plots the result and applies the ADF test.
The plot is the following:
Log returns for Apple stocks.
The output from the ADF test is:
Augmented Dickey-Fuller test statistic: -28.653611206757994
p-value: 0.0
Critical Values:
1%: -3.4379766581448803
5%: -2.8649066016199836
10%: -2.5685626352082207
In general, we are more likely to reject the null hypothesis, according to which the series is non-stationary (it has a unit root), the “more negative” the ADF test statistic is. The above test corroborates the hypothesis that the log return series is indeed stationary. The result shows that the statistic value of around -28.65 is less than -3.438 at 1%, the significance level with which we can reject the null hypothesis (see this link for more details).
The Hurst Exponent
There is an alternative way to investigate the presence of mean reversion or trending behavior in a process. As will be explained in detail shortly, this can be done by analyzing the diffusion speed of the series and comparing it with the diffusion rate of a random walk. This procedure will lead us to the concept of the Hurst exponent which, as we shall see, is closely connected to fractal exponents.
Though applications of the Hurst exponent can be found in multiple areas of mathematics, our focus here will be in two of them only, namely fractals and long memory processes.
Fractals
A fractal can be defined as follows:
“A curve or geometric figure, each part of which has the same statistical character as the whole. Fractals are useful in modeling structures (such as eroded coastlines or snowflakes) in which similar patterns recur at progressively smaller scales, and in describing partly random or chaotic phenomena such as crystal growth, fluid turbulence, and galaxy formation.”
An example of a fractal is the Sierpinski triangle shown in the figure below.

The “fractal dimension” which measures the roughness of a surface, has the following simple relation with H,

We see that large Hurst exponents are associated with small fractal dimensions i.e. with smoother curves or surfaces. An example is shown below. This illustration, taken from this article, clearly shows that as H increases, the curve indeed gets smoother.
Processes with varying Hurst exponents H. As H increases, the curve gets smoother and the fractal dimension decreases (source).
Fractals have a property called self-similarity. One type of self-similarity which occurs in several branches of engineering and applied mathematics is called statistical self-similarity. In data sets displaying this kind of self-similarity, any subsection is statistically similar to the full set. Probably the most famous example of statistical self-similarity is found in coastlines.
This is an example of the so-called coastline paradox. According to it, if one measures coastlines using different units one obtains different results (source).
In 1967, Benoit Mandelbrot, one of the fathers of the field of fractal geometry, published on Science Magazine a seminal paper entitled “How Long Is the Coast of Britain? Statistical Self-Similarity and Fractional Dimension” where he discussed the properties of fractals such as self-similarity and fractional (Hausdorff) dimensions.
Long Range Dependence
One important kind of departure from random walks occurs when processes have long-range dependence. These processes display a high persistence degree: past events are nontrivially correlated with future events even if they are very far apart. One example, conceived by Granger, Joyeux, and Hosking, is given by the following fractionally differenced time series:

where L is the usual lag operator, the exponent d is noninteger and ϵ is an error term. Using a simple binomial expansion this equation can be expressed in terms of Gamma functions

Comparing the autocorrelation function of a simple AR(1) process we find that the autocorrelation function of the latter has a much slower decay rate than the one from the former. For example, for a lag of τ~25,

whereas the corresponding value of the autocorrelation function of the fractionally differenced process is ~-0.17.
Origins of the Hurst Exponent
Though most recent developments regarding methods of estimation of the Hurst exponent are coming from the mathematics of fractals and chaos theory, the Hurst exponent was curiously first used in the field of hydrology, which is mainly concerned with water distribution, quality, and its movement in relation to land. Furthermore, recent tests for long term dependence in financial time series are based on a statistic called Rescaled Range (see below), originally developed by the English hydrologist Harold Hurst. The front page of Hurst’s original paper is shown below.
The original paper by Harold Hurst (source).
Hurst Exponent and Anomalous Diffusion
One way to gain some understanding of the nature of a price series is to analyze its speed of diffusion. Diffusion is a widely used concept which describes the “spreading out” of some object (which could be an idea, the price of an asset, a disease, etc) from a location where its concentration is higher than in most other places.
The plot shows how the mean squared displacement varies with the elapsed time τ for three types of diffusion (source).
Diffusion can be measured studying how the variance depends on the difference between subsequent measurements:

In this expression, τ is the time interval between two measurements and x is a generic function of the price S(t). This function is often chosen to be the log price:

It is a well-known fact that the variance of stock price returns depends strongly on the frequency one chooses to measure it. Measurements at high frequencies say, in 1-minute intervals, differ significantly from daily measurements.
If stock prices follow, which is not always the case (in particular for daily returns), a geometric random walk (or equivalently a geometric Brownian motion or GBM), the variance would vary linearly with the lag τ

and the returns would be normally distributed. However, when there are small deviations from a pure random walk, as it often occurs, the variance for a given lag τ is not proportional to the τ anymore but instead, it acquires an anomalous exponent
The anomalous exponent is proportional to the Hurst exponent (source).
The parameter H is the so-called Hurst exponent. Both mean-reverting and trending stocks are characterized by

Daily returns satisfying this equation do not have a normal distribution. Instead, the distribution has fatter tails and thinner and higher peaks around the mean.
The Hurst exponent can be used to distinguish three possible market regimes:
If H < 0.5, the time series is mean reverting or stationary. The log-price volatility increases at a slower rate compared to normal diffusion associated with geometric Brownian motion. In this case, the series displays what is known as antipersistence (long-term switching between high and low values in adjacent points)
If H > 0.5, the series displays trending behavior and it is characterized by the presence of persistent behavior (long-term positive autocorrelation i.e. high values are likely to follow high values)
The H = 0.5 case corresponds to a Geometric Brownian Motion
The Hurst exponent, therefore, measures the level of persistence of a time series and can be used to identify the market state: if at some time scale, the Hurst exponent changes, this may signal a shift from a mean reversion to a momentum regime or vice versa.
Relations between market regimes and the Hurst exponent.
The Hurst exponent, therefore, measures the level of persistence of a time series and can be used to identify the market state.
Examples of each case are plotted below:

In the next figure, we see how the Hurst exponent can vary with time indicating a change in regime.
Hurst exponent varying in time for four different financial time series (source).
Autocorrelation
The autocorrelation function for the stock price S(t) is defined as follows:

Processes with autocorrelations that decay very slowly are termed long memory processes. Such processes have some memory of past events (past events have a decaying influence on future events). Long memory processes are characterized by autocorrelation functions ρ(τ) with power-law decay

The relation between α and the Hurst exponent is

Note that as H approaches 1, the decay becomes slower and slower since the exponent α approaches zero, indicating “persistent behavior”. It often happens that processes that appear random at first, are actually long memory processes, having Hurst exponents within the open interval

Those processes are often referred to as fractional Brownian motion (fBm) or black noise, a generalization of Brownian motion.
Important Issues with Using the Variance to Estimate the Hurst
To obtain the variance dependence on τ, we must repeat the same calculation for many lags, and extract the slope of the logarithmic plot of the result. As we will see now, the value of H depends strongly on our choices of lags. This section is based on the analysis found in this blog post.
Let us consider the S&P 500 Index SPY and estimate the Hurst exponent for different lags. We first run the following code, which takes the range of lags to be from 2 to 20:
We obtain the following value for H:
hurst = 0.43733191005891303
As previously explained, this value of H indicates a mean-reverting regime, albeit rather mild. The same code with lags 300–400, gives:
hurst = 0.6107941846903405
This value of H indicates the presence of a trending regime. We see, therefore, that the choice of lags strongly affects the value of the Hurst exponent. This means that this time series is neither purely mean-reverting nor trending, but changes behavior or shifts regimes depending on whether one measures it over short intervals or over the long term. Furthermore, as noted here, since these conclusions are far from obvious for the naked eye, we conclude that this analysis based on the Hurst exponent can give important insights.
Long-Range Dependence and the Rescaled Range
The presence of long term anomalous behavior of stock returns was noticed in 1971 by Mandelbrot.
Benoit Mandelbrot one of the fathers of the field of fractal geometry (source).
To test for such long-range dependence, Mandelbrot used the Rescaled Range or R/S test statistic, briefly mentioned above. The R/S statistic is the range of partial sums of deviations of a series from its mean rescaled by the standard deviation (see this book for more details). Mandelbrot and others showed that using the R/S statistic leads to far superior results when compared with other methods such as the analysis of autocorrelations, variance ratios, and spectral decomposition, though it does have shortcomings, such as sensitivity to short-range dependence (for more details, see this article and this excellent blog post).
The R/S statistic can be obtained as follows. Consider for example the following time series of stock returns of length n

The partial sum of the first k deviations from the mean is given by:

The R/S statistic is proportional to the difference between the maximum and minimum of such sums where k ∈ [1,n]:

The denominator σ(n) is the maximum likelihood standard deviation estimator. The rescaled range and the number n of observations have the following relation

where H is the Hurst exponent. This scaling behavior was first used by Mandelbrot and Wallis to find the presence of long-range dependence. Since the relation between the rescaled range and the number of observations is polynomial, one can calculate the value of H with a simple log-log plot since

In the plot below, the Hurst exponent is estimated to be around 0.53 which approximately corresponds to a random walk. The code uses the hurst library (the link to the Github repo is here).
Estimation of the Hurst exponent gives H~0.5183. The code uses the Github repo found here.
There are other methods to obtain the Hurst. You can check this article for more details on that.
Conclusions and Outlook
We saw that using the concept of the Hurst exponent can lead to very useful insights about the market regime. With that information in hand, one can decide which of the two strategies, mean reversion or momentum, is more appropriate to adopt.
In short, the value of the Hurst exponent identifies if the time series has some memory of past events. The fact that the value of the Hurst is not always equal to 1/2 shows that the efficient market hypothesis, according to which markets are completely unpredictable is often violated. Properly identifying such anomalies can in principle be extremely useful for building efficient trading strategies.
Thanks for reading and see you soon! As always, constructive criticism and feedback are always welcome!
My Github and personal website www.marcotavora.me have (hopefully) some other interesting stuff about data science and quantitative finance.
Tweet from LifeMathMoney (@LifeMathMoney)
LifeMathMoney (@LifeMathMoney) Tweeted:
Being friends with lazy, ambitionless people will make you lazy and ambitionless.
Being friends with industrious people will make you industrious.
You will become your friends - for better or for worse.
Use this to your advantage. https://twitter.com/LifeMathMoney/status/1233308369366155264?s=20
Lipman: State Tax Takeaways And Child Tax Credits
Lipman: State Tax Takeaways And Child Tax Credits https://taxprof.typepad.com/taxprof_blog/2020/04/lipman-state-tax-takeaways-and-child-tax-credits.html
**Blend in With People’s Opinions: Be The Wolf in Sheep’s Clothing | LifeMathMoney** |
https://lifemathmoney.com/be-the-wolf-in-sheeps-clothing-learn-to-blend-in-with-peoples-opinions/
Tweet from OverDrive Libraries booth #823 at #PLA2020 (@OverDriveLibs)
OverDrive Libraries booth #823 at #PLA2020 (@OverDriveLibs) Tweeted:
Browse and borrow thousands of #audiobooks from your local library. No matter the time, their digital library is always open. 💤 https://twitter.com/OverDriveLibs/status/1233033498870648832?s=20
Tweet from borys kindratyshyn (@16Trippinborys)
borys kindratyshyn (@16Trippinborys) Tweeted:
@KeithMcCullough https://t.co/GwrsU5voJT this? https://twitter.com/16Trippinborys/status/1233748617485307904?s=20
Tweet from 48 Laws Of Power Quotes (@48_quotes)
48 Laws Of Power Quotes (@48_quotes) Tweeted:
The fool dares the gods of envy by flaunting his victories.
The master of power understands that the appearance of superiority over others is inconsequential next to the reality of it. https://twitter.com/48_quotes/status/1233353716536872960?s=20
Tweet from LifeMathMoney (@LifeMathMoney)
LifeMathMoney (@LifeMathMoney) Tweeted:
Don’t Waste Your Life | An Open Letter to Young Men |
Dear young man,
I hope this letter finds you in good health!
Today I write to you concerning a matter of grave urgency
– YOU: your life, your potential, your future.
https://t.co/OjCBxCeEgW https://twitter.com/LifeMathMoney/status/1233395184198725632?s=20
Tweet from 💎 Silky 💎 (@silkdynastystx)
💎 Silky 💎 (@silkdynastystx) Tweeted:
Your 401k 2 weeks ago vs your 401k now…… which is now a 301k😁 $SPX https://t.co/xYEtwETur7 https://twitter.com/silkdynastystx/status/1233234331918692352?s=20
**How to activate all of Windows 10’s secret God Modes | BetaNews** |
How to activate all of Windows 10’s secret God Modes | BetaNews https://betanews.com/2020/02/28/windows-10-god-modes/ |
Tweet from LifeMathMoney (@LifeMathMoney)
LifeMathMoney (@LifeMathMoney) Tweeted:
If you’re reasonable successful, healthy, happy AND not an asshole
You would be wise to assume that a bunch of the hate that you get for no reason is simply pure, unadulterated envy.
Lie down, blend in a little more, don’t make enemies for no reason. https://twitter.com/LifeMathMoney/status/1242005178691321856?s=20
Tweet from Sven Henrich (@NorthmanTrader)
Sven Henrich (@NorthmanTrader) Tweeted:
“Can I use your phone to log into my twitter account please?”
“Sure, let me log out first, but no monkey business on twitter ok?”.
Here ya go.
https://t.co/TpnVoNYniD https://twitter.com/NorthmanTrader/status/1239217062322622470?s=20
Tweet from Downtown Josh Brown (@ReformedBroker)
Downtown Josh Brown (@ReformedBroker) Tweeted:
A break from the selling is nice, and optimism is important, but remember that every bear market has these sort of vicious rallies.
In 2000-2002, there were six separate 7% snapbacks and we still ended up down 50% before it ended.
https://t.co/Imh98Rg2Tk https://t.co/v44Qv1g0MK https://twitter.com/ReformedBroker/status/1238438589849128960?s=20
Tweet from Welcome To Nature (@welcomet0nature)
Welcome To Nature (@welcomet0nature) Tweeted:
Looks like someone has been betrayed https://t.co/9AlGMVJ182 https://twitter.com/welcomet0nature/status/1237848772874551296?s=20
Tweet from Mr Yen (@RealBrianWatt)
Mr Yen (@RealBrianWatt) Tweeted:
use envelops not bollinger bands..see video..ur gonna like this..try it ! https://t.co/VCkfPAvgdW https://twitter.com/RealBrianWatt/status/1237799024784297984?s=20
Tweet from Jawad Mian (@jsmian)
Jawad Mian (@jsmian) Tweeted:
Let this be your weekend reading, explaining an ancient Hindu teaching about the stages of life, or ashramas. https://t.co/qLwT2U5ApP https://twitter.com/jsmian/status/1236584371735465985?s=20
Something Weird Just Happened That We Can’t Really Explain With Existing Physics
Something Weird Just Happened That We Can’t Really Explain With Existing Physics https://www.popularmechanics.com/science/a31262444/particle-decay-new-physics/
Tweet from Raoul Pal (@RaoulGMI)
Raoul Pal (@RaoulGMI) Tweeted:
If you have an hour and 45 mins to spare, I thought this was one of the best interviews I’ve had the pleasure to do. Warning: it’s a tad unsettling. Thanks @APompliano for such insightful questions and perfect timing for booking this ! https://t.co/zAQ3KfaKTP https://twitter.com/RaoulGMI/status/1235387578335072257?s=20
reddit: the front page of the internet
https://www.reddit.com/r/bodyweightfitness/wiki/kb/recommended_routine
https://www.vulture.com/article/best-comedies-on-amazon-prime.html
Tweet from LifeMathMoney (@LifeMathMoney)
LifeMathMoney (@LifeMathMoney) Tweeted:
Pleb hobbies:
TikToc
Porn
Prank Videos
Movies
TV
News
Drinking “with buddies”
Complaining
Video games
“Foodie”
“I like to travel” (who doesn’t?)
Elite hobbies:
Reading
Martial Arts
Writing
Strength Training
Sports
Learning languages
Creative stuff
We are not the same. https://twitter.com/LifeMathMoney/status/1232567753132986371?s=20
Tweet from LifeMathMoney (@LifeMathMoney)
LifeMathMoney (@LifeMathMoney) Tweeted:
Dokkodo (The Way to be Followed Alone) by Miyamoto Musashi
21 Precepts on Self-Discipline to Guide Future Generations
✅ Accept everything just the way it is.
✅ Do not fear death.
✅ Never stray from the Way.
etc.
https://t.co/onOUr6Qeoo https://twitter.com/LifeMathMoney/status/1233610399230066688?s=20