



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this past exam are: Probability, Local Law, Next Candidate, Either Offered, Previous Part, Event Determines, General Case, Probability Of Hiring, Person Influential, Influential People
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Read these instructions carefully
Problem 1. Two standard decks of 52 cards are randomly shuffled separately. The expected number of cards that are at the same position in both decks is
1/52 1/2 1 2 13 26
Problem 2. Three fair six-sided dice are rolled. Given that at least one of the dice comes up 6, the probability that exactly one of them comes up 6 is
Problem 3. Alice and Bob are two people in a group of size n. The group is ordered randomly in a line. The probability that there are exactly k people between Alice and Bob is
k/n (n-k)/(n(n-1)) (n-k-1)/n! (n-k-1)/(n(n-1)) 2(n-k-1)/(n*(n-1)
Problem 4. Each cereal box contains one coupon, chosen independently and uniformly at random from a set of n different coupons.
CS 174, Fall 1998 Midterm 1 Professor A. Sinclair 1
(a) The expected number of boxes that need to be bought before a copy of some particular coupon is obtained is
n^2 n(ln (ln n)) n^(1/2) n n(ln n) e^n
(b) The expected number of boxes that need to be bought before at least one copy of all n coupons is obtained is on the order of
n^2 n(ln (ln n)) n^(1/2) n n(ln n) e^n
Problem 5. 10 n balls are thrown at random into n bins.
(a) The probability that the first bin contains exactly k balls i
(10n choose k)((1/n)^k)((n-1)/n)^(10n-k) (n choose k)((1/n)^k)((n-1)/n)^(10n-k)
10(n choose k)((1/n)^k)((n-1)/n)^(10n-k) ((1/n)^k)((n-1)/n)^(10n-k) (10n choose k)*((1/n)^10n)
(b) As n goes to infinity, for fixed k, this probability becomes very close to
1/10 (e^-1)(1/k!) (e^-10)(1/k!) (e^-1)(10^k)/k! (e^-10)(10^k)/k!
Problem 6. X and Y are arbitrary independent random variables satisfying E[X] = E[Y] = 1 and Var[X] = Var[Y] = 2. Circle those three of the following statements that must be true:
Pr[X = 1] < 1 E[1/X] = 1 E[x^2] = 1
Pr[X >= 2] <= 1/2 E[XY] = 1 Var[2X+Y] = 10
Problem 7.
(a) A coin with heads probability p is tossed n times independently. The random variable X measures the number of heads observed minus the number of tails observed. The expectation of X is
0 np n(p-1) n(2p-1) np(1-p)
(b) The variance of X is
(a) The expected number of boxes that need to be bought before a copy of some particular coupon is obtained is 2
(c) Show that. If we take p = (100*ln(3n))/n, then the probability in (b) is at most 1/(3n).
(d) Deduce that, with this value of p, the set S is a covering set with probability at least 2/3.
(e) Deduce from parts (a) and (d) that (again with this same value of p), with probability at least 1/6, the set S is a covering set of size at most 200ln(3n). [Hint: Let E1 be the event that S is not a covering set, and E2 the event that |S| > 200ln(3n). Part (d) bounds Pr[E1]. Use Markov's inequality and part (a) to bound Pr[E2]. Then combine your bounds on Pr[E1] and Pr[E2] to get a bound on Pr[E1 or E2].]
(f) Part (e) means that our simple randomized method, with the value of p given in part (c), will find a covering set of size at most 200ln(3n) with probability at least 1/6. How would you boost this probability to 1-ε, for any desired ε>0.
Problem 10. To Hire or Not To Hire
A certain company has selected n candidates to interview for a vacant position. According to the local law, the candidates have to be interviewed in sequence, and each one has to be either offered the position or rejected immediately after the interview, before the next candidate is interviewed.
The company has decided to adopt the following strategy. Schedule the n candidates in a random order. For some value k (to be determined), interview and reject the first k candidates. After that, offer the position to the first candidate who is better qualified than all of the first k. (The position remains open if no such candidate exists.) The company assumes that no two candidates are equally qualified, so there are no ties. In this problem, we will investigate how good this strategy is in selecting the most qualified candidate.
4
(a) Suppose first that k = n-1, i.e., all candidates but one are interviewed and rejected and then the last one is hired if he/she is the best; otherwise the position remains open. Find the probability that the best candidate is hired in this special case.
(b) Now let's turn to the general case and consider the probability of hiring the best candidate as a function of n and k. Let us assume that the best candidate is scheduled as the m th one to be interviewed. Show that
Pr[best candidate is hired | best candidate is the m th interviewd] = { 0 if 1 <= m <= k ; k/(m-1) if k+1 <= m <= n.
[Hint: Consider assigning the n candidates to the n interview slots, starting with the best candidate and ending with the worst. In this process, what event determines whether the best candidate is hired?]
(c) Use the result of the previous part to show that, as k , n approaches infinity,
Pr[best candidate is hired] ~ (k/n)*(ln n - ln k)
[Hint: Recall that (Σi=1 to n-1 (1/i)) ~ (ln n) as n approaches infinity]
(d) Using the fact that the function x*ln(1/x) is maximized when x=1/e, find the (approximate) value of k (as a function of n ) that the company should use in order to maximize the probability of hiring the best candidate, and compute this probability for your value of k.
(a) Suppose first that k = n-1, i.e., all candidates but one are interviewed and rejected and then the last one is hired if h 5