Skip to main content
Track Monte Carlo simulation
21 / 26
Library

2015issue C058-11

Memory-bearing synthetics for dominant-cycle spectra

A market-like series can be synthesized from a random-number stream and an exponential moving average of past draws. An autocorrelation periodogram then estimates the dominant cycle without applying a memory filter to the raw observations first.

  • Spectrum tools that themselves apply memory-bearing filters can imprint cyclic structure on memory-free random data, making the measurement circular.
  • An autocorrelationPeriodogram forms the autocorrelation of a series and then takes a Fourier transform of that function, so a memory filter is not applied to the raw observations first.
  • A randomWithMemory series smoothed by an exponentialMovingAverage held its measured dominantCycle near the filter criticalPeriod, and that look could be steered by changing the cutoff.
  • On about one year of daily bars of a broad equity index fund, the dominantCycle sat between 20 and 25 bars, then near 15 bars, then a poorly defined longer period, and those periods were transient.
Entries in this reading3 entries

Constructing a known memory cutoff

A market-like series can be synthesized by combining a random-number stream with an exponentialMovingAverage of past draws. That constructed series is randomWithMemory: independent random draws are combined with a recursive smoother so successive observations remain dependent.

The exponentialMovingAverage is the memory term. Its criticalPeriod is the cutoff length of the memory filter and sets how long dependence persists in the synthetic series.

When the spectrum adds its own memory

Spectrum tools that themselves apply memory-bearing filters can imprint cyclic structure on memory-free random data, making the measurement circular. The reported cycles can then be an artifact of the filter rather than structure already present in the observations.

An autocorrelation-first spectrum

An autocorrelationPeriodogram estimates frequency content by forming the autocorrelation of a series and then taking a Fourier transform of that function, so a memory filter is not applied to the raw observations first.

That autocorrelation-first spectrum was used because it reduces spectralDilation relative to filter-bank or direct-transform measurements. spectralDilation is a longer-period bias in spectrum estimates. The dominantCycle is the period that currently carries the strongest amplitude in the measured spectrum.

Recovering the cutoff on synthetic series

A memory-free random series of about 250 samples showed little cyclic content, with an apparent dominant period near 10 bars attributed to aliasingNoise. aliasingNoise is spurious short-period energy that can appear when a memory-free random series is given a spectrum.

Adding a low-pass memory filter with a 20-bar criticalPeriod smoothed the random series and held the measured dominantCycle near 20 bars most of the time. Raising that memory filter to a 40-bar criticalPeriod further smoothed the path and lengthened the measured dominantCycle.

Spectra of these memory-bearing synthetics resembled spectra of observed market series, and the synthetic look could be steered by changing the memory filter criticalPeriod.

Autocorrelation periodogram recovers a 20-bar memory cutoff

The measured dominant cycle sits near the known 20-bar memory cutoff for most of the sample after a short October spike to about 40 bars. That is the experiment’s result: an autocorrelation periodogram can recover the cutoff without adding its own filter memory. Cycle lengths were read from the blue overlay on the source heatmap; the article states the 20-bar critical period in prose but prints no table of the overlay.
The measured dominant cycle sits near the known 20-bar memory cutoff for most of the sample after a short October spike to about 40 bars. That is the experiment’s result: an autocorrelation periodogram can recover the cutoff without adding its own filter memory. Cycle lengths were read from the blue overlay on the source heatmap; the article states the 20-bar critical period in prose but prints no table of the overlay.Synthetic random-with-memory series · daily · 2012-08-01T00:00:00.000Z to 2013-07-31T00:00:00.000Z

The synthesizing filter was an EMA with a 20-bar critical period. Overlay readings are whole bars only; the heatmap raster does not support finer precision.

Transient cycles on a broad index fund

On about one year of daily bars of a broad equity index fund, the measured dominantCycle sat between 20 and 25 bars, then near 15 bars during an advance, then became a poorly defined longer period. Measured market cycle periods were transient: they appeared, faded, and changed length quickly rather than remaining fixed.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
21 of 26 in the Monte Carlo simulation track
201526-28 pp.Next on Monte Carlo simulationConstructing next-session implied-volatility forecasts by reordering closesA close-ranked-reorder treats calendar order as optional: the same implied-volatility-index window is sorted by descending close so next-session-change values can be accumulated out of calendar sequence.
All readings on this track · 26 readings
  1. 1989Known-bias price streams for system evaluation
  2. 1989Constructing holdout-checked synthetic prices from chaos maps
  3. 1991Closing the feedback loop in auction market simulations
  4. 1994Evaluating eight-year election regimes
  5. 1995Constructing equity versus leverage with resampled trades
  6. 1995Stock leverage from compounded returns and margin cost
  7. 1996Constructing and optimizing volatility position-sizing profiles
  8. 1996Constructing fade rules from an empirical deviation histogram
  9. 1998Return-path volatility and the recovery burden
  10. 1999Monte Carlo checks beyond a single historical path
  11. 2002Monte Carlo equity paths from win rate and profit factor
  12. 2003Checking a small system edge with Monte Carlo simulation
  13. 2003Evaluate a mechanical trading system with a stop-loss order and Monte Carlo simulation
  14. 2005Evaluating momentum rank rotation under portfolio constraints
  15. 2009Bounded risk and rank rotation in portfolio construction
  16. 2010A calendar for walk-forward robustness and Monte Carlo evaluation
  17. 2012Treat the optimize view as an evaluation protocol
  18. 2013Entry, exit and abstention as one testable procedure
  19. 2014Evaluating stop and target bounds before fading large moves
  20. 2014Evaluating system exits when markets get noisier
  21. 2015Memory-bearing synthetics for dominant-cycle spectra
  22. 2015Constructing next-session implied-volatility forecasts by reordering closes
  23. 2016Mechanical systems as a gated factory
  24. 2017Four-sleeve Monte Carlo annual-loss bounds
  25. 2018When to retire a mechanical system with Monte Carlo drawdown limits
  26. 2020Treat mechanical system design as a revalidation lifecycle
All 51 readings tagged Monte Carlo simulation
Also on Monte Carlo simulation5 readings