Tool for non-parametric curve fitting using local polynomials.
Project description
KernReg
KernReg provides a pure-Python routine for local polynomial kernel regression based on Wand & Jones (1995) and their accompanying R package KernSmooth. In addition, KernReg comes with an automatic bandwidth selection procedure that minimizes the residual squares criterion proposed by Fan & Gijbels (1996).
KernReg allows for the estimation of a regression function as well as their derivatives. The degree of the polynomial may be chosen ad libitum, but degree = derivative + 1
is commonly recommended and thus set by default.
Background
Local polynomial fitting provides a simple way of finding a functional relationship between two variables (where X typically denotes the predictor, and Y the response variable) without the imposition of a parametric model. It is a natural extension of local mean smoothing, as described by Nadaraya (1964) and Watson (1964). Instead of fitting a local mean, local polynomial smooting involves fitting a local pth-order polynomial via locally weighted least-squares. The Nadaraya–Watson estimator is thus equivalent to fitting a local polynomial of degree zero. Local polynomials of higher order have better bias properties and, in general, do not require bias adjustment at the boundaries of the regression space.
References
Fan, J. and Gijbels, I. (1996). Local Polynomial Modelling and Its Applications. Monographs on Statistics and Applied Probability, 66. Chapman & Hall.
Wand, M.P. & Jones, M.C. (1995). Kernel Smoothing. Monographs on Statistics and Applied Probability, 60. Chapman & Hall.
Wand, M.P. and Ripley, B. D. (2015). KernSmooth: Functions for Kernel Smoothing for Wand and Jones (1995). R package version 2.23-18.
*
The image is taken from futurist illustrator Arthur Radebaugh's (1906–1974)
Sunday comic strip Closer Than We Think!, which was published by the Chicago Tribune - New York News Syndicate from 1958 to 1963.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kernreg-0.0.3.tar.gz
.
File metadata
- Download URL: kernreg-0.0.3.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.6 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1374e985e7d3ed98f75df151b294ceb9b2e830090faab8a9a344133e9a92b8e8 |
|
MD5 | b35326de21594cb6fbece69a538ff028 |
|
BLAKE2b-256 | 2e9df9d9cb137cfdf580bfd5bf14f7e69fe29f3e7165a58bcf0183cb8831177f |
File details
Details for the file kernreg-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: kernreg-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.6 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b03ea50d7773e68d871ee3b196bf3121cbc3be460ef2120f5a55121642c4d7ad |
|
MD5 | 1fec3335f940c3f1f00792b24ebfd5cf |
|
BLAKE2b-256 | f2769cdfcffd9a0c0bf0766a66fd22b9535e87e0ac6c3159628623946dc44241 |