Derivation of the Sample-Size Scaling of TWO-NN Intrinsic-Dimension Estimates from Molecular Dynamics Trajectories
arXiv:2609.04914
Abstract
The intrinsic dimension of a dataset is the number of independent directions needed to describe the space occupied by its data. Nearest-neighbor estimators infer it from how the probability of finding a neighbor grows around each sampled point. Because the neighbor distances decrease as the sample grows, the estimated dimension can depend strongly on the number of available points, which in molecular dynamics is set by trajectory length and saving frequency. We derive the large-sample behavior of the TWO-NN estimator for data drawn from a smooth -dimensional space. The typical nearest-neighbor distance scales as , and smooth deviations from local uniformity produce corrections in powers of . Isotropic noise adds a correction proportional to ; for a five-dimensional hyperplane in 100 noisy features, the extended expansion recovers the dimension within a few percent when noise is moderate. We test the scaling on ten independent 100 s simulations of alanine dipeptide, represented by the pairwise distances among its ten heavy atoms, whose geometric dimension is . Over the investigated range, the estimate does not depend systematically on the temporal spacing between configurations, but increases from to as grows from to . Extrapolations that retain corrections through , , and give limiting dimensions of , , and , respectively. All three estimates lie within 6% of the known dimension and bracket it, and their spread measures the uncertainty due to truncation. The derived scaling provides a practical route from finite-sample estimates to the geometric dimension.
arXiv comment11 pages, 4 figures; Supplementary Material included