Why short particle tracks give the wrong diffusion exponent, and what to do about it
A 2025 paper proposes an ensemble-based correction for the anomalous exponent read from very short single-particle tracks. We test its variance law on simulated Brownian walks with fibub's random walk tool.
Watch a labelled molecule under a microscope and you rarely get a long track. It bleaches, it leaves the focal plane, it crosses another track and the software gives up. What you are left with is a few thousand trajectories of ten or twenty points each, and from each one people read an anomalous exponent α: the power in MSD ∝ t^α, where 1 means ordinary diffusion, below 1 means hindered or confined motion and above 1 means something is pushing. A 2025 paper in Applied Sciences works out how badly that estimate behaves on such short tracks and proposes correcting each trajectory’s value towards the ensemble’s. Everything in its analysis can be tested in a browser, because the random walk tool both makes the walks and fits them. For the physics on either side, see the diffusion calculator and, for the spread of the estimates themselves, the probability distribution explorer.
The paper in brief
The authors work with the time-averaged mean square displacement (TA-MSD) of a single trajectory: for each lag τ, average the squared displacement over every pair of frames τ apart in that one track, then fit a straight line to log MSD against log τ. The slope is α̂.
Their analysis says three things. First, the variance of α̂ falls as 1/T, where T is the number of steps in the trajectory. Second, the variance of the log of the TA-MSD at a short lag is itself about 1/T. Put together, with the fit done over the first four lags (τ = 1, 2, 3, 4), the geometry of the fit contributes the constant Σ(log τ − mean)² ≈ 1.08434, so
Var[α̂] ≈ 0.9216 / T.
Third, because the per-trajectory estimates are noisy but their ensemble mean is not, each estimate should be pulled towards the ensemble mean by an amount set by the two variances — a shrinkage correction built on a time-and-ensemble averaged MSD. The paper aims this at trajectories “of up to ten points”, where the single-track estimate is worst.
Checked with the tools
The paper’s variance law is a prediction about an estimator, so it can be tested exactly, with no data at all: generate walks whose true exponent is known to be 1, run the tool’s own TA-MSD and log-log fit on them, and look at the spread.
We simulated 8000 two-dimensional Brownian trajectories at each of eight lengths (10 to 400 steps), with D = 0.5 µm²/s and 1 s frames, using the random number generator and the TA-MSD of src/lib/sci/phwalk.ts — the maths behind the random walk tool. For each trajectory we fitted α over lags 1 to 4, exactly as the paper does. These are simulated walks, not the paper’s data.
The geometric constant checks out. For τ = 1 to 4 we get Σ(log τ − mean)² = 1.084207, against the paper’s 1.08434, and its reciprocal is 0.92233 against the paper’s 0.9216. The small differences are rounding in the paper, not a mistake.
The 1/T law holds, from about 50 steps up. Multiplying the measured variance by T should give a flat line at 0.9216 if the law is exact:
| Trajectory length T | Var[α̂] × T (8000 tracks) | Mean α̂ (true value 1) |
|---|---|---|
| 10 | 1.203 ± 0.019 | 0.925 |
| 15 | 1.125 ± 0.018 | 0.951 |
| 20 | 1.051 ± 0.017 | 0.967 |
| 30 | 1.011 ± 0.016 | 0.982 |
| 50 | 0.950 ± 0.015 | 0.992 |
| 100 | 0.948 ± 0.015 | 0.993 |
| 200 | 0.939 ± 0.015 | 0.997 |
| 400 | 0.891 ± 0.014 | 0.999 |
At ten steps the real variance is 30 % larger than the law predicts, and the spread of α̂ is a standard deviation of 0.347 — so a single ten-point track tells you almost nothing about whether α is 0.7 or 1.3. From 50 steps on the product settles into a band around 0.89 to 0.95, a few per cent below 0.9216 rather than exactly on it, which is what you expect when Var[log TAMSD] ≈ 1/T is itself an approximation that ignores the strong correlation between neighbouring lags. The law’s shape is right; its constant is good to within about 5 %.
There is a bias, not just noise. The mean of α̂ over 8000 pure Brownian tracks of ten steps is 0.925, not 1: taking the logarithm of a noisy MSD pulls the fit down, and the effect does not average away within one track. That systematic 7.5 % undershoot is exactly the thing the paper’s correction is for, and it is worth remembering when a paper reports “subdiffusion, α ≈ 0.9” from short tracks.
Pooling fixes most of it. Feed the tool ten of those ten-step tracks at once and it computes the time-and-ensemble averaged MSD before fitting. The mean α̂ becomes 0.991 and the standard deviation drops from 0.347 to 0.112, a factor of 3.1 — close to the √10 you would hope for. This is the quantitative case for the paper’s approach: the ensemble carries the information a single short track cannot.
Localisation noise bends α̂ further down. Add camera noise to the positions of the same ten-step tracks and the measured exponent falls: with a position error whose variance is 10 % of one step’s mean square displacement, mean α̂ = 0.831; at 25 %, 0.733. The fitted diffusion coefficient, meanwhile, stays right: 0.499 and 0.507 µm²/s against the true 0.5, because the tool fits an offset for the localisation error. So on short, noisy tracks D is the trustworthy number and α is not.
How we made the graphs
Both charts and every number above come from scripts/blog-figures/short-track-msd-anomalous-exponent-bias-correction.mjs in fibub’s public code. It calls rng (the seeded generator), trackMSD (the time-and-ensemble averaged MSD, by matching frames on time so gaps are allowed), alphaFit (the log-log slope and its standard error) and fitD (MSD = 2dDt with an offset) from src/lib/sci/phwalk.ts, the maths behind the random walk tool.
From the paper: the estimator (TA-MSD over lags 1 to 4), the variance law, the constant 1.08434 and the ten-point target. Our assumptions, all in the script: two dimensions, D = 0.5 µm²/s, 1 s frames, pure Brownian motion (so the true α is exactly 1), 8000 trajectories per length, groups of ten for the pooled case, and localisation noise set as a fraction of one step’s mean square displacement. The paper’s own simulations use fractional Brownian motion, which can give α ≠ 1; we used the α = 1 case because that is where the true answer is known without any extra model.
How we test the maths
On every change to fibub, tests/sci.mjs runs tests/sci-tools/random-walk-diffusion.mjs, which pins this module against an independent NumPy script and against theory:
- the time-averaged MSD of the ten example tracks must match NumPy’s array-difference calculation to ten decimal places, with 990 displacement pairs at the first lag;
- fitting the first ten lags must give D = 0.4716078395 through the origin and D = 0.4657906169 with an offset of 0.0162882232, as
numpy.linalg.lstsqdoes, with the same standard error; the exponent must be 0.9694971955, asnumpy.polyfitgives; - 1D, 2D and 3D lattice and Gaussian walks of 2000 walkers must each recover D = a²/(2dΔt) to within 6 %, and the same seed must reproduce a run exactly.
- New with this article: the lag geometry for τ = 1 to 4 must give Σ(log τ − mean)² = 1.0842075, and 2000 seeded ten-step Brownian tracks must reproduce a mean α̂ of 0.9208 (true value 1) and a Var[α̂] × T of 1.2025, so the short-track bias stays pinned if the generator or the fit ever changes.
Check it yourself
On the random walk page, in the Particle tracks card:
-
Press Use the example tracks (ten made-up Brownian tracks, 100 frames each, 0.1 s apart).
-
Set Lags to fit to 4 and leave Fit an offset (localisation error) ticked, Coordinates on x, y and First column on track name.
-
It reads Exponent α 0.964 ± 0.004, D about 0.469 µm²/s and an Offset of 0.0157 µm² (a position noise of about 0.063 µm). Ten long tracks pooled give a tight, almost unbiased answer.
-
Now replace the box with one short track of our own — First column time (one track), times in seconds, positions in µm:
0, 0, 0; 1, −0.66, −2.189; 2, −0.215, −2.272; 3, 1.652, −0.568; 4, 2.273, −2.372; 5, 3.216, −1.399; 6, 2.754, −0.398; 7, 2.65, −0.427; 8, 1.243, 0.401; 9, 2.236, 1.046; 10, 2.436, 0.828
-
With Lags to fit 4, it reads Exponent α 0.874 ± 0.114 and D 0.471 ± 0.072 µm²/s. The walk was generated with α exactly 1 and D exactly 0.5, so you are looking at the short-track error in one example: D is fine, α is 13 % low and its error bar is wide.
-
In the Simulated walk card, set Walkers to 8000, Steps per walker to 10, Steps to Gaussian and press nothing else: the ensemble MSD over the same ten steps gives α = 1.003 and D = 0.249 (the theory value is a²/(2dΔt) = 0.25). Whole-ensemble fitting is a different statistical problem from per-track fitting.
What researchers can use it for
- Decide how long your tracks must be before you claim a value of α: run the simulation at your own frame rate, D and track length and read the spread. Below about 30 steps a single-track α is not usable on its own.
- Put an honest error bar on a published exponent: the tool prints the standard error of the log-log slope, and the 0.9216/T law gives a second, independent estimate.
- Separate noise from subdiffusion: fit with and without the localisation offset and watch α move. A 10 % position-error variance alone drags α̂ from 1 to 0.83.
- Check a pipeline end to end: generate tracks with a known α and D, push them through your own analysis code, and see what comes back — the tool’s CSV downloads make that a two-minute job.
- Teach the estimator, not just the physics: the same data, fitted per track or pooled, gives two different answers, which is the paper’s point.
The fine print
- Our walks are simulated with the tool’s own generator. Nothing here reproduces the paper’s figures or tables; we test the law it derives.
- We used ordinary Brownian motion (α = 1). The paper’s correction is built for fractional Brownian motion with α away from 1, where the bias and variance differ.
- The paper’s shrinkage formula itself (its equations 15 to 17) is not implemented in the tool; we checked the variance law it rests on and the pooled estimator it leans on.
- The variance of a variance is wide: our bars are ±√(2/(N−1)) of the value, with N = 8000, so differences smaller than about 3 % are not significant.
- Real tracks also have drift, confinement and switching between states, all of which move α for physical reasons rather than statistical ones.
Sources
- Lavrynenko, R., Kirichenko, L., Yakovlev, S., Lavrynenko, S. and Ryabova, N. (2025), Ensemble-Based Correction for Anomalous Diffusion Exponent Estimation in Single-Particle Tracking, Applied Sciences 15(14): 8000, doi:10.3390/app15148000. Licence CC BY 4.0 from the Crossref record for the version of record (the MDPI page's own rights metadata says CC BY 3.0), checked 2026-11-24; no retraction or correction in Crossref. Values used here: the time-averaged MSD estimator fitted over lags τ = 1 to 4; Var[log TAMSD(τ)] ≈ 1/T for T much greater than τ; the lag-geometry constant Σ(log τ − mean)² ≈ 1.08434; the resulting variance of the exponent ≈ 0.9216/T; the paper's target of trajectories of about ten points.
- MSD = 2dDt and the exponent from a log-log fit of the time-averaged MSD, with a fitted offset for localisation error: standard practice, for example Michalet, X. (2010), Physical Review E 82, 041914.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.