THREE FLAVORS OF PREDICTIONS IN ONLINE ALGORITHMS
THROUGH THE LENS OF SKI RENTAL
Joint work with Ravi Kumar, Zoya Svitkina, and Erik Vee
Manish Purohit
THREE FLAVORS OF PREDICTIONS IN ONLINE ALGORITHMS Manish Purohit - - PowerPoint PPT Presentation
THROUGH THE LENS OF SKI RENTAL THREE FLAVORS OF PREDICTIONS IN ONLINE ALGORITHMS Manish Purohit Joint work with Ravi Kumar, Zoya Svitkina, and Erik Vee OUTLINE Motivation Ski Rental Problem The Fortune Cookie The Weatherman
Joint work with Ravi Kumar, Zoya Svitkina, and Erik Vee
Manish Purohit
worst-possible future
predictability in data.
predict the future
performance
ski?
believes “Anything that can go wrong will go wrong”
%&' $ ()*($)
%&' $ ()*($)
– Buy on day B-1 – 2-competitive
– Sample - ∈ 1, 1 ; 3 - ∝
5 567 867
– Buy on day - –
9 967-competitive
– ! ← predicted number of days – # = % − ! = prediction error
– Function of the error –
'() * +,- * ≤ / # 0
Algorithm is 1-consistent if / 0 = 1 Algorithm is 3-robust if / # ≤ 3 for all #
You will ski 26 times
– Buy on day 1
– Rent every day
– Buy on day 1
– Rent every day
If (! ≥ # and % ≥ #) or (! < # and % < #)
If ! ≥ # and % < #
If ! < # and % ≥ #
b x y
– Buy on day 1
– Rent every day
If (! ≥ # and % ≥ #) or (! < # and % < #)
If ! ≥ # and % < #
If ! < # and % ≥ #
b x y ALG OPT
– Buy on day 1
– Rent every day
If (! ≥ # and % ≥ #) or (! < # and % < #)
If ! ≥ # and % < #
If ! < # and % ≥ #
b x y ALG OPT
– Buy on day 1
– Rent every day
If (! ≥ # and % ≥ #) or (! < # and % < #)
If ! ≥ # and % < #
If ! < # and % ≥ #
– Buy on day 1
– Rent every day
1-consistent! Not Robust
$%& ≤ ()* + ,
– Buy on day ⌈!(⌉
– Buy on day
+ ,
012 ≤ min
1 + ! +
8 9:, 012 , 9;, ,
(1 + !)-consistent!
9;, ,
between consistency and robustness
– Higher trust in the predictions – Better consistency – Worse robustness
(1 + !)-consistent!
)*+ +
between consistency and robustness
– Higher trust in the predictions – Better consistency – Worse robustness
(1 + !)-consistent!
)*+ +
Can we do better?
– $ = ⌊'#⌋ – Define )* ←
,-. , /-*
⋅
. ,(. - . -./, 3)
– Choose 5 ∈ 1, 2, … , $ randomly from distribution defined by )*. – Buy on day j
– ℓ =
, <
– Define =
* ← ,-. , ℓ-*
⋅
. ,(. - . -./, ℓ)
– Choose 5 ∈ 1, 2, … , ℓ randomly from distribution defined by =
*.
– Buy on day j
– $ = ⌊'#⌋ – Define )* ←
,-. , /-*
⋅
. ,(. - . -./, 3)
– Choose 5 ∈ 1, 2, … , $ randomly from distribution defined by )*. – Buy on day j
– ℓ =
, <
– Define =
* ← ,-. , ℓ-*
⋅
. ,(. - . -./, ℓ)
– Choose 5 ∈ 1, 2, … , ℓ randomly from distribution defined by =
*.
– Buy on day j
< . ->?@ -consistent! . .->? @?A
B
You will ski 26 times
!"# $%& ≤ min + , -./0
1 +
3 $%& , , ,-./ 0/5
6
Prediction Error Consistency Robustness
for more than b days or not
(say, by observing performance on validation data)
– Buy on day b
– Buy on day ! with probability "#
Minimize $ subject to ∀&, ( )*+ & ≤ $ min(1, &)
– Buy on day b
– Buy on day ! with probability "#
Minimize $ subject to ∀&, ( )*+ & ≤ $ min(1, &) h Competitive ratio
h
Competitive ratio
competitive ratio= "(ℎ) " 1 = 1, "
( ) = * *+(
fractional version of the problem
times”
← Probability of buying on the 8irst day
(Even the deterministic algorithm does that)
G H 1 + # !" # I# + ∫ H J @!" # I#
KLMNO H PQR(H,J) is a constant
← Probability of buying on the 8irst day
(Even the deterministic algorithm does that)
G H 1 + # !" # I# + ∫ H J @!" # I#
KLMNO H PQR(H,J) is a constant
There exists a randomized algorithm with competitive ratio U U V JV" UO
– Predictions with no error guarantees – Competitive ratio = min(consistency, robustness)
– Predicts with error guarantees – Competitive ratio = function(error probability)
– Structural assumptions about input – Improved competitive ratios