Skip to main content

LOWESS Project

PyPI fastlowess (Python) CI

One LOWESS to Rule Them All
One LOWESS to Rule Them All

The fastest, most robust, and most feature-complete language-agnostic LOWESS (Locally Weighted Scatterplot Smoothing) implementation for Rust, Python, R, Julia, Node.js, C++, Go, Java, and WebAssembly.

The lowess-project also offers bindings for Rust, Python, R, Julia, Node.js, WebAssembly, C++, Go, and Java — see the full repository.


Installation & Documentation

Currently available for R, Python, Rust, Julia, Node.js, WebAssembly, and C++. See the Installation Guide for detailed installation instructions.

📚 View the full documentation

GPU Backend

GPU acceleration (wgpu: Vulkan, Metal, DirectX 12, and GLES on Android) is also supported for high-throughput batch smoothing. See the GPU Backend guide for details.


LOESS vs. LOWESS

Feature LOESS LOWESS (This Crate)
Polynomial Degree Linear, Quadratic, Cubic, Quartic Linear (Degree 1)
Dimensions Multivariate (n-D support) Univariate (1-D only)
Flexibility High (Distance metrics) Standard
Complexity Higher (Matrix inversion) Lower (Weighted average/slope)

Read more about how LOWESS works in the Concepts.

Note: For a LOESS implementation, use loess-project.


Why this package?

Speed

It is on average 200-327x faster than Python's statsmodels.lowess and up to 7.8× faster than base R's stats::lowess on a tested large, wide-window workload. GPU fastLowess first beats CPU-parallel execution at 25K–50K points, depending on smoothing fraction, and reaches 4.7× speedup over parallel fastLowess CPU execution at 1M points in the tested workload. Small workloads can favor CPU because of GPU overhead; results vary by workload and hardware. See the Benchmarks page for details.

For more details on the performance comparison, see the Benchmarks page.

Robustness

This implementation is more robust than R's lowess and Python's statsmodels due to two key design choices:

MAD-Based Scale Estimation:

For robustness weight calculations, this crate uses Median Absolute Deviation (MAD) for scale estimation:

s = median(|r_i - median(r)|)

In contrast, statsmodels and R's lowess uses the median of absolute residuals (MAR):

s = median(|r_i|)
  • MAD is a breakdown-point-optimal estimator—it remains valid even when up to 50% of data are outliers.
  • The median-centering step removes asymmetric bias from residual distributions.
  • MAD provides consistent outlier detection regardless of whether residuals are centered around zero.

Boundary Padding:

This crate applies a range of different boundary policies at dataset edges:

  • Extend: Repeats edge values to maintain local neighborhood size.
  • Reflect: Mirrors data symmetrically around boundaries.
  • Zero: Pads with zeros (useful for signal processing).
  • NoBoundary: Original Cleveland behavior

statsmodels and R's lowess do not apply boundary padding, which can lead to:

  • Biased estimates near boundaries due to asymmetric local neighborhoods.
  • Increased variance at the edges of the smoothed curve.

Features

A variety of features, supporting a range of use cases:

Feature This package statsmodels R (stats)
Kernel 7 options only Tricube only Tricube
Robustness Weighting 3 options only Huber only Huber
Scale Estimation 2 options only MAR only MAR
Boundary Padding 4 options no padding no padding
Zero Weight Fallback 3 options no no
Auto Convergence yes no no
Online Mode yes no no
Streaming Mode yes no no
Confidence Intervals yes no no
Prediction Intervals yes no no
Cross-Validation 2 options no no
Parallel Execution yes no no
GPU Acceleration yes no no
no-std Support yes no no

Validation

All implementations are numerical twins of R's lowess:

Aspect Status Details
Accuracy ✅ EXACT MATCH Max diff < 1e-12 across all scenarios
Consistency ✅ PERFECT Multiple scenarios pass with strict tolerance
Robustness ✅ VERIFIED Robust smoothing matches R exactly

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for more information.

License

Licensed under MIT or Apache-2.0.

Citation

If you use this software in your research, please cite it using the CITATION.cff file or the BibTeX entry below:

@software{lowess_project,
  author = {Valizadeh, Amir},
  title = {LOWESS Project: High-Performance Locally Weighted Scatterplot Smoothing},
  year = {2026},
  url = {https://github.com/thisisamirv/lowess-project},
  license = {MIT OR Apache-2.0}
}

Metadata

Release files for fastlowess 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastlowess 5.1.0
File Size Uploaded Provenance Actions
fastlowess-5.1.0.tar.gz 699.5 kB With provenance Details for fastlowess-5.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastlowess 5.1.0
File Actions
fastlowess-5.1.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for fastlowess-5.1.0-cp39-abi3-win_arm64.whl
fastlowess-5.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for fastlowess-5.1.0-cp39-abi3-win_amd64.whl
fastlowess-5.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for fastlowess-5.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
fastlowess-5.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for fastlowess-5.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
fastlowess-5.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for fastlowess-5.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fastlowess-5.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for fastlowess-5.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
fastlowess-5.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for fastlowess-5.1.0-cp39-abi3-macosx_11_0_arm64.whl
fastlowess-5.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for fastlowess-5.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 5.3 MB

Release files / fastlowess-5.1.0.tar.gz

Download URL fastlowess-5.1.0.tar.gz
Size 699.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da04c38371256e9ac02c0455c6b0e3913615a976a98bf6eb713f03e823d730c9
BLAKE2b-256 checksum
How to use checksums
e3f8ea529d1c6ab5b1ced365e9737f2ce128f0d1f50f2c09ffa6b34c846880e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-win_arm64.whl

Download URL fastlowess-5.1.0-cp39-abi3-win_arm64.whl
Size 429.2 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
79b62447aecf36637c50bcf302ae7ab5488e9dd9dfb56f87ecae1d889d102d9d
BLAKE2b-256 checksum
How to use checksums
1c1e90543748327293d0b19ba431c92746ae4410d53b07e06942ad17fb88efac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-win_amd64.whl

Download URL fastlowess-5.1.0-cp39-abi3-win_amd64.whl
Size 455.7 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
49410f79d64eb72a0d0afa17c213a391b933a7e454d8fa909d71b352a14c8094
BLAKE2b-256 checksum
How to use checksums
cf8edb79c24b11d62102538eb93aebb2c752136c7e6c90620809ac3215822fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL fastlowess-5.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 785.9 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
cb0c8badaf5a016b7296dc7f65cc5bcd78b2696b83c9f2f13a0c26fab104795c
BLAKE2b-256 checksum
How to use checksums
dd45c5222bc7801c30f34dee91ccb10373edfbea69bef4ed907e887442e31922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL fastlowess-5.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 728.6 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5a96a4b48ca799d4af21ecf0359f27cda94d702ac04f1f81dd06f9110ff41044
BLAKE2b-256 checksum
How to use checksums
56c02088cb9779071f29fc5f7480d28a09b5ca2a9c33e2971a3846d7596d4638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fastlowess-5.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 574.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
98a35a1a77dcfb6bd51f18c0233a2d04e1f92f0ccf8a89d8d62d29e9ce1dca89
BLAKE2b-256 checksum
How to use checksums
84f47ab64c53679743849232b96cf8d9dcabf048f97d5c0d0d7d56724900e7e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL fastlowess-5.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 551.3 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
69a4fedf9a6dd2259e43016019727d80e4a9c78719e7ef8148c6919fb1820270
BLAKE2b-256 checksum
How to use checksums
dcc0962da463bbedb06486cd6faa7debe5acb2cd0fa04a56cb974f3dea85ae7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL fastlowess-5.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 515.9 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a8722f932dc92013a74f3f0e193d006a2f5c685e3a22920c21427c6582451a56
BLAKE2b-256 checksum
How to use checksums
3f241f4d08a1d6d9edf8b2f54e93db36d5bda514796a9fd350c38b091e87e82c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / fastlowess-5.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL fastlowess-5.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 538.9 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6750e6a3e264c7f5670fc0e89806857228fd71e09785ad0ae8ff87d988a1918e
BLAKE2b-256 checksum
How to use checksums
d8864d67c81cab5d8f3b80ac408276cad47ade4e788922177dc36f78b54a0e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Security for fastlowess 5.1.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

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for fastlowess-5.1.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 Nov 16, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page