ICS 253: Discrete Structures I

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.
The Bernoulli distribution Discrete distributions.
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.
CSC-2259 Discrete Structures
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
22C:19 Discrete Structures Discrete Probability Fall 2014 Sukumar Ghosh.
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.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Lecture Discrete Probability. 5.1 Probabilities Important in study of complexity of algorithms. Modeling the uncertain world: information, data.
The Basics of Probability Theory Section 13.1 NCSCOS 2.02.
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
Chapter 7 With Question/Answer Animations. Section 7.1.
Section 7.2. Section Summary Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability Independence Bernoulli.
Discrete Math Lecture 6: Discrete Probability
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}.
CSE 321 Discrete Structures Winter 2008 Lecture 19 Probability Theory TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Discrete Probability CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Basic Probability Section 7.1. Definitions Sample Space: The set of all possible outcomes in a given experiment or situation Often denoted by S Event:
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 5 Counting.
September1999 CMSC 203 / 0201 Fall 2002 Week #9 – 21/23/25 October 2002 Prof. Marie desJardins.
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
1 Discrete Structures - CSIS2070 Text Discrete Mathematics and Its Applications Kenneth H. Rosen Chapter 4 Counting.
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.
Chapter 7 With Question/Answer Animations. Chapter Summary Introduction to Discrete Probability Probability Theory Bayes’ Theorem Expected Value and Variance.
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)
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
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.
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.
PROBABILITY AND STATISTICS WEEK 2 Onur Doğan. Introduction to Probability The Classical Interpretation of Probability The Frequency Interpretation of.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
Introduction to Discrete Probability
Now it’s time to look at…
Introduction to Discrete Probability
The Pigeonhole Principle
Probability – part 1 Prof. Carla Gomes Rosen 1 1.
What Is Probability?.
Chapter 6: Discrete Probability
ICS 253: Discrete Structures I
PROBABILITY AND PROBABILITY RULES
What is Probability? Quantification of uncertainty.
22C:19 Discrete Math Discrete Probability
Chapter 2 Discrete Random Variables
Applied Discrete Mathematics Week 7: Probability Theory
CS104:Discrete Structures
Conditional Probability
Discrete Probability Chapter 7 With Question/Answer Animations
CS100: Discrete structures
Now it’s time to look at…
PROBABILITY AND STATISTICS
Great Theoretical Ideas In Computer Science
Now it’s time to look at…
Discrete Mathematical Structures CS 23022
Probability Section 19 NOTE: We are skipping Section 18. 2/21/2019
COUNTING AND 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
Lecture 2 Basic Concepts on Probability (Section 0.2)
Random Variables Binomial and Hypergeometric Probabilities
Chapter 11 Probability.
Presentation transcript:

ICS 253: Discrete Structures I King Fahd University of Petroleum & Minerals Information & Computer Science Department ICS 253: Discrete Structures I Discrete Probability

Reading Assignment K. H. Rosen, Discrete Mathematics and Its Applications, Global Ed., McGraw-Hill, 2013. Chapter 7 (7.1, 7.2)

Section 7.1: An Introduction to Discrete Probability An experiment is a procedure that yields one of a given set of possible outcomes. The sample space of the experiment is the set of possible outcomes. An event is a subset of the sample space. Example: Relate the above definitions to throwing a die once and getting a 4. If S is a finite sample space of equally likely outcomes, and E is an event, that is, a subset of S, then the probability of E is p(E) = |E|/|S|

Examples An urn contains four blue balls and five red balls. What is the probability that a ball chosen from the urn is blue? What is the probability that when two dice are rolled, the sum of the numbers on the two dice is 6? 7? 10?

Examples In a lottery, players win a large prize when they pick four digits that match, in the correct order, four digits selected by a random mechanical process. A smaller prize is won if only three digits are matched. What is the probability that a player wins the large prize? What is the probability that a player wins the small prize?

Examples There are many lotteries now that award enormous prizes to people who correctly choose a set of six numbers out of the first n positive integers, where n is usually between 30 and 60. What is the probability that a person picks the correct six numbers out of 40? Find the probability that a hand of five cards in poker contains four cards of one kind.

Examples What is the probability that a poker hand contains a full house, that is, three of one kind and two of another kind? What is the probability that the numbers 11,4, 17, 39, and 23 are drawn in that order from a bin containing 50 balls labeled with the numbers 1, 2, . . . , 50 if the ball selected is not returned to the bin before the next ball is selected and the ball selected is returned to the bin before the next ball is selected?

Probability of Combinations of Events Theorem: Let E be an event in a sample space S. The probability of the event , the complementary event of E, is given by Theorem: Let E1 and E2 be events in the sample space S. Then

Examples A sequence of 10 bits is randomly generated. What is the probability that at least one of these bits is 0? What is the probability that a positive integer selected at random from the set of positive integers not exceeding 100 is divisible by either 2 or 5?

Examples Q24 pp 437: Suppose that 100 people enter a contest and that different winners are selected at random for first, second, and third prizes. What is the probability that Kumar, Janice, and Pedro each win a prize if each has entered the contest?

Section 7.2: Probability Theory The definition of p(E) = |E|/|S| assumes that all events are equally likely. However, this is not always true. We will study the following concepts Conditional probability Independent events Random variables

Assigning Probabilities Let S be the sample space of an experiment with a finite or countable number of outcomes. We assign a probability p(s) to each outcome s. We require that two conditions be met:

Definitions Suppose that S is a set with n elements. The uniform distribution assigns the probability 1/n to each element of S. The probability of the event E is the sum of the probabilities of the outcomes in E. That is,

Combinations of Events Theorem: Let E be an event in a sample space S. The probability of the event , the complementary event of E, is given by Theorem: Let E1, E2, … be a sequence of pairwise disjoint events in a sample space S. Then

Examples Suppose that a die is biased (or loaded) so that 3 appears twice as often as each other number but that the other five outcomes are equally likely. What is the probability that an odd number appears when we roll this die?

Examples Q3 pp. 452: Find the probability of each outcome when a biased die is rolled, if rolling a 2 or rolling a 4 is three times as likely as rolling each of the other four numbers on the die and it is equally likely to roll a 2 or a 4.

Conditional Probability and Independence 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 The events E and F are independent if and only if

Examples A bit string of length four is generated at random so that each of the 16 bit strings of length four is equally likely. What is the probability that it contains at least two consecutive 0s, given that its first bit is a 0? (We assume that 0 bits and 1 bits are equally likely.)

Examples What is the conditional probability that a family with two children has two boys, given they have at least one boy? Assume that each of the possibilities BB, BG, GB, and GG is equally likely, where B represents a boy and G represents a girl. (Note that BG represents a family with an older boy and a younger girl while GB represents a family with an older girl and a younger boy.)

Examples Suppose E is the event that a randomly generated bit string of length four begins with a 1 and F is the event that this bit string contains an even number of 1 s. Are E and F independent, if the 16 bit strings of length four are equally likely?

Examples Assume that each of the four ways a family can have two children is equally likely. Are the events E, that a family with two children has two boys, and F, that a family with two children has at least one boy, independent?

Examples Are the events E, that a family with three children has children of both sexes, and F, that this family has at most one boy, independent? Assume that the eight ways a family can have three children are equally likely.

Bernoulli Trials and the Binomial Distribution A Bernoulli trial denotes each execution of an experiment with only two possible outcomes. When a bit is generated at random, the possible outcomes are ……….. When a coin is flipped, the possible outcomes are …….. A possible outcome of a Bernoulli trial is called a success or a failure. If p is the probability of a success and q is the probability of a failure, it follows that ………… Many problems can be solved by determining the probability of k successes when an experiment consists of n mutually independent Bernoulli trials.

Motivational Example A coin is biased so that the probability of heads is 2/3. What is the probability that exactly four heads come up when the coin is flipped seven times, assuming that the flips are independent? What is the size of the sample space? In how many ways we can have 4 heads? What is the probability of each such outcome? Hence, the probability that exactly four heads come up equals

Binomial Distribution Theorem: The probability of exactly k successes in n independent Bernoulli trials, with probability of success p and probability of failure q = 1 – p, is

Example Q22, pp 453: Assume that the probability a child is a boy is 0.51 and that the sexes of children born into a family are independent. What is the probability that a family of five children has a) exactly three boys? b) at least one boy? c) at least one girl? d) all children of the same sex?

Random Variables A random variable is a function from the sample space of an experiment to the set of real numbers. That is, a random variable assigns a real number to each possible outcome. The distribution of a random variable X on a sample space S is the set of pairs (r, p( X = r)) for all r  X(S), where p(X = r) is the probability that X takes the value r. A distribution is usually described by specifying p(X = r) for each r  X(S).

Examples Suppose that a coin is flipped three times. Let X(t) be the random variable that equals the number of heads that appear when t is the outcome. Then X(t) takes on the following values: What is the distribution of X(t)?

Examples Let X be the sum of the numbers that appear when a pair of dice is rolled. What are the values of this random variable for the 36 possible outcomes (i, j), where i and j are the numbers that appear on the first die and the second die, respectively, when these two dice are rolled?

The Birthday Problem What is the minimum number of people who need to be in a room so that the probability that at least two of them have the same birthday is greater than 1/2? Assume that the birthdays of the people in the room are independent. Assume that each birthday is equally likely and that there are 366 days in the year.

Solution to the Birthday Problem What is the probability that n people in the room have different birthdays? Assume that they enter one at a time. What is the probability that at least 2 have the same birthday?