March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 1 Discrete Probability Example I: A die is biased so that the number 3 appears twice.

Slides:



Advertisements
Similar presentations
Lecture Discrete Probability. 5.2 Recap Sample space: space of all possible outcomes. Event: subset of of S. p(s) : probability of element s of.
Advertisements

Discrete Probability Chapter 7.
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
Basic Terms of Probability Section 3.2. Definitions Experiment: A process by which an observation or outcome is obtained. Sample Space: The set S of all.
Section 2 Union, Intersection, and Complement of Events, Odds
Union, Intersection, Complement of an Event, Odds
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Random Variables Section 6.3 Binomial and Geometric Random Variables.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
22C:19 Discrete Structures Discrete Probability Fall 2014 Sukumar Ghosh.
Lec 18 Nov 12 Probability – definitions and simulation.
1 Discrete Math CS 280 Prof. Bart Selman Module Probability --- Part a) Introduction.
Probability Distributions
1 Copyright M.R.K. Krishna Rao 2003 Chapter 5. Discrete Probability Everything you have learned about counting constitutes the basis for computing the.
Conditional Probability
Probability Distributions: Finite Random Variables.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
PROBABILITY AND STATISTICS PROBABILITY. Probability IIntroduction to Probability ASatisfactory outcomes vs. total outcomes BBasic Properties CTerminology.
From Randomness to Probability
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Section 7.2. Section Summary Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability Independence Bernoulli.
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}.
King Saud University Women Students
September1999 CMSC 203 / 0201 Fall 2002 Week #9 – 21/23/25 October 2002 Prof. Marie desJardins.
UNIT 6 – PROBABILITY BASIC PROBABILITY. WARM UP Look through your notes to answer the following questions Define Sample Set and describe the sample set.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Chapter 3 Probability Larson/Farber 4th ed. Chapter Outline 3.1 Basic Concepts of Probability 3.2 Conditional Probability and the Multiplication Rule.
Discrete Mathematics Math 6A Homework 6 Solution.
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
Section 2 Union, Intersection, and Complement of Events, Odds
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Discrete Math Section 16.3 Use the Binomial Probability theorem to find the probability of a given outcome on repeated independent trials. Flip a coin.
3/7/20161 Now it’s time to look at… Discrete Probability.
Chapter 14 Week 5, Monday. Introductory Example Consider a fair coin: Question: If I flip this coin, what is the probability of observing heads? Answer:
Binomial Probability Theorem In a rainy season, there is 60% chance that it will rain on a particular day. What is the probability that there will exactly.
Math 1320 Chapter 7: Probability 7.1 Sample Spaces and Events.
Section 7.3. Why we need Bayes?  How to assess the probability that a particular event occurs on the basis of partial evidence.  The probability p(F)
Project 1 Lecture Notes. Table of Contents Basic Probability Word Processing Mathematics Summation Notation Expected Value Database Functions and Filtering.
Chapter 5 Discrete Probability Distributions 1. Chapter 5 Overview 2 Introduction  5-1 Probability Distributions  5-2 Mean, Variance, Standard Deviation,
Introduction to probability (3) Definition: - The probability of an event A is the sum of the weights of all sample point in A therefore If A1,A2,…..,An.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Binomial Distribution Introduction: Binomial distribution has only two outcomes or can be reduced to two outcomes. There are a lot of examples in engineering.
Chapter 7. Section 7.1 Finite probability  In a lottery, players win a large prize when they pick four digits that match, in the correct order, four.
Terminologies in Probability
Now it’s time to look at…
Introduction to Discrete Probability
ICS 253: Discrete Structures I
What Is Probability?.
Chapter 6: Discrete Probability
PROBABILITY AND PROBABILITY RULES
22C:19 Discrete Math Discrete Probability
Applied Discrete Mathematics Week 7: Probability Theory
CS104:Discrete Structures
Conditional Probability
Discrete Probability Chapter 7 With Question/Answer Animations
Now it’s time to look at…
Chapter 9 Section 1 Probability Review.
Terminologies in Probability
Now it’s time to look at…
Terminologies in Probability
Now it’s time to look at…
Applied Discrete Mathematics Week 12: Discrete Probability
Now it’s time to look at…
CSE 321 Discrete Structures
Agenda Lecture Content: Discrete Probability
Chapter 11 Probability.
Presentation transcript:

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 1 Discrete Probability Example I: A die is biased so that the number 3 appears twice as often as each other number. What are the probabilities of all possible outcomes? Solution: There are 6 possible outcomes s 1, …, s 6. p(s 1 ) = p(s 2 ) = p(s 4 ) = p(s 5 ) = p(s 6 ) p(s 3 ) = 2p(s 1 ) Since the probabilities must add up to 1, we have: 5p(s 1 ) + 2p(s 1 ) = 1 7p(s 1 ) = 1 p(s 1 ) = p(s 2 ) = p(s 4 ) = p(s 5 ) = p(s 6 ) = 1/7, p(s 3 ) = 2/7

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 2 Discrete Probability Example II: For the biased die from Example I, what is the probability that an odd number appears when we roll the die? Solution: E odd = {s 1, s 3, s 5 } Remember the formula p(E) =  s  E p(s). p(E odd ) =  s  E odd p(s) = p(s 1 ) + p(s 3 ) + p(s 5 ) p(E odd ) = 1/7 + 2/7 + 1/7 = 4/7 = 57.14%

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 3 Conditional Probability If we toss a coin three times, what is the probability that an odd number of tails appears (event E), if the first toss is a tail (event F) ? If the first toss is a tail, the possible sequences are TTT, TTH, THT, and THH. In two out of these four cases, there is an odd number of tails. Therefore, the probability of E, under the condition that F occurs, is 0.5. We call this conditional probability.

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 4 Conditional Probability If we want to compute the conditional probability of E given F, we use F as the sample space. For any outcome of E to occur under the condition that F also occurs, this outcome must also be in E  F. Definition: Let E and F be events with p(F) > 0. The conditional probability of E given F, denoted by p(E | F), is defined as p(E | F) = p(E  F)/p(F)

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 5 Conditional Probability Example: What is the probability of a random bit string of length four to contain at least two consecutive 0s, given that its first bit is a 0 ? Solution: E: “bit string contains at least two consecutive 0s” F: “first bit of the string is a 0” We know the formula p(E | F) = p(E  F)/p(F). E  F = {0000, 0001, 0010, 0011, 0100} p(E  F) = 5/16 p(F) = 8/16 = 1/2 p(E | F) = (5/16)/(1/2) = 10/16 = 5/8 = 0.625

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 6Independence Let us return to the example of tossing a coin three times. Does the probability of event E (odd number of tails) depend on the occurrence of event F (first toss is a tail) ? In other words, is it the case that p(E | F)  p(E) ? We actually find that p(E | F) = 0.5 and p(E) = 0.5, so we say that E and F are independent events.

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 7Independence Because we have p(E | F) = p(E  F)/p(F), p(E | F) = p(E) if and only if p(E  F) = p(E)p(F). Definition: The events E and F are said to be independent if and only if p(E  F) = p(E)p(F). Obviously, this definition is symmetrical for E and F. If we have p(E  F) = p(E)p(F), then it is also true that p(F | E) = p(F).

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 8Independence Example: Suppose E is the event of rolling an even number with an unbiased die. F is the event that the resulting number is divisible by three. Are events E and F independent? Solution: p(E) = 1/2, p(F) = 1/3. |E  F|= 1 (only 6 is divisible by both 2 and 3) p(E  F) = 1/6 p(E  F) = p(E)p(F) Conclusion: E and F are independent.

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 9 Bernoulli Trials Suppose an experiment with two possible outcomes, such as tossing a coin. Each performance of such an experiment is called a Bernoulli trial. We will call the two possible outcomes a success or a failure, respectively. If p is the probability of a success and q is the probability of a failure, it is obvious that p + q = 1.

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 10 Bernoulli Trials Often we are interested in the probability of exactly k successes when an experiment consists of n independent Bernoulli trials. Example: A coin is biased so that the probability of head is 2/3. What is the probability of exactly four heads to come up when the coin is tossed seven times?

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 11 Bernoulli Trials Solution: There are 2 7 = 128 possible outcomes. The number of possibilities for four heads among the seven trials is C(7, 4). The seven trials are independent, so the probability of each of these outcomes is (2/3) 4 (1/3) 3. Consequently, the probability of exactly four heads to appear is C(7, 4)(2/3) 4 (1/3) 3 = 560/2187 = 25.61%

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 12 Bernoulli Trials Illustration: Let us denote a success by ‘S’ and a failure by ‘F’. As before, we have a probability of success p and probability of failure q = 1 – p. What is the probability of two successes in five independent Bernoulli trials? Let us look at a possible sequence: SSFFF What is the probability that we will generate exactly this sequence?

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 13 Bernoulli Trials Sequence:Probability:S p S pppp FFF qqqq qqqq qqqq = p 2 q 3 Another possible sequence: Sequence:Probability:F q S pppp FSF qqqq pppp qqqq = p 2 q 3 Each sequence with two successes in five trials occurs with probability p 2 q 3.

March 31, 2015Applied Discrete Mathematics Week 8: Advanced Counting 14 Bernoulli Trials And how many possible sequences are there? In other words, how many ways are there to pick two items from a list of five? We know that there are C(5, 2) = 10 ways to do this, so there are 10 possible sequences, each of which occurs with a probability of p 2 q 3. Therefore, the probability of any such sequence to occur when performing five Bernoulli trials is C(5, 2) p 2 q 3. In general, for k successes in n Bernoulli trials we have a probability of C(n,k)p k q n-k.