Discrete Math for CS CMPSC 360 LECTURE 32 Last time: Review. Today:

Slides:



Advertisements
Similar presentations
ABC Welcome to the Monty Hall show! Behind one of these doors is a shiny new car. Behind two of these doors are goats Our contestant will select a door.
Advertisements

Discrete Probability Rosen 5.1.
The Monty Hall Problem. Warm up example (from Mondays In Class Problems) Suppose there are 50 red balls and 50 blue balls in each of two bins (200 balls.
Probability and Statistics
More on Probability by David Palay. Review In how many ways can the debate team choose a president and a secretary if there are 10 people on the team?
CompSci 102 Discrete Math for Computer Science March 29, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
1. Probability of an Outcome 2. Experimental Probability 3. Fundamental Properties of Probabilities 4. Addition Principle 5. Inclusion-Exclusion Principle.
Bayes Rule for probability. Let A 1, A 2, …, A k denote a set of events such that An generalization of Bayes Rule for all i and j. Then.
Great Theoretical Ideas in Computer Science.
L.E.Q. How do you use segment and area models to find the probabilities of events?
Section 16.1: Basic Principles of Probability
Lec 18 Nov 12 Probability – definitions and simulation.
Games, Logic, and Math Kristy and Dan. GAMES Game Theory Applies to social science Applies to social science Explains how people make all sorts of decisions.
1 Discrete Structures & Algorithms Discrete Probability.
Statistics Lecture 6. Last day: Probability rules Today: Conditional probability Suggested problems: Chapter 2: 45, 47, 59, 63, 65.
1 Many people debate basic questions of chance in games such as lotteries. The Monty Hall problem is a fun brain teaser that Marilyn vos Savant addressed.
1 Discrete Math CS 280 Prof. Bart Selman Module Probability --- Part a) Introduction.
PROBABILITY MODELS. 1.1 Probability Models and Engineering Probability models are applied in all aspects of Engineering Traffic engineering, reliability,
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Learning Goal 13: Probability Use the basic laws of probability by finding the probabilities of mutually exclusive events. Find the probabilities of dependent.
Great Theoretical Ideas in Computer Science.
What is the probability that it will snow on Christmas day in Huntingdon?
Independence and Dependence 1 Krishna.V.Palem Kenneth and Audrey Kennedy Professor of Computing Department of Computer Science, Rice University.
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
Chapter 1:Independent and Dependent Events
Chapter 7 With Question/Answer Animations. Section 7.1.
Homework Homework due now. Reading: relations
Topic 2: Intro to probability CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text, Probability and Statistics for Engineering.
Switch Doors? By Jan Bryson and Andrew Derer Switch Doors? Photo Courtesy of Hatos-Hall Productions.
1 Week of August 28, 2006 Refer to Chapter
Discrete Structures By: Tony Thi By: Tony Thi Aaron Morales Aaron Morales CS 490 CS 490.
Lesson 8.7 Page #1-29 (ODD), 33, 35, 41, 43, 47, 49, (ODD) Pick up the handout on the table.
Natural Language Processing Giuseppe Attardi Introduction to Probability IP notice: some slides from: Dan Jurafsky, Jim Martin, Sandiway Fong, Dan Klein.
Introduction Lecture 25 Section 6.1 Wed, Mar 22, 2006.
Introduction to Discrete Probability Epp, section 6.x CS 202.
Independence and Dependence 1 Krishna.V.Palem Kenneth and Audrey Kennedy Professor of Computing Department of Computer Science, Rice University.
Section 11-8 Geometric Probability. probability The chance or likelihood that an event will occur. - It is always a number between zero and one. - It.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Probability 5.
Chapter Probability © 2010 Pearson Prentice Hall. All rights reserved 3 5.
5.2 Day One Probability Rules. Learning Targets 1.I can describe a probability model for a chance process. 2.I can use basic probability rules, including.
Great Theoretical Ideas in Computer Science for Some.
1 Learning Objectives Bayes’ Formula The student will be able to solve problems involving finding the probability of an earlier event conditioned on the.
Section 7.1. Probability of an Event We first define these key terms: An experiment is a procedure that yields one of a given set of possible outcomes.
Ray Karol 2/26/2013. Let’s Make a Deal Monte Hall Problem Suppose you’re on a game show, and you’re given a choice of three doors: Behind one door is.
Ch 11.7 Probability. Definitions Experiment – any happening for which the result is uncertain Experiment – any happening for which the result is uncertain.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
PROBABILITY Probability Concepts
Starter   In a certain game show, a contestant is presented with three doors. Behind one of the doors is an expensive prize; behind the others are goats.
Natural Language Processing
Introduction to Discrete Mathematics
The Monty Hall Problem Madeleine Jetter 6/1/2000.
Natural Language Processing
Discrete Probability Chapter 7 With Question/Answer Animations
Discrete Math for CS CMPSC 360 LECTURE 27 Last time: Counting.
1.9 Probability.
Monty Hall This is a old problem, but it illustrates the concept of conditional probability beautifully. References to this problem have been made in much.
Introduction to Probability
A Problem that will delight your fancy
WARM - UP The American Red Cross says that about 45% of the US Population has Type O blood, 40% Type A, 11% Type B, and the rest Type AB. a.) Selecting.
Discrete Math for CS CMPSC 360 LECTURE 44 Last time:
Bayes Rule for probability
CONDITIONAL PROBABILITY
Lecture 2: Probability.
The Monty Hall Game PLAY Teacher’s Notes.
STATISTICS AND PROBABILITY
Probability Rules.
Let’s Win a Lollipop! Door 1 Door 2 Door 3 Win! You pick...and stay with and the Lose.   You pick...and stay with... Door 1 Door 2 Door 3 ...and.
Discrete Math for CS CMPSC 360 LECTURE 34 Last time:
Presentation transcript:

Discrete Math for CS CMPSC 360 LECTURE 32 Last time: Review. Today: Combining events. Conditional probability. CMPSC 360 11/15/2018

Monty Hall problem 1970 game show hosted by Monty Hall. A contestant is shown 3 doors: behind one is a prize and behind the other two are two goats. The contestant picks a door, but does not open it. Then one of the other two doors is opened to reveal a goat. The contestant is given the option of sticking with his choice or picking the other unopened door. He wins the prize iff he picks the door with the prize. Should he switch? 11/15/2018 Picture source: http://en.wikipedia.org/wiki/Monty_Hall_problem

I-clicker question (frequency: BC) When do you have a higher probability of winning? If you stick with your first choice. If you switch. Both probabilities are the same. 11/15/2018 Picture source: http://en.wikipedia.org/wiki/Monty_Hall_problem

How to solve a probability problem Figure out: the sample space (the set of possible outcomes). the probability of each sample point (outcome). the event (subset of sample space) you are interested in. Compute the probability of the event by adding up probabilities of sample points in it. 50+33+20-16-10-6+3=103-32=3=68 11/15/2018

I-clicker question (frequency: BC) A dart is thrown blindly at the target shown on the board. The probability that the dart lands in one of the three concentric regions is proportional to the area of the region. The radii of the circles are 1,2, and 3 units. Let 𝑝 𝑖 be the probability that the dart lands in region 𝑖. 𝑝 1 = 𝑝 2 = 𝑝 3 𝑝 1 < 𝑝 2 < 𝑝 3 𝑝 1 > 𝑝 2 > 𝑝 3 None of the above. \pi,3\pi, 5\pi, 11/15/2018 Picture source: http://en.wikipedia.org/wiki/Monty_Hall_problem

Combining events Union of events: 𝐴∪𝐵 Intersection of events: 𝐴∩𝐵 A or B occurs (or both) Intersection of events: 𝐴∩𝐵 Both A and B occur Difference of events: 𝐴−𝐵 A occurs, but B does not Complement of an event: 𝐴 A does not accur. 11/15/2018

Inclusion-Exclusion Recall: for any two sets A and B, 𝐴∪𝐵 = 𝐴 + 𝐵 − 𝐴∩𝐵 . For any two sets A and B, Pr 𝐴∪𝐵 = Pr 𝐴 + Pr 𝐵 −Pr⁡[𝐴∩𝐵]. 11/15/2018

Conditional probability A= event that the student misses school bus B= event that the student’s alarm malfunctions What is the probability that the student misses school bus given that her alarm clock malfunctions? 11/15/2018

Example: two dice Event A: the numbers on the dice sum to 8. Event B: the numbers on the dice are both even. What is the probability of each event? What is the probability of A given that B occurred, Pr⁡[𝐴|𝐵]? 11/15/2018

Conditional probability: definition Let A and B be events, and suppose that Pr 𝐵 ≠0. The conditional probability Pr 𝐴 𝐵 , the probability of A given B, is Pr 𝐴 𝐵 = Pr 𝐴∩𝐵 Pr⁡[𝐵] . 11/15/2018