Abstract
The classical ski-rental problem admits a textbook 2-competitive deterministic algorithm, and a simple randomized algorithm that is $\frac{e}{e-1}$-competitive in expectation. The randomized algorithm, while optimal in expectation, has a large variance in its performance: it has more than a 37% chance of competitive ratio exceeding 2, and a $\Theta(1/n)$ chance of the competitive ratio exceeding $n$! We ask what happens to the optimal solution if we insist that the tail risk, i.e., the chance of the competitive ratio exceeding a specific value, is bounded by some constant $\delta$. We find that this additional modification significantly changes the structure of the optimal solution. The probability of purchasing skis on a given day becomes non-monotone, discontinuous, and arbitrarily large (for sufficiently small tail risk $\delta$ and large purchase cost $n$).
Introduction
The Ski-Rental Problem is the quintessential "rent or buy" dilemma in online algorithms. In this scenario, a user must decide each day whether to rent skis for $1 or buy them for $n$, without knowing the total length of the ski season. Performance is measured by the competitive ratio: the ratio of the algorithm's cost to the cost of an optimal offline algorithm with perfect foresight.
While the standard deterministic strategy (rent until day $n$, then buy) achieves a competitive ratio of 2, randomized strategies can achieve an expected ratio of approximately 1.58. However, these randomized algorithms suffer from high variance; there is a significant "tail risk" that the actual competitive ratio will far exceed the expectation. This paper investigates the optimal strategy when the probability of the competitive ratio exceeding a threshold $\gamma$ is strictly capped at a value $\delta$.
Methods
The authors transition from traditional expectation-based analysis to a constrained optimization framework. They define a $(\gamma, \delta)$-tail constraint, requiring that the probability of the competitive ratio exceeding $\gamma$ is at most $\delta$.
Key methodological contributions include:
- Characterization Theorem: Proving that in an optimal distribution, for every possible season length, either the expected competitive ratio constraint or the tail risk constraint must be tight.
- Algorithmic Construction: Developing an efficient algorithm to compute the optimal purchase distribution using binary search over the unknown optimal competitive ratio.
- Continuous Analysis: Utilizing calculus and differential equations in a continuous-time setting to describe the mathematical "shape" of the optimal solution.
Key Insights and Structural Complexity
A primary finding is that simple interpolation—mixing the standard randomized algorithm with the deterministic one—is strictly suboptimal. The true optimal solution exhibits surprising structural complexity that deviates significantly from standard "nice" properties.
As shown in the figure above, the optimal strategy (OPT) consistently outperforms interpolation. Furthermore, the probability density functions (PDFs) for purchasing skis reveal that the optimal strategy is:
- Non-monotone: The probability of buying does not simply increase over time; it fluctuates.
- Discontinuous: The purchase probability can suddenly drop to zero for specific intervals before resuming.
- Oscillatory: As the allowed risk $\delta$ decreases, the strategy becomes increasingly oscillatory, with the number of zero-probability intervals scaling as $\Omega(1/\delta)$.
Key Results
- Theorem 1 (Continuous Case): Characterizes the optimal solution as a sequence of intervals where the purchase probability either grows exponentially (with exponents that can increase significantly between intervals) or remains at zero.
- Theorem 2 (Pure Tail Risk): Provides an explicit closed-form solution for the case where $\delta = 0$, meaning the competitive ratio is never allowed to exceed $\gamma$.
- Mathematical Depth: The points of discontinuity in these strategies often require the Lambert W function for description, highlighting the non-trivial nature of the optimal solution.
Conclusion
While the resulting strategies are mathematically optimal, their complexity makes them difficult for human implementation. A strategy that mandates high purchase probability on one day and zero on the next is counter-intuitive. However, this work provides a foundational framework for addressing tail risk in online algorithms. Future research may extend these "tail risk" constraints to more complex problems such as paging, matching, or prophet inequalities.
Summary updated