Skip to main content

quantile

Get Rolling Quantile.

Quantile is a statistical measure that identifies the value below which a given percentage of observations in a group of data falls. By setting the quantile percentage, you can determine any point in the distribution, not just the median. Whether you're interested in the median, quartiles, or any other position within your data's range, this tool offers a precise way to understand the distribution's characteristics. It's especially useful for identifying outliers, understanding dispersion, and setting thresholds for decision-making based on the distribution of data over a specified period.

obb.quantitative.quantile(data: Union[list, dict, pd.DataFrame, List[pd.DataFrame], pd.Series, List[pd.Series], numpy.ndarray, Data, List[Data]], target: str, window: int = 21, quantile_pct: float = 0.5)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]Time series data.NoneFalse
targetstrTarget column name.NoneFalse
windowPositiveIntWindow size.21True
quantile_pctNonNegativeFloatQuantile to get0.5True

Returns​

Quantile.

On this page