Lecture 05. Introduction To Probability Web
Lecture 05. Introduction To Probability Web
Outline
Probability Trees Probability Models
Sample Spaces, Events, Venn Diagrams
Statistics
A probability tree is a useful way to visualize this problem and to find the desired probability.
Statistics
Statistics
Statistics
7 paths P(at least one valve operates correctly = 1 P(no valves operate correctly) = 1 - .00035 = .99965 1 path
Statistics
Question 1
What is the probability that a randomly selected person will test positive?
Statistics
Probability Tree
clinical reliability
clinical reliability
Statistics
Probability Tree
clinical reliability Multiply branch probs
clinical reliability
Statistics
Question 1 Answer
What is the probability that a randomly selected person will test positive? P(+) = .00599 + .00994 = .01593
Statistics
Question 2
If your test comes back positive, what is the probability that you have HIV? (Remember: we know that if a person has the virus, the test result will be positive with probability .999; if a person does not have the virus, the test result will be negative with probability .990). Looks very reliable
Statistics
Question 2 Answer
Answer two sequences of branches lead to positive test; only 1 sequence represented people who have HIV. P(person has HIV given that test is positive) =.00599/(.00599+.00994) = .376
Statistics
Summary
Question 1: P(+) = .00599 + .00994 = .01593 Question 2: two sequences of branches lead to positive test; only 1 sequence represented people who have HIV. P(person has HIV given that test is positive) =.00599/(.00599+.00994) = .376
Statistics
Recap
We have a test with very high clinical reliabilities:
1. If a person has the virus, the test result will be positive with probability .999 2. If a person does not have the virus, the test result will be negative with probability .990
But we have extremely poor performance when the test is positive: P(person has HIV given that test is positive) =.376 In other words, 62.4% of the positives are false positives! Why? When the characteristic the test is looking for is rare, most positives will be false.
Statistics
Probability models
A probability model is a mathematical representation of a random phenomenon. It is defined by its sample space, events within the sample space, and probabilities associated with each event.
Statistics
Sample Space
Random experiments have unique outcomes. The set of all possible outcome of a random experiment is called the sample space, S. S is discrete if it consists of a finite or countable infinite set of outcomes. S is continuous if it contains an interval (either a finite or infinite width) of real numbers.
Statistics
Statistics
19
Statistics
20
Statistics
21
10
11
12
13
14
15
16
23
Statistics
Statistics
Venn diagrams
24
What is Probability?
Probability is the likelihood or chance that a particular outcome or event from a random experiment will occur. Here, only finite sample spaces ideas apply. Probability is a number in the [0,1] interval. May be expressed as a: proportion (0.15) percent (15%) fraction (3/20) Generally speaking, a probability of: 1 indicates highly likely 0 indicates highly unlikely
Statistics
26
Statistics
27
Probability of an Event
For a discrete sample space, the probability of an event E, denoted by P(E), equals the sum of the probabilities of the outcomes in E. The discrete sample space may be: A finite set of outcomes A countably infinite set of outcomes. Further explanation is necessary to describe probability with respect to continuous sample spaces.
Statistics
28
Statistics
Axioms of Probability
Probability is a number that is assigned to each member of a collection of events from a random experiment that satisfies the following properties: 1. P(S) = 1 2. 0 P(E) 1, for any event E 3. For each two events E1 and E2 with E1E2 = , P(E1UE2) = P(E1) + P(E2) addition rule These imply that: P() =0 ; P(E) = 1 P(E) complement rule If E1 is contained in E2, then P(E1) P(E2).
Statistics
31
Probability Rules
Joint events are generated by applying basic set operations to individual events, specifically: Unions of events, A U B Intersections of events, A B Complements of events, A
Probabilities of joint events can often be determined from the probabilities of the individual events that comprise it. And conversely.
Statistics
32
Birthday Problem
What is the smallest number of people you need in a group so that the probability of 2 or more people having the same birthday is greater than 1/2? Answer: 23 No. of people 23 30 40 60 Probability .507 .706 .891 .994
Statistics
Birthday Problem
A={at least 2 people in the group have a common birthday} A = {no one has common birthday}
:P ( A') 364 363 365 365
3 people 23 people
: 364 363 343 P ( A') . 498 365 365 365 so P ( A ) 1 P ( A ' ) 1 . 498 . 502
Statistics
Probability rules
Addition Rule for Mutually Exclusive Events: Recall that two events A and B are mutually exclusive (or disjoint) events if they have no outcomes from S in common If A and B are mutually exclusive events, then P(A or B) = P(A) + P(B)
Statistics
Probability rules
General Addition Rule: For any two events A and B
Statistics
Probability rules
Multiplication Rule for independent events. Two events, A and B are independent if the occurrence of one does not affect the probability that the other one will occur. If A and B are independent then P(A and B) = P(A) P(B).
Remark on independence: The fact that a coin tossed with my left hand comes up T rather than H, does not influence the outcome of a coin tossed with my right hand. The probability of falling on the street is NOT independent of whether it has snowed. These events are dependent.
Statistics
Some examples
Example1: We roll a 6-sided die. The sample space (set of all possible outcomes) S = ____ The simple events are:___________. The event A that the outcome is {3} is _______. Example 2. We roll a die, and the event of interest, E, is obtaining an odd number. That is E 1,3,5. What is the probability of this event ? Let F 2,4,6 . What is the probability of F?
Statistics