Search arXiv⌕ Search

arXiv · 2611.19980

orderStatMoments: Exact Means, Variances, and Covariances of Order Statistics in R

Abstract

Calculating the moments, i.e., means, variances, and covariances, of the order statistics of a sample is critical, as they are foundations for order-statistics-based estimation and inference problems. In the early literature, the exact covariance matrices were tabulated only up to the sample size of 50 under normality. Recent software either provides exact calculation only for the means and variances of single order statistics, or obtains the covariances by approximations. We create the R package orderStatMoments to calculate the exact values of these moments for any ranks and any sample size. It covers thirteen built-in distribution families, specified by name and parameters as in R, and allows for continuous distributions defined by the user under relatively weak conditions. It also calculates the moments of any linear combination of order statistics, including sample quantiles, and Lloyd's best linear unbiased estimators with their variances. The work makes two contributions. First, the package provides the exact covariances between order statistics, which no software we found does. Second, we design methods based on the statistical properties of order statistics critical for ultra accurate computing at large sample sizes and various distributions. The accuracy is verified against closed forms at sample sizes up to $n = 10^6$, against the permutation identities on full matrices, and against 556 cells tabulated in seven publications, where it identified some errors far beyond the stated accuracy. A comparison with five R packages and Python's SciPy shows advantages of this package. Computing is efficient, with a time nearly independent of the sample size.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zheyang Wu, Tiejun Tong. 2026-11-15. orderStatMoments: Exact Means, Variances, and Covariances of Order Statistics in R. https://searcharxiv.org/abs/2611.19980

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

dapper: Data Augmentation for Private Posterior Estimation in R

This paper serves as a reference and introduction to using the R package dapper. dapper encodes a sampling framework which allows exact Markov chain Monte Carlo simulation of parameters and latent variables in a statistical model given privatized data. The goal of this package is to fill an urgent need by providing applied researchers with a flexible tool to perform valid Bayesian inference on data protected by differential privacy, allowing them to properly account for the noise introduced for privacy protection in their statistical analysis. dapper offers a significant step forward in providing general-purpose statistical inference tools for privatized data.

stat.CO↗

WAIVES: Weak-form Asymptotically-unbiased Instrumental-Variable Estimation for SDEs

Weak-form methods have transformed inference for deterministic dynamical systems. By integrating the governing equations against smooth, compactly supported test functions, they trade noise-amplifying differentiation for noise-attenuating integration, yielding fast and robust estimates. Extending this idea to stochastic differential equations (SDEs) has proven harder, and a consistent single-trajectory formulation in the time domain has remained out of reach. Applied naively in the time domain, the weak form makes the regressors and the errors functionals of the same noise, creating endogeneity that leaves weak-form least squares biased and inconsistent. We resolve it with instrumental variables, a classical idea from econometrics. Weak-form integrals over nearby disjoint time windows prove to be valid instruments, correlated with the regressors yet uncorrelated with the error, restoring consistency and asymptotic normality. The resulting generalized-method-of-moments estimator, WAIVES (Weak-form Asymptotically-unbiased Instrumental-Variable Estimation for SDEs), requires only a linear solve, with no likelihood evaluations, filtering, or simulation. It is therefore an order of magnitude faster than exact-likelihood methods where those exist, and it applies unchanged where they do not, with standard errors and calibrated confidence intervals supplied by the moment conditions. It also separates measurement noise from the intrinsic randomness of the dynamics. Across nine example systems, spanning linear, bistable, chaotic, excitable, state-dependent-diffusion, non-polynomial, hypoelliptic, and high-dimensional regimes (up to 120 dimensions), WAIVES recovers nonlinear drift and diffusion with negligible bias and near-nominal interval coverage. We close with two real-data illustrations: a 167-year North Atlantic sea-surface-temperature record and an optical-tweezer calibration.

stat.CO↗

Norm-equation methods for structured group-penalized regression

Group-penalized regression with correlated predictors requires block updates for which familiar group soft thresholding formulas are generally inapplicable. Although proximal-gradient methods can solve such updates directly, their computational cost depends on the penalty and the design. We develop a norm-equation framework for a Euclidean group penalty combined with a finite, closed, convex, positively homogeneous within-group penalty. Each nonzero block minimizer is characterized by a unique scalar root, evaluated through strongly convex inner problems without enumerating sparsity or fusion patterns. Valid inner subgradients provide computable bounds on the scalar function and the block Karush-Kuhn-Tucker (KKT) error. These bounds allow scalar-search decisions and acceptance of approximate updates without solving every inner problem to high accuracy. Accounting for gradient changes during a cyclic sweep then gives a computable global KKT bound. Combined with standard stochastic-score and restricted-curvature conditions, this bound leads to a regularization-scaled stopping rule under which approximate estimators retain the usual estimation and prediction rates. Experiments with sparse-group and fused sparse-group regression show that computational performance depends strongly on the inner solver, with coordinate-descent and dual implementations offering advantages over direct proximal methods in some highly correlated settings.

stat.CO↗