Papers
Topics
Authors
Recent
Search
2000 character limit reached

Online Monotone Density Estimation

Updated 10 February 2026
  • Online monotone density estimation is a framework for sequentially predicting a nonincreasing probability density on [0,1] using log-loss performance metrics.
  • The online Grenander estimator adapts the classical isotonic MLE to a sequential setting, achieving an O(n^(1/3)) excess KL risk under well-specified i.i.d. conditions.
  • The expert aggregation approach discretizes the density space and applies exponential weighting to secure an O(√(n log n)) adversarial regret bound while quickly adapting to change-points.

Online monotone density estimation addresses the sequential prediction of an unknown probability density that is known a priori to be monotone nonincreasing on [0,1][0,1]. At each time tt, the estimator observes a real-valued data stream x1,x2,x_1, x_2, \ldots and outputs a measurable function f^t\hat{f}_t of past data, so that for every tt, f^t\hat{f}_t estimates the underlying density qDq \in \mathcal{D}, where

D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.

Performance is measured by sequential log-loss t(f)=logf(Xt)\ell_t(f) = -\log f(X_t) and its cumulative version L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t). The theoretical framework considers two benchmarks: the well-specified stochastic setting (oracle risk under i.i.d. draws from tt0) and an adversarial setting (pathwise regret compared to the best hindsight monotone density with amplitude bounds).

1. Formal Problem Statement

The data consists of sequentially observed values tt1 assumed to be in tt2 (by linear rescaling). At each tt3, the algorithm outputs an estimator tt4 based only on tt5. The performance of a sequence of estimators tt6 is evaluated in two principal regimes:

  • Stochastic benchmark: tt7 are i.i.d. from some tt8. The cumulative excess Kullback-Leibler risk is

tt9

  • Adversarial benchmark (pathwise regret): For arbitrary (well-spaced) sequences, regret is measured against the best monotone density in hindsight within amplitude bounds x1,x2,x_1, x_2, \ldots0

x1,x2,x_1, x_2, \ldots1

where x1,x2,x_1, x_2, \ldots2.

The adversarial regime requires minimal regularity on the input: points are well-spaced (no two closer than x1,x2,x_1, x_2, \ldots3), and not close to the upper boundary (x1,x2,x_1, x_2, \ldots4).

2. The Online Grenander (OG) Estimator

The classical Grenander estimator provides the offline (batch) maximum likelihood estimator (MLE) over x1,x2,x_1, x_2, \ldots5, resulting in a piecewise-constant histogram supported at the order statistics. The online analogue (OG) operates as follows at each x1,x2,x_1, x_2, \ldots6:

  • Input: Amplitude bounds x1,x2,x_1, x_2, \ldots7; initialize x1,x2,x_1, x_2, \ldots8.
  • For x1,x2,x_1, x_2, \ldots9: Solve

f^t\hat{f}_t0

Theorem 2.1 (Excess KL risk of OG).

If f^t\hat{f}_t1 are i.i.d. f^t\hat{f}_t2 with f^t\hat{f}_t3,

f^t\hat{f}_t4

The derivation utilizes classical entropy arguments: the (offline) Grenander estimator achieves f^t\hat{f}_t5; summing over f^t\hat{f}_t6 gives an aggregate f^t\hat{f}_t7 cumulative risk.

3. The Expert Aggregation (EA) Estimator

To bypass the computational burden of solving isotonic MLEs at each step, the Expert Aggregation (EA) estimator discretizes f^t\hat{f}_t8 into a finite net of monotone histograms, and employs exponential weighting:

  • Expert set construction:
    • Grid breakpoints f^t\hat{f}_t9, tt0.
    • Log-heights grid tt1, tt2.
    • tt3: All monotone histograms with at most tt4 bins, breakpoints from tt5, heights from tt6, normalized to integrate to 1 and lying in tt7.
    • Cardinality: tt8.
  • Exponential weighting over tt9 experts f^t\hat{f}_t0, f^t\hat{f}_t1, and for f^t\hat{f}_t2

f^t\hat{f}_t3

  • Mixability Lemma: For log-loss, f^t\hat{f}_t4.

Theorem 2.2 (Pathwise regret of EA).

Under mild regularity (the data in f^t\hat{f}_t5), choosing f^t\hat{f}_t6 for f^t\hat{f}_t7 yields

f^t\hat{f}_t8

The proof uses histogram compression (bin-merge for f^t\hat{f}_t9-bin approximation, error qDq \in \mathcal{D}0), bin/height rounding (error qDq \in \mathcal{D}1), the bound qDq \in \mathcal{D}2, and exponential-weights log-loss mixability. Selecting qDq \in \mathcal{D}3 produces the displayed regret rate.

4. Log-Optimal Sequential qDq \in \mathcal{D}4-to-qDq \in \mathcal{D}5 Calibration

An application of online monotone density estimation appears in sequential hypothesis testing for calibration of qDq \in \mathcal{D}6-values to qDq \in \mathcal{D}7-values. Under the null hypothesis, the qDq \in \mathcal{D}8-values qDq \in \mathcal{D}9 are sequentially super-uniform: D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.0. A D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.1-to-D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.2 calibrator is a nonincreasing function D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.3 with D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.4, so that D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.5 is a valid D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.6-value. Admissible calibrators correspond exactly to monotone densities on D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.7.

Under an alternative D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.8 with density D={f:[0,1][0,)01f(u)du=1,f nonincreasing }.\mathcal{D} = \left\{ f : [0,1] \to [0, \infty) \,\Bigg|\, \int_0^1 f(u)\,du = 1,\, f\ \text{nonincreasing}\ \right\}.9, the log-optimal calibrator is the true density: t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)0. Thus, estimating the log-optimal t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)1-to-t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)2 calibrator corresponds to online monotone density estimation of t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)3.

An empirical adaptive procedure: at each t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)4, set t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)5 (OG or EA) applied to the observed t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)6, and define the t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)7-process t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)8.

Theorem 3.1 (Asymptotic log-optimality).

If t(f)=logf(Xt)\ell_t(f) = -\log f(X_t)9 are i.i.d. L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)0 with L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)1, then for either OG- or EA-based calibrator,

L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)2

Corollary (Consistency of L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)3-process).

If L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)4 and L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)5, then L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)6 grows linearly at rate L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)7, implying that the sequential test rejects L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)8 in finite time with probability 1.

5. Empirical Investigation

Numerical assessments are performed in both well-specified and mis-specified regimes:

  • Stochastic setting (L(f^,n)=t=1nt(f^t)=t=1nlogf^t(Xt)L(\hat{f}, n) = \sum_{t=1}^n \ell_t(\hat{f}_t) = -\sum_{t=1}^n \log \hat{f}_t(X_t)9, tt00 replicates):
    • Densities: linear (tt01), quadratic (tt02), and a 4-bin piecewise constant.
    • Both OG and EA estimators closely track the oracle log-likelihood tt03; EA demonstrates smaller finite-sample regret, particularly when tt04 is milder (e.g., linear).
  • Change-point (mis-specified) setting:
    • Data follows one linear monotone form for tt05, then switches to another.
    • EA quickly adapts to the new regime via weight reallocation among experts—incurring substantially lower post-change regret—whereas OG, which relies on the full data history, adapts more slowly.

These experiments corroborate the theoretical tt06 excess-risk for OG and tt07 pathwise regret for EA. A plausible implication is that expert aggregation offers practical advantages in nonstationary environments.

6. Summary Table: Algorithmic and Statistical Properties

Estimator Stochastic (i.i.d.) Excess Risk Adversarial Regret Bound
Online Grenander tt08 (Theorem 2.1) Not minimized; recomputes MLE
Expert Aggregation tt09 (via expert approximation) tt10 (Theorem 2.2)

Both algorithms support online monotone density estimation, but EA provides tighter adversarial guarantees and superior adaptivity in nonstationary or change-point settings.

7. Context and Significance

Online monotone density estimation extends classical nonparametric MLEs to the sequential, potentially adversarial context, providing both theoretical guarantees in KL-risk and worst-case regret. Its connection to sequential calibration for tt11-to-tt12 procedures emphasizes the foundational role of monotonicity constraints in adaptive hypothesis testing. The link to exponential weighting and mixture-of-experts methods also places this problem at the intersection of shape-constrained inference, online learning, and sequential testing theory. The approach synthesizes classical statistical theory (Grenander estimator, entropy arguments) with modern online learning methods (expert aggregation, mixability) (Hore et al., 9 Feb 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Online Monotone Density Estimation.