arXiv Science⌕ Search

arXiv · 2612.01655

RChiSquare: A Unified Framework for Chi-Square Tests in One, Two and Three Dimensions

Abstract

Chi-square tests remain widely used despite the availability of more powerful goodness-of-fit and two-sample procedures. Their appeal lies in their broad applicability to discrete and continuous data, in one or more dimensions, and in a well-developed large-sample theory that facilitates significance testing, power estimation, and sample-size planning. Although their power depends on the choice of partition, relatively few well-chosen cells can provide useful performance. The RChiSquare package provides a unified interface to the Cressie--Read family of power-divergence statistics for discrete and continuous observations in one, two and three dimensions. It accommodates fully specified and composite goodness-of-fit hypotheses, two-sample testing, parameter estimation, analytic and simulation-based power calculations, and sample-size determination. The examples illustrate testing, analytic power calculations, and sample-size planning, including comparisons with alternative procedures. They demonstrate the use of the routines rather than providing a simulation-based calibration study. The emphasis is on making established methods available within one coherent workflow.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Wolfgang Rolke. 2026-12-01. RChiSquare: A Unified Framework for Chi-Square Tests in One, Two and Three Dimensions. https://arxiv.science/abs/2612.01655

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 arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Survival Inference with Label-Shifted, Label-Censored Source Data and Unlabeled Target Data

Let P represent the source population with complete data, containing covariate $\mathbf{Z}$ and response $T$, and Q the target population, where only the covariate $\mathbf{Z}$ is available. We consider a setting with both label shift and label censoring. Label shift assumes that the marginal distribution of $T$ differs between $P$ and $Q$, while the conditional distribution of $\mathbf{Z}$ given $T$ remains the same. Label censoring refers to the case where the response $T$ in $P$ is subject to random censoring. Our goal is to leverage information from the label-shifted and label-censored source population $P$ to conduct statistical inference in the target population $Q$. We propose a parametric model for $T$ given $\mathbf{Z}$ in $Q$ and estimate the model parameters by maximizing an approximate likelihood. This allows for statistical inference in $Q$ and accommodates a range of classical survival models. Under the label shift assumption, the likelihood depends not only on the unknown parameters but also on the unknown distribution of $T$ in $P$ and $\mathbf{Z}$ in $Q$, which we estimate nonparametrically. The asymptotic properties of the estimator are rigorously established and the effectiveness of the method is demonstrated through simulations and a real data application. This work is the first to combine survival analysis with label shift, offering a new research direction in this emerging topic.

stat.ME↗

Spatiotemporally Consistent Multivariate Bias Correction for Climate Projections via Nested Vine Copulas

Climate models are essential for understanding large-scale climate dynamics and long-term climate change, yet they exhibit systematic biases when compared with historical observations. Existing multivariate bias correction (MBC) approaches do not explicitly handle spatiotemporal dependence. However, preserving both spatiotemporal and inter-variable consistency is essential for realistic climate dynamics and reliable regional impact assessments. To address this gap, we propose a novel MBC method called GN-VBC that uses generalised additive models (GAMs) to disentangle spatiotemporal deterministic effects from stochastic residuals. To model joint distributions and dependencies across variables and locations, we introduce nested vine copulas (NVCs), a hierarchical vine merging strategy. NVC in the context of MBC combines two dependence levels: (i) spatial dependence across locations, modelled separately for each variable, and (ii) inter-variable dependence modelled at a selected reference location, which links the spatial models into a coherent multivariate and spatial structure. An application to Switzerland shows improvements in preserving inter-variable, spatial and temporal dependence across a wide range of evaluation metrics.

stat.ME↗

From Physics to Statistics: A Simple Route to Exponential Families via Maximum Entropy

Exponential families form the backbone of modern statistics and machine learning, but textbooks seldom explain them from first principles in an accessible way. Although minimal sufficiency and maximum entropy, a principle originating in physics, provide core motivation, they are often presented as technical and requiring advanced prerequisites. Here, a short, self-contained derivation of exponential families based on maximum entropy is presented that is straightforward to carry out, requires only a modest background in information entropy, and avoids technicalities like constrained optimisation. Two propositions are demonstrated in this fashion: i) exponential families with a general base function maximise information entropy with respect to a corresponding base distribution subject to fixed expectations of canonical statistics, and ii) exponential families with a constant base function maximise standard information entropy under the same constraints. Maximum entropy therefore provides a principled foundation for exponential families with minimal prerequisites, highlighting the value of teaching entropy in statistics courses.

stat.ME↗