Nonlinear Nonparametric Statistics: Using Partial Moments
Second Edition
2026
Preface
This is the Second Edition of Nonlinear Nonparametric Statistics: Using Partial Moments, updated and expanded by Fred Viole in 2026, building upon the foundational 2013 work with David Nawrocki.
This book presents the Nonlinear Nonparametric Statistics (NNS) framework as a coherent toolkit for modeling dependence, uncertainty, prediction, and decision-making without imposing restrictive distributional assumptions.
The chapters are organized to move from foundational concepts to practical modeling workflows:
- first principles of nonlinear dependence and directional relationships,
- nonparametric methods for distribution estimation, clustering, regression, and classification,
- time-series forecasting frameworks for univariate and multivariate settings,
- and implementation guidance for applied research and production analytics.
The central theme is consistent throughout: when data are asymmetric, heavy-tailed, nonlinear, or regime-sensitive, useful structure can still be examined in observed data using directional and nonparametric methods.
Executive Summary
This book is designed for readers who want mathematically grounded methods that remain practical in real-world settings where classical assumptions can fail.
At a high level, the NNS framework emphasizes:
- distribution-agnostic modeling rather than strict parametric family selection,
- directional dependence and lagged-association diagnostics beyond purely symmetric association summaries, with causal interpretation requiring additional identification assumptions,
- nonlinear predictive systems that can adapt to heterogeneous signal structures,
- and modular workflows in R and Python so methods can be combined for exploratory analysis, forecasting, and risk assessment.
Readers can use the text in two ways:
- Sequentially, as a complete conceptual arc from core definitions to advanced forecasting systems.
- As a reference, by jumping directly to method-specific chapters and accompanying implementation examples.
Whether your domain is economics, finance, operations, policy, or scientific research, the goal is the same: to provide robust, interpretable, and applied nonparametric tools for difficult data.
About the Examples Repository
This book is designed to be used alongside the companion examples repository:
The repository is organized as a practical application layer. Conceptual and theoretical development lives in the book, while reproducible scripts and end-to-end demonstrations live in the examples.
A useful way to navigate both resources together is:
- Read the chapter for the theoretical framework and notation.
- Open the matching section in
examples/index.mdfor runnable code patterns. - Adapt those scripts to your own data and evaluate with your domain constraints.
The examples repository is intended for hands-on implementation, not as a substitute for the proofs and derivations developed in the text. Keep the repository disclaimer in mind when applying any script directly to production or policy settings; examples are instructional templates and should be validated, stress-tested, and context-calibrated before operational use.
About the Python Code
The NNS framework is also available as a Python package. Throughout the book, each R example is complemented by an equivalent Python workflow so that readers can follow the material in either language. The Python blocks show the functional calls only; outputs and figures are shown once through the R examples and are not reprinted.
The distribution package is ovvo-nns and the import package is nns:
The Python implementation has its own distribution, documentation, and examples:
- Python package (PyPI): https://pypi.org/project/ovvo-nns/
- Python documentation: https://ovvo-financial.github.io/NNS-python/
- API status and known differences: https://ovvo-financial.github.io/NNS-python/api_status/
- Source code and numbered Python vignette companions: https://github.com/OVVO-Financial/NNS-python
The R package remains the reference implementation and source of truth for the NNS statistical definitions and canonical examples. The Python package is native and does not call R at runtime. The canonical examples index links the R vignettes to their Python companions.
Conventions used by the Python code in this book:
- Naming. R function names generally map to snake_case in Python:
NNS.depisnns_dep,LPM.VaRislpm_var,Co.LPMisco_lpm,PM.matrixispm_matrix, and so on. Argument names follow the same rule (seasonal.factorbecomesseasonal_factor). - Inputs and outputs. Functions accept NumPy arrays and return NumPy arrays, Python scalars, or plain dictionaries keyed by the same names as the R list elements (for example
fit["Point.est"]). - Randomness. Example scripts that use NumPy’s
default_rngdo not generally reproduce draws from R’sset.seed. Separately, supported stochastic NNS-Python functions use an explicitrandom_seedargument to reproduce corresponding R seeded behavior where parity is documented. Consult the Python parity documentation before assuming exact equivalence. - Plotting. Where an R example’s purpose is a figure, the Python workflow either passes
plot=Trueor calls the matching helper fromnns.plotting(for exampleplot_nns_part,plot_nns_reg).