MATH N1, Fall 2017 First midterm

Similar documents
STAT 31 Practice Midterm 2 Fall, 2005

ECE 302: Chapter 02 Probability Model

Module 2 : Conditional Probability

Probability Review. Chao Lan

Lecture 2: Probability, conditional probability, and independence

Some Basic Concepts of Probability and Information Theory: Pt. 1

Chapter 3 : Conditional Probability and Independence

CSC Discrete Math I, Spring Discrete Probability

PLEASE MARK YOUR ANSWERS WITH AN X, not a circle! 1. (a) (b) (c) (d) (e) 2. (a) (b) (c) (d) (e) (a) (b) (c) (d) (e) 4. (a) (b) (c) (d) (e)...

Dept. of Linguistics, Indiana University Fall 2015

Math Review Sheet, Fall 2008

Probability Theory for Machine Learning. Chris Cremer September 2015

Probability Theory and Applications

Bi=[X=i] i=i,z, forma partition. Example

With Question/Answer Animations. Chapter 7

Discrete Probability. Mark Huiskes, LIACS Probability and Statistics, Mark Huiskes, LIACS, Lecture 2

Probabilistic Systems Analysis Spring 2018 Lecture 6. Random Variables: Probability Mass Function and Expectation

Math 243 Section 3.1 Introduction to Probability Lab

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Executive Assessment. Executive Assessment Math Review. Section 1.0, Arithmetic, includes the following topics:

Introduction to Probability 2017/18 Supplementary Problems

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Random Variables. Andreas Klappenecker. Texas A&M University

Law of Total Probability and Bayes Rule

STAT:5100 (22S:193) Statistical Inference I

Conditional Probability & Independence. Conditional Probabilities

Math Exam 1 Review. NOTE: For reviews of the other sections on Exam 1, refer to the first page of WIR #1 and #2.

Statistical Theory 1

Midterm Exam 1 Solution

4. Probability of an event A for equally likely outcomes:

Useful for Multiplication Rule: When two events, A and B, are independent, P(A and B) = P(A) P(B).

Denker FALL Probability- Assignment 6

M378K In-Class Assignment #1

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

Lecture 2. October 21, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Probability- describes the pattern of chance outcomes

THEORY OF PROBABILITY VLADIMIR KOBZAR

Probability measures A probability measure, P, is a real valued function from the collection of possible events so that the following

Venn Diagrams; Probability Laws. Notes. Set Operations and Relations. Venn Diagram 2.1. Venn Diagrams; Probability Laws. Notes

Sec$on Summary. Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability

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

Classical and Bayesian inference

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)

Chapter Summary. 7.1 Discrete Probability 7.2 Probability Theory 7.3 Bayes Theorem 7.4 Expected value and Variance

CMPSCI 240: Reasoning about Uncertainty

an event with one outcome is called a simple event.

Probability. Carlo Tomasi Duke University

Lecture 1: Probability Fundamentals

Sample Space: Specify all possible outcomes from an experiment. Event: Specify a particular outcome or combination of outcomes.

Continuous Random Variables

Lecture 4: Probability, Proof Techniques, Method of Induction Lecturer: Lale Özkahya

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

Conditional Probability

Basic Probability. Introduction

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

Probability Year 10. Terminology

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

CMPSCI 240: Reasoning Under Uncertainty

Recitation 2: Probability

2. Probability. Chris Piech and Mehran Sahami. Oct 2017

Some Concepts in Probability and Information Theory

Compound Events. The event E = E c (the complement of E) is the event consisting of those outcomes which are not in E.

Introduction to Stochastic Processes

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Single Maths B: Introduction to Probability

P(A) = Definitions. Overview. P - denotes a probability. A, B, and C - denote specific events. P (A) - Chapter 3 Probability

Probabilistic models

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

ECE 313: Hour Exam I

Test One Mathematics Fall 2009

Randomized Algorithms. Andreas Klappenecker

Example: Suppose we toss a quarter and observe whether it falls heads or tails, recording the result as 1 for heads and 0 for tails.

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Probability Midterm Exam 2:15-3:30 pm Thursday, 21 October 1999

Lecture 10: Bayes' Theorem, Expected Value and Variance Lecturer: Lale Özkahya

Appendix A : Introduction to Probability and stochastic processes

Probability COMP 245 STATISTICS. Dr N A Heard. 1 Sample Spaces and Events Sample Spaces Events Combinations of Events...

International Mathematical Olympiad. Preliminary Selection Contest 2011 Hong Kong. Outline of Solutions

Statistical Inference

MATH 19B FINAL EXAM PROBABILITY REVIEW PROBLEMS SPRING, 2010

Georgia Tech High School Math Competition

Lecture 3. Discrete Random Variables

Independence Solutions STAT-UB.0103 Statistics for Business Control and Regression Models

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Lecture 4 Bayes Theorem

MATH PRIZE FOR GIRLS. Test Version A

Preliminary statistics

Chapter 4 Probability

CS626 Data Analysis and Simulation

First Midterm Examination Econ 103, Statistics for Economists February 14th, 2017

PRACTICE PROBLEMS FOR EXAM 1

Probability Year 9. Terminology

Axioms of Probability

Name: Exam 2 Solutions. March 13, 2017

Some Basic Concepts of Probability and Information Theory: Pt. 2

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

Probability 1 (MATH 11300) lecture slides

Discrete random variables and probability distributions

Transcription:

MATH 3670 - N1, Fall 2017 First midterm September 18th NAME: Instructions Only non-graphing calculator is allowed. Simple fraction expressions need not be converted to decimal expression. Notes, books, laptops, cellphones are not allowed. Show full work in your solutions and circle your final answers. Use only scratch paper for scratch. Collaboration with other students is not allowed. Signing here, I have read and understood these instructions: Points Exercise 1 / 33 Exercise 2 / 33 Exercise 3 / 33 Exercise 4 / 34 Total / 133 1

Exercise 1. A register contains eight random digits which are mutually independent. Each digit is a zero or a one with equal probability. (a) [5 pts] Describe an appropriate probability model pω, F, P q corresponding to looking at the contents of the register. (In this case, this means define the sample space, the set of events, and the probabilities of the outcomes). (b) [17 pts] Express each of the following three events explicity as subsets of Ω, and find their probabilities: E 1 : No two neighboring digits are the same. E 2 : Some cyclic shift of the register contents is equal to 00010000. E 3 : The register contains exactly seven zeros. (c) [11 pts] Find P pe 1 E 3 q, P pe 2 E 3 q. NOTE. A cyclic, or circular, shift is the operation of rearranging the entries of a list, either by moving the final entry to the first position, while shifting all other entries to the next position, or by performing the inverse operation. Solution. (a) Ω tj 1 j 2 j 3 j 4 j 5 j 6 j 7 j 8 j k P t0, 1u, k 1,..., 8.u. In words, Ω is the set of sequences of 0 s and 1 s of length eight. The set of events F is the family of subsets of Ω. By independence, we give each simple event tωu, ω P Ω, the probability P ptωuq 1{2 8. (b) E 1 t10101010, 01010101u, P pe 1 q 2{2 8 1{7 8. E 2 t00100000, 00001000u, P pe 2 q 2{2 8 1{2 7. (c) E 1 and E 3 are clearly disjoint, so P pe 1 E 3 q 0, and E 2 X E 3 E 2, so P pe 2 E 3 q P pe 2 X E 3 q P pe 3 q If you interpreted cyclic shift as a cyclic permutation, then: (b) E 1 t10101010, 01010101u, P pe 1 q 2{2 8 1{2 7. P pe 2 q{p pe 3 q 1 4. E 2 t10000000, 01000000, 00100000, 00010000, 00001000, 00000100, 00000010, 00000001u, P pe 2 q 8{2 8 1{2 5. And E 3 E 2, P pe 2 q P pe 3 q. (c) E 1 and E 3 are clearly disjoint, so P pe 1 E 3 q 0, and E 2 and E 3 are the same event so P pe 2 E 3 q 1. 2

Exercise 2. A particular webserver may be working or not working. If the webserver is not working, any attempt to access it fails. Even if the webserver is working, an attempt to access it can fail due to network congestion beyond the control of the webserver. Suppose that the a priori probability that the server is working is 0.8. Suppose that if the server is working, then each access attempt is successful with probability 0.9, independently of other access attempts. Find the following quantities. (a) [11 pts] P pfirst access attempt failsq. (b) [11 pts] P pserver is working first access attempt failsq. (c) [11 pts] P psecond access attempt fails first access attemps failsq. Solution. (a) F : first access attempt fails, W : server is working. Then (b) P pf X W q ` P pf X W 1 q P pf W qp pw q ` P pf W 1 qp pw 1 q 0.1 0.8 ` 1 0.2 0.28. P pw F q P pw X F q{ (c) G: second access attempt fails. P pg F q P pg X F q P pf W qp pw q 0.1 0.8 0.28 P pg X F W qp pw q ` P pg X F W 1 qp pw 1 q P pg W qp pf W qp pw q ` 1 P pw 1 q 0.12 0.8 ` 0.2 0.28 «0.74. «0.29. P pf W q2 P pw q ` P pw 1 q 3

Exercise 3. A certain code has a probability p of cracking a password in any attempt, independently of other attempts. Let X number of attempts before a password is cracked. (a) [3 pts] Specify the set of possible values of X (that is, values of X that can occur with probability ą 0). (b) [30 pts] Find the pmf of X, cdf of X, and the expected value EpXq. Solution. (a) The possible values of X are X 0, 1, 2,... The value X 0 means password is cracked on first attempt. (b) The pmf is # p1 pq x p if x 0, 1, 2,... p X pxq P px xq 0 otherwise. Then, if x 0, 1, 2,..., so The expectation is x0 F X pxq p X px ď xq F X pxq x0 xÿ j0 p1 pq j 1 p1 pqx`1 p p p # 0 if x ă 0 1 p1 pq k`1 if k ď x ă k ` 1. EpXq p xp1 pq x pp1 pq xp1 pq x 1 pp1 pq pp1 pq d dp p1{pq 1 p p. x0 1 p1 pq x`1, d dp p1 pqx pp1 pq d dp p1 pq x NOTE: This is a very unrealistic model; any password cracking strategy must use the information obtained from failed attempts, so the odds of cracking the password should increase with every attempt, and this turns the attempts into dependent events. x0 4

Exercise 4. [34 pts] In a fictitious country, three prisoners have been incarcerated without trial. Their warder tells them that the country s ruler has decided arbitrarily to free one of them and to shoot the other two, but he (the warden) is not permitted to reveal to any prisoner the fate of that prisoner. Prisoner A knows therefore that his chance of survival is 1{3. In order to gain information, he asks the warden: If B is to be pardoned, tell me that C is going to be executed. If C is to be pardoned, tell me that B is going to be executed. And if I m to be pardoned, flip a coin to decide to tell me whether B or C is going to be executed. The warden complies, and tells the prisoner that B will be executed. What now is prisoner A s assessment that he will survive? Solution. Let the events A, B, C mean that prisoner A, B, C is spared, respectively. Let E the event of the warden telling him that B will be executed. We want to calculate P pa Eq. By Bayes formula, P pa Eq P pe AqP paq P pe AqP paq ` P pe BqP pbq ` P pe CqP pcq p1{2q p1{3q p1{2q p1{3q ` 0 ` 1 p1{3q 1{3. Thus, prisoner A s scheme to gain information is unsuccesful. 5