Presentation is loading. Please wait.

Presentation is loading. Please wait.

תרגילי חזרה. General Things to Remember Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) Check.

Similar presentations


Presentation on theme: "תרגילי חזרה. General Things to Remember Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) Check."— Presentation transcript:

1 תרגילי חזרה

2 General Things to Remember Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) Check carefully if the payoff cost allows you to use advance formulation of the original model

3 Problem 1 You have 5 boxes on the table – Each box can generate a random number from a uniform distribution (0,100) – In order to activate a box you need to feed it with a $1 – In addition, in order to approach the table you need to pay $2 – You can approach the table up to 5 times, and activate as many boxes as you want each time – Your revenue will be the maximum prize revealed

4 Problem 1 (cont.) Show that 81 is an upper bound for your expected revenue

5 Solution Searching sequentially, with a search cost of c=1 and an infinite decision horizon will always yield a better expected net revenue thus this is an upper bound: Good, but not good enough…

6 Parallel Search is an even tighter bound (if infinite horizon)… We know that: N=1: x=75.5 N=2: x=79.2 N=3: x=80.5 N=4: x=80.95 N=5: x=81

7 בעיית המזכירה נתונה בעיית המזכירה עם n=5 מועמדים, כאשר בניגוד לבעיה המקורית, גם אם סיימנו את החיפוש ולא מצאנו את המועמד הטוב ביותר הרי שבהסתברות α הוא עדיין יהיה פנוי וניתן יהיה לשכור אותו –מהי האסטרטגיה האופטימלית לחיפוש כאשר α=0.2? –בחר ערך N ( גדול מ - 10) ו - α כרצונך ופתור שנית.

8 Analysis What is the probability of selecting the best applicant? – For r=1 or r=n, 1/n – For r>1: timeline n max of r-1max of j-r> the probability that the maximum number in a sample of j-1 is one of the first r-1 numbers

9 Adding α The revised equation: r1/(j-1) sum(1/(j- 1))(r-1)/5A(r-1)*a/n 10.2 212.080.20.420.040.46 30.51.080.40.430.080.51 40.330.580.60.350.120.47 50.25 0.80.20.160.36 A

10 And if you’re a wiseguy… Just choose α=1 and the probability of ending up with the best equals 1…

11 Buying a Laptop Assume you are a comparison shopping agent and a buyer offers you sqrt(x) dollars for each saving of x dollars below a price of $50 for a product You have 3 stores to look at: How will you search and what is the probability of getting to store C? f(x) 0100 Store A c A =1.3 f(x) 1090 Store B c B =0.5 f(x) 2080 Store C c C =0.3

12 This is a Pandora’s version! Sellerfi(x) A1/100 B1/80 C1/60 And the rule: go to store with minimal zi unless found a price below zi

13 Cont. Optimal strategy: start with B, if price above 37.41 then go to C and if best price is above 45.23 then go to A Sellerzi A45.23 B36.98 C37.41

14 Probability of getting to C

15 Yet another Pandora… You go to NY for a month There are N pubs you might find attractive Each pub has a different a-priori distribution of value for you and different exploration cost Your performance will be the accumulated value What is the optimal strategy?

16 Solution All search should be conducted during first day. Cost to be used is c/30

17 Pandora’s Problem We have two boxes: – One with payoffs $10 with probability 0.99 and $K with probability 0.01. Cost of opening is $1. – The other with probability 0.5 has a prize of 100$ and with probability 0.5 has a prize of $200. its cost for opening is c->0. – What should be the value of K so that the first box will be opened first

18 Solution RV of second box is 200 RV of first box is: (K-200)*0.01=1 0.01K=3 K=300

19 שאלה במערכת מחשב מרובת מעבדים בנוי כל מעבד משתי ליבות ידוע שהעומס הרגעי ( זמן המתנה ) על כל ליבה מתפלג f(x)=2x ( עבור 0 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/13/3842785/slides/slide_19.jpg", "name": "שאלה במערכת מחשב מרובת מעבדים בנוי כל מעבד משתי ליבות ידוע שהעומס הרגעי ( זמן המתנה ) על כל ליבה מתפלג f(x)=2x ( עבור 0

20 פתרון ניתן להסתכל על כל מעבד כהזדמנות בעלת שני שלבים. נתחיל מהשלב השני : כלומר כל זמן שמצאנו ערך גדול מ - 0.39 נרצה לדגום גם את הליבה השניה

21 פתרון כעת נסתכל על הליבה הראשונה : כלומר כל זמן שלא מצאנו ערך קטן מ - 0.52 נרצה לדגום את הליבה הראשונה


Download ppt "תרגילי חזרה. General Things to Remember Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) Check."

Similar presentations


Ads by Google