Topic 2 Probability. Basic probability Conditional probability and independence Bayes rule Basic reliability

Similar documents
Chapter 7 Wednesday, May 26th

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II

Econ 325: Introduction to Empirical Economics

2011 Pearson Education, Inc

STAT Chapter 3: Probability

Independence Solutions STAT-UB.0103 Statistics for Business Control and Regression Models

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail}

Random Signals and Systems. Chapter 1. Jitendra K Tugnait. Department of Electrical & Computer Engineering. James B Davis Professor.

CMPSCI 240: Reasoning about Uncertainty

Probability- describes the pattern of chance outcomes

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

3.2 Probability Rules

Probability the chance that an uncertain event will occur (always between 0 and 1)

Introduction to probability

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

Lecture 4. Selected material from: Ch. 6 Probability

Probability and Statistics Notes

UNIT 5 ~ Probability: What Are the Chances? 1

Compound Events. The event E = E c (the complement of E) is the event consisting of those outcomes which are not in E.

Chapter 2 PROBABILITY SAMPLE SPACE

Ch 14 Randomness and Probability

Statistics for Business and Economics

What is Probability? Probability. Sample Spaces and Events. Simple Event

Probability deals with modeling of random phenomena (phenomena or experiments whose outcomes may vary)

Chapter 6. Probability

Announcements. Topics: To Do:

Basic Statistics and Probability Chapter 3: Probability

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Lecture 4 : Conditional Probability and Bayes Theorem 0/ 26

Axioms of Probability

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

1 Preliminaries Sample Space and Events Interpretation of Probability... 13

STAT 516: Basic Probability and its Applications

Relative Risks (RR) and Odds Ratios (OR) 20

Math 1313 Experiments, Events and Sample Spaces

Chapter 6: Probability The Study of Randomness

tossing a coin selecting a card from a deck measuring the commuting time on a particular morning

Conditional Probability

Chapter 2 Class Notes

STAT:5100 (22S:193) Statistical Inference I

4. Probability of an event A for equally likely outcomes:

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias


BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES

4. Suppose that we roll two die and let X be equal to the maximum of the two rolls. Find P (X {1, 3, 5}) and draw the PMF for X.

Mutually Exclusive Events

Intermediate Math Circles November 8, 2017 Probability II

Probability COMP 245 STATISTICS. Dr N A Heard. 1 Sample Spaces and Events Sample Spaces Events Combinations of Events...

Properties of Probability

Lecture Slides. Elementary Statistics Eleventh Edition. by Mario F. Triola. and the Triola Statistics Series 4.1-1

STA 291 Lecture 8. Probability. Probability Rules. Joint and Marginal Probability. STA Lecture 8 1

Chapter. Probability

Math 140 Introductory Statistics

HW MATH425/525 Lecture Notes 1

Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

Probability & Random Variables

Math 140 Introductory Statistics

Statistical Theory 1

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

Event A: at least one tail observed A:

Notes Week 2 Chapter 3 Probability WEEK 2 page 1

Statistics for Managers Using Microsoft Excel (3 rd Edition)

Topic 4 Probability. Terminology. Sample Space and Event

4. Conditional Probability

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)

2.4. Conditional Probability

3 PROBABILITY TOPICS

Lecture Lecture 5

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

1 Probability Theory. 1.1 Introduction

Probability Year 10. Terminology

Week 2: Probability: Counting, Sets, and Bayes

Business Statistics MBA Pokhara University

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

Conditional probability

Conditional Probability

Lecture Slides. Elementary Statistics Tenth Edition. by Mario F. Triola. and the Triola Statistics Series. Slide 1

Single Maths B: Introduction to Probability

Basic Concepts of Probability

3.2 Intoduction to probability 3.3 Probability rules. Sections 3.2 and 3.3. Elementary Statistics for the Biological and Life Sciences (Stat 205)

Lectures Conditional Probability and Independence

Probability Year 9. Terminology

Elementary Discrete Probability

3.1 Events, Sample Spaces, and Probability

Probability Rules. MATH 130, Elements of Statistics I. J. Robert Buchanan. Fall Department of Mathematics

Probability Theory and Applications

Conditional Probability 2 Solutions COR1-GB.1305 Statistics and Data Analysis

Chance, too, which seems to rush along with slack reins, is bridled and governed by law (Boethius, ).

STAT 430/510 Probability

AMS7: WEEK 2. CLASS 2

Probability 1 (MATH 11300) lecture slides

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

Conditional Probability and Bayes Theorem (2.4) Independence (2.5)

Independence 1 2 P(H) = 1 4. On the other hand = P(F ) =

Basic Concepts of Probability

The possible experimental outcomes: 1, 2, 3, 4, 5, 6 (Experimental outcomes are also known as sample points)

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Lecture notes for probability. Math 124

Transcription:

Topic 2 Probability Basic probability Conditional probability and independence Bayes rule Basic reliability

Random process: a process whose outcome can not be predicted with certainty Examples: rolling a die, picking a card from a deck Sample space (S): the collection of all possible outcomes to a random process Examples: With one die, all possible outcomes are 1-6 Examples: With a deck of cards, all possible outcomes are 2-Ace of any suit Event (A,B): a collection of possible outcomes Simple: one outcome Compound: more than one outcome Probability: a number between 0 and 1 (inclusive) indicating the likelihood that the event will occur 2

What are the probabilities relating to... Rolling a single die? Rolling two dice? x 1 2 3 4 5 6 p(x) x 2 3 4 5 6 7 8 9 10 11 12 p(x) 3

Set theory review A B Union ( ) all elements in A or B A B Intersection ( ) - all elements in A and B A Complement ( ) all elements not in the set Also denoted as A c Mutually exclusive two events are mutually exclusive if they have no outcomes in common Example: Pregnancy and being a man Example: Rolling an even or an odd number 4

Elementary probability The proportion of times that an event A occurs out of n trials converges to the actual probability of A, P(A), as the number of repetitions becomes large. Long range frequency StatCrunch coin flip simulation. Show long range frequency of 1000 runs repeatedly for demonstration of convergence to what the actual value for p should be. 5

Probability with equally likely outcomes If a sample space is composed of k equally likely outcomes with m outcomes contained in A, then P(A) = m/k. Two way classification table for the salary data: Education Engineering Total Female 856 232 1088 Male 220 924 1144 Total 1076 1156 2232 Randomly select a student from the survey group, what is the probability that the student is female? the student is an engineer? the student is a female engineer? the student is a female or an engineer? 6

Properties of Probability Axioms: PA ( ) 0 PS ( ) 1, this is really important If A and B are mutually exclusive, P( A B) P( A) P( B) Other properties that may not be apparent: 0 PA ( ) 1 P( ) 0 c PA ( ) 1 PA ( ) PA ( B) PA ( ) PB ( ) PA ( B) 7

Back to the salary example Consider the following two way classification table between major and gender for the salary data: Education Engineering Total Female 856 232 1088 Male 220 924 1144 Total 1076 1156 2232 If we randomly select a student from this group, what is the probability that the student is not a male educator? the student is a female or an engineer? 8

Conditional Probability and Independence The conditional probability of A given B is if P(B) > 0. PA ( B) PA ( B) PB ( ) A and B are independent if P(A B) = P(A)P(B). If P(A) > 0 and P(B) > 0, then A independent of B means P(A B) = P(A). If the events are independent, knowing B occurs does not change the probability that A occurs. 9

I just added this slide to demonstrate independent data.. A and B are independent if P(A B) = P(A)P(B). Event Event Event A1 A2 A3 Totals Event B1.02.06.12.20 Event B2.08.24.48.80 Totals.10.30.60 1.00 10

What are some examples of events that are independent? Rolling a fair die Flipping a fair coin Defective product (note difference in view here between theoretical production and some real world applications) HW2, #2 discussion with example. Sampling with replacement 11

Back to the examples Education Engineering Total Female 856 232 1088 Male 220 924 1144 Total 1076 1156 2232 For the salary example, is the gender of the student selected independent of the student s major? If I tell you that the student is female, does that alter the probability that they are an engineer? Reliability example. What s the probability that a system of two components works, if they are linked in a series and work independently of each other? If the probability that each works is 80%, the probability that two in a series working is 80% x 80% or 64%. This is a common assumption in reliability. 12

Independence & Probability Independence is an important concept in the calculation of probabilities. The probability of a series of independent events is the product of their independent probabilities. Examples Flipping a coin. Rolling a die. X defectives in a row, given a defect %. Drives the probability calculation in many situations. 13

Law of total probability and Bayes rule If A,..., A are mutually exclusive, each event has 1 n positive probability and one of the events must occur, then n PB ( ) PB ( Aj) PA ( j) j 1 If PB ( ) 0, the above result implies Bayes rule: PA ( B) k PA ( ) PB ( A) n j 1 k k PA ( ) PB ( A) j j 14

Voltage regulator example In a batch of voltage regulators, 60% came from supplier 1, 30% from supplier 2 and 10% from supplier 3. 95% of regulators from supplier 1 work 60% of regulators from supplier 2 work 50% of regulators from supplier 3 work If a regulator randomly selected from the batch works, what is the probability it came from supplier 1? W W 1 2 3 15

Bayes Rule, by formulation Assuming we want to calculate P(S 1 W). From the table, it d be.57/.80. Based on the formula, it d be PS ( ) PW ( S) ( ) ( ) ( ) ( ) ( ) ( ) 1 1 PS ( W) 1 PS 1 PW S 1 PS 2 PW S 2 PS 3 PW S 3 or.60(.95) PS ( W).57/.80 1.60(.95).30(.60).10(.50) 16

Additional Baye s Medical testing Suppose that there is an AIDS test whose results are 99% positive when you have the disease (sensitivity) and 99% negative when you don t (specificity). Is that good enough? Do you accept the positive result? Does that mean that there s a 99% probability that you do have AIDS? Let s run the numbers under various assumptions. 17

Medical Testing (2) Assume that 6 in 1,000 in the general population have AIDS (prevalence). The numbers fall out like this. AIDS YES AIDS NO Totals Test + 5.94 9.94 15.88 Test 0.06 984.06 984.12 6.00 994.00 1000.00 What s the actual probability, given that you got a positive response, that you do have AIDS? 18

Medical Testing (3) Assume that 100 in 1,000 in high risk population have AIDS. The numbers fall out like this. AIDS YES AIDS NO Totals Test + 99.00 9.00 108.00 Test 1.00 891.00 892.00 100.00 900.00 1,000.00 What s the actual probability, given that you got a positive response, that you do have AIDS? 19

Medical Testing (final) Population designed for and tested against has an effect on the accuracy of the results. If in fact you want to have a high confidence that someone has AIDS when you get a positive test, or more importantly, that they don t when you get a negative..that % accuracy (both sensitivity & specificity) must be higher. Economics (production vs. litigation) 20

Reliability of systems The reliability of a device or system is the overall probability that it works. Suppose an electronic device is composed of two components and the probability that each of the individual components work is 0.8. The overall reliability of the system is dependent on how that system is constructed. In a series; one component after another, or In parallel; with stacked components. 21

Reliability of Systems Reliability of a device is the probability the device works. Suppose our device is composed of k independent components each with their own reliability A i - event that component i works The reliability of our device depends on how it is made up in terms of its components A series system will work only if all its components work. A parallel system will work if any one of its components work. 22

Reliability of a series system R = P(device works) = P(all components work) The operation is only as reliable as it s weakest link. What are the reliability properties of a series system? The probability that the system works has to be between 0 and 1. The reliability of the system MUST be less than the reliability of the least reliable component. Adding more components MUST decrease overall reliability. 23

Example of a series system Old fashioned Christmas tree lights 0.9 0.9 0.3 0.9 What s the probability that the system works? What s the probability of the system working, if we add another bulb to the system, with a reliability of 0.9? 24

Reliability of a parallel system R = P(device works) = P(at least one comp. works) 1-P(all components fail) complement s rule What are the reliability properties of a parallel system? More reliable than its most reliable component. Adding components makes it more reliable. Much better than a series system. 25

Example of a parallel system Redundant computer back ups 0.9 0.9 0.3 0.9 26

A more complex example 0.9 0.9 0.9 0.9 0.9 0.3 0.9 Please read additional file for Topic 2 for more information and problems. 27