odds algorithm
play

Odds Algorithm An Online Algorithm Group Fibonado 20. Dec 2016 - PowerPoint PPT Presentation

Odds Algorithm An Online Algorithm Group Fibonado 20. Dec 2016 Group Fibonado Odds Algorithm 20. Dec 2016 1 / 21 Outline Introduction 1 Online Algorithm The Secretary Problem Optimal Stopping 2 Odds Algorithm 3 Algorithm Proof


  1. Odds Algorithm An Online Algorithm Group Fibonado 20. Dec 2016 Group Fibonado Odds Algorithm 20. Dec 2016 1 / 21

  2. Outline Introduction 1 Online Algorithm The Secretary Problem Optimal Stopping 2 Odds Algorithm 3 Algorithm Proof Group Fibonado Odds Algorithm 20. Dec 2016 2 / 21

  3. Online Algorithm Page replacement algorithm (LRU, Marking algorithm) Insertion sort Perceptron Odds algorithm Group Fibonado Odds Algorithm 20. Dec 2016 3 / 21

  4. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  5. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. Giant Schnauzer Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  6. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. Giant Schnauzer Fair Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  7. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Springer Giant Spaniel Schnauzer Fair Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  8. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Springer Husky Giant Spaniel Schnauzer Fair Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  9. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Springer Husky Giant Spaniel Schnauzer Fair No way Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  10. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Miniature Springer Husky Giant Schnauzer Spaniel Schnauzer Fair No way Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  11. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Miniature Springer Husky Giant Schnauzer Spaniel Schnauzer Fair No way Great Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  12. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Miniature Springer Husky Border Giant Schnauzer Spaniel collie Schnauzer Fair No way Great Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  13. The Secretary Problem on dog planet Description Interview n candidates for a position one at a time. After each interview decide if the candidate is the best so far and hire him/her. Goal Maximize the probability of choosing the best among all n candidates. English Miniature Springer Husky Border Giant Schnauzer Spaniel collie Schnauzer Fair No way ... Great Nice Group Fibonado Odds Algorithm 20. Dec 2016 4 / 21

  14. Outline Introduction 1 Online Algorithm The Secretary Problem Optimal Stopping 2 Odds Algorithm 3 Algorithm Proof Group Fibonado Odds Algorithm 20. Dec 2016 5 / 21

  15. Optimal Stopping (Discrete time case) The problem concerns with: When to stop?? How to maximize the reward? Group Fibonado Odds Algorithm 20. Dec 2016 6 / 21

  16. Dice Toss Dice Toss Consider a game that consists of throwing a fair, six-sided die n times, and whose aim is to stop at the last 6 obtained. Group Fibonado Odds Algorithm 20. Dec 2016 7 / 21

  17. Dice Toss Dice Toss Consider a game that consists of throwing a fair, six-sided die n times, and whose aim is to stop at the last 6 obtained. After each toss, you can choose either stop or continue. Reward. 0 if you didn’t stop on the last . Otherwise, you get 1 million Group Fibonado Odds Algorithm 20. Dec 2016 7 / 21

  18. Dice Toss Dice Toss Consider a game that consists of throwing a fair, six-sided die n times, and whose aim is to stop at the last 6 obtained. After each toss, you can choose either stop or continue. Reward. 0 if you didn’t stop on the last . Otherwise, you get 1 million Let’s play! Group Fibonado Odds Algorithm 20. Dec 2016 7 / 21

  19. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  20. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  21. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  22. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  23. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  24. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  25. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  26. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  27. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  28. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  29. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  30. Dice Toss Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  31. Dice Toss How to maximize the probability that we stop at the last ? Group Fibonado Odds Algorithm 20. Dec 2016 8 / 21

  32. 1 6 · (5 6 · (5 6) ` − 1 = ` in last ` throws ) = C 1 6) ` − 1 P (Obtaining one ` Group Fibonado Odds Algorithm 20. Dec 2016 9 / 21

  33. 1 6 · (5 6 · (5 6) ` − 1 = ` in last ` throws ) = C 1 6) ` − 1 P (Obtaining one ` Di ff erentiating this expression and setting it to 0, we find it is maximized at ` = 6( or ` = 5). Group Fibonado Odds Algorithm 20. Dec 2016 9 / 21

  34. 1 6 · (5 6 · (5 6) ` − 1 = ` in last ` throws ) = C 1 6) ` − 1 P (Obtaining one ` Di ff erentiating this expression and setting it to 0, we find it is maximized at ` = 6( or ` = 5). Intuitively, the most sensible strategy therefore seems to wait till we only have 6 throws left, and then choose the first that occurs after that. Group Fibonado Odds Algorithm 20. Dec 2016 9 / 21

  35. 1 6 · (5 6 · (5 6) ` − 1 = ` in last ` throws ) = C 1 6) ` − 1 P (Obtaining one ` Di ff erentiating this expression and setting it to 0, we find it is maximized at ` = 6( or ` = 5). Intuitively, the most sensible strategy therefore seems to wait till we only have 6 throws left, and then choose the first that occurs after that. P (Strategy leads to the last ) = P (Obtaining one in last 6 throws ) = (5 6) 5 = 0 . 4018 Group Fibonado Odds Algorithm 20. Dec 2016 9 / 21

  36. 1 6 · (5 6 · (5 6) ` − 1 = ` in last ` throws ) = C 1 6) ` − 1 P (Obtaining one ` Di ff erentiating this expression and setting it to 0, we find it is maximized at ` = 6( or ` = 5). Intuitively, the most sensible strategy therefore seems to wait till we only have 6 throws left, and then choose the first that occurs after that. P (Strategy leads to the last ) = P (Obtaining one in last 6 throws ) = (5 6) 5 = 0 . 4018 What about general cases? The Secretary Problem? Group Fibonado Odds Algorithm 20. Dec 2016 9 / 21

  37. Outline Introduction 1 Online Algorithm The Secretary Problem Optimal Stopping 2 Odds Algorithm 3 Algorithm Proof Group Fibonado Odds Algorithm 20. Dec 2016 10 / 21

  38. Problem Restatement Problem You are observing a sequence of events, which may be a success or not, you are required to make the decision to stop or continue the observation. Goal Stop on the last success. Theorem Every kind of stop strategy can be reduced to the following rule: ignore all successes before the k th observation, then choose the first success encountered. Group Fibonado Odds Algorithm 20. Dec 2016 11 / 21

  39. Alice and Bob go biking Alice and Bob want to go biking someday in this week, but the later, the better. Algorithm Homework 99 Group Fibonado Odds Algorithm 20. Dec 2016 12 / 21

  40. Alice and Bob go biking Mon Tue Wed Thu Fri Sat Sun P ( ) 0.1 0.5 0.3 0.1 0.3 0.2 0.1 Group Fibonado Odds Algorithm 20. Dec 2016 13 / 21

  41. Alice and Bob go biking Mon Tue Wed Thu Fri Sat Sun P ( ) 0.1 0.5 0.3 0.1 0.3 0.2 0.1 Outcome 1 Æ Group Fibonado Odds Algorithm 20. Dec 2016 13 / 21

Recommend


More recommend