A Computational Framework for Exploring Probability Distributions and Statistical Inference: An Interactive R Shiny Laboratory
StatInferra is an interactive computational laboratory implemented in R and Shiny for exploring probability distributions and statistical inference. Version 3.1.1 provides 27 selectable probability models within a common workflow for analytical probability calculations, random sampling, sampling distributions, Monte Carlo estimation and repeated evaluation of estimator performance. Users can inspect mathematical workings, simulated observations and statistical diagnostics, and export data and R scripts. This paper describes the software architecture, mathematical framework and numerical verification. A source-level test suite executed against Version 3.1.1 in R 4.5.2 returned 154 passing checks and no failures. Two analytical case studies, using Binomial and standard normal models, compared 5,421 exported probability, density and cumulative values with independent reference calculations; the largest absolute discrepancy was 1.55 × 10⁻¹⁵. Twelve tabulated probability queries and two quantile queries also agreed to the displayed precision. Supplementary Monte Carlo examples illustrate empirical probability estimation and estimator variability. The results support numerical consistency for the configurations examined, rather than exhaustive software correctness or educational effectiveness. Full reactive testing and independent execution of the generated scripts remain outstanding. The laboratory is intended to support statistical education and reproducible computational experimentation.
Authors
- Ebuka Emmanuel Ajaegbu
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24732737
- Primary Topic
- Statistics Education and Methodologies
- Type
- preprint