Papers
Topics
Authors
Recent
2000 character limit reached

Trading Prophets Problem

Updated 25 October 2025
  • Trading Prophets Problem is a unified online model for sequential buy and sell decisions, extending classical prophet inequality frameworks to complex trading environments.
  • It leverages thresholding methods, adaptive strategies, and matroid constraints to manage multiple assets, cancellation costs, transaction fees, and limited information.
  • The framework connects theoretical performance guarantees with practical algorithmic design for automated trading, dynamic pricing, and resource allocation in uncertain markets.

The Trading Prophets Problem is a class of online selection and trading problems that extend the classical prophet inequality framework to settings requiring buy and sell decisions, portfolio selection across multiple assets, or recourse via cancellations. It serves as a unifying paradigm for modeling trading, allocation, or pricing tasks where the agent must compete with a prophet (offline optimum) who observes all future realizations, but where the agent’s information is limited and decision-making is sequential and often irrevocable, except when explicit cancellation mechanisms are permitted. Recent developments have systematically characterized the achievable performance—primarily via competitive ratios—under a variety of constraints such as limited samples, transaction fees, capacity or portfolio restrictions, incorporation of cancellation costs, and extension to general feasibility structures.

1. Core Formulation and Model Variants

The canonical Trading Prophets model generalizes optimal stopping to settings permitting both purchase and liquidation actions. In the basic single-stock scenario (Correa et al., 2023), an online algorithm observes a sequence of prices (X1,,Xn)(X_1, \ldots, X_n) (typically sampled iid or in random order). At each time tt, the algorithm can buy if not holding or sell if holding, seeking to maximize cumulative profit. The offline benchmark prophet can buy at every local minimum and sell at every local maximum, yielding a benchmark of expected profit E(OPT)=n12E[X1X2]E(\mathrm{OPT}) = \frac{n-1}{2} E[|X_1 - X_2|] in the iid case.

Extensions analyzed include:

  • Multiple asset trading, with portfolio constraints modeled as (k,,)(k, \ell, \ell')-Trading Prophet problems: kk stocks, up to \ell can be held by the online algorithm at any time, and the offline comparator is restricted to \ell' \le \ell (Rajput et al., 17 Apr 2025).
  • General matroid feasibility (the M\mathcal{M}-Trading Prophet Problem): agent holds feasible subsets from a matroid M\mathcal{M} (allowing, e.g., sector diversification constraints).
  • Revenue management with buybacks (prophet inequalities with cancellation costs): after accepting a value, the algorithm may pay a cancellation cost (proportional to past decisions) to accept a future value (Ekbatani et al., 31 Mar 2024).
  • Models with initial capital, facilitating buy-in and circumventing impossibility results for zero-start capital (Azar et al., 18 Oct 2025).
  • Settings with additive or multiplicative transaction costs on trading (Azar et al., 18 Oct 2025).
  • Variations involving non-iid prices in random order, or only partial information such as limited samples.

These settings generally maintain the competitive analysis paradigm: compare the expected performance of an online algorithm to that of the prophet, often expressed as E[Algorithm]αE[OPT]E[\text{Algorithm}] \geq \alpha \cdot E[\mathrm{OPT}] for the largest possible α\alpha.

2. Principal Algorithmic Techniques

Thresholding is the central algorithmic principle across most variants:

  • Static Thresholds: For iid prices, setting the threshold to the median yields 1/2-optimality for the basic trading prophet problem. The agent buys below, sells above the threshold (Correa et al., 2023).
  • Adaptive Thresholding and Recourse: With recourse (buybacks at linear cost ff), the policy accepts a price if it exceeds the current by a factor (1+f)(1+f), paying cost fxf \cdot x to upgrade (Ekbatani et al., 31 Mar 2024).
  • Greedy and Matroid-Based Selection: For multi-stock and matroid extensions, a greedy (Kruskal-type) algorithm selects stocks to maximize E[topm(μX)]E[\text{top}_m(\mu - X)], subject to feasibility (Rajput et al., 17 Apr 2025).
  • Randomized and Multi-Threshold Algorithms: In secretary-like or random order arrivals, randomized multi-threshold or sample-based schemes accommodate lack of order predictability and limited information.

Cancellation costs (buyback models) are handled via dynamic programming or factor-revealing linear programs, resulting in optimal (and sometimes order-oblivious) threshold policies.

Transaction costs (per-trade fees or bid-ask spreads) necessitate further adaptive thresholding: for multiplicative cost δ\delta, compute thresholds zL,zHz_L, z_H that solve Pr[XzH]=Pr[XzL]\Pr[X \geq z_H] = \Pr[X \leq z_L] and zH(1δ)δ=zL(1+δ)+δz_H(1-\delta) - \delta = z_L(1+\delta) + \delta. The algorithm then buys at or below zLz_L, sells at or above zHz_H (Azar et al., 18 Oct 2025).

3. Performance Guarantees and Limits

The competitive ratios for various scenarios are characterized as follows:

  • Single-stock, iid prices: Optimal ratio α=1/2\alpha = 1/2. No online algorithm can guarantee better (Correa et al., 2023).
  • Non-iid prices, random order: Asymptotically optimal ratio approaches $1/2$; basic threshold algorithms can guarantee at least $1/16$, with impossibility at $1/3$ (Correa et al., 2023).
  • Multiple stocks/portfolio: For kk stocks, \ell held at a time, the tight ratio is min{1/2,/k}\min\{1/2, \ell/k\} (Rajput et al., 17 Apr 2025). For general matroids (density dd), the ratio is $1/(1+d)$.
  • Buybacks/cancellation: With linear cancellation cost ff, optimal ratio is (1+f)/(1+2f)(1+f)/(1+2f) for f1f \ge 1, and 1Θ(flog(1/f))1 - \Theta(f \log (1/f)) for small ff (Ekbatani et al., 31 Mar 2024). This is achieved by an order-oblivious threshold policy.
  • Initial capital: With initial stock/capital, a simple lookahead strategy achieves a ratio of $3$ in adversarial order, $2$ in iid with transaction costs (Azar et al., 18 Oct 2025). These bounds are tight.
  • Overbooking, revocable selection: In \ell-out-of-kk models, the competitive ratio is 1eΘ((k)2/k)1-\ell\cdot e^{-\Theta((k-\ell)^2/k)} exponentially approaching 1 as overbooking (kk-\ell) grows (Ezra et al., 2018).

Impossibility results characterize the fundamental information-theoretic limitations: with adversarial orderings and heterogeneity, positive-competitive strategies may be impossible; with random order or additional structure, bounds improve.

4. Mathematical Frameworks and Analytical Tools

Key technical approaches include:

  • Dynamic Programming and Bellman Recurrence for recourse models (Ekbatani et al., 31 Mar 2024), where value functions Φt(x)\Phi_t(x) satisfy

Φt1(x)=E[max{Φt(x),Φt(Xt)fx}]\Phi_{t-1}(x) = \mathbb{E}[ \max \{\Phi_t(x), \Phi_t(X_t) - f x\} ]

  • Factor-revealing Linear Programs unify competitive analysis for recourse, conversion to network flows in the dual.
  • Poisson Process Embedding for the asymptotics of cancellation models, connecting discretized trading opportunities to continuous mass arrival.
  • Sample-based Reductions and probabilistic tools (Chernoff, DKW inequalities) for limited information and non-iid analysis.
  • Matroid density d=maxXE,XX/rk(X)d = \max_{X \subseteq E, X \neq \emptyset} |X|/\text{rk}(X) as a central parameter in bounding the achievable competitive ratio in generalized portfolio selection (Rajput et al., 17 Apr 2025).

5. Applications, Extensions, and Practical Implications

Trading Prophets models underpin the design of robust online algorithms for:

  • Automated trading with buy and sell decisions under uncertainty, for both single asset and diversified portfolios.
  • Online pricing, auctions, and revenue management (e.g., sequential posted pricing, overbooking mechanisms) with limited information and flexibility for recourse/cancellations.
  • Markets with transaction fees, bid-ask spreads, and liquidity constraints.
  • Resource allocation settings (e.g., cloud computing, ad allocation) where agents may cancel assignments at a cost.

The simplicity and near-optimality of threshold-based rules (buy below, sell above) make these algorithms practical for implementation in real-time trading engines, especially when augmented with historical samples. The ability to match prophet performance up to tight constants, even under severe information limitations, demonstrates the robustness of these approaches.

6. Technical Innovations

Recent work introduced several novel analytical tools:

  • Reduction to ordered two-point (Bernoulli) instances to obtain monotonic “worst-case” constructions for lower bounds (Ekbatani et al., 31 Mar 2024).
  • Duality between LP factor-revealing programs and generalized flows representing online decision dynamics with cancellation or buyback actions.
  • Embedding of discrete sequential problems into Poisson point process models, yielding tractable differential equations for asymptotic analysis of cancellation regimes.
  • Order-oblivious implementation—algorithms whose guarantee is independent of the arrival ordering of distributions, thus matching classic algorithms à la [Samuel-Cahn, 1984].

7. Future Directions and Open Problems

Open directions identified in the literature include:

  • Extending the trading prophets framework to more general constraints (e.g., matchings, knapsack) beyond matroids.
  • Closing the gaps between upper and lower bounds in heterogeneous and adversarial settings, especially for transaction cost and recourse models (e.g., explicit competitive ratios as functions of cost structure).
  • Incorporating further market microstructure features: dynamic liquidity, price impact, or nonstationary price distributions.
  • Algorithmic trading with real-world data: testing the robustness of simple threshold strategies under market regimes not modeled by independence or random order.
  • Unifying prophet inequalities with risk-aware or regret-based performance metrics.

The Trading Prophets Problem thus serves as a central and evolving problem class that bridges offline-optimal and online-feasible decision-making, with mathematically sharp characterizations of performance and deep connections to economic mechanism design, resource allocation, and computational finance.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (5)
Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Trading Prophets Problem.