Discrete Probability (Chap 7)

Similar documents
Chapter What is the probability that a card chosen from an ordinary deck of 52 cards is an ace? Ans: 4/52.

Probability: Terminology and Examples Class 2, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Bayesian Tutorial (Sheet Updated 20 March)

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

Discrete Structures for Computer Science

Lesson 1. Basics of Probability. Principles of Mathematics 12: Explained! 314

Stat 134 Fall 2011: Gambler s ruin

Frequentist vs. Bayesian Statistics

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

PROBABILITY. The theory of probabilities is simply the Science of logic quantitatively treated. C.S. PEIRCE

Chapter 4 - Practice Problems 1

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1

6.3 Conditional Probability and Independence

Probability and statistical hypothesis testing. Holger Diessel

Chapter 4 & 5 practice set. The actual exam is not multiple choice nor does it contain like questions.

Monitoring Frequency of Change By Li Qin

Session 8 Probability

Chapter 4 - Practice Problems 2

2. How many ways can the letters in PHOENIX be rearranged? 7! = 5,040 ways.

Contemporary Mathematics- MAT 130. Probability. a) What is the probability of obtaining a number less than 4?

6.042/18.062J Mathematics for Computer Science December 12, 2006 Tom Leighton and Ronitt Rubinfeld. Random Walks

1 Gambler s Ruin Problem

Section 6-5 Sample Spaces and Probability

Conditional Probability, Independence and Bayes Theorem Class 3, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Chapter 4 Lecture Notes

Probabilistic Strategies: Solutions

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

Homework Assignment #2: Answer Key

Mathematical goals. Starting points. Materials required. Time needed

Random variables, probability distributions, binomial random variable

For two disjoint subsets A and B of Ω, say that A and B are disjoint events. For disjoint events A and B we take an axiom P(A B) = P(A) + P(B)

STAT 319 Probability and Statistics For Engineers PROBABILITY. Engineering College, Hail University, Saudi Arabia

Probability. a number between 0 and 1 that indicates how likely it is that a specific event or set of events will occur.

Problem sets for BUEC 333 Part 1: Probability and Statistics

Week 2: Conditional Probability and Bayes formula

Pattern matching probabilities and paradoxes A new variation on Penney s coin game

Section 5-3 Binomial Probability Distributions

Introductory Probability. MATH 107: Finite Mathematics University of Louisville. March 5, 2014

The Normal Approximation to Probability Histograms. Dice: Throw a single die twice. The Probability Histogram: Area = Probability. Where are we going?

The Binomial Distribution

Discrete Math in Computer Science Homework 7 Solutions (Max Points: 80)

You flip a fair coin four times, what is the probability that you obtain three heads.

Chapter 3: DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS. Part 3: Discrete Uniform Distribution Binomial Distribution

Chapter 7 Probability and Statistics

AP Stats - Probability Review

A Few Basics of Probability

Stat 20: Intro to Probability and Statistics

Section 5 Part 2. Probability Distributions for Discrete Random Variables

PROBABILITY SECOND EDITION

Sample Space and Probability

Introduction to Probability

Bayesian Updating with Discrete Priors Class 11, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Chapter 4. Probability and Probability Distributions

Probabilities. Probability of a event. From Random Variables to Events. From Random Variables to Events. Probability Theory I

Lecture 13. Understanding Probability and Long-Term Expectations

Section 6.2 Definition of Probability

E3: PROBABILITY AND STATISTICS lecture notes

REPEATED TRIALS. The probability of winning those k chosen times and losing the other times is then p k q n k.

Sample Questions for Mastery #5

Unit 4 The Bernoulli and Binomial Distributions

MATH 140 Lab 4: Probability and the Standard Normal Distribution

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

36 Odds, Expected Value, and Conditional Probability

Math 55: Discrete Mathematics

The Cubic Formula. The quadratic formula tells us the roots of a quadratic polynomial, a polynomial of the form ax 2 + bx + c. The roots (if b 2 b+

for UK industrial and scientific companies managed by Business Marketing Online

Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Lecture Note 1 Set and Probability Theory. MIT Spring 2006 Herman Bennett

6.042/18.062J Mathematics for Computer Science. Expected Value I

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

The impact of metadata implementation on webpage visibility in search engine results (Part II) q

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

Introduction to Discrete Probability. Terminology. Probability definition. 22c:19, section 6.x Hantao Zhang

The overall size of these chance errors is measured by their RMS HALF THE NUMBER OF TOSSES NUMBER OF HEADS MINUS NUMBER OF TOSSES

STATISTICS HIGHER SECONDARY - SECOND YEAR. Untouchability is a sin Untouchability is a crime Untouchability is inhuman

26 Applications of Probability

Normal distribution. ) 2 /2σ. 2π σ

Pay per Click Success 5 Easy Ways to Grow Sales and Lower Costs

Effect Sizes Based on Means

WHERE DOES THE 10% CONDITION COME FROM?

Notes on Probability. Peter J. Cameron

Part III: Machine Learning. CS 188: Artificial Intelligence. Machine Learning This Set of Slides. Parameter Estimation. Estimation: Smoothing

UNIT 7A 118 CHAPTER 7: PROBABILITY: LIVING WITH THE ODDS

Probability & Probability Distributions

Lecture Notes for Introductory Probability

What Do You Expect?: Homework Examples from ACE

13.0 Central Limit Theorem

Bayes and Naïve Bayes. cs534-machine Learning

ACMS Section 02 Elements of Statistics October 28, 2010 Midterm Examination II Answers

Big Data. Lecture 6: Locality Sensitive Hashing (LSH)

Chapter 4: Probability and Counting Rules

1 Combinations, Permutations, and Elementary Probability

Definition and Calculus of Probability

Law of Large Numbers. Alexandra Barbato and Craig O Connell. Honors 391A Mathematical Gems Jenia Tevelev

Expected Value and Variance

Pythagorean Triples and Rational Points on the Unit Circle

An important observation in supply chain management, known as the bullwhip effect,

PRIME NUMBERS AND THE RIEMANN HYPOTHESIS

Normally Distributed Data. A mean with a normal value Test of Hypothesis Sign Test Paired observations within a single patient group

Transcription:

C 03 ring 06 Lecture 6 Page of 6 Discrete Probability Cha 7 Discrete Probability: Terminology xeriment: Procedure that yields an outcome o.g., Tossing a coin three times Outcome: HHH in one trial, HTH in another trial, etc. amle sace: et of all ossible outcomes in the exeriment o.g., = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT} vent: subset of the samle sace i.e., event is a set consisting of individual outcomes o.g., vent that # of heads is an even number so = {HHT, HTH, THH, TTT} If is a samle sace of equally likely outcomes, the robability of an event, = / o Counting comes into lay here! o.g., robability of an event of having even # of heads when tossing a coin three times = 4/8 = 0.5 Terminology examle and some samle questions. Consider the question: What is the robability of winning the lotto if there are 6 numbers drawn out of 4 numbers and you need to match them all? What is the exeriment? What is the samle sace? What is the event? What is the answer to the question? When life or at least dice isn t aren t fair. o far we ve assumed all events are equally likely. But what if they aren t? Traditionally this is discussed as having a coin or die that is unfair and the robability of each side coming u isn t the same. Let s consider a coin that has a head that is three times more likely to come u than a tail. That is, H=3T. What is the robably of getting a head from a single coin toss? What is the robability of getting two heads when tossing two of these coins? A head and a tail? Two tails? What is the odds of getting an even number of heads with three flis of our biased coin?

C 03 ring 06 Lecture 6 Page of 6 Combinations of events and comlements. ometimes we care about more than one event or an event not haening. Probability of an event not haening? Let be an event in a samle sace. The robability of the event, the comlementary event of i.e., a set of outcomes that does not haen, is given by A sequence of 0 bits is randomly generated. What are the odds that at least one of those bits is a zero? What is the robability of having a hand that doesn t have a single ace has either more or less than ace? Union of two events. Let and be events in the samle sace. Then because. We d need to divide each term by to get robabilities. Use this fact to find the robability of a a ositive integer not exceeding 00 selected at random is divisible by 5 or 7. ven with unfair/biased coins our combination rules still hold: =

C 03 ring 06 Lecture 6 Page 3 of 6 Conditional robability ometimes we want to know what the robability is of something given some other fact. xamle A bit string of length 4 is generated at random so that each of the 6 bit strings is equally likely. What is the robability that it contains at least two consecutive 0s, given that its first bit is a 0? : event that the string contains at least two consecutive 0s F: event that the string has its first bit as 0. What is F? F= F= make a list o F= Indeendence The events and F are indeendent if and only if F = F. An equivalent statement is that and F are indeendent if and only if F = In the case above, we showed that F and were not equal. o those two events are not indeendent. How about the following: Fli a coin three times o : the first coin is a head o F: the second coin is a head Roll two dice o : the sum of the two dice is 5 o F: the first die is a Roll two dice o : the sum of the two dice is 7 o F: the first die is a Deal two five card oker hands o : hand one has four of a kind o F: hand two has four of a kind Another examle xamle 4 age 457 of the text What is the conditional robability that a family with two children has two boys, given they have at least one boy? Assume that each of the ossibilities BB, BG, GB, and GG is equally likely, where B reresents a boy and G reresents a girl. Note that BG reresents a family with an older boy and a younger girl while GB reresents a family with an older girl and a younger boy. Are those two events indeendent?

C 03 ring 06 Lecture 6 Page 4 of 6 Bernoulli Trials and the Binomial Distribution uose that an exeriment can have only two ossible outcomes. For instance, when a bit is generated at random, the ossible outcomes are 0 and. When a coin is flied, the ossible outcomes are heads and tails. ach erformance of an exeriment with two ossible outcomes is called a Bernoulli trial, after James Bernoulli, who made imortant contributions to robability theory. In general, a ossible outcome of a Bernoulli trial is called a success or a failure. If is the robability of a success and q is the robability of a failure, it follows that + q =. i o what is the robability of getting exactly 4 multile choice questions out of 5 correct by guessing if each question has 3 otions? How about 3 correct? All 5? Bayes Theorem 7.3 a b b b a a b is the rior robability of b. b a is the osterior robability, after taking the evidence a into account. a b is the likelihood of the evidence, given the hyothesis. a is the rior robability of the evidence o used as a normalizing constant Why is this useful? Consider a medical diagnosis. Diagnostic evidence disease symtom is often hard to get. But it s what you really want. Causal evidence symtom disease is often easier to get. disease is easy to get. Diagnosing a Rare Disease Meningitis is rare: m = /50000 Meningitis causes stiff neck: sm = 0.5 tiff neck is not so rare: s = /0 You have a stiff neck. What is ms? i Quote is from the text, age 458.

C 03 ring 06 Lecture 6 Page 5 of 6 The oint being that we can quickly figure out if a stiff neck is a good reason to guess someone has Meningitis. o we want to know tos. ost is known as is t. But how do we comute os? os os t t os t t Does that seem reasonable? If so, we get: os t t t os os t t os t t That form is the one we find in the text. Alications There are a huge number of alications, mainly in artificial intelligence, related to Bayes theorem. One you interact with most every day is called Bayesian filtering, and it s mostly what is used to kee your inbox sam free. ay you have a set of B messages known to be sam and a set of G messages known to not be sam Google, for examle, gets a good sense of this when you label things as sam. We could then search for words or addresses, or whatever that tend to occur in B but are less common in G. uose that we have found that the word Rolex occurs in 50 of 000 messages known to be sam and in 5 of 000 messages known not to be sam. stimate the robability that an incoming message containing the word Rolex is sam, assuming that it is equally likely that an

C 03 ring 06 Lecture 6 Page 6 of 6 incoming message is sam or not sam. If our threshold for rejecting a message as sam is 0.9, will we reject such messages? xamle 3, age 473 though we ll aroach it a bit differently. We want to find the robability that a word with Rolex in it is sam. We don t know what ercent of all messages are sam, so let s just assume 50% for now. For sam Rolex we get s r r s s r s s r s s r s That last is true if s=.5. r s r s Of course, filtering based on one word isn t a very good idea you get lots of false ositives. Instead you use lots of different filters all together. xamle 4 on age 474 does a nice job of giving an examle of combining filters. Monty Hall What is the robability of winning with strategy? What would you have had to choose if strategy is to work? If strategy? This question was actually the subject of a big debate where serious mathematicians got the answer wrong. Of course, we could also use Bayes Theorem to work this out. I m showing that mainly as a review, but also as a bit more comlex of an examle.