Entered series · intercept-included AR(1) decay summary

Mean Reversion Half-Life Calculator

Fit x(t) = α + φx(t−1) and derive a positive-persistence half-life only when the fitted φ is strictly between zero and one.

Runs in your browserIntercept-included AR(1)Invalid half-life is withheld

Enter an ordered equally spaced series

The selected period label changes display wording only; the numeric interval comes from how you sampled the observations.

Entered

Display label only; this does not validate timestamps or spacing.

Separate finite decimal values with line breaks, spaces, commas or semicolons. Keep the sampling interval equal.

Half-life boundary: This is a descriptive transform of one fitted AR(1) coefficient. It does not establish stationarity, cointegration, Ornstein–Uhlenbeck validity, forecast accuracy or a trade holding period.

Positive-persistence AR(1) half-life

Entered Mean-Reversion Diagnostics 1.0.0.

Derived
No half-life calculated yetEnter at least six ordered observations, or load the audited example.

How the AR(1) mean-reversion half-life is calculated

x(t) = α + φx(t−1) + error(t)
Implied mean = α ÷ (1 − φ)
Decay speed = −ln(φ)
Half-life = ln(0.5) ÷ ln(φ), only when 0 < φ < 1

Version 1.0.0 creates adjacent lagged pairs from the ordered series and fits ordinary least squares with an intercept. The slope is φ and the intercept is α. When φ is strictly between zero and one, repeated deviations under that fitted positive-persistence AR(1) representation decay geometrically.

The implied long-run mean is α divided by one minus φ. The half-life solves φ raised to h equals one half, so h equals log 0.5 divided by log φ. Because h is measured in observation intervals, hourly data produces an hourly label only when every adjacent input is genuinely one hour apart.

If φ is zero, negative, one or above one, this page withholds the positive-persistence half-life instead of displaying a misleading number. A negative φ implies alternating signs rather than the monotonic positive decay summarized by this convention; φ at or above one does not produce the required positive decay.

A careful interpretation workflow

Start with the estimator and visible audit fields, then check whether the data and assumptions support the question you want to ask. A clean number is not a substitute for a valid series.

  • Check fitted φ first; the positive half-life exists on this page only for zero below φ below one.
  • Read the unit as the entered observation interval, not calendar time inferred by the calculator.
  • Inspect the implied mean and latest deviation to understand the fitted equation’s scale.
  • Treat R² as in-sample linear fit, not as a stationarity test or forecast-confidence score.
  • Re-estimate across defensible windows and frequencies to expose instability instead of choosing the best-looking result.
  • For a spread, establish the hedge relationship and run separate stationarity diagnostics before interpretation.

Worked example from the audited fixture

Reproduce it with “Load audited example”The fixture starts at 14 and halves its deviation from 10 on every step: 12, 11, 10.5 and so on through 10.00390625. OLS recovers α = 5 and φ = 0.5 exactly. The implied mean is 10, decay speed is 0.6931471806 per bar and half-life is 1 bar.

How to interpret the result

One bar in the fixture is a property of the constructed sequence and fitted AR(1) equation. On real prices or spreads, the estimate changes with sampling, window, transformation and market regime. It is not a promise that a deviation will halve in one bar or that the series is stationary.

Which mean-reversion diagnostic answers which question?

These three pages are complementary rather than interchangeable. They describe different properties of the same entered numbers, and none establishes a complete trading strategy by itself.

DiagnosticQuestion answeredMain dependencyWhat it does not prove
Latest z-scoreHow far is the latest value from its selected sample mean?Window and sample standard deviationNormality or future reversal
Classical Hurst R/SWhat log-log rescaled-range slope appears across selected scales?Estimator, scale set and sample pathA stable persistent or mean-reverting regime
AR(1) half-lifeWhat positive geometric decay time follows from the fitted φ?Sampling interval and AR(1) specificationStationarity, cointegration or forecast accuracy

Assumptions and limits

  • At least six and at most 2,000 finite, ordered, equally spaced observations are accepted.
  • The calculator fits one AR(1) with an intercept; it does not select lag order or model nonlinear decay.
  • A constant lagged predictor is rejected because the regression slope is undefined.
  • Positive-persistence half-life is withheld unless fitted φ is strictly between zero and one.
  • The displayed implied mean can be unstable when φ is near one and does not prove an economic equilibrium.
  • No ADF, KPSS, cointegration, residual or structural-break test is performed inside this route.
  • The result is not a forecast, trade duration, stop, target, entry, exit or position-sizing recommendation.

Prepare the entered series before calculating

Choose the economic object first: a price level, log price, return, spread, residual or indicator value is not interchangeable with the others. Export completed observations in chronological order, keep one feed and one transformation, and remove headers before pasting.

Check timestamps outside this calculator. A numeric list cannot reveal a missing weekend rule, duplicated bar, daylight-saving shift or gap in broker history. If observations are unevenly spaced, a bar-labelled decay or time-series interpretation can be false even though the arithmetic runs.

Record the symbol, timeframe, time zone, sample dates, preprocessing, window and model version with any saved result. That audit trail makes later comparisons meaningful and reduces the risk of selecting only the most attractive statistic.

Frequently asked questions

  • The page fits x at t equals alpha plus phi times x at t minus one, then uses log 0.5 divided by log phi only when phi is strictly between zero and one.
  • The intercept allows the fitted AR(1) equation to imply a nonzero long-run mean equal to alpha divided by one minus phi.
  • It is withheld when fitted phi is zero, negative, one or above one because this page defines half-life only for positive geometric decay.
  • It is measured in entered observation intervals; the selected bars, hours, days or weeks label does not validate timestamps.
  • No. The estimate does not include stationarity, forecast error, spread, commission, slippage, liquidity or execution risk.
  • No. It fits one AR(1) and reports descriptive evidence; ADF, KPSS or other tests are separate.
  • You can enter one already constructed spread, but this page does not estimate its hedge ratio or establish cointegration.
  • No. It is a mathematical transform of fitted phi, not an entry, exit, stop, target or holding-period recommendation.

Sources and methodology

The operational contract is version 1.0.0. Its formulas, fixture outputs, maximum sample and withheld-output rules are tested locally before staging release.

Compare the chart feed and trading terms

Before transferring an entered-series result to execution, confirm the broker’s symbol specification, chart history, time zone, spreads, commissions and financing. Calculations based on one feed need not reproduce on another.

XM

Review available instruments, chart history and account terms for your region.

Check XM terms

FBS

Compare symbol specifications, pricing feeds and trading conditions.

Check FBS terms

FXOpen

Confirm platform history, contract details and execution costs.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.