Quantile quantization
Quantile quantization transforms numerical values into discrete levels or buckets using thresholds derived from the values’ distribution quantiles.
D3.js in Action, Third Edition
A quantile scale maps continuous input values to discrete output values according to thresholds that divide the input distribution into groups of similar sizes.
- How it is used
- Supports distribution comparison by calculating thresholds used to construct D3 box plots.
- How deep it goes
- Defines discrete domains, ranges, and threshold access, but stops short of explaining the underlying threshold algorithm.
- Examples
- Uses women’s and men’s salaries to calculate quartile thresholds and construct comparative box plots.
- What you can do after
- Apply it via d3.scaleQuantile() to calculate quartile thresholds for distribution visualizations.
Read how D3.js in Action, Third Edition explains quantile quantization →
Machine Learning System Design
A transformation that converts continuous values into discrete buckets defined by value quantiles.
- How it is used
- Transforms continuous features into categorical inputs when downstream models benefit from discrete representations.
- How deep it goes
- Defines value-based bucketing and shows an embedding pipeline, but does not detail bucket-count selection or implementation steps.
- Examples
- Uses Uber’s DeepETA network to illustrate transforming mixed tabular data into discrete tokens and learnable embeddings.
Read how Machine Learning System Design explains quantile quantization →
Related concepts
- d3.scaleQuantile()implemented by · d3.scaleQuantile() is a D3-scale constructor that creates a quantile scale from a discrete input domain and discrete output range.
- inputproduces · An input is a value, information, or signal supplied to a system, computation, or interface for processing or to influence its behavior.
- empirical cumulative distribution functionuses · An empirical cumulative distribution function gives each value the proportion of observed samples less than or equal to that value.
- quantizationkind of · Quantization maps numerical values to a finite set of discrete representations, often using reduced precision to lower model storage or computation requirements.
- upper quartileuses · The upper quartile, or third quartile, is the value marking approximately the 75th percentile of an ordered dataset.
- discrete variableuses · A discrete variable is a variable whose possible values belong to a finite or countable set of distinct alternatives rather than a continuous range.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

