LPDENSITY
The lpdensity package provides tools for local polynomial distribution and density estimation, bandwidth selection, robust bias-corrected inference, and graphical procedures.
lpdensity: implements local polynomial distribution and density estimation with pointwise and uniform inference.lpbwdensity: implements data-driven bandwidth selectors for local polynomial distribution and density estimation.
See Cattaneo, Jansson and Ma (2020, 2022, 2024) for references.
Website: https://nppackages.github.io/.
Source code: https://github.com/nppackages/lpdensity.
Authors
Matias D. Cattaneo, maintainer (matias.d.cattaneo@gmail.com)
Rajita Chandak (rajita.chandak@gmail.com)
Michael Jansson (michael.jansson.berkeley@gmail.com)
Xinwei Ma (xinweima.pku@gmail.com)
Installation
To install/update use pip
pip install lpdensity
Usage
from lpdensity import lpdensity, lpbwdensity
- Replication: lpdensity illustration.
Dependencies
- numpy
- pandas
- scipy
- sympy
- plotnine
References
For overviews and introductions, see NP Packages website.
Software and Implementation
- Cattaneo, Jansson and Ma (2022): lpdensity: Local Polynomial Density Estimation and Inference.
Journal of Statistical Software 101(2): 1-25.
Technical and Methodological
-
Cattaneo, Jansson and Ma (2020): Simple Local Polynomial Density Estimators.
Journal of the American Statistical Association 115(531): 1449-1455.
Supplemental appendix. -
Cattaneo, Jansson and Ma (2024): Local Regression Distribution Estimators.
Journal of Econometrics 240(2): 105074.
Supplemental Appendix.
Metadata
Release files for lpdensity 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lpdensity-3.0.0.tar.gz | 19.4 kB | With provenance | Details for lpdensity-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lpdensity-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for lpdensity-3.0.0-py3-none-any.whl |
Total release size: 38.0 kB
Release files / lpdensity-3.0.0.tar.gz
| Download URL | lpdensity-3.0.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6087281d8a323d9407cb20b21b9970fa73c68519eefbce8dfd617d397a34e3ca
|
|
BLAKE2b-256 checksum How to use checksums |
786cf58fcd3c712b6350289f40865f640beb0bcadf3dbe15e3830fcbac9c0ff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logRelease files / lpdensity-3.0.0-py3-none-any.whl
| Download URL | lpdensity-3.0.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df4707d7c34807225aaa6c34765cadcb0696b4a6ca8b5dd08f14f0a7de4fa1a1
|
|
BLAKE2b-256 checksum How to use checksums |
af64819e2b6fd0d044ea383a4f5812c18911a4b0f7a540582a6c0aa188ede5e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logSecurity for lpdensity 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lpdensity-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.