UC Berkeley, CS 174: Combinatorics and Discrete Probability (Fall 2008) Midterm 1. October 7, 2008

Similar documents
Midterm 2. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

2. This exam consists of 15 questions. The rst nine questions are multiple choice Q10 requires two

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

Quiz 1 Date: Monday, October 17, 2016

Algebra 2 CP Semester 1 PRACTICE Exam

Disjointness and Additivity

Midterm 2 Review. CS70 Summer Lecture 6D. David Dinh 28 July UC Berkeley

ECEN 5612, Fall 2007 Noise and Random Processes Prof. Timothy X Brown NAME: CUID:

STAT/MA 416 Midterm Exam 2 Thursday, October 18, Circle the section you are enrolled in:

Problem # Number of points 1 /20 2 /20 3 /20 4 /20 5 /20 6 /20 7 /20 8 /20 Total /150

University of Illinois ECE 313: Final Exam Fall 2014

CS1800 Discrete Structures Final Version A

Exam III #1 Solutions

Solutions to Problem Set 5

Multiple Choice Answers. MA 114 Calculus II Spring 2013 Final Exam 1 May Question

(Practice Version) Midterm Exam 2

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Nov 30. Final In-Class Exam. ( 7:05 PM 8:20 PM : 75 Minutes )

ECE 302: Probabilistic Methods in Engineering

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions

CSE 312 Foundations, II Final Exam

INSTRUCTIONS USEFUL FORMULAS

Randomized algorithm

MA 113 Calculus I Fall 2015 Exam 1 Tuesday, 22 September Multiple Choice Answers. Question

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

MA Exam 2-A Fall Exam 2 Form A

MATH 180A - INTRODUCTION TO PROBABILITY PRACTICE MIDTERM #2 FALL 2018

EECS 126 Probability and Random Processes University of California, Berkeley: Fall 2014 Kannan Ramchandran September 23, 2014.

EECS 70 Discrete Mathematics and Probability Theory Fall 2015 Walrand/Rao Final

Solutions to Problem Set 4

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2018 Kannan Ramchandran February 14, 2018.

Without fully opening the exam, check that you have pages 1 through 12.

ECE 301 Division 1 Exam 1 Solutions, 10/6/2011, 8-9:45pm in ME 1061.

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2018 Kannan Ramchandran February 14, 2018.

Physics I Exam 1 Fall 2015 (version A)

MTH 133 Exam 2 November 16th, Without fully opening the exam, check that you have pages 1 through 12.

Introduction to Stochastic Processes

SIGNATURE: (in ink) (I understand that cheating is a serious offense.) A01 9:30-10:20 MWF J. Arino. A02 13:30 14:20 MWF X. Zhao

MATH 407 FINAL EXAM May 6, 2011 Prof. Alexander

Spring /11/2009


Midterm Exam 1 Solution

Name: Exam 2 Solutions. March 13, 2017

Without fully opening the exam, check that you have pages 1 through 13.

CSE 312 Final Review: Section AA

MA162 EXAM III SPRING 2017 APRIL 11, 2017 TEST NUMBER 01 INSTRUCTIONS:

STAT/MA 416 Midterm Exam 3 Monday, November 19, Circle the section you are enrolled in:

Math Released Item Algebra 1. Solve the Equation VH046614

MTH 133 Solutions to Exam 2 April 19, Without fully opening the exam, check that you have pages 1 through 12.

1. Let X be a random variable with probability density function. 1 x < f(x) = 0 otherwise

MATH 151, FINAL EXAM Winter Quarter, 21 March, 2014

This exam contains 13 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

Without fully opening the exam, check that you have pages 1 through 12.

Twelfth Problem Assignment

f 3 9 d e a c 6 7 b. Umail umail.ucsb.edu

Test 3 Version A. On my honor, I have neither given nor received inappropriate or unauthorized information at any time before or during this test.

UMUC MATH-107 Final Exam Information

HKUST. MATH1013 Calculus IB. Directions:

Math 447. Introduction to Probability and Statistics I. Fall 1998.

Assignment 4: Solutions

MATH 3510: PROBABILITY AND STATS July 1, 2011 FINAL EXAM


Math 42: Fall 2015 Midterm 2 November 3, 2015

Spring 2017 Midterm 1 04/26/2017

Statistics 253/317 Introduction to Probability Models. Winter Midterm Exam Friday, Feb 8, 2013

Physics I Exam 1 Spring 2015 (version A)

Without fully opening the exam, check that you have pages 1 through 12.

Multiple Choice Answers. MA 110 Precalculus Spring 2016 Exam 1 9 February Question

STAT 516 Midterm Exam 2 Friday, March 7, 2008

MA EXAM 2 INSTRUCTIONS VERSION 01 March 9, Section # and recitation time

Spring /02/2011. MA 109 College Algebra EXAM 4

Lecture 2 Sep 5, 2017


MATH 307 Introduction to Differential Equations Autumn 2017 Midterm Exam Monday November

STAT 311 Practice Exam 2 Key Spring 2016 INSTRUCTIONS

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH A Test #2 June 11, Solutions

Math 1: Calculus with Algebra Midterm 2 Thursday, October 29. Circle your section number: 1 Freund 2 DeFord

ECE 302 Division 2 Exam 2 Solutions, 11/4/2009.

MATH UN1201, Section 3 (11:40am 12:55pm) - Midterm 1 February 14, 2018 (75 minutes)

MthSc 103 Test 3 Spring 2009 Version A UC , 3.1, 3.2. Student s Printed Name:

Midterm Exam. CS 3110: Design and Analysis of Algorithms. June 20, Group 1 Group 2 Group 3

Math 54 Second Midterm Exam, Prof. Srivastava October 31, 2016, 4:10pm 5:00pm, 155 Dwinelle Hall.

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 27 October, CS1800 Discrete Structures Midterm Version A


2. Suppose (X, Y ) is a pair of random variables uniformly distributed over the triangle with vertices (0, 0), (2, 0), (2, 1).

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2015 Abhay Parekh February 17, 2015.

You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question.

X = X X n, + X 2

Math 230 Final Exam, Spring 2009

Introduction to Probability. Ariel Yadin. Lecture 1. We begin with an example [this is known as Bertrand s paradox]. *** Nov.

Notes 6 : First and second moment methods

Business Statistics Midterm Exam Fall 2015 Russell. Please sign here to acknowledge

Midterm 1 for CS 170

Name: Student ID: Instructions:

Outline. Martingales. Piotr Wojciechowski 1. 1 Lane Department of Computer Science and Electrical Engineering West Virginia University.

Math 55 Second Midterm Exam, Prof. Srivastava April 5, 2016, 3:40pm 5:00pm, F295 Haas Auditorium.

Midterm α, Physics 1P21/1P91

Carleton University. Final Examination Winter DURATION: 2 HOURS No. of students: 275

MA 113 Calculus I Fall 2017 Exam 1 Tuesday, 19 September Multiple Choice Answers. Question

Transcription:

UC Berkeley, CS 74: Combinatorics and Discrete Probability (Fall 2008) Midterm Instructor: Prof. Yun S. Song October 7, 2008 Your Name : Student ID# : Read these instructions carefully:. This is a closed-book exam. You have 80 minutes to complete the exam. 2. Calculators are permitted. 3. You are allowed a two-sided, letter-size cheat sheet. 4. Answer the multiple choice questions by circling the correct answer(s). No partial credit will be given for multiple choice questions. Incorrect answers will receive a negative score ( 2), so if you do not know the answer, you should not guess. 5. Write your answers to the other questions in the spaces provided below them. If you don t have enough space, continue on the back of the page and state clearly that you have done so. Show all your work to receive partial credit. 2 3 4 Total

. (20 pt) Multiple choice questions. Circle your choice. Incorrect answers will receive a negative score ( 2), so if you do not know the answer, you should not guess. (a) (4 pt) Let A and B be events with P(A) = 3 4 and P(B) = 3. Which of the following is true? (Circle one choice.) i. 2 P(A B) 3. ii. 3 P(A B) 3 4. iii. 4 P(A B) 3 4. iv. 4 P(A B) 3. v. None of the above. (b) (4 pt) Suppose that at least one of the events X, X 2,..., X n is certain to occur, but certainly no more than two occur. If P(X i ) = p for all i =,..., n and P(X i X j ) = q for all i j, which of the following is true? (Circle one choice.) i. p n and q 2 n. ii. p n and q 2 n. iii. p 2 n and q n. iv. p 2 n and q n. v. None of the above. (c) (4 pt) Let A and B be independent events. Circle all true statements. i. P(A B C) = P(A C)P(B C). ii. P(A B C) = P(A C)P(B C). iii. A and B are independent. iv. A and B are independent. v. P(A B) = P(A) + P(B). 2

(d) (4 pt) Let X be a random variable that takes values in the interval ( 0, 0) and satisfies P(X = x) = P(X = x), for all x ( 0, 0). Circle all true statements. i. E[X 3 ] (E[X]) 3. ii. E[X 4 ] (E[X]) 4. iii. E[X X 2 ] E[X] (E[X]) 2. iv. E[X] = 0. v. Var[X] 0. (e) (4 pt) Consider a random bit generator that produces a with probability p and a 0 with probability ( p). Suppose you run this random bit generator 00 times, and let X i denote the ith outcome. Define X = 00 i= X i. Given that X = 2, what is the probability that X =? (Circle one choice.) i. p. ii. iii. iv. ( 00 2 50. 00. p ) p 2 ( p). 98 v. None of the above. 3

2. (20 pt) Short computational problems. (a) (0 pt) Let X and X 2 be independent random variables with P(X i = k) = ( p i )p k i, for k = 0,, 2,.... Compute the probability P(X < X 2 ). 4

(b) (5 pt) A monkey types on a keyboard that has only 26 lowercase letters {a,b,c,...,x,y,z} and nothing else. At each keystroke, each of the 26 letters is equally likely to be hit. The monkey types 000 letters. What is the expected number of times the word evolution appears in this text? (c) (5 pt) In class, we discussed Karger s randomized algorithm for finding a min-cut in an undirected graph G with n vertices. As a direct consequence of its analysis, one can show that the total number of min-cuts that G can have is upper bounded by ( n 2). Prove this result and give an example G with exactly ( n 2) min-cuts. (This proves that ( n 2) is a tight upper bound.) 5

3. (30 pt) Tail bounds. (a) (6 pt) State and prove Markov s inequality. (b) (5 pt) State and prove Chebyshev s inequality. 6

(c) (5 pt) In the remainder of this problem, consider a standard six-sided die and let X denote the number of times that 6 shows up over n throws of the die. Compute an upper bound on P(X n 2 ) using Markov s inequality. (d) (6 pt) Compute an upper bound on P(X n 2 ) using Chebyshev s inequality. 7

(e) (8 pt) Compute the best upper bound on P(X n 2 ) using a Chernoff bound. (Hint: You need to find t that gives the best Chernoff bound.) 8

4. (30 pt) Number of cycles in a random permutation. A permutation π : {,..., n} {,..., n} can be represented as a set of cycles as follows. Assign one vertex to each number i =,... n. If the permutation maps i to π(i), then a directed arc is drawn from vertex i to vertex π(i). This leads to a graph that is a set of disjoint cycles. Note that if the permutation maps i to i, then the cycle is a self-loop from i to i. In what follows, consider a random permutation π of n numbers. Let X denote the total number of cycles in π. (a) (5 pt) Find P(X = ), the probability that a random permutation consists of a single cycle. (b) (8 pt) Find E[X] for n = 2 and n = 3. 9

(c) (0 pt) Define Y i := /(length of the cycle containing i). Find P[Y i = k ] and E[Y i]. 0

(d) (4 pt) Find an equation that relates X and Y i, i =,..., n. (e) (3 pt) Compute E[X].