Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 6 Discrete Probability 歐亞書局.

Slides:



Advertisements
Similar presentations
Discrete Probability Rosen 5.1.
Advertisements

Lecture 13 Elements of Probability CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Probability Basic Probability Concepts Probability Distributions Sampling Distributions.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Discrete random variables Probability mass function Distribution function (Secs )
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
AP STATISTICS.   Theoretical: true mathematical probability  Empirical: the relative frequency with which an event occurs in a given experiment  Subjective:
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Discrete Random Variables: PMFs and Moments Lemon Chapter 2 Intro to Probability
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.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Discrete Mathematics Transparency No. 0-1 Discrete Mathematics Cheng-Chia Chen September 2009.
6.1 Probability exercises. Def Def: 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.
Counting and Probability. Counting Elements of Sets Theorem. The Inclusion/Exclusion Rule for Two or Three Sets If A, B, and C are finite sets, then N(A.
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.
Probability & Statistics I IE 254 Exam I - Reminder  Reminder: Test 1 - June 21 (see syllabus) Chapters 1, 2, Appendix BI  HW Chapter 1 due Monday at.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 5 Counting.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Stats Probability Theory. Instructor:W.H.Laverty Office:235 McLean Hall Phone: Lectures: M W F 2:30pm - 3:20am Arts 133 Lab: M 3:30 - 4:20.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 8 Relations 歐亞書局.
Math b (Discrete) Random Variables, Binomial Distribution.
Copyright © 2013 Pearson Education. All rights reserved. Chapter 1 Introduction to Statistics and Probability.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
Discrete Structures By: Tony Thi By: Tony Thi Aaron Morales Aaron Morales CS 490 CS 490.
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.
2003/02/19 Chapter 2 1頁1頁 Chapter 2 : Basic Probability Theory Set Theory Axioms of Probability Conditional Probability Sequential Random Experiments Outlines.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
1 Discrete Structures - CSIS2070 Text Discrete Mathematics and Its Applications Kenneth H. Rosen Chapter 4 Counting.
MATHPOWER TM 12, WESTERN EDITION Chapter 8 Probability
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 Sets & Probability Section 7.3 Introduction to Probability.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
1 Chapter 4 Mathematical Expectation  4.1 Mean of Random Variables  4.2 Variance and Covariance  4.3 Means and Variances of Linear Combinations of Random.
 Page 568: Insurance Rates  Probability theory  Chance or likelihood of an event happening  Probability  Each even is assigned a number between.
Random Variables By: 1.
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.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Chapter 1: Outcomes, Events, and Sample Spaces men 1.
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 Models Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Continuous Probability Models The Mean and Standard.
Lecture Slides Elementary Statistics Twelfth Edition
Now it’s time to look at…
Introduction to Discrete Probability
ICS 253: Discrete Structures I
The Pigeonhole Principle
Chapter 6: Discrete Probability
Chapter 7: Counting Principles
What is Probability? Quantification of uncertainty.
CS104:Discrete Structures
Section 7.6 Bayes’ Theorem.
Discrete Probability Chapter 7 With Question/Answer Animations
Probability Models Section 6.2.
Discrete Mathematics and Its Applications Chapter 7 Images
Now it’s time to look at…
7.1 Experiments, Sample Spaces, & Events
CSE 321 Discrete Structures
Chapter 2 Notes Math 309 Probability.
E370 Statistical analysis for bus & econ
Chapter 4 Section 1 Probability Theory.
Now it’s time to look at…
Now it’s time to look at…
Experiments, Outcomes, Events and Random Variables: A Revisit
Discrete Mathematics and Its Applications Chapter 7 Images
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 6 Discrete Probability 歐亞書局

6.1 An Introduction to Discrete Probability 6.2 Probability Theory 6.3 Bayes’ Theorem 6.4 Expected Value and Variance P. 1 歐亞書局

6.1 An Introduction to Discrete Probability Gambling –Tossing a die Finite Probability –We will restrict to experiments that have finitely many outcomes Experiment: a procedure that yields one of a given set of possible outcomes Sample space: the set of possible outcomes Event: a subset of the sample space

Definition 1: If S is a finite sample space of equally likely outcomes, and E is an event (a subset of S), then the probability of E is p(E)=|E|/|S|. –Ex.1-8 –Lotteries –Poker –Sampling without replacement –Sampling with replacement

The probability of combinations of events –Theorem 1: Let E be an event in a sample space S. The probability of the event Ē, the complementary event of E, is given by: p(Ē) = 1 – p(E). Proof Ex.8

Theorem 2: Let E1 and E2 be events in the sample space S. Then, p(E1  E2)=p(E1)+p(E2)-p(E1  E2). –Ex.9 Probabilistic reasoning –Determining which of two events is more likely –Ex.10

6.2 Probability Thoery Assigning probabilities –We assign a probability p(s) to each outcome s 0<=p(s)<=1 for each s  S (S: finite or countable number of outcomes)  s  S p(s)=1 –For n possible outcomes x1, x2, …, xn 0<=p(xi)<=1 for i=1,2,…,n  i=1..n p(xi)=1 –P: probability distribution Ex.1

Definition 1: Suppose that S is a set with n elements. The uniform distribution assigns the probability 1/n to each element of S. Definition 2: The probability of the event E is the sum of the probabilities of the outcomes in E. That is, p(E)=  s  E p(s) –Selecting at random –Ex.2

Combinations of events –The same as Sec.6.1 p(Ē) = 1 – p(E) p(E1  E2)=p(E1)+p(E2)-p(E1  E2) –Theorem 1: If E 1, E 2, … is a sequence of pairwise disjoint events in a sample space S, then p(  i E i )=  i p(E i ).

Conditional Probability Definition 3: 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). –Ex.3-4 Independence –P(E|F)=p(E) Definition 4: The events E and F are independent if and only if p(E  F)=p(E)p(F) –Ex.5-7

Bernoulli Trials and the Binomial Distribution Bernoulli trial: each performance of an experiment with two possible outcomes –A success, or a failure –Ex.8 Theorem 2: The probability of exactly k successes in n independent Bernoulli trials, with probability of success p and probability of failure q=1-p, is C(n,k)p k q n-k. –Denoted by b(k;n,p), binomial ditribution –Ex.9

Random Variable Definition 5: A random variable is a function from the sample space of an experiment to the set of real numbers. –Not a variable, not random –Ex.10 Definition 6: The distribution of a random variable X on a sample space S is the set of pairs (r, p(X=r)) for all r  S, where p(X=r) is the probability that X takes the value r. –Ex

The Birthday Problem The smallest number of people needed in a room so that it’s more likely than not that at lease two of them have the same day of year as their birthday –Similar to hashing functions –Ex.13 (The birthday problem) –Ex.14 (Probability of a collision in hashing functions)

Monte Carlo Algorithms Deterministic vs. probabilistic algorithms Monte Carlo algorithms –Always produce answers to problems, but a small probability remains that the answers may be incorrect This probability decreases rapidly when the algorithm carries out sufficient computation Ex

The Probabilistic Method Theorem 3: (The Probabilistic Method) If the probability that an element of a set S does not have a particular property is less than 1, there exists an element in S with this property. –Nonconstructive existence proof Theorem 4: If k is an integer with k>=2, then R(k,k)>=2 k/2. –Proof

6.3 Bayes’ Theorem Ex.1 Theorem 1: (Bayes’ Theorem) Suppose that E and F are events from a sample space S such that p(E)  0 and p(F)  0. Then p(F|E) = p(E|F)p(F)/(p(E|F)p(F)+p(E|~F)p(~F)). –Proof –Ex.2

Theorem 2: (Generalized Bayes’ Theorem) Suppose that E is an event from a sample space S and F1, F2, …, Fn are mutually exclusive events such that  i=1..n Fi=S. Assume that p(E)  0 and p(Fi)  0 for i=1,2,…,n. Then p(Fj|E) = p(E|Fj)p(Fj)/  i=1..n p(E|Fi)p(Fi).

Bayesian Spam Filters Bayesian spam filters –B: set of spam messages, G: set of good messages –n B (w), n G (w) –p(w)=n B (w)/|B|, q(w)= n G (w)/|G| –P(S|E) = p(E|S)p(S)/(p(E|S)p(S)+p(E|~S)p(~S)). Assume p(S)=p(~S)=1/2 P(S|E)=p(E|S)/(p(E|S)+p(E|~S)) –P(E|S)=p(w), p(E|~S)=q(w) r(w)=p(w)/(p(w)+q(w)) Ex.3-4 –r(w1,w2,…,wk)=  i=1..k p(wi)/(  i=1..k p(wi)+  i=1..k q(wi))

Thanks for Your Attention!