

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Note: As with all homework assignments for this class, this needs to be done along with your group-mates. Please submit one final, polished set of answers for your group, and do not include unnecessary material. (For instance, don’t include your preliminary work/calculations/intuition that led to the final answer.) Partial credit will be given where appropriate: if you think you have some ideas that deserve partial credit, please itemize them concisely, so that the grading process can be accurate. The problem marked (*) may be more difficult than the others. Also, the Chernoff-bound approach of bounding: (i) Pr[X ≥ a] by Pr[etX^ ≥ eta], and (ii) Pr[X ≤ a] by Pr[e−tX^ ≥ e−ta] (and then applying Markov, simplifying, and choosing the optimal positive t), is quite general: the case where X is a sum of bounded and independent random variables seen in class, is just a special case. Problems 2 and 3 deal with such generalizations.
⌈√ Var[X]/E[X]
⌉ is given, but that we do not know anything more about D.
(P1) Show that O(`^2 /(^2 δ)) samples suffice. (We will see how to improve this in (P3).)
(P2) Suppose we only need a “weak estimate” Z such that: with probability at least 0.6, the absolute value of the difference between Z and E[X], is at most · E[X]. Show that O(`^2 /^2 ) samples suffice to compute such a weak estimate.
(P3) Show that by judiciously combining O(log(1/δ)) independently-computed weak esti- mates, we can solve our main problem: i.e., we can get an estimate such that with probability at least 1 − δ, the absolute value of the difference between our estimate and E[X], is at most · E[X]. (Thus, O(`^2 log(1/δ)/^2 ) samples suffice. A hint: the mean may not be the correct choice for the “judicious combination”!)
3 (*). We are given a black-box that outputs numbers independently and uniformly at random from the set { 1 , 2 ,... , 2 n}. We use this to construct a random permutation π of { 1 , 2 ,... , n} as follows. We will construct a one-to-one function f : { 1 , 2 ,... , n} → { 1 , 2 ,... , 2 n}, and then output the numbers in { 1 , 2 ,... , n} in the order of their f (·) values. To construct f , we proceed as follows, for j = 1, 2 ,... , n: choose f (j) by repeatedly obtaining numbers from the black-box, and setting f (j) to be the first number found such that f (j) 6 = f (i) for all i < j. (Note that we ensure that f is one-to-one.) Let X denote the number of calls to the black-box.