Sample Quantile Cut Points depend on how ordered observations are assigned positions within an estimated distribution. Python's statistics.quantiles provides exclusive and inclusive conventions. The same finite data can produce different cut values under those conventions, so a reported quartile needs its method as well as its numerical answer.
The parameter n specifies a number of intervals. The function returns n minus one interior cut points separating them. Requesting four intervals therefore produces three quartile cuts, while requesting ten produces nine decile cuts. These are estimated numeric boundaries rather than lists of the original records assigned to each group.
The implementation sorts the supplied data before calculating the cuts. Sorting changes traversal order but preserves the values and their multiplicities. An input iterator must be consumed to obtain this finite collection. The method does not produce a final quantile estimate from an arbitrary unfinished stream without accounting for later observations.

With m sorted observations, the exclusive convention assigns the ith observation position i/(m+1). Its interpretation allows the underlying population to contain values more extreme than the particular sample. The smallest observation is therefore not automatically assigned probability position zero.
For the independent sorted data [0,10,20,30], the four observation positions are one fifth, two fifths, three fifths and four fifths. Quartile probabilities one quarter, one half and three quarters lie between these positions. Linear interpolation yields cut values 2.5, 15 and 27.5.
The inclusive convention instead assigns observation i the position (i−1) divided by (m−1), when there are at least two observations. The smallest value is placed at zero and the largest at one. The documented interpretation is appropriate when describing population data or data known to include the relevant extremes.
For the same independent four values, their positions are zero, one third, two thirds and one. The three quartile cuts become 7.5, 15 and 22.5. The middle cut agrees with the exclusive example, while the lower and upper cuts differ. Agreement at one cut does not establish that the two full conventions are equivalent.

The inclusive lower quartile lies three quarters of the way from zero to ten, giving 7.5. Neither 7.5 nor the exclusive value 2.5 is an observed record in this example. A cut value should therefore not be interpreted as the identity of a sample item or as evidence that the instrument recorded that exact number.
Choosing a kth observed element answers a different order-statistic question. An application that subsequently assigns records to bins must also define what happens when values equal a cut. Duplicate observations can lead to repeated cuts, and equal estimated interval probabilities do not guarantee equal counts of distinct observed values in every resulting bin.
The first cut can be checked through its interpolation weight. Under the exclusive convention, one quarter lies one quarter of the way from the first assigned probability position to the second, so the value is one quarter of the way from zero to ten. Under the inclusive convention, the same target probability lies three quarters of the way between those first two observation positions. The observations have not changed; their assigned probability positions have changed the weights. Probability position is dimensionless, while the resulting cut retains the units of the supplied values.
The current documentation recommends more observations than requested intervals for meaningful results. The small examples here are arithmetic illustrations of the interface. They do not establish that four observations are enough to characterize a population's quartiles reliably.
With only the independent observations zero and ten, requesting exclusive quartiles gives negative 2.5, five and 12.5 under the source's boundary interpolation formula. These outer cuts lie beyond the observed range. This is a consequence of the convention and limited sample, not a new measured negative observation or a coding error that should automatically be clamped away.
The current function rejects empty data and interval counts below one. A single observation is now accepted and repeated as the requested cut values. Earlier Python versions differed on that single-observation case, so reproducible use should record the relevant interpreter behavior along with the method.
Increasing n changes how many probabilities are evaluated; it does not create additional observations. Likewise, sorting a small sample does not remove sampling uncertainty or resolve missing-data policy. The site's quantile estimation principles and statistical features connect cuts and observed data. Primary sources: Python's quantiles conventions and version notes and the original inclusive, exclusive and boundary interpolation implementation. Both figures are original AI-assisted finite arithmetic examples.