liveBook · Manning

Jitter

As explained in Outlier Detection in Python

Jitter is a small perturbation added to values to spread overlapping observations or avoid repeated discrete outputs.

Jitter adds a small random perturbation to generated values, spreading observations around histogram bin centers instead of producing only a few repeated discrete outputs. section 11.2.2

Use jitter when generating synthetic numeric features from empirical distributions:

  • Sample histogram bin centers according to their frequencies, then perturb each sampled value by a random amount. section 11.2.2
  • Vary the perturbation amount to adjust how realistic the synthetic values appear. section 11.2.2
  • Interpret jitter as a feature-level operation: it preserves marginal distributions approximately but does not restore associations between features. section 11.2.2

Baseball features

For the baseball dataset, jittered histogram samples can closely match the real distribution of At_bats while producing continuous values; independently generated features can still lose their relationships with RBIs. section 11.2.2

How Outlier Detection in Python covers it

How deep it goes
Explains histogram bin centers, random perturbation, and magnitude trade-offs, but does not develop a formal jitter model.
Examples
Uses baseball data, At_bats and RBIs, histogram bin centers, and synthetic outliers as concrete examples.
What you can do after
Apply it via NumPy-based histogram sampling to create less discrete synthetic numeric features.
How it connects
Connects jitter with synthetic data, histograms, kernel density estimation, feature distributions, and outlier detection.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.