CDA6530: Performance Models of Computers and Networks Chapter 1: Review of Practical Probability TexPoint fonts used in EMF. Read the TexPoint manual before.

Slides:



Advertisements
Similar presentations
Probability Simple Events
Advertisements

Chapter 4 Introduction to Probability I. Basic Definitionsp.150 II. Identify Sample Space with Counting Rules p.151 III. Probability of Outcomep.155 IV.
COUNTING AND PROBABILITY
NIPRL Chapter 1. Probability Theory 1.1 Probabilities 1.2 Events 1.3 Combinations of Events 1.4 Conditional Probability 1.5 Probabilities of Event Intersections.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
Business and Economics 7th Edition
Chapter 4 Probability.
Bayes Theorem Mutually exclusive events A collection of events (B1, B2, …, Bk) is said to be mutually exclusive if no two of them overlap. If mutually.
Learning Goal 13: Probability Use the basic laws of probability by finding the probabilities of mutually exclusive events. Find the probabilities of dependent.
Probability (cont.). Assigning Probabilities A probability is a value between 0 and 1 and is written either as a fraction or as a proportion. For the.
Chap 4-1 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 4 Probability.
PROBABILITY (6MTCOAE205) Chapter 2 Probability.
© Buddy Freeman, 2015Probability. Segment 2 Outline  Basic Probability  Probability Distributions.
Section 5.2 The Addition Rule and Complements
Chapter 4 Probability Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
A Survey of Probability Concepts
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. A Survey of Probability Concepts Chapter 5.
The Erik Jonsson School of Engineering and Computer Science © Duncan L. MacFarlane Probability and Stochastic Processes Yates and Goodman Chapter 1 Summary.
The Erik Jonsson School of Engineering and Computer Science Chapter 1 pp William J. Pervin The University of Texas at Dallas Richardson, Texas
Copyright ©2011 Nelson Education Limited. Probability and Probability Distributions CHAPTER 4 Part 2.
Chapter 4 Probability See.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Topic 2 – Probability Basic probability Conditional probability and independence Bayes rule Basic reliability.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Previous Lecture: Data types and Representations in Molecular Biology.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin A Survey of Probability Concepts Chapter 5.
LECTURE 15 THURSDAY, 15 OCTOBER STA 291 Fall
CSE 321 Discrete Structures Winter 2008 Lecture 19 Probability Theory TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Ch Counting Techniques Product Rule If the first element or object of an ordered pair can be used in n 1 ways, and for each of these n1 ways.
Random Experiment Random Variable: Continuous, Discrete Sample Space: S Event: A, B, E Null Event Complement of an Event A’ Union of Events (either, or)
Chapter 3:Basic Probability Concepts Probability: is a measure (or number) used to measure the chance of the occurrence of some event. This number is between.
Week 11 - Wednesday.  What did we talk about last time?  Exam 2 post-mortem  Combinations.
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that.
CDA6530: Performance Models of Computers and Networks Chapter 1: Review of Practical Probability TexPoint fonts used in EMF. Read the TexPoint manual before.
Topic 2: Intro to probability CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text, Probability and Statistics for Engineering.
Dr. Ahmed Abdelwahab Introduction for EE420. Probability Theory Probability theory is rooted in phenomena that can be modeled by an experiment with an.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin A Survey of Probability Concepts Chapter 5.
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics.
Class 2 Probability Theory Discrete Random Variables Expectations.
Probability You’ll probably like it!. Probability Definitions Probability assignment Complement, union, intersection of events Conditional probability.
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
Topic 2 – Probability Basic probability - pages Conditional probability and independence - pages Bayes rule - pages 72 -
Uncertainty ECE457 Applied Artificial Intelligence Spring 2007 Lecture #8.
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
BIA 2610 – Statistical Methods
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
Chapter 3:Basic Probability Concepts Probability: is a measure (or number) used to measure the chance of the occurrence of some event. This number is between.
BUSA Probability. Probability – the bedrock of randomness Definitions Random experiment – observing the close of the NYSE and the Nasdaq Sample.
2.5 Additive Rules: Theorem 2.10: If A and B are any two events, then: P(A  B)= P(A) + P(B)  P(A  B) Corollary 1: If A and B are mutually exclusive.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Sets and Probability Chapter 7. Ch. 7 Sets and Probabilities 4-2 Basic Concepts of Probability 4-3 Addition Rule 4-4 Multiplication Rule 4-5 Multiplication.
Statistics for Managers 5th Edition
Yandell – Econ 216 Chap 4-1 Chapter 4 Basic Probability.
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Chapter 2: Probability CIS Computational Probability and Statistics.
Conditional Probability
A Survey of Probability Concepts
Chapter 3 Probability.
Chapter 4 Probability.
A Survey of Probability Concepts
Statistics for 8th Edition Chapter 3 Probability
A Survey of Probability Concepts
MEGN 537 – Probabilistic Biomechanics Ch
CSE 321 Discrete Structures
Chapter 2 Notes Math 309 Probability.
CSE 321 Discrete Structures
Basic Probability Chapter Goal:
Presentation transcript:

CDA6530: Performance Models of Computers and Networks Chapter 1: Review of Practical Probability TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAA

2 Probability Definition  Sample Space (S) which is a collection of objects (all possible scenarios or values). Each object is a sample point.  Set of all persons in a room  {1,2,…,6} sides of a dice  {(1,1), (1,2), (1,3)…. (2,2), (2,3)….} for throwing two dices and counting each dice’s number  {2,3,…,12} for two dices and counting overall number  {0,1} for shooter results  (0,1) real number  An event E is a set of sample points  Event Eµ S

3 Probability Definition  Probability P defined on events:  0· P(E)· 1  If E=  P(E)=0; If E=S P(E)=1  If events A and B are mutually exclusive, P(A  B) = P(A) + P(B)  Classical Probability P:  P(E)= # of sample points in E / # of sample points in S S E

4  A c is the complement of event A:  A c = {w: w not in A}  P(A c )=1-P(A)  Union: A  B = {w: w in A or B or both}  Intersection: A  B={w: in A and B}  P(A  B)=P(A)+P(B)-P(A  B)  How to prove it based on probability definition?  For simplicity, define P(AB)=P(A  B)

5 Conditional Probability  Meaning of P(A|B)  Given that event B has happened, what is the probability that event A also happens?  P(A|B) = P(AB)/P(B)  Physical meaning? (hint: use graph)  Constraint sample space (scale up)

6 Example of Conditional Probability  A box with 5000 chips, 1000 from company X, other from Y. 10% from X is defective, 5% from Y is defective.  A="chip is from X", B="chip is defective“  Questions:  Sample space?  P(B) = ?  P(A  B) = P(chip made by X and it is defective)  P(A  B) =?  P(A|B) = ?  P(A|B) ? P(AB)/P(B)

7 Statistical Independent (S.I.)  If A and B are S.I., then P(AB) = P(A)P(B)  P(A|B) = P(AB)/P(B) = P(A)  Theory of total probability  P(A) =  n j=1 P(A|B j )P(B j ) where {B j } is a set of mutually exclusive exhaustive events, and B 1  B 2  …B n =S  Let’s derive it for n=2:  A = AB  AB c mutually exclusive  P(A) = P(AB) + P(AB c ) = P(A|B)P(B) + P(A|B c )P(B c )

8 Example of Law of Total Probability  A man shoots a target. When sunny day, he has 0.8 prob. to hit the target; when raining day, he has 0.4 prob. to hit. The weather has 0.7 prob. to be sunny, and 0.3 prob. to be raining.  The man shoots today. What is the chance that he hits the target today?

Another Interesting Example Using Law of Total Probability  In a gamble game, there are three cards, two are blank and one has sign. They are folded and put on table, and your task is to pick the signed card. First, you pick one card. Then, the casino player will remove one blank card from the remaining two. Now you have the option to change your pick, or stick to your original pick. Which option should you take? What is the probability of each option? 9

10 Application of Statistical Independent (S.I.)  R i : reliability of component i  R i = P(component i works normally)

11 Simple Derivation of Bayes’ Formula  Bayes:  Conditional prob.:

12 Bayes’ Theorem  Calculate posterior prob. given observation  Events {F 1, F 2, , F n } are mutually exclusive   E is an observable event  P(E|F i ), P(F i ) are known  As E happens, which F k is mostly likely to have happened?  Law of total prob.

Example 1  A man shoots a target. When sunny day, he has 0.8 prob. to hit the target; when raining day, he has 0.4 prob. to hit. The weather has 0.7 prob. to be sunny, and 0.3 prob. to be raining.  Q: the man misses the target today, what is prob. that today is sunny? Raining?  The raining prob. is enlarged given the shooting result 13

Concept Difference  If Event A and B are statistical independent, are they mutually exclusive?  If Event A and B are mutually exclusive, are they statistical independent? 14

15 Example 2  A blood test is 95% accurate (detects a sick person as sick), but has 1% false positive (detects a healthy person as sick). We know 0.5% population are sick.  Q: if a person is tested positive, what is the prob. she is really sick?  Step 1: Model  Step 2: Analysis  Testing positive only means suspicious, not really sick, although testing has only 1% false positive.  Worse performance when P(D) decreases.  Example: whether to conduct breast cancer (colon cancer) testing in younger age?

16 Bayes Application ---- Naïve Bayes Classification  Spam (S) or non-spam (H)  From training data, we know: P(w i |S), P(w i |H)  w i : keyword i in an  Define E: the set of keywords contained in an  For any , P(E|S)=  P(w i |S), P(E|H)=  P(w i |H)  Implicit assumption that keywords are independent  Q: for an , prob. to be a spam(ham)?  Model for Question: P(S|E), P(H|E) Reference: Naive Bayes classifier

Naïve Bayes Classification – Spam Detection Example  Suppose the keyword set is  {dollar, cheap, free, prize, …}  From training data, we know that a spam has prob. 0.2 to contain ‘dollar’, 0.5 to contain ‘cheap’, ….; a normal has prob to contain ‘dollar’, 0.01 to contain ‘cheap’,….  Among all received s by our server, 10% are spam and 90% are normal s  Now an incoming contains keyword {dollar, cheap}, what is the prob. it is spam? Normal ? 17

18  Questions?