NNS (Nonlinear Nonparametric Statistics) leverages partial moments – the fundamental elements of variance that asymptotically approximate the area of f(x) – to provide a robust foundation for nonlinear analysis while maintaining linear equivalences. Designed for real-world data that violates symmetry, linearity, or distributional assumptions.
NNS delivers a comprehensive suite of advanced statistical techniques, including:
- Numerical Integration & Numerical Differentiation
- Partitional & Hierarchical Clustering
- Nonlinear Correlation & Dependence
- Causal Analysis
- Nonlinear Regression & Classification
- ANOVA
- Seasonality & Autoregressive Modeling
- Normalization
- Stochastic Superiority / Dominance
- Advanced Monte Carlo Sampling
Companion R-package and datasets to:
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" (ISBN: 1490523995)
2nd edition available here: https://ovvo-financial.github.io/NNS/book/
Watch the chapter-by-chapter NNS video series: A pedagogical introduction to the intuition, mathematics, and applications of NNS.
For a direct quantitative finance implementation of NNS, see OVVO Labs
The partial-moment mathematics behind NNS is machine-checked in Lean 4 with Mathlib. Claims from the book, the help pages and the vignettes are stated as Lean theorems, each linked to the passage it checks. Continuous integration rebuilds every proof with lake build --wfail, so an unfinished proof (sorry) fails the build, and confirms that the claim index matches the proofs.
The proofs cover the mathematics; the package tests cover the R code. To build the proofs yourself, see lean/README.md.
requires
. See https://cran.r-project.org/ or
for upgrading to latest R release.
library(remotes); remotes::install_github('OVVO-Financial/NNS', ref = "NNS-Beta-Version")or via CRAN
install.packages('NNS')Please see https://github.com/OVVO-Financial/NNS/blob/NNS-Beta-Version/examples/index.md for basic partial moments equivalences, hands-on statistics, machine learning and econometrics examples.
@Manual{,
title = {NNS: Nonlinear Nonparametric Statistics},
author = {Fred Viole},
year = {2016},
note = {R package version 14.2},
url = {https://CRAN.R-project.org/package=NNS},
}
