Greedy Resource Allocation for Online Estimation of Independent Bernoulli Processes

Yash SatsangiarXiv 2026

TL;DR

Imagine trying to keep tabs on dozens of unpredictable sensors when you only have the bandwidth to check one at a time. While conventional wisdom suggests you need complex, long-term planning to keep your overall tracking error low, this paper proves that for independent binary processes, a purely short-sighted ("greedy") strategy is actually mathematically optimal. Even better, you don't even need to know how long you'll be monitoring the system to make the best choice at every step.

What Problem Does This Paper Address?

Picture a fleet of security cameras in a shopping mall, or an array of environmental sensors in a forest. An AI agent is tasked with selecting which sensor to read so a human operator has an accurate, continuous picture of the whole system.

Usually, researchers frame this as a Partially Observable Markov Decision Process (POMDP) and solve it using heavy-duty planning algorithms. The catch? Planning assumes you already have an accurate model of the world or a simulator. If the model is wrong, the agent can't adapt on the fly. On the flip side, online learning frameworks—like multi-armed bandits—learn as they go, without prior models. However, standard bandit algorithms usually care about finding the single best option to exploit, or casually exploring before answering a final exam question at the very end. Here, the agent is graded continuously at every single time step on how well it estimates all the hidden variables simultaneously.

To find a principled online learning solution, author Yash Satsangi strips this monitoring problem down to its cleanest mathematical skeleton: $n$ independent coins with unknown biases. Every round, all coins are flipped, you guess the bias of every coin (suffering a squared-error penalty), and you get to peek at the outcome of just one coin to update your beliefs. How do you choose which coin to peek at?

Methods

To bridge the gap between error minimization and bandit algorithms, the author uses a neat mathematical sleight of hand:

  1. Flipping Loss into Reward: Using maximum-likelihood estimation (the simple sample mean of observed flips) and a telescoping sum trick, the author rewrites the cumulative Mean Squared Error (MSE) over a time horizon $h$. Minimizing cumulative error turns out to be mathematically identical to maximizing a specific cumulative reward. At time $t$, observing coin $a$ yields a reward proportional to its true variance $\sigma_a^2 = p_a(1-p_a)$, scaled by the remaining time $(h - t)$, and divided by $(N_a + 1)N_a$, where $N_a$ is how many times you've already looked at that coin.
  2. Proving Greed is Good: Normally, when your current choices affect future rewards, greedy strategies fail (and the paper provides a neat 2-step counterexample showing how easily this happens in general). Yet, using an exchange argument—showing any optimal sequence of choices can be swapped step-by-step into the greedy one without losing value—the author proves that picking the coin with the highest immediate reward is globally optimal among fixed action sequences.
  3. Variance-Based UCB: Of course, in the real world, you don't know the true variances $\sigma_a^2$ required to calculate that greedy reward. Building on Hoeffding’s inequality (a standard statistical tool for bounding how far a sample mean strays from the true mean), the author introduces an Upper-Confidence-Bound (UCB) policy. It plugs in the estimated variance, adds an optimism bonus for under-explored coins, and greedily picks the highest score.

Datasets

No external or real-world datasets were used. Because this is a foundational theoretical study, the algorithms were evaluated using synthetic simulations:

  • Two setups: $n = 40$ coins over $15,000$ time steps, and $n = 100$ coins over $50,000$ time steps.
  • Coin biases were sampled randomly, with up to half explicitly set to $0$ (completely predictable, zero variance) or $0.5$ (maximum variance, hardest to estimate), averaged across 100 independent runs.

Key Insights and Ideas

  • Horizon-Free Optimality: Look back at that derived reward formula—every coin shares the exact same remaining-time factor, $(h - t)$, at any given step. Because it scales all options equally, you can drop it completely. An agent doesn't need to know when the task will end; maximizing $\frac{\sigma_a^2}{(N_a + 1)N_a}$ right now is optimal for every horizon simultaneously.
  • Online Neyman Allocation: Classical statistics tells us (via Neyman allocation) that if you have a fixed budget of samples, you should allocate them proportionally to each variable's standard deviation. The greedy policy here naturally recreates the exact integer version of Neyman allocation dynamically at every single step.
  • Focus on the Coin-Tossers, Ignore the Sure Things: A coin with a bias near $0$ or $1$ barely varies; once you flip it a few times, peeking again yields diminishing returns. Coins with biases near $0.5$ have the highest variance ($\sigma^2 = 0.25$) and demand the most attention.

Key Results

  • Theoretical Guarantee: The author bounds the per-step reward gap between the UCB policy’s chosen action and the true greedy action (given the same history) with probability at least $1 - 3n\delta$. If observation counts grow linearly, this per-round suboptimality decays rapidly at $O(\sqrt{\log t} / t^{2.5})$.
  • Empirical Performance: Both UCB (with confidence parameter $\delta = 0.99$) and $\epsilon$-greedy consistently achieved lower cumulative MSE than Round-Robin and Random baselines in both the 40-arm and 100-arm experiments (e.g., in the 40-arm test, $\epsilon$-greedy finished around ~425 cumulative MSE, UCB around ~490, Round-Robin around ~520, and Random above ~550).
  • $\epsilon$-Greedy Edges Out UCB: Surprisingly, simple $\epsilon$-greedy slightly outperformed UCB. Because Hoeffding confidence intervals are somewhat loose and the reward $\frac{1}{(N_a+1)N_a}$ decays very fast, UCB over-explores early on, mimicking Round-Robin before its estimates tighten up.

Limitations and Future Work

The author is candid about the simplifying assumptions made to secure clean math, which naturally point toward future research:

  • Adaptive Benchmark Gap: The optimality of the greedy policy is proven against fixed action sequences (the benchmark for an omniscient agent who knows the biases). When an online agent adapts its choices based on random coin outcomes, sample counts become random variables, meaning standard MSE formulas don't strictly hold in the same way. Analyzing adaptive policies directly against this benchmark remains open.
  • Loose Bounds: Setting $\delta = 0.99$ in experiments makes the theoretical high-probability bound ($1 - 3n\delta$) vacuous, turning $\delta$ into a practical tuning knob rather than a strict guarantee. Tighter confidence intervals could help UCB beat $\epsilon$-greedy.
  • Real-World Scaling: To tackle realistic surveillance or sensor-selection problems, this framework needs to be extended to non-stationary biases (coins that drift over time), subset selection (picking $K$ sensors at once using submodularity), decentralized multi-agent systems with limited communication, and alternative loss functions like information entropy.

Summary updated

BibTeX
@misc{satsangi2026greedy,
  author = {Yash Satsangi},
  title = {{Greedy Resource Allocation for Online Estimation of Independent Bernoulli Processes}},
  year = {2026},
  eprint = {2611.36123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36123},
}
Figure