CSE 321 Discrete Structures

Slides:



Advertisements
Similar presentations
Stats for Engineers: Lecture 3. Conditional probability Suppose there are three cards: A red card that is red on both sides, A white card that is white.
Advertisements

Review of Probability. Definitions (1) Quiz 1.Let’s say I have a random variable X for a coin, with event space {H, T}. If the probability P(X=H) is.
Discrete Probability Chapter 7.
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
STA291 Statistical Methods Lecture 13. Last time … Notions of: o Random variable, its o expected value, o variance, and o standard deviation 2.
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.
Economics 105: Statistics Any questions? Go over GH2 Student Information Sheet.
STAT Section 5 Lecture 23 Professor Hao Wang University of South Carolina Spring 2012 TexPoint fonts used in EMF. Read the TexPoint manual before.
Probability theory and average-case complexity. Review of probability theory.
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
22C:19 Discrete Structures Discrete Probability Fall 2014 Sukumar Ghosh.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Discrete random variables Probability mass function Distribution function (Secs )
Probability Distributions Finite Random Variables.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Special discrete distributions Sec
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Probability Distributions: Finite Random Variables.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
CSE 531: Performance Analysis of Systems Lecture 2: Probs & Stats review Anshul Gandhi 1307, CS building
Section 15.8 The Binomial Distribution. A binomial distribution is a discrete distribution defined by two parameters: The number of trials, n The probability.
Binomial Distributions Calculating the Probability of Success.
BINOMIAL DISTRIBUTION Success & Failures. Learning Goals I can use terminology such as probability distribution, random variable, relative frequency distribution,
Ch.4 DISCRETE PROBABILITY DISTRIBUTION Prepared by: M.S Nurzaman, S.E, MIDEc. ( deden )‏
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}.
Bernoulli Trials Two Possible Outcomes –Success, with probability p –Failure, with probability q = 1  p Trials are independent.
CSE 321 Discrete Structures Winter 2008 Lecture 19 Probability Theory TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
Binomial Probability Distribution
COMP 170 L2 L17: Random Variables and Expectation Page 1.
King Saud University Women Students
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
CDA6530: Performance Models of Computers and Networks Chapter 1: Review of Practical Probability TexPoint fonts used in EMF. Read the TexPoint manual before.
Math b (Discrete) Random Variables, Binomial Distribution.
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
By Satyadhar Joshi. Content  Probability Spaces  Bernoulli's Trial  Random Variables a. Expectation variance and standard deviation b. The Normal Distribution.
Random Variables Example:
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
CDA6530: Performance Models of Computers and Networks Chapter 1: Review of Practical Probability TexPoint fonts used in EMF. Read the TexPoint manual before.
16-3 The Binomial Probability Theorem. Let’s roll a die 3 times Look at the probability of getting a 6 or NOT getting a 6. Let’s make a tree diagram.
Central Limit Theorem Let X 1, X 2, …, X n be n independent, identically distributed random variables with mean  and standard deviation . For large n:
Random Variables Lecture Lecturer : FATEN AL-HUSSAIN.
Theory of Computational Complexity Probability and Computing Ryosuke Sasanuma Iwama and Ito lab M1.
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)
Applied Probability Lecture 2 Rajeev Surati. Agenda 1.Independence 2.Bayes Theorem 3.Introduction to Probability Mass Functions.
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.
3.1 Discrete Random Variables Present the analysis of several random experiments Discuss several discrete random variables that frequently arise in applications.
Now it’s time to look at…
ICS 253: Discrete Structures I
Statistics 200 Objectives:
Discrete Probability Distributions
22C:19 Discrete Math Discrete Probability
CS104:Discrete Structures
Discrete random variable X Examples: shoe size, dosage (mg), # cells,…
Conditional Probability
Discrete Probability Chapter 7 With Question/Answer Animations
The Binomial and Geometric Distributions
Discrete Probability Distribution
Some Discrete Probability Distributions
Distributions and expected value
Now it’s time to look at…
CSE 321 Discrete Structures
CSE 321 Discrete Structures
Now it’s time to look at…
Bernoulli Trials Two Possible Outcomes Trials are independent.
CSE 321 Discrete Structures
CSE 321 Discrete Structures
Random Variables Binomial and Hypergeometric Probabilities
Chapter 11 Probability.
Presentation transcript:

CSE 321 Discrete Structures Winter 2008 Lecture 20 Probability: Bernoulli, Random Variables, Bayes’ Theorem TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA

Announcements Readings Probability Theory 6.3 (New material!) Bayes’ Theorem 6.4 (5.3) Expectation Advanced Counting Techniques – Ch 7. Not covered Relations Chapter 8 (Chapter 7)

Highlights from Lecture 19 Conditional Probability Independence Let E and F be events with p(F) > 0. The conditional probability of E given F, defined by p(E | F), is defined as: The events E and F are independent if and only if p(E F) = p(E)p(F)

Bernoulli Trials and Binomial Distribution Success probability p, failure probability q The probability of exactly k successes in n independent Bernoulli trials is

Random Variables A random variable is a function from a sample space to the real numbers

Bayes’ Theorem Suppose that E and F are events from a sample space S such that p(E) > 0 and p(F) > 0. Then

False Positives, False Negatives Let D be the event that a person has the disease Let Y be the event that a person tests positive for the disease

Testing for disease Disease is very rare: p(D) = 1/100,000 Testing is accurate: False negative: 1% False positive: 0.5% Suppose you get a positive result, what do you conclude? P(YC|D) P(Y|DC)

P(D|Y) Answer is about 0.002

Spam Filtering From: Zambia Nation Farmers Union [znfukabwe@mail.zamtel.zm] Subject: Letter of assistance for school installation To: Richard Anderson Dear Richard, I hope you are fine, Iam through talking to local headmen about the possible assistance of school installation. the idea is and will be welcome. I trust that you will do your best as i await for more from you. Once again Thanking you very much Sebastian Mazuba.

Bayesian Spam filters Classification domain Criteria for spam Cost of false negative Cost of false positive Criteria for spam v1agra, ONE HUNDRED MILLION USD Basic question: given an email message, based on spam criteria, what is the probability it is spam

Email message with phrase “Account Review” 250 of 20000 messages known to be spam 5 of 10000 messages known not to be spam Assuming 50% of messages are spam, what is the probability that a message with “Account Review” is spam

Proving Bayes’ Theorem

Expectation The expected value of random variable X(s) on sample space S is:

Expectation examples Number of heads when flipping a coin 3 times Sum of two dice Successes in n Bernoulli trials with success probability p