Prophet inequality
In the theory of online algorithms and optimal stopping, a prophet inequality is a bound on the expected value of a decision-making process that handles a sequence of random inputs from known probability distributions, relative to the expected value that could be achieved by a "prophet" who knows all the inputs ahead of time. These inequalities have applications in the theory of algorithmic mechanism design and mathematical finance.
Single item
The classical single-item prophet inequality was published by, crediting its tight form to D. J. H. Garling. It concerns a process in which a sequence of random variables arrive from known distributions. When each arrives, the decision-making process must decide whether to accept it and stop the process, or whether to reject it and go on to the next variable in the sequence. The value of the process is the single accepted variable, if there is one, or zero otherwise. It may be assumed that all variables are non-negative; otherwise, replacing negative values by zero does not change the outcome. This can model, for instance, financial situations in which the variables are offers to buy some indivisible good at a certain price, and the seller must decide which offer to accept. A prophet, knowing the whole sequence of variables, can obviously select the largest of them, achieving value for any specific instance of this process, and expected value The prophet inequality states the existence of an online algorithm for this process whose expected value is at least half that of the prophet: No algorithm can achieve a greater expected value for all distributions ofOne method for proving the single-item prophet inequality is to use a "threshold algorithm" that sets a parameter and then accepts the first random variable that is at least as large If the probability that this process accepts an item is, then its expected value is plus the expected excess over that the selected variable has. Each variable will be considered by the threshold algorithm with probability at least and if it is considered will contribute to the excess, so by linearity of expectation the expected excess is at least Setting to the median of the distribution of so that and adding to this bound on expected excess, causes the and terms to cancel each other, showing that for this setting of the threshold algorithm achieves an expected value of at least A different threshold, also achieves at least this same expected value.