Part I: Theory Ver. 092115 Chapter 2: Axioms of Probability.

Slides:



Advertisements
Similar presentations
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Limit theorems.
Advertisements

Chapter 2 Probability. 2.1 Sample Spaces and Events.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Combinatorial Analysis.
Chapter 3 Probability.
Probability Dr. Deshi Ye Outline  Introduction  Sample space and events  Probability  Elementary Theorem.
1 Copyright M.R.K. Krishna Rao 2003 Chapter 5. Discrete Probability Everything you have learned about counting constitutes the basis for computing the.
HW2 assignment. 1.A fair coin is tossed 5 times. Find a probability of obtaining (a) exactly 3 heads; (b) at most 3 heads Solution: Binomial distribution.
Conditional Probability
1. Probability of Equally Likely Outcomes 2. Complement Rule 1.
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Chapter 2. Axioms of Probability
Counting and Probability Sets and Counting Permutations & Combinations Probability.
Chapter 4 Probability 4-1 Overview 4-2 Fundamentals 4-3 Addition Rule
Chapter 1 Basics of Probability.
5.1 Basic Probability Ideas
Welcome to Probability and the Theory of Statistics This class uses nearly every type of mathematics that you have studied so far as well as some possibly.
NA387 Lecture 5: Combinatorics, Conditional Probability
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
10/1/20151 Math a Sample Space, Events, and Probabilities of Events.
3.1 Probability Experiments Probability experiment: An action, or trial, through which specific results (counts, measurements, or responses) are obtained.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Review Chapter Chapter 1 Combinatorial Analysis Basic principle of counting Permutation Combination 2.
Principles of Statistics Chapter 2 Elements of Probability.
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
Using Probability and Discrete Probability Distributions
Probability Notes Math 309. Sample spaces, events, axioms Math 309 Chapter 1.
Probability Theory 1.Basic concepts 2.Probability 3.Permutations 4.Combinations.
Slide 7- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
CSCI 115 Chapter 3 Counting. CSCI 115 §3.1 Permutations.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Properties of expectation.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
The Basics of Probability Theory MATH 102 Contemporary Math S. Rook.
Section 10.1 Introduction to Probability. Probability Probability is the overall likelihood that an event can occur. A trial is a systematic opportunity.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part two.
Inclusion and exclusion principle; inversion formulae Thm Let S be an N-set; E i ’s, i=1..r, be subsets of S. For any subset M of [r], define N(M)
Probability: Terminology  Sample Space  Set of all possible outcomes of a random experiment.  Random Experiment  Any activity resulting in uncertain.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
Combinatorics Sep. 23, 2013.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
Andrej Bogdanov ENGG 2430A: Probability and Statistics for Engineers Spring Axioms of Probability.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Introduction Remember that probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 11 Counting Methods and Probability Theory.
Sample Space All possible returns on the S&P500 index tomorrow, rounded to the nearest percent –...-4, -3, -2,..., 3, 4,... – This is called sample space,
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
CSCI 115 Chapter 3 Counting. CSCI 115 §3.1 Permutations.
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.
3/7/20161 Now it’s time to look at… Discrete Probability.
Special Topics. Calculating Outcomes for Equally Likely Events If a random phenomenon has equally likely outcomes, then the probability of event A is:
PROBABILITY AND COMPUTING RANDOMIZED ALGORITHMS AND PROBABILISTIC ANALYSIS CHAPTER 1 IWAMA and ITO Lab. M1 Sakaidani Hikaru 1.
Probability Theory Basic concepts Probability Permutations
Now it’s time to look at…
The Pigeonhole Principle
Counting Methods and Probability Theory
Applied Discrete Mathematics Week 7: Probability Theory
9. Counting and Probability 1 Summary
PROBABILITY AND STATISTICS
Now it’s time to look at…
Chapter 2 Notes Math 309 Probability.
6. Multistage events and application of probability
Counting Methods and Probability Theory
Probability Notes Math 309.
Now it’s time to look at…
Now it’s time to look at…
Probability Notes Math 309.
Probability Notes Math 309 August 20.
Presentation transcript:

Part I: Theory Ver Chapter 2: Axioms of Probability

Sample Space 2

3

Event 4

Set operations 5

HINT 6

DeMorgan’s Law 7

Bertrand Paradox 8

9

Counter-intuitive Probability What if whenever the ball is drawn, it is always randomly drawn ? 10

A possible definition of probability But, two issues regarding the definitions are raised: 1.can the convergence always happen ? 2. can the convergence be verifiable ? It would be more reasonable to assume a set of simpler and more self-evident axioms about probability and try to prove the existence of such a constant limiting frequency. 11

Modern Approach.. 12

Propositions Proof 13

14

Inclusion-exclusion identity Proof: try induction ! 15

Chapter 2. Axioms of Probability part two By Andrej Bogdanov

Birthdays You have a room with n people. What is the probability that at least two of them have a birthday on the same day of the year? Probability model experiment outcome = birthdays of n people The sample space consists of all sequences (b 1,…, b n ) where b 1,…, b n are numbers between 1 and 365 S n = {(b 1,…, b n ) : 1 ≤ b 1,…, b n ≤ 365 } = {1, …, 365} n 17

Birthdays Probability model We will assume equally likely outcomes. This is a simplifying model which ignores some issues, for example: Leap years have 366 not 365 days Not all birthdays are equally represented, e.g. September is a popular month for babies Birthdays among people in the room may be related, e.g. there may be twins inside 18

Birthdays We are interested in the event that two birthdays are the same: E n = {(b 1,…, b n ) : b i = b j for some pair i ≠ j } It will be easier to work with the complement of E : E n c = {(b 1,…, b n ) : (b 1,…, b n ) are all distinct } P(E n c ) = |Sn||Sn| |Enc||Enc| 365 ⋅ 364 ⋅ … ⋅ (365 – n + 1) 365 n = P(E n ) = 1 – P(E n c ) 19

Birthdays P(En)P(En) n P(E 22 ) = … P(E 23 ) = … Among 23 people, two have the same birthday with probability about 50%. 20

Interpretation of probability The probability of an event should equal the fraction of times that it occurs when the experiment is performed many times under the same conditions. Let’s do the birthday experiment many times and see if this is true. 21

Simulation of birthday experiment # perform t simulations of the birthday experiment for n people # output a vector indicating the times event E_n occurred def simulate_birthdays(n, t): days = 365 occurred = [] for time in range(t): # choose random birthdays for everyone birthdays = [] for i in range(n): birthdays.append(randint(1, days)) # record the occurrence of event E_n occurred.append(same_birthday(birthdays)) return occurred # check if event E_n occurs (two people have the same birthday) def same_birthday(birthdays): for i in range(len(birthdays)): for j in range(i): if birthdays[i] == birthdays[j]: return True return False randint(a,b) Choose a random integer in a range 22

Interpretation of probability t experiments n = 23 Fraction of times two people have the same birthday in the first t experiments P(E 23 ) = … 23

Problem for you to solve You drop 3 blue balls and 3 red balls into 5 bins at random. What is the probability that some bin gets two (or more) balls of the same color? 24

Generalized inclusion exclusion P(E 1 ∪ E 2 ) = P(E 1 ) + P(E 2 ) – P(E 1 E 2 ) P(E 1 ∪ E 2 ∪ E 3 ) = P(E 2 ∪ E 3 ) = P(E 2 ) + P(E 3 ) – P(E 2 E 3 ) P(E 1 (E 2 ∪ E 3 )) = P(E 1 E 2 ∪ E 1 E 3 ) = P(E 1 E 2 ) + P(E 1 E 3 ) – P(E 1 E 2 E 3 ) P(E 1 ∪ E 2 ∪ E 3 ) = P(E 1 ) + P(E 2 ∪ E 3 ) – P(E 1 (E 2 ∪ E 3 )) – P(E 1 E 2 ) – P(E 2 E 3 ) – P(E 1 E 3 ) + P(E 1 E 2 E 3 ) P(E 1 ) + P(E 2 ) + P(E 3 ) 25

Generalized inclusion exclusion P(E 1 ∪ E 2 ∪ … ∪ E n ) = ∑ 1 ≤ i ≤ n P(E i ) – ∑ 1 ≤ i ≤ j ≤ n P(E i E j ) + ∑ 1 ≤ i ≤ j ≤ k ≤ n P(E i E j E k ) … + or – P(E 1 E 2 …E n ) + if n is odd, – if n is even (-1) n+1 26

27

Hats Probability model outcome = assignment of n hats to n people The sample space S consists of all permutations p 1 p 2 p 3 p 4 of the numbers 1, 2, 3, 4 let’s do n = 4 : 1342 means 1 gets 1’s hat 2 gets 3’s hat 3 gets 4’s hat 4 gets 2’s hat 28

Hats 1234, 1243, 1324, 1342, 1423, 1432, 2134, 2143, 2314, 2341, 2413, 2431, 3124, 3142, 3214, 3241, 3412, 3421, 4123, 4132, 4213, 4231, 4312, 4321 } S = { H : “at least someone gets their own hat” P(H) = |S||S| |H||H| = Now let’s calculate in a different way. 29

Hats Event H “at least someone gets their own hat” H = H 1 ∪ H 2 ∪ H 3 ∪ H 4 H i is the event “person i gets their own hat”. H 1 = {p 1 p 2 p 3 p 4 : permutations such that p 1 = 1 } and so on. 30

Hats P(H 1 ∪ H 2 ∪ H 3 ∪ H 4 ) – P(H 1 H 2 ) – P(H 1 H 3 ) – P(H 1 H 4 ) – P(H 2 H 3 ) – P(H 2 H 4 ) – P(H 3 H 4 ) + P(H 1 H 2 H 3 ) + P(H 1 H 2 H 4 ) + P(H 1 H 3 H 4 ) + P(H 2 H 3 H 4 ) = P(H 1 ) + P(H 2 ) + P(H 3 ) + P(H 4 ) – P(H 1 H 2 H 3 H 4 ). We will calculate P(H) by inclusion-exclusion: Under equally likely outcomes, P(E) = |S||S| |E||E| 4! |E||E| = 31

Hats H 1 = { p 1 p 2 p 3 p 4 : permutations such that p 1 = 1} |H1||H1| = number of permutations of {2, 3, 4} = 3! |H2||H2| = number of permutations of {1, 3, 4} = 3! H 2 = { p 1 p 2 p 3 p 4 : permutations such that p 2 = 2} similarly |H 3 | = |H 4 | = 3! P(H 1 ) = P(H 2 ) = P(H 3 ) = P(H 4 ) = 3!/4! 32

Hats H 1 = { p 1 p 2 p 3 p 4 : permutations such that p 1 = 1 } H 2 = { p 1 p 2 p 3 p 4 : permutations such that p 2 = 2 } H 1 H 2 = { p 1 p 2 p 3 p 4 : permutations s.t. p 1 = 1 and p 2 = 2 } |H1H2||H1H2| = number of permutations of { 3, 4 } = 2! similarly |H 1 H 3 | = |H 1 H 4 | = … = |H 3 H 4 | = 2! P(H 1 H 2 ) = … = P(H 3 H 4 ) = 2!/4! 33

Hats P(H 1 ∪ H 2 ∪ H 3 ∪ H 4 ) – P(H 1 H 2 ) – P(H 1 H 3 ) – P(H 1 H 4 ) – P(H 2 H 3 ) – P(H 2 H 4 ) – P(H 3 H 4 ) + P(H 1 H 2 H 3 ) + P(H 1 H 2 H 4 ) + P(H 1 H 3 H 4 ) + P(H 2 H 3 H 4 ) = P(H 1 ) + P(H 2 ) + P(H 3 ) + P(H 4 ) – P(H 1 H 2 H 3 H 4 ). 3!/4! 2!/4! 1!/4! 0!/4! value number of terms C(4, 1)C(4, 2) C(4, 3) C(4, 4) × ×× × – – + 34

Hats It remains to evaluate 3!/4! 2!/4! 1!/4! 0!/4! C(4, 1)C(4, 2) C(4, 3) C(4, 4) ×× × × – – + P(H) = Each term has the form C(4, k) 4! (4 – k)! = k! (4 – k)! 4! × (4 – k)! = k!k! 1 so P(H) = 1! 1 2! 1 3! 1 4! 1 –– + =

Hats General formula for n men: Let E n = “at least someone gets their own hat” P(E n ) = 1! 1 2! 1 3! 1 – … + (-1) n+1 – + n!n! 1 assuming equally likely outcomes. 36

Hats P(En)P(En) n … 37

Hats Remember from calculus P(E n ) = 1! 1 2! 1 3! 1 – … + (-1) n+1 – + n!n! 1 e x = 1 + x + 2! x2x2 + 3! x3x3 + … so P(E n ) → 1 – e -1 ≈ as n → ∞ 38

Circular arrangements In how many ways can n people sit at a round table? Once the first person has sat down, the others can be arranged in (n – 1)! ways relative to his position. (n – 1)! We do not distinguish between seatings that differ by a rotation of the table. 39

Round table 10 husband-wife couples are seated at random at a round table. What is the probability that no wife sits next to her husband? Probability model The sample space S consists of all circular arrangements of { H 1, W 1, …, H 10, W 10 } We assume equally likely outcomes. |S| = (n – 1)! 40

Round table The event N of interest is that no husband and wife are adjacent. Let A 1, …, A 10 be the events A i = “The husband-wife pair H i, W i is adjacent” P(N) = 1 – P(N c ) = 1 – P(A 1 ∪ … ∪ A 10 ) so We calculate this using inclusion-exclusion. 41

Round table The inclusion exclusion formula involves expressions like P(A 1 ), P(A 2 A 5 ), P(A 3 A 4 A 7 A 9 ). Let’s start with P(A 1 ), so we want H 1 and W 1 adjacent. We need to calculate |A 1 |, the number of circular arrangements in which H 1 and W 1 are adjacent. 42

Round table We use the basic principle of counting. Treating the couple H 1, W 1 as a single unordered item, we get 18! circular arrangements H1H1 W1W1 H2H2 W2W2 H1H1 W1W1 W2W2 H2H2 H1H1 H2H2 W1W1 W2W2 H1H1 H2H2 W2W2 W1W1 H1H1 W2W2 W1W1 H2H2 H1H1 W2W2 H2H2 W1W1 For each of this arrangements, the couple can sit in the order H 1 W 1 or W 1 H possibilities so |A 1 | = 2 × 18!P(A 1 ) = 2 × 18! / 19! 43

Round table In general, the events in the inclusion-exclusion formula are indexed by some set C of couples. E.g. if A 3 A 4 A 7 A 9 then C = {3, 4, 7, 9}. In how many ways can we arrange the couples so that those in C are adjacent? Treating the couples in C as single unordered items, we get (19 – |C|)! arrangements. For each such arrangement, we can order the C couples in 2 |C| possible ways. 2 |C| (19 – |C|)! 44

Round table P(A 1 ∪ A 2 ∪ … ∪ A 10 ) – ∑ 1 ≤ i ≤ j ≤ 10 P(A i A j ) + ∑ 1 ≤ i ≤ j ≤ k ≤ 10 P(A i A j A k ) … – P(A 1 A 2 …A 10 ) = ∑ 1 ≤ i ≤ 10 P(A i ) value#terms 2 × 18! / 19! × 17! / 19!C(10, 2) 2 3 × 16! / 19!C(10, 3) 2 10 × 9! / 19!1 × × × × … so P(N) = 1 – … = … 45

Problem for you to solve You have 8 different chopstick pairs and you randomly give them to 8 guests. What is the probability that no guest gets a matching pair? 46