Learn R Programming

NNS

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/

For a direct quantitative finance implementation of NNS, see OVVO Labs

Current Version

Current CRAN version is

Installation

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')

Examples

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.

Citation

@Manual{,
    title = {NNS: Nonlinear Nonparametric Statistics},
    author = {Fred Viole},
    year = {2016},
    note = {R package version 13.1},
    url = {https://CRAN.R-project.org/package=NNS},
  }

Thank you for your interest in NNS!

Copy Link

Version

Install

install.packages('NNS')

Monthly Downloads

4,382

Version

13.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Fred Viole

Last Published

July 16th, 2026

Functions in NNS (13.1)

NNS.caus

NNS Causation
NNS.ARMA.optim

NNS ARMA Optimizer
NNS.SD.efficient.set

NNS SD Efficient Set
NNS.TSD.uni

NNS TSD Test uni-directional
NNS.TSD

NNS TSD Test
NNS.SS

NNS Stochastic Superiority
NNS.distance

NNS Distance
NNS.part

NNS Partition Map
NNS.boost

NNS Boost
NNS.gravity

NNS gravity
NNS.copula

NNS Co-Partial Moments Higher Dimension Dependence
NNS.VAR

NNS VAR
NNS.reg

NNS Regression
NNS.diff

NNS Numerical Differentiation
NNS.SSD.uni

NNS SSD Test uni-directional
NNS.dep

NNS Dependence
NNS.SSD

NNS SSD Test
UPM.VaR

UPM VaR
NNS.norm

NNS Normalization
PM.matrix

Partial Moment Matrix
UPM

Upper Partial Moment
dy.dx

Partial Derivative dy/dx
NNS.mode

NNS mode
NNS.meboot

NNS meboot
NNS.moments

NNS moments
NNS.stack

NNS Stack
NNS.rescale

NNS rescale
NNS.seas

NNS Seasonality Test
UPM.ratio

Upper Partial Moment Ratio
dy.d_

Partial Derivative dy/d_[wrt]
Co.LPM

Co‑Lower Partial Moment
Co.LPM_nD

Co‑Lower Partial Moment nD
D.LPM

Divergent‑Lower Partial Moment
Co.UPM_nD

Co‑Upper Partial Moment nD
Co.UPM

Co‑Upper Partial Moment
Co.LPM_nD.batch

Batched Co-Lower Partial Moment nD
NNS.SD.cluster

NNS SD-based Clustering
LPM.VaR

LPM VaR
LPM.ratio

Lower Partial Moment Ratio
LPM

Lower Partial Moment
NNS.ANOVA

NNS ANOVA: Nonparametric Analysis of Variance
NNS.FSD.uni

NNS FSD Test uni-directional
NNS.MC

NNS Monte Carlo Sampling
NNS.FSD

NNS FSD Test
DPM_nD

Divergent Partial Moment nD
D.UPM

Divergent‑Upper Partial Moment
NNS.CDF

NNS CDF
NNS

NNS: Nonlinear Nonparametric Statistics
NNS.ARMA

NNS ARMA