Today s Topics. Next week: Conditional Probability

Similar documents
3. Discrete Probability. CSE 312 Spring 2015 W.L. Ruzzo

Probability. Will Monroe Summer 2017 with materials by Mehran Sahami and Chris Piech

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?

November 6, Chapter 8: Probability: The Mathematics of Chance

Chapter 1. Probability

Chapter 1. Probability

STAT 430/510 Probability Lecture 3: Space and Event; Sample Spaces with Equally Likely Outcomes

November 8, Chapter 8: Probability: The Mathematics of Chance

2.5 Sample Spaces Having Equally Likely Outcomes

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Probability Rules. 2) The probability, P, of any event ranges from which of the following?

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

Basic Probability Models. Ping-Shou Zhong

Probability Review 41

Math 1313 Section 6.2 Definition of Probability

2. Combinatorics: the systematic study of counting. The Basic Principle of Counting (BPC)

Compound Probability. Set Theory. Basic Definitions

The probability set-up

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

The probability set-up

4.1 Sample Spaces and Events

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

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

7.1 Experiments, Sample Spaces, and Events

Probability and Statistics. Copyright Cengage Learning. All rights reserved.

Probability Theory. Mohamed I. Riffi. Islamic University of Gaza

4.3 Rules of Probability

PROBABILITY. 1. Introduction. Candidates should able to:

November 11, Chapter 8: Probability: The Mathematics of Chance

Week 3 Classical Probability, Part I

Simple Probability. Arthur White. 28th September 2016

Math 146 Statistics for the Health Sciences Additional Exercises on Chapter 3

Statistics Intermediate Probability

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

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Intermediate Math Circles November 1, 2017 Probability I

Axiomatic Probability

More Probability: Poker Hands and some issues in Counting

STAT 3743: Probability and Statistics

Elementary Statistics. Basic Probability & Odds

The point value of each problem is in the left-hand margin. You must show your work to receive any credit, except on problems 1 & 2. Work neatly.

Classical vs. Empirical Probability Activity

Applied Statistics I

A Probability Work Sheet

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

3 The multiplication rule/miscellaneous counting problems

8.2 Union, Intersection, and Complement of Events; Odds

3 The multiplication rule/miscellaneous counting problems

Total. STAT/MATH 394 A - Autumn Quarter Midterm. Name: Student ID Number: Directions. Complete all questions.

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

Contents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39

Contemporary Mathematics Math 1030 Sample Exam I Chapters Time Limit: 90 Minutes No Scratch Paper Calculator Allowed: Scientific

Class XII Chapter 13 Probability Maths. Exercise 13.1

Name: Partners: Math Academy I. Review 6 Version A. 5. There are over a billion different possible orders for a line of 14 people.

Discrete Structures for Computer Science

Textbook: pp Chapter 2: Probability Concepts and Applications

Problem Set 2. Counting

Probability Models. Section 6.2

Probability. Dr. Zhang Fordham Univ.

Section Introduction to Sets

Advanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY

ECON 214 Elements of Statistics for Economists

Mutually Exclusive Events

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Chapter 16. Probability. For important terms and definitions refer NCERT text book. (6) NCERT text book page 386 question no.

Independent Events. If we were to flip a coin, each time we flip that coin the chance of it landing on heads or tails will always remain the same.

Theory of Probability - Brett Bernstein

Such a description is the basis for a probability model. Here is the basic vocabulary we use.

Unit 6: Probability. Marius Ionescu 10/06/2011. Marius Ionescu () Unit 6: Probability 10/06/ / 22

If a regular six-sided die is rolled, the possible outcomes can be listed as {1, 2, 3, 4, 5, 6} there are 6 outcomes.

Basic Probability. Let! = # 8 # < 13, # N -,., and / are the subsets of! such that - = multiples of four. = factors of 24 / = square numbers

Name. Is the game fair or not? Prove your answer with math. If the game is fair, play it 36 times and record the results.

MATH CALCULUS & STATISTICS/BUSN - PRACTICE EXAM #1 - SPRING DR. DAVID BRIDGE

Unit 6: Probability. Marius Ionescu 10/06/2011. Marius Ionescu () Unit 6: Probability 10/06/ / 22

1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in the building?

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

Independent Events. 1. Given that the second baby is a girl, what is the. e.g. 2 The probability of bearing a boy baby is 2

(a) Suppose you flip a coin and roll a die. Are the events obtain a head and roll a 5 dependent or independent events?

Section : Combinations and Permutations

Unit 1 Day 1: Sample Spaces and Subsets. Define: Sample Space. Define: Intersection of two sets (A B) Define: Union of two sets (A B)

Probability and Randomness. Day 1

Math 14 Lecture Notes Ch. 3.3

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Chapter 2. Permutations and Combinations

Probability and Counting Techniques

Section 6.5 Conditional Probability

CSCI 2200 Foundations of Computer Science (FoCS) Solutions for Homework 7

Counting and Probability Math 2320

Probability. Engr. Jeffrey T. Dellosa.

Define and Diagram Outcomes (Subsets) of the Sample Space (Universal Set)

If you roll a die, what is the probability you get a four OR a five? What is the General Education Statistics

Name Date. Sample Spaces and Probability For use with Exploration 12.1

0-5 Adding Probabilities. 1. CARNIVAL GAMES A spinner has sections of equal size. The table shows the results of several spins.

Probability. Ms. Weinstein Probability & Statistics

Section 7.1 Experiments, Sample Spaces, and Events

INDEPENDENT AND DEPENDENT EVENTS UNIT 6: PROBABILITY DAY 2

Chapter 3: PROBABILITY

Def: The intersection of A and B is the set of all elements common to both set A and set B

STAT 155 Introductory Statistics. Lecture 11: Randomness and Probability Model

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.)

Transcription:

Today s Topics 2 Last time: Combinations Permutations Group Assignment TODAY: Probability! Sample Spaces and Event Spaces Axioms of Probability Lots of Examples Next week: Conditional Probability

Sets Review

Set Operations Review Say E and F are subsets of S S E F

Set Operations Review Say E and F are events in S Event that is in E or F E F S E F S = {1, 2, 3, 4, 5, 6} die roll outcome E = {1, 2} F = {2, 3} E F = {1, 2, 3}

Set Operations Review Say E and F are events in S Event that is in E and F E F or EF S E F S = {1, 2, 3, 4, 5, 6} die roll outcome E = {1, 2} F = {2, 3} E F = {2} Note: mutually exclusive events means E F =

Set Operations Review Say E and F are events in S Event that is not in E (called complement of E) E c or ~E S E F S = {1, 2, 3, 4, 5, 6} die roll outcome E = {1, 2} E c = {3, 4, 5, 6}

Which is the correct picture for E c F c A C B D E

Set Operations Review Say E and F are events in S DeMorgan s Laws (E F) c = E c F c (E F) c = E c F c S S E F E F

Tool Review Problem Archetype Use this tool 4-smudge iphone Codes Permutations Choose 2 Hunger Games tributes Choosing stats books Mississippi Assigning money to companies Combinations (Binomial) Combinations with cases (No closed form) Permutations with indistinguishable elements (Multinomial) Permutations with divider-method

Probability

Sample Space Sample space, S, is set of all possible outcomes of an experiment Coin flip: S = {Head, Tails} Flipping two coins: S = {(H, H), (H, T), (T, H), (T, T)} Roll of 6-sided die: S = {1, 2, 3, 4, 5, 6} # emails in a day: S = {x x Z, x 0} (non-neg. ints) YouTube hrs. in day: S = {x x R, 0 x 24}

Events Event, E, is some subset of S (E S) Coin flip is heads: E = {Head} 1 head on 2 coin flips: E = {(H, H), (H, T), (T, H)} Roll of die is 3 or less: E = {1, 2, 3} # emails in a day 20: E = {x x Z, 0 x 20} Wasted day ( 5 YT hrs.): E = {x x R, 5 x 24} Note: When Ross uses:, he really means:

What is a Probability What is a probability? P( E) = n lim n( E) n Axiom 1: 0 P(E) 1 Axiom 2: P(S) = 1 Axiom 3: If E and F mutually exclusive (E F = ), then P(E) + P(F) = P(E F)

Implications of Axioms P(E c ) = 1 P(E) (= P(S) P(E) ) If E F, then P(E) P(F) P(E F) = P(E) + P(F) P(EF) This is just Inclusion-Exclusion Principle for Probability General form of Inclusion-Exclusion Identity: P n! i= E i = n ( 1) ( r+ 1) r= 1 i <... < i 1 1 P( E r i Ei... E 1 2 i r )

Equally Likely Outcomes Some sample spaces have equally likely outcomes Coin flip: S = {Head, Tails} Flipping two coins: S = {(H, H), (H, T), (T, H), (T, T)} Roll of 6-sided die: S = {1, 2, 3, 4, 5, 6} P(Each outcome) = In that case, P(E) = = 1 S number of outcomes in E number of outcomes in S S E

Rolling Two Dice Roll two 6-sided dice. What is P(sum = 7)? S = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6), (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6), (6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)} E = {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)} P(sum = 7) = E / S = 6/36 = 1/6

Twinkies and Ding Dongs 4 Twinkies and 3 Ding Dongs in a Bag. 3 drawn. What is P(1 Twinkie and 2 Ding Dongs drawn)? Ordered: Pick 3 ordered items: S = 7 * 6 * 5 = 210 Pick Twinkie as either 1st, 2nd, or 3rd item: E = (4 * 3 * 2) + (3 * 4 * 2) + (3 * 2 * 4) = 72 P(1 Twinkie, 2 Ding Dongs) = 72/210 = 12/35 Unordered: 7 S = = 35 3 4 3 E = = 12 1 2 P(1 Twinkie, 2 Ding Dongs drawn) = 12/35

Chip Defect Detection n chips manufactured, 1 of which is defective. k chips randomly selected from n for testing. S = E = = What is P(defective chip is in k selected chips)? n k 1 n 1 k 1 1 P(defective chip is in k selected chips) 1 (n 1)! 1 (k 1)!(n k)! n 1 k 1 n k = n! k!(n k)! = k n

Any Straight Poker Hand Consider 5 card poker hands. S = E = straight is 5 consecutive rank cards of any suit What is P(straight)? Note: this is a little different than the textbook 52 5 4 10 1 5 4 10 P(straight) = 1 0.00394 52 5 5

Official Straight Poker Hand Consider 5 card poker hands. S = E = straight is 5 consecutive rank cards of any suit straight flush is 5 consecutive rank cards of same suit What is P(straight, but not straight flush)? 52 5 4 10 1 5 4 10 1 4 4 10 10 1 1 52 P(straight) = 0.00392 5 5

52 card deck. Cards flipped one at a time. After first ace (of any suit) appears, consider next card Is P(next card = Ace Spades) < P(next card = 2 Clubs)? Initially, might think so, but consider the two cases: First note: S = 52! (all cards shuffled) Case 1: Take Ace Spades out of deck Card Flipping Shuffle left over 51 cards, add Ace Spades after first ace E = 51! * 1 (only 1 place Ace Spades can be added) Case 2: Do same as case 1, but... Replace Ace Spades with 2 Clubs in description E and S are the same as case 1 So P(next card = Ace Spade) = P(next card = 2 Clubs)

Selecting Programmers Say 28% of all students program in Java 7% program in C++ 5% program in Java and C++ What percentage of students do not program in Java or C++ Let A = event that a random student programs in Java Let B = event that a random student programs in C++ 1 P(A U B) = 1 [P(A) + P(B) P(AB)] = 1 (0.28 + 0.07 0.05) = 0.7 70% What percentage programs in C++, but not Java? P(A c B) = P(B) P(AB) = 0.07 0.05 = 0.02 2%

Serendipity Say 21,000 people at Stanford You are friends with 150 You go for a walk, see 216 random people. What is the probability that you see someone you know?

Birthdays What is the probability that of n people, none share the same birthday (regardless of year)? S = (365) n E = (365)(364)...(365 n + 1) P(no matching birthdays) = (365)(364)...(365 n + 1)/(365) n Interesting values of n n = 23: P(no matching birthdays) < ½ (least such n) n = 75: P(no matching birthdays) < 1/3,000 n = 100: P(no matching birthdays) < 1/3,000,000 n = 150: P(no matching birthdays) < 1/3,000,000,000,000,000

Birthdays What is the probability that of n other people, none of them share the same birthday as you? S = (365) n E = (364) n P(no birthdays matching yours) = (364) n /(365) n Interesting values of n n = 23: P(no matching birthdays) 0.9388 n = 150: P(no matching birthdays) 0.6626 n = 253: P(no matching birthdays) 0.4995 o Least such n for which P(no matching birthdays) < ½ Why are these probabilities much higher than before? o o Anyone born on May 10th? Is today anyone s birthday?

Crazy Version

Trailing the dovetail shuffle to it s lair Persi Diaconosis

Making History What is the probability that in the n shuffles seen since the start of time, yours is unique? S = (52!) n E = (52! - 1) n P(no deck matching yours) = (52!-1) n /(52!) n For n = 10 14, P(deck matching yours) < 0.000000001