Tutorial 2: Sample Space and Probability 2

Slides:



Advertisements
Similar presentations
1. Probability of an Outcome 2. Experimental Probability 3. Fundamental Properties of Probabilities 4. Addition Principle 5. Inclusion-Exclusion Principle.
Advertisements

Chapter 2 Concepts of Prob. Theory
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
COUNTING AND PROBABILITY
Sets: Reminder Set S – sample space - includes all possible outcomes
SI485i : NLP Day 2 Probability Review. Introduction to Probability Experiment (trial) Repeatable procedure with well-defined possible outcomes Outcome.
Probability and Statistics Dr. Saeid Moloudzadeh Sample Space and Events 1 Contents Descriptive Statistics Axioms of Probability Combinatorial.
Probability Distributions
Basics of Probability. Trial or Experiment Experiment - a process that results in a particular outcome or “event”. Simple event (or sample point), E i.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
PRED 354 TEACH. PROBILITY & STATIS. FOR PRIMARY MATH
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Sample space The set of all possible outcomes of a chance experiment –Roll a dieS={1,2,3,4,5,6} –Pick a cardS={A-K for ♠, ♥, ♣ & ♦} We want to know the.
Discrete Mathematical Structures (Counting Principles)
Chapter 1 Probability Spaces 主講人 : 虞台文. Content Sample Spaces and Events Event Operations Probability Spaces Conditional Probabilities Independence of.
Chapter 11 Probability Sample spaces, events, probabilities, conditional probabilities, independence, Bayes’ formula.
1 2. Independence and Bernoulli Trials Independence: Events A and B are independent if It is easy to show that A, B independent implies are all independent.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
1 TABLE OF CONTENTS PROBABILITY THEORY Lecture – 1Basics Lecture – 2 Independence and Bernoulli Trials Lecture – 3Random Variables Lecture – 4 Binomial.
Basic Probability Rules Let’s Keep it Simple. A Probability Event An event is one possible outcome or a set of outcomes of a random phenomenon. For example,
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
확률및공학통계 (Probability and Engineering Statistics) 이시웅.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Chapter 6 Lesson 6.1 Probability 6.1: Chance Experiments and Events.
Natural Language Processing Giuseppe Attardi Introduction to Probability IP notice: some slides from: Dan Jurafsky, Jim Martin, Sandiway Fong, Dan Klein.
Random Variables Example:
Stat 1510: General Rules of Probability. Agenda 2  Independence and the Multiplication Rule  The General Addition Rule  Conditional Probability  The.
Random Variables and Stochastic Processes – Dr. Ghazi Al Sukkar Office Hours: will be.
Basic probability Sep. 16, Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Chapter5 Statistical and probabilistic concepts, Implementation to Insurance Subjects of the Unit 1.Counting 2.Probability concepts 3.Random Variables.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
Pattern Recognition Probability Review
What Is Probability?.
Chapter 7: Counting Principles
Probability.
Natural Language Processing
What is Probability? Quantification of uncertainty.
Appendix A: Probability Theory
Natural Language Processing
Introduction to Probability
CSCI 5832 Natural Language Processing
PROBABILITY AND STATISTICS
Some Discrete Probability Distributions
1. Probabilistic Models.
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
COUNTING AND PROBABILITY
Sets and Probabilistic Models
Conditional Probability, Total Probability Theorem and Bayes’ Rule
Discrete Random Variables: Basics
Sets and Probabilistic Models
Independence and Counting
Conditional Probability, Total Probability Theorem and Bayes’ Rule
Discrete Random Variables: Joint PMFs, Conditioning and Independence
Discrete Random Variables: Basics
Experiments, Outcomes, Events and Random Variables: A Revisit
Conditional Probability, Total Probability Theorem and Bayes’ Rule
Business and Economics 7th Edition
Sets and Probabilistic Models
Independence and Counting
Independence and Counting
Discrete Random Variables: Basics
Sets and Probabilistic Models
Conditional Probability, Total Probability Theorem and Bayes’ Rule
A random experiment gives rise to possible outcomes, but any particular outcome is uncertain – “random”. For example, tossing a coin… we know H or T will.
Chapter 1 Probability Spaces
Presentation transcript:

Tutorial 2: Sample Space and Probability 2 Baoxiang WANG bxwang@cse Spring 2017

Examples Probability models A probability model is an assignment of probabilities to every element of the sample space. Probabilities are nonnegative and add up to one. Examples S = { HH, HT, TH, TT } ¼ models a pair of coins with equally likely outcomes

Elements of a Probabilistic Model Event: a subset of sample space. 𝐴⊆Ω is a set of possible outcomes Example. 𝐴= 𝐻𝐻,𝑇𝑇 , the event that the two coins give the same side. The probability law assigns our knowledge or belief to an event 𝐴 a number 𝑃 𝐴 ≥0. It specifies the likelihood of any outcome.

Probability Axioms (Non-negativity) 𝑃(𝐴)≥0, for every event 𝐴. (Additivity) For any two disjoint events 𝐴 and 𝐵, 𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵 In general, if 𝐴 1 , 𝐴 2 , … are disjoint events, then 𝑃 𝐴 1 ∪ 𝐴 2 ∪… =𝑃 𝐴 1 +𝑃 𝐴 2 +… (Normalization) 𝑃(Ω)=1.

De Morgan’s laws 𝐴∪𝐵 c = A 𝑐 ∩ 𝐵 𝑐 𝐴∩𝐵 c = A 𝑐 ∪ 𝐵 𝑐

Question Bonferroni’s inequality. Prove that for any two events A and B, we have 𝑃 𝐴∩𝐵 ≥𝑃 𝐴 +𝑃 𝐵 −1 𝑃 𝐴 +𝑃 𝐵 −𝑃 𝐴∩𝐵 =𝑃(𝐴∪𝐵) 𝑃(𝐴∪𝐵)≤1

Question Romeo and Juliet have a date. Each will arrive at the meeting place with a delay between 0 and 1 hour, with all pairs of delays being equally likely. The first to arrive will wait for 15 minutes and will leave if the other has not yet arrived. Question: What is the probability that they will meet?

Sample space: the unit square 0,1 × 0,1 , Question Sample space: the unit square 0,1 × 0,1 , Its elements are the possible pairs of delays. “equally likely” pairs of delays: let 𝑃 𝐴 for event 𝐴⊆Ω be equal to 𝐴’s “area”. This satisfies the axioms. 𝑀= 𝑥, 𝑦 : 𝑥−𝑦 ≤ 1 4 , 0≤𝑥≤1, 0≤𝑦≤1

The event that Romeo and Juliet will meet is the shaded region. Question The event that Romeo and Juliet will meet is the shaded region. Its probability is calculated to be 7/16. =1− the area of the two unshaded triangles =1−2⋅ 3 4 · 3 4 /2 =7/16. 𝑀= 𝑥, 𝑦 : 𝑥−𝑦 ≤ 1 4 , 0≤𝑥≤1, 0≤𝑦≤1

Question A parking lot contains 100 cars, 𝑘 of which happen to be lemons. We select 𝑚 of these cars at random and take them for a test drive. Find the probability that 𝑛 of the cars tested turn out to be lemons. The sample space Ω= random choose 𝑚 cars The size of sample space |Ω|= 100 𝑚

Question A parking lot contains 100 cars, 𝑘 of which happen to be lemons. We select 𝑚 of these cars at random and take them for a test drive. Find the probability that 𝑛 of the cars tested turn out to be lemons. The event 𝑛 cars are lemons (𝑛≤𝑘 and 𝑛≤𝑚) 𝑘 𝑛 ∙ 100−𝑘 𝑚−𝑛 The probability 𝑃= 𝑘 𝑛 ∙ 100−𝑘 𝑚−𝑛 / 100 𝑚

Question: Conditioning Consider ten independent rolls of a 6-sided die. Let 𝑋 be the number of 6𝑠 and let 𝑌 be the number of 1𝑠 obtained. What is the joint PMF of 𝑋 and 𝑌? 𝑋 is a binomial random variable with 𝑛=10 and 𝑝= 1 6 𝑃 𝑌=𝑏 𝑋=𝑎 is a binomial random variable with 𝑛=10−𝑎 and 𝑝= 1 5 So the joint PMF is 𝑃 𝑋=𝑎,𝑦=𝑏 =𝑃 𝑋=𝑎 𝑃 𝑌=𝑏 𝑋=𝑎 = 10 𝑎 1 6 𝑎 ( 5 6 ) 10−𝑎 10−𝑎 𝑏 ( 1 5 ) 𝑏 ( 4 5 ) 10−𝑎−𝑏

Total Probability Theorem Let 𝐴 1 , 𝐴 2 , . . . , 𝐴 𝑛 be disjoint events that form a partition of the sample space. Assume 𝑃( 𝐴 𝑖 )>0 for all 𝑖. Then, for any event 𝐵, we have 𝑃 𝐵 = 𝑃 𝐴 1 ∩𝐵 +⋯+𝑃 𝐴 𝑛 ∩𝐵 = 𝑃 𝐴 1 𝑃 𝐵 𝐴 1 +⋯+𝑃 𝐴 𝑛 𝑃 𝐵 𝐴 𝑛 Indeed, 𝐵 is the the disjoint union of 𝐴 1 ∩𝐵 , …, 𝐴 𝑛 ∩𝐵 . The second equality is given by 𝑃 𝐴 𝑖 ∩𝐵 =𝑃 𝐴 𝑖 𝑃 𝐵 𝐴 𝑖 .

Question We know that a treasure is located in one of two places, with probabilities 𝛽 and 1−𝛽, respectively, where 0<𝛽<1. We search the first place and if the treasure is there, we find it with probability 𝑝>0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place Let 𝐴 and 𝐵 be the events 𝐴={the treasure is in the second place} 𝐵={not find the treasure in the first place}

Question We know that a treasure is located in one of two places, with probabilities 𝛽 and 1−𝛽, respectively, where 0<𝛽<1. We search the first place and if the treasure is there, we find it with probability 𝑝>0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place By the total probability theorem 𝑃 𝐵 =𝑃 𝐴 𝑐 𝑃 𝐵 𝐴 𝑐 +𝑃 𝐴 𝑃 𝐵 𝐴 =𝛽 1−𝑝 +(1−𝛽)

Question We know that a treasure is located in one of two places, with probabilities 𝛽 and 1−𝛽, respectively, where 0<𝛽<1. We search the first place and if the treasure is there, we find it with probability 𝑝>0. Show that the event of not finding the treasure in the first place suggests that the treasure is in the second place By the total probability theorem 𝑃 𝐴 𝐵 = 𝑃(𝐴∩𝐵) 𝑃(𝐵) = 1−𝛽 𝛽 1−𝑝 +(1−𝛽) = 1−𝛽 1−𝛽𝑝 >1−𝛽=𝑃(𝐴)

Independence Independent Events 𝑃(𝐴|𝐵) = 𝑃(𝐴) 𝑃(𝐴∩𝐵) = 𝑃(𝐴)𝑃(𝐵) 𝐴, 𝐵 are independent 𝐵 provides no information of 𝐴 𝑃(𝐴|𝐵) = 𝑃(𝐴) Equivalently 𝑃(𝐴∩𝐵) = 𝑃(𝐴)𝑃(𝐵)

Question A hunter has two hunting dogs. On a two-path road, each dog will choose the correct path with probability 𝑝 independently. Let each dog choose a path, and if they agree, take that one, and if they disagree, randomly pick a path. Is this strategy better than just letting one of the two dogs decide on a path? Both dogs agree on the correct path 𝑝⋅𝑝= 𝑝 2 The dogs disagree 𝑝 1−𝑝 ⋅2

Question A hunter has two hunting dogs. On a two-path road, each dog will choose the correct path with probability 𝑝 independently. Let each dog choose a path, and if they agree, take that one, and if they disagree, randomly pick a path. Is this strategy better than just letting one of the two dogs decide on a path? Hunter chooses the correct path when dogs disagree 𝑝 1−𝑝 The probability that hunter chooses the correct path 𝑝 2 +𝑝 1−𝑝 =𝑝

Question There are 𝑛 different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the 𝑖th power plants fails independently with probability 𝑝 𝑖 . (a) What is the probability that the city will experience a black-out? Let 𝐴 denote the event that the city experiences a black-out. Since the power plants fail independently 𝑃 𝐴 = 𝑖=1 𝑛 𝑝 𝑖

Question There are 𝑛 different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the 𝑖th power plants fails independently with probability 𝑝 𝑖 . (b) Now suppose two power plants are necessary to keep the city from a black-out. Find the probability that the city will experience a black-out. The city will black out if either all 𝑛 or any 𝑛−1 power plants fail These two events are mutually exclusive

Question There are 𝑛 different power plants. And each one can produce enough electricity to supply the entire city. Now suppose that the 𝑖th power plants fails independently with probability 𝑝 𝑖 . (b) Now suppose two power plants are necessary to keep the city from a black-out. Find the probability that the city will experience a black-out. 𝑃 𝐴 = 𝑖=1 𝑛 𝑝 𝑖 + 𝑖=1 𝑛 1− 𝑝 𝑖 𝑗≠𝑖 𝑝 𝑗

Thanks Question are welcome.