AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability...

21
AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are five (5) problems in this examination. There should be sufficient room in this booklet for all your work. But if you use other sheets of paper, be sure to mark them clearly and staple them to the booklet. 1

Transcript of AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability...

Page 1: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

AIM Preliminary Exam: Probability & Discrete Mathematics

September 1, 2013

There are five (5) problems in this examination.

There should be sufficient room in this booklet for all your work. But if you use other sheets of paper, besure to mark them clearly and staple them to the booklet.

1

Page 2: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 1

Find a formula for the n’th Fibonacci number fn, given by fn = fn−1 + fn−2, n ≥ 2f1 = 1f0 = 0

2

Page 3: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 1

3

Page 4: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 1

4

Page 5: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 1

5

Page 6: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 2

Suppose we have a flippable coin of unknown heads probability p and we want to simulate a fair coin.For each of the two experiments described below, give the probability that the experiment outputs heads.Assume all flips of the coin are independent.

(a) Repeatedly flip the coin (twice at a time) until the 2n’th outcome differs from the 2n − 1’st outcome,for some integer n. Output the outcome of the last flip.

(b) Repeatedly flip the coin until the n’th outcome differs from the n − 1’st outcome, for some integer n.Output the outcome of the last flip.

6

Page 7: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 2

7

Page 8: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 2

8

Page 9: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 2

9

Page 10: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 3 Let X be Poisson distributed with parameter λ, i.e., Pr(X = k) = λk

k! e−λ, for k = 0, 1, 2, 3, . . ..

(a) Show that E[Xn] = λE[(X + 1)n−1].

(b) Compute E[X3].

10

Page 11: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 3

11

Page 12: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 3

12

Page 13: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 3

13

Page 14: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 4 Let (X,Y ) be a random point chosen according to the uniform distribution in the disc of radius

1 centered at the origin.

(a) Compute the densities of X and of Y .

(b) Are X and Y independent?

(c) Compute the joint density of the polar coordinates R =√X2 + Y 2 and Θ = tan−1(Y/X).

(d) Are R and Θ independent?

14

Page 15: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 4

15

Page 16: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 4

16

Page 17: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 4

17

Page 18: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 5

Given a finite sequence, like (9, 4, 7, 5, 8), the subsequences (4, 5) and (4, 8) are increasing subsequences.The sequence (4, 5, 8) is a longest increasing subsequence, since there are no increasing subsequences of length4. (9 cannot be used and at most one of 7 and 5 can be used.)

Give an efficient algorithm for finding the longest increasing subsequence of a given sequence of lengthn. Give a (useful) bound on the runtime of your algorithm in the form anb or cn, where the constant a maybe left unspecified, but the constants b or c should be given. You may assume that the given sequence is apermutation of (1, 2, 3, . . . , n).

18

Page 19: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 5

19

Page 20: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 5

20

Page 21: AIM Preliminary Exam: Probability & Discrete Mathematics€¦ · AIM Preliminary Exam: Probability & Discrete Mathematics September 1, 2013 There are ve (5) problems in this examination.

Problem 5

21