CSE 312 Midterm Exam May 7, 2014

Similar documents
EE 126 Fall 2006 Midterm #1 Thursday October 6, 7 8:30pm DO NOT TURN THIS PAGE OVER UNTIL YOU ARE TOLD TO DO SO

Compound Probability. Set Theory. Basic Definitions

Midterm 2 6:00-8:00pm, 16 April

EECS 203 Spring 2016 Lecture 15 Page 1 of 6

MA 180/418 Midterm Test 1, Version B Fall 2011

NAME : Math 20. Midterm 1 July 14, Prof. Pantone

Geometric Distribution

Discrete Random Variables Day 1

STAT Statistics I Midterm Exam One. Good Luck!

Topics to be covered

Chapter 0: Preparing for Advanced Algebra

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

LAMC Junior Circle February 3, Oleg Gleizer. Warm-up

Section 6.1 #16. Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

This exam is closed book and closed notes. (You will have access to a copy of the Table of Common Distributions given in the back of the text.

The study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability

Name Instructor: Uli Walther

Probability: introduction

MGF 1106: Exam 2 Solutions

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

Due Friday February 17th before noon in the TA drop box, basement, AP&M. HOMEWORK 3 : HAND IN ONLY QUESTIONS: 2, 4, 8, 11, 13, 15, 21, 24, 27

The Teachers Circle Mar. 20, 2012 HOW TO GAMBLE IF YOU MUST (I ll bet you $5 that if you give me $10, I ll give you $20.)

Mathematical Foundations HW 5 By 11:59pm, 12 Dec, 2015

Ex 1: A coin is flipped. Heads, you win $1. Tails, you lose $1. What is the expected value of this game?

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

Discrete probability and the laws of chance

3 The multiplication rule/miscellaneous counting problems

1 2-step and other basic conditional probability problems

Exam Time. Final Exam Review. TR class Monday December 9 12:30 2:30. These review slides and earlier ones found linked to on BlackBoard

Probability Paradoxes

Statistics Intermediate Probability

Midterm (Sample Version 3, with Solutions)

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Discrete Structures Lecture Permutations and Combinations

1 Permutations. 1.1 Example 1. Lisa Yan CS 109 Combinatorics. Lecture Notes #2 June 27, 2018

ABE/ASE Standards Mathematics

Solutions for the Practice Final

1. For which of the following sets does the mean equal the median?

CSE 21 Practice Final Exam Winter 2016

Important Distributions 7/17/2006

Assignment 4: Permutations and Combinations

Section Summary. Permutations Combinations Combinatorial Proofs

Math 447 Test 1 February 25, Spring 2016

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13

Basic Probability & Statistics Exam 2 { Part I { Sections (Chapter 4, Chapter 5) March 19, 2009


Midterm 2 Practice Problems

Discrete Structures for Computer Science

3 The multiplication rule/miscellaneous counting problems

Sec$on Summary. Permutations Combinations Combinatorial Proofs

6.042/18.062J Mathematics for Computer Science December 17, 2008 Tom Leighton and Marten van Dijk. Final Exam

4.1 Sample Spaces and Events

18.2 Geometric Probability

ECON 282 Final Practice Problems

Ask a Scientist Pi Day Puzzle Party askascientistsf.com. Ask a Scientist Pi Day Puzzle Party askascientistsf.com

Probability: Anticipating Patterns

Name: Class: Date: Probability/Counting Multiple Choice Pre-Test

Name: Exam 01 (Midterm Part 2 take home, open everything)

CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions)

The probability set-up

Introduction to Counting and Probability

2 A fair coin is flipped 8 times. What is the probability of getting more heads than tails? A. 1 2 B E. NOTA

1. How many subsets are there for the set of cards in a standard playing card deck? How many subsets are there of size 8?

Math 4610, Problems to be Worked in Class

Grade 7/8 Math Circles February 25/26, Probability

10-1. Combinations. Vocabulary. Lesson. Mental Math. able to compute the number of subsets of size r.

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

2 Event is equally likely to occur or not occur. When all outcomes are equally likely, the theoretical probability that an event A will occur is:

CS 361: Probability & Statistics

( ) Online MC Practice Quiz KEY Chapter 5: Probability: What Are The Chances?

1 2-step and other basic conditional probability problems

Chapter 1. Probability

MATH STUDENT BOOK. 7th Grade Unit 6

Practice Ace Problems

Counting in Algorithms

4.12 Practice problems

PROBLEM SET 2 Due: Friday, September 28. Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6;

Please Turn Over Page 1 of 7

CH 13. Probability and Data Analysis

Probability. Dr. Zhang Fordham Univ.

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

Find the probability of an event by using the definition of probability

Math March 12, Test 2 Solutions

Mutually Exclusive Events Algebra 1

Problem Set 8 Solutions R Y G R R G

Math 141 Exam 3 Review with Key. 1. P(E)=0.5, P(F)=0.6 P(E F)=0.9 Find ) b) P( E F ) c) P( E F )

Lesson 16: The Computation of the Slope of a Non Vertical Line

Statistics 1040 Summer 2009 Exam III

Probability. The MEnTe Program Math Enrichment through Technology. Title V East Los Angeles College

x y

Theory of Probability - Brett Bernstein

Directions: Show all of your work. Use units and labels and remember to give complete answers.

Outcome 9 Review Foundations and Pre-Calculus 10

The probability set-up

Pan (7:30am) Juan (8:30am) Juan (9:30am) Allison (10:30am) Allison (11:30am) Mike L. (12:30pm) Mike C. (1:30pm) Grant (2:30pm)

Algebra 2 Notes Section 10.1: Apply the Counting Principle and Permutations

COMPOUND EVENTS. Judo Math Inc.

Probabilities and Probability Distributions

Problem Set 2. Counting

A Probability Work Sheet

Transcription:

Name: CSE 312 Midterm Exam May 7, 2014 Instructions: You have 50 minutes to complete the exam. Feel free to ask for clarification if something is unclear. Please do not turn the page until you are instructed to do so. You can use 1 pages of notes during the exam. Do NOT simplify any of your answers. You do not need to reprove anything that is in the text or anything that was stated on the slides (e.g. the formula for expectation of a geometric distribution). The last 2 pages of the exam are extra credit problems. (There are two extra credit problems in total.) You do not need to do any of them to get a perfect score on the test or a 4.0 in the class (the latter assumes of course that you do well on all your other work). You shouldn t work on extra credit problems until you are satisfied with what you ve done on the regular problems. If you hit a problem you are finding difficult, I recommend moving on to other problems and then coming back. Good luck! 1

1 /40 2 /30 3 /20 4 /25 5 /25 total /140 Extra Credit Total (out of 30): 1. (40 points total) Short answer, 5 points each. No explanations needed or wanted. (a) If random variable X has expected value 3 and variance 2, what is E(X 2 )? (b) How many ways are there to rearrange the letters in the word banana? (c) A certain department offers 8 different lower-level courses, and 10 different higher level courses. A valid curriculum consists of 5 lower level courses and 3 higher level courses. What is the probability that a random selection of 8 courses is valid? 2

(d) What is the coefficient of x 3 in (4x 8) 8? (e) What is the minimum number of people for which, no matter when they were born, we are guaranteed that at least 3 of them were born in the same month? (f) What is the probability that a 6 card hand (randomly selected out of the 52 cards in a standard deck) contains two sets of 3-of-a-kind? (For example, three aces and three 9 s.) (Note the unusual, for this class, number of cards in the hand.) (g) How many different ways are there to select 3 dozen colored roses if red, yellow, pink, white, purple and orange roses are available? (h) Two identical 52-card decks are mixed together. How many distinct permutations of the 104 cards are there? 3

2. (30 points total) We flip a biased coin with probability p of getting heads until we either get heads or we flip the coin three times. Thus, the possible outcomes of this random experiment are <H>,<T,H>,<T,T,H>and <T,T,T >. (a) (8 points) What is the probability mass function of X, where X is the number of heads. (Notice that X is 1 for the first three outcomes, and 0 in the last outcome.) (b) (4 points) What is the probability that the coin is flipped more than once? (c) (8 points) Are the events there is a second flip and it is heads and there is a third flip and it is heads independent? Justify your answer. (d) (10 points) Given that we flipped more than once and ended up with heads, what is the probability that we got heads on the second flip? (No need to simplify your answer.) 4

3. (20 points) The NSA wishes to assess the chances that a particular individual (in a population of interest ) is a terrorist (event T ) conditioned on the fact that they have associated with a known terrorist (event A). 1 Suppose that the overall fraction of terrorists in the population of interest is 0.1. Suppose also that the probability that a person associates with terrorists given that they are a terrorist is 0.5, and the probability that a person associates with terrorists given that they are not a terrorist is 0.01. What is the probability a person is a terrorist conditioned on the fact that they have associated with a known terrorist i.e., Pr(T A)? Do not simplify your answer. 1 For the NSA, you are considered to have associated with a person if you have had a phone conversation with someone who has had a phone conversation with that person. 5

4. (25 points) You are considering three investments. Investment A yields a return which is X dollars where X is Poisson with parameter 2. Investment B yields a return of Y dollars where Y is Geometric with parameter 1/2. Investment C yields a return of Z dollars which is Binomial with parameters n =20andp =0.1. The returns of the three investments are independent. (a) (12 points) Suppose you invest simultaneously in all three of these possible investments. What is the expected value and the variance of your total return? (b) (13 points) Suppose instead that you choose uniformly at random from among the 3 investments (i.e., you choose each one with probability 1/3). Use the law of total probability to write an expression for the probability that the return is 10 dollars. Your final expression should contain numbers only. No need to simplify your answer. 6

5. (25 points) Consider 101 people, and suppose that each pair of them are friends independently with probability 0.02. (a) (5 points) What is the expected number of friends each person has? (b) (5 points) What is the probability that a particular person has 30 friends? (c) (15 points) What is the expected number of people with exactly 5 friends? 7

6. Extra Credit: (10 points) Prove that n2 n 1 = n ( ) n k. k k=1 You may give either an algebraic proof or a combinatorial proof. (Recall that a combinatorial proof is an argument that shows that both sides of the equation are counting the number of elements in the same set, by giving two different ways to count the number of elements in the set.) 8

7. Extra Credit: (20 points) Consider a set of n distinct numbers presented to you one by one in a random order. (You don t have any prior knowledge of what the numbers are.) As each number is presented, you have the choice of whether to pick it or not, and you can only pick one number. If you pick the highest number, you will win a prize of a million dollars. Suppose you use the following strategy: You wait until you have seen r numbers, and then take the first number after that that is the highest seen so far. (So for example, if n =6andr =3,andthenumbersarriveintheorder 5, 3, 1, 4, 6, 8, you will take the number 6 and you won t win the prize. If the numbers arrive in the order 5, 3, 8, 1, 6, you won t take any number and won t win. Finally, if the numbers arrive in the order 5, 3, 1, 4, 8, 6, then you will take the 8 and win.) What is the probability that you win using this strategy? (Hint: use the law of total probability, conditioning on the location of the maximum.) 9