# Don't Let Messy Data Bend Your Curves

DevFeed: [Don't Let Messy Data Bend Your Curves](<https://devfeed.tech/articles/don-t-let-messy-data-bend-your-curves-97801.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/dont-let-messy-data-bend-your-curves/>)

Author: Aamir Hussain Chughtai, PhD

Published: 2026-10-23T15:30:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Data Science](<https://devfeed.tech/topics/data-science.md>), [outlier-detection](<https://devfeed.tech/topics/outlier-detection.md>), [Data analysis](<https://devfeed.tech/topics/data-analysis.md>), [Predictive AI](<https://devfeed.tech/topics/predictive-ai.md>)

Tags: [000](<https://devfeed.tech/tags/000.md>), [2](<https://devfeed.tech/tags/2.md>), [2014](<https://devfeed.tech/tags/2014.md>), [2019](<https://devfeed.tech/tags/2019.md>), [2020](<https://devfeed.tech/tags/2020.md>), [22](<https://devfeed.tech/tags/22.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [added](<https://devfeed.tech/tags/added.md>), [ai](<https://devfeed.tech/tags/ai.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [curve-fitting](<https://devfeed.tech/tags/curve-fitting.md>), [data](<https://devfeed.tech/tags/data.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [first](<https://devfeed.tech/tags/first.md>), [let](<https://devfeed.tech/tags/let.md>), [missing-data](<https://devfeed.tech/tags/missing-data.md>), [outliers](<https://devfeed.tech/tags/outliers.md>), [polynomial-regression](<https://devfeed.tech/tags/polynomial-regression.md>), [polynomials](<https://devfeed.tech/tags/polynomials.md>), [regression](<https://devfeed.tech/tags/regression.md>), [robust](<https://devfeed.tech/tags/robust.md>), [science](<https://devfeed.tech/tags/science.md>), [series](<https://devfeed.tech/tags/series.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The article separates curve representation from outlier resistance: polynomial or spline bases determine the shapes a model can express, while robust estimators reduce the influence of contaminated observations. Polynomials remain linear in their coefficients but act globally; B-splines use locally supported functions, which can confine distortion but do not make outliers harmless. In controlled simulations, richer bases needed more data, and RANSAC became more costly as its minimal sample grew. Estimator performance also depended on the contamination pattern; a single-model robust estimator could not resolve which curve was correct when competing relationships were equally plausible. Examples show that robust fitting helped with contaminated wind-turbine and GNSS Doppler data, while a spline represented a curved-to-flat power relationship better than a global polynomial. The proposed workflow is to choose an appropriate basis, scale predictors when needed, handle missing rows when complete-case analysis fits, use robust estimation for finite but unreliable observations, and treat extrapolation cautiously.

## Source excerpt

Robust Estimation Series: Building Accurate Curves with Polynomials and Splines With Spurious Data The post Don't Let Messy Data Bend Your Curves appeared first on Towards Data Science.