The guide
A short series reads above one half for pure white noise until you subtract what white noise gives
Rescaled-range analysis fits a slope to the average R/S at several block sizes, and for short series even random numbers give a slope above one half, so the white-noise expectation has to come out first.
- 0.5629 raw exponent of the 256-value white-noise example
- 0.4939 the same example after the Anis-Lloyd correction
- 0.3895 to 0.5909 white-noise band for 256 values, 2,000 runs, seed 61
- 0.9528 raw exponent when the running total is fed in instead
- 1.8371 R/S of the six-value series with the divisor n
Read the full guide Fold the guide
Take 256 numbers from a seeded random generator, with no memory in them at all. Run rescaled-range analysis and the slope comes out at 0.5629. The usual reading says anything above one half is persistent, so the series seems to trend. It does not. The numbers are white noise, and the slope is high in a way that can be predicted and removed. That prediction is the whole subject of this page. The method is old, the formula for the correction is short, and the trap is easy to fall into because a result of 0.56 looks like a small, harmless drift from the textbook value of one half.
What the exponent measures
Harold Edwin Hurst was a British hydrologist who worked on the Nile for decades. His 1951 study of the long-term storage capacity of reservoirs documented long-range dependence in the water level of the river, and he developed the empirical rescaled range method to measure it. The exponent now carries his name and has since been used in finance and cardiology. The question he asked was practical. How large must a dam be so that it never runs dry across a long run of wet and dry years? The answer depends on how the yearly inflows cluster, and a measure of clustering is what the exponent became.
The exponent H describes the long-term memory of a time series. It is tied to the autocorrelations of the series and to how fast they fade as the gap between two values grows. A value between 0.5 and 1 means positive autocorrelation whose decay is slower than exponential, following a power law, so a high value tends to be followed by another high value. A value between 0 and 0.5 means the series keeps switching between high and low values, and that tendency also lasts a long time. A value of 0.5 marks short memory, where autocorrelations die away exponentially quickly. Long-range dependence is usually defined by that slow, power-like decay of the dependence between points.
A second description comes from partial sums. For short-range dependence the variance of the sum of consecutive values grows in proportion to the number of terms. For long-range dependence it grows faster, often as a power with an exponent above 1. That growth is exactly what the rescaled range probes.
The cleanest model is fractional Brownian motion. At H = 1/2 it is the ordinary Wiener process, whose increments are independent. Above 1/2 its increments are positively correlated, and below 1/2 they are negatively correlated. Notice where the memory lives: in the increments, not in the path they add up to. For a self-similar series the exponent also gives a fractal dimension, D = 2 - H, so a higher H means a smoother, less ragged series.
How R/S is computed
Cut the series of N values into non-overlapping blocks of n values, with n = N, N/2, N/4 and so on. In each block take the mean, subtract it from every value, and add the results up as you go to get the cumulative deviate series. The range R is its maximum minus its minimum. Divide by S, the standard deviation of the block, and average R/S over all blocks of that size.
The exponent is the slope of a straight line fitted to the logarithm of the average R/S against the logarithm of n. The tool on this page lists the block sizes, the number of blocks behind each average, and the steps for one block in full. One detail deserves care. The Rescaled range article works through the series 1, 3, 1, 0, 2, 5. Its mean is 2, the mean-adjusted values are -1, 1, -1, -2, 0, 3, the cumulative deviates are -1, 0, -1, -3, -3, 0, and the range is 3. The article gives S = 1.79 and R/S = 1.68, which is the standard deviation with the divisor n - 1 (1.7889).
The Hurst exponent article defines S(n) with the divisor n instead, and that gives S = 1.6330 and R/S = 1.8371. The two pages disagree. The tool follows the formula with n, because the white-noise expectations discussed below were derived for it. Python’s statistics module keeps the two forms apart as pstdev and stdev, and the Variance article explains the difference: the uncorrected sample variance underestimates by a factor of (n - 1) / n.
Why a short series reads high, and the fix
The Hurst exponent article says plainly that this slope estimate is biased, and that for small n there is a significant deviation from a slope of 0.5. The size of the deviation is not a mystery. Anis and Lloyd gave the expected R/S of independent normal values for each n: a ratio of gamma functions times the sum over i from 1 to n - 1 of the square root of (n - i) / i, for n up to 340, and a simpler closed form above that.
The values are 2.6246 at n = 8, 4.0355 at n = 16, 8.9656 at n = 64 and 18.9431 at n = 256. A check run for this page simulated 200,000 blocks of white noise at n = 8, 16 and 64 with a seeded generator. The divisor n reproduced the formula (2.625 at n = 8), while the divisor n - 1 gave 2.456.
Now read the slope of that expectation rather than assuming it is 0.5. Between n = 8 and 16 the local slope is 0.62. Between 128 and 256 it is 0.53. Over the block sizes 8 to 256 the straight-line slope of the logarithm of the expectation is 0.5690. White noise measured over those blocks is therefore supposed to give a raw exponent near 0.569, not 0.5.
The seeded example gives 0.5629. It is not a trending series; it is white noise doing what white noise does.
The corrected exponent is 0.5 plus the raw slope minus the slope of the white-noise expectation. For the example that is 0.5 + 0.5629 - 0.5690 = 0.4939. The Hurst exponent article words this as “0.5 plus the slope” of R/S minus its expectation, which can be read more than one way. The tool takes the slope of the logarithm of R/S minus the logarithm of the expectation, which equals the difference of the two fitted slopes, and says so on the page.
The closed form above n = 340 sits 0.22 percent below the gamma form at n = 340 (21.9445 against 21.9931), and the expectation at 341 is 21.9785, a hair below the value at 340. It is a small step that the published formula carries. The tool shows it as it is.
A corrected value of 0.4939 is not exactly one half, and no series of 256 values will land exactly there. To see how far white noise strays, the tool simulates seeded series of the same length and reports the 5th to 95th percentile of their corrected exponents. With the default seed 61 and 2,000 runs the band for 256 values is 0.3895 to 0.5909, with a median of 0.4917.
The generator is a small 32-bit routine that leans on integer multiplication, which Math.imul provides in JavaScript, and the same seed always gives the same band. Inside the band, the tool calls the series short-memory. Above it, persistent. Below it, anti-persistent. That reading is the tool’s own choice of a threshold, not a significance test, and the Hurst exponent article notes that no asymptotic distribution theory has been derived for most estimators.
A second estimator guards against a single method’s quirks. Detrended fluctuation analysis sums the mean-removed series into a profile, cuts it into windows, removes a straight line from each window and tracks the root-mean-square leftover as the window grows. Its exponent plays the same role as H. For the example, with windows of 8, 16, 32 and 64, it gives 0.5048.
Levels, changes and false memory
Feed the tool 256 values made of white noise plus a slow wave of period 128 and amplitude 0.5, and the raw exponent is 0.7659, the corrected one 0.6970, above the band, with DFA-1 at 0.5905. That reads as persistence, and in a sense it is. But a trend is not long memory. R/S, like DFA, cannot tell a deterministic cycle from a process whose dependence decays as a power law.
The opposite case is noise minus 0.9 of the previous noise value. Its corrected exponent is 0.1508, far below the band, which is what strong alternation looks like. The Long-range dependence article calls this regime anti-persistent, with strong negative correlation, and describes a process that fluctuates violently.
The most damaging mistake is not numerical at all. The exponent describes increments. A random walk, as the Rescaled range article puts it, has H = 1/2, and a random walk is the running total of independent steps. Analyse the steps and you learn about their memory. Analyse the running total and you analyse a path that already remembers every step it took.
Take the 256 example values, add them up as you go, and feed that path in as if it were the series. The raw exponent jumps from 0.5629 to 0.9528 and the corrected one to 0.8839, from numbers with no memory whatsoever. Prices are levels, so the tool has a switch that differences a list of levels first. A price list therefore needs 33 numbers to yield the 32 changes the analysis wants. Lo’s adjustment is a further refinement. It replaces S with a version that adds weighted autocovariances, to allow for short-range autocorrelation. Using it, he concluded that stock return series show no evidence of long-range memory. This tool does not apply that adjustment.
Other small mistakes each shift the number. Using the divisor n - 1 gives a raw exponent of 0.5800. Letting blocks shrink to 4 values gives 0.5805 raw and 0.4970 corrected. Fitting R/S against n without logarithms gives a slope of 0.0620 that is not an exponent at all. Switching the logarithm to base 2 changes nothing, because both axes are rescaled by the same constant.
What it cannot do
The method is a sampling estimate with known bias, and the Hurst exponent article suggests that fitting the power law by maximum likelihood is more principled than a line on a log-log plot. The Detrended fluctuation analysis article warns that the algorithm returns a positive exponent for any series, so a number says nothing about self-similarity unless the log-log plot is straight over a wide range. Nothing here tests stationarity, and nothing forecasts. The Efficient-market hypothesis article states that prices should react only to new information, which makes consistent beating of the market hard. A persistent exponent is a description of one sample, not a rule that a trade will pay.
To reproduce the numbers, open the page: it loads the seeded example with seed 61 and a smallest block of 8. The slopes were checked against numpy.polyfit, and the gamma ratio against a log-gamma routine of the kind SciPy documents as gammaln.
Sources
Every source consulted for this guide. Links checked November 22, 2026.
- Hurst exponent Wikipedia
- Rescaled range Wikipedia
- Detrended fluctuation analysis Wikipedia
- Long-range dependence Wikipedia
- Fractional Brownian motion Wikipedia
- Harold Edwin Hurst Wikipedia
- Random walk Wikipedia
- Wiener process Wikipedia
- Autocorrelation Wikipedia
- Self-similarity Wikipedia
- Fractal dimension Wikipedia
- Efficient-market hypothesis Wikipedia
- Time series Wikipedia
- Variance Wikipedia
- statistics - Mathematical statistics functions Python Software Foundation
- Math.imul() MDN Web Docs
- scipy.special.gammaln SciPy documentation
- numpy.polyfit NumPy documentation