A Probability Is A Number Between 0 and 1, Inclusive
A Probability Is A Number Between 0 and 1, Inclusive
PROBABILITY: long-run relative frequency; likelihood or chance that an outcome will happen.
A probability is a number between 0 and 1, inclusive,
EVENT: An outcome (called a simple event) or Combination of Outcomes (called a compound event)
SAMPLE SPACE: Set of all possible simple events
EXAMPLE 3: Compound events created using AND, OR, NOT to relate to relate two or more events
AND: A and B means BOTH events A and B occur:
The outcome that occurs satisfies both events A and B .
Event "A and B" includes items in common to both (intersection of) A and B
Event A and F = { } Probability of Event A and F : P(A and F) =
Page 1 of 13
Event odd even 2 or 4 number 4 number 3
Event A = {1, 3, 5} B = {2, 4, 6} D = {2, 4} F = {1, 2, 3, 4} T={1, 2, 3}
MUTUALLY EXCLUSIVE events are two events that can NOT both happen: P(A and B) = 0
EXAMPLE 4:
List a pair of events above that are mutually exclusive and are not complements ___ , ___
List a pair of events above that are mutually exclusive and are complements: ___ , ___
Are being a part-time and a full-time student at De Anza mutually exclusive? __________
Are being a day student and a night student at De Anza mutually exclusive? __________
b) Find the probability of getting TWO HEADS in two tosses IF WE KNOW THAT (GIVEN THAT) the FIRST
TOSS WAS A HEAD.
d) Find the probability of getting ONE HEAD in two tosses GIVEN THAT the FIRST TOSS WAS A HEAD.
e) Find the probability of getting ONE HEAD in two tosses, GIVEN THAT AT LEAST ONE HEAD was obtained.
Page 2 of 13
ROLLING 1 DIE: Sample Space: S={1,2,3,4,5,6}
Event odd: A = {1, 3, 5} even: B = {2, 4, 6} 4: F = {1, 2, 3, 4} 3: T={1, 2, 3}
Find the probability of rolling a number 3 GIVEN THAT (if) the outcome is even.
P(T|B) = P(1 or 2 or 3 | 2 or 4 or 6) = 1 { 1 , 2 , 3 , 4 , 5 , 6 }
3
The "reduced" (smaller) sample space is { 2,4,6 } ; odd numbers were removed from the sample space
EXAMPLE 6: Find the conditional probability and compare to the probability without the condition
a) Use the reduced sample space to find the probability of rolling an odd number given that the outcome is 3.
P(odd | 3 ) = P(A|T) =
P(odd) = P(A) =
b) Use the reduced sample space to find the probability of rolling an even number given that the outcome is 4.
P(even | 4 ) = P(B|F)
P(even) = P(B) =
c) Find the probability of rolling an odd number given that the outcome was even. P(____ | _____) =
Important Observations:
For AND , OR events, the order of listing the events does not matter and can be switched
P( A and B) = P(B and A) P(A or B) = P(B or A)
For CONDITIONAL PROBABILITY the order is important: P(A|B) P(B|A) in most situations.
INDEPENDENT EVENTS:
Conditional probability P(A|B) may be different from or may turn out to be the same as the probability
without the condition P(A
Definitions: Events A and B are independent if the conditional probability is the same as the
probability without the condition: P(A | B) = P(A)
Two events are independent if and only if the probability of one event occurring is
not affected by whether the other event occurs or not.
The chance (probability) that event A occurs is not affected by whether event B occurs or not
Independence means that the "condition B " does not change the probability of event A
Two events are independent if the probability without the condition equals the conditional probability
EXAMPLE 7: Are the events independent? Show justification using probabilities and state your conclusion
a) Are events A= odd number and T = number 3 independent?
From Example 6: P(A | T) = P(A) =
Conclusion: Reason:
b) Are events B = even number and F = number 4 independent?
From Example 6: P(B | F) = P(B) =
Conclusion: Reason:
Page 3 of 13
EXAMPLE 8 Which of the following describe independent events?
The numbers that show on each of two dice when tossed _________________________________
The color of two marbles selected consecutively from a jar of colored marbles, without replacement
_____________________
The color of two marbles selected from a jar of colored marbles, with replacement
_____________________
b) A large chain of discount stores finds that overall 20% of items purchased are returned.
At their San Jose store, 5 in every 25 items purchased are returned
R = event that an item is returned S = event that an item was purchased at their San Jose store
Are events R and S independent? Justify your answer using appropriate probabilities.
Page 4 of 13
CONTINGENCY TABLES
A contingency table displays data for two variables. This table shows the number of individuals or
items in each category. We can use the data in the table to find probabilities.
All probabilities EXCEPT conditional probabilities have the grand total in the denominator
Conditional Probabilities: The condition limits you to a particular row or column in the table.
The denominator will be the total for the row or column in the table that corresponds to the condition
EXAMPLE 10: A large car dealership examined a sample of vehicles sold or leased in the past year.
Vehicles were classified by type:
car, SUV, van, truck
whether they were a sale of a new or used vehicle or whether the vehicle was leased.
d. Find the probability that the vehicle was a car AND was leased.
e. Find the probability that the vehicle was used GIVEN THAT it was a van.
f. Find the probability that the vehicle was a van GIVEN THAT it was used.
g. Find the probability that the vehicle was a car GIVEN THAT it was new.
h. Find the probability that the vehicle was new IF it was a car.
i. Find the probability that the vehicle was new AND was a car.
j. Find the probability that the vehicle was used OR was a van.
k. Find the probability that the vehicle was leased OR was a truck.
Page 5 of 13
INDEPENDENCE in CONTINGENCY TABLES
NOTE: A and B are independent if P(A|B) = P( B ) and this also means that P(B|A) = P( B )
It does not matter which is the event and which is the condition. So although I think its easier to use
the column as the condition you could use the row as the condition if you want to.
EXAMPLE 12: PRACTICE: Checking for Independence in Contingency Tables DO AT HOME
From ch. 3, Collaborative Statistics Illowsky, B., & Dean, S. www.cnx.org
Hiking Preference by Gender Near Coastline Near Lakes and Streams Mountains Total
for a sample of 100 hikers (C)
Female (F) 18 16 11 45
Male 16 25 14 55
Total 34 41 25 100
Are the events "being female" and "preferring the coastline" independent?
Show your work to justify your answer using appropriate numerical evidence in the probabilities.
Page 6 of 13
FOUR PROBABILITY RULES
EXAMPLE 14: PRACTICE: Conditional Probability Rule DO AT HOME if not done in class
a) At a medical clinic patients can call or use the online website appointment system to make appointments
40% of patients request an urgent appointment
30% of patients use the website appointment system to make appointments
10% of all patients use the website appointment system and request an urgent appointment
U = appointment is urgent W = appointment is made using website
(i) Find the probability that the appointment is urgent given that a patient uses the website.
(ii) Find the probability that a patient uses the website to make an appointment if the appointment is urgent.
EXAMPLE 15: PRACTICE: Conditional Probability Rule DO AT HOME if not done in class
b) At a large company: 34% of employees live over 30 miles away from the company's office
52% of employees sometimes work from home.
28% of employees sometimes work from home AND live over 30 miles away from the office
H = employee sometimes works at home F = employee lives over 30 miles away from the office
Find the probability that an employee sometimes works at home, given that the employee lives over 30
miles away from the company's offices
Page 7 of 13
Complement Rule: P(A) = 1 P(A)
b. When rolling two dice the probability of rolling a sum of 3 is 2/36 and the probability of
rolling a double is 6/36. Find the probability of rolling a sum of 3 or a double.
EXAMPLE 18 (CHALLENGE):
In a city, 50% of residents watch the 6PM news and 30% of residents watch the 11PM news.
35% of residents do not watch either the 6PM news or the 11PM news.
S = event that a person watches the 6 pm news ; E = event that a person watches the 11 pm news
(a) Find the probability that a person watches the 6PM news or the 11PM news (or both).
(b) Find the probability that a person watches both the 6PM news and 11 PM news.
Page 8 of 13
Conditional Probability Rule: P(A|B) = P(A AND B)
P(B)
Multiplication Rule for AND Events:
General Multiplication Rule (always true): P(A and B) = P(A | B) P(B)
Special Version: IF AND ONLY IF events are INDEPENDENT: P(A and B) = P(A) P(B)
b. Find the probability that a randomly selected person in India (age 15+) is literate and male
c. Use the Conditional Probability Rule to find the probability that a randomly selected
resident of India age 15 or over is female, given that the person is literate:
Page 9 of 13
Complement Rule: P(A) = 1 P(A)
Conditional Probability Rule: P(A|B) =P(A AND B)
(given that) P(B)
b. Find the probability that a student has long hair if the student is female.
____________________________ Rule
c. Find the probability that a student is male and has long hair.
____________________________ Rule
Page 10 of 13
CHECKING IF TWO EVENTS ARE INDEPENDENT
2 methods to check for independence
"Conditional" probability: Compare P(A|B) to P(A) .
If P(A|B)=P(A), the events are independent
"And" probability: Compare P(A and B) to P(A) P(B).
If P(A and B) = P(A) P(B), the events are independent
Do one method only. Both methods always give the same result (if done correctly)
Do whichever is easier with the information you know for the problem.
Conclusion: _______________________________________________________
Note: Using conditional probabilities is easier if the problem tells you both the conditional probability
and the probability without the condition.
60% of students take a math class and 50% of students take a science class.
30% of students take math class and a science class
Event G = student takes a math class Event H = student takes a science class
Are events G and H independent?
Check using "AND" probabilities:
P(G and H) =_______ P(G) P(H) =_____________________________________
Does P(G and H) = P(G) P(H) ? _______
Conclusion: _______________________________________________________
Note: For this example, we were not told any conditional probabilities.
If we were to test with conditional probability, we first need to use the conditional probability
rule to calculate the conditional probability
For this problem it is easier to test for independence using the "and" probability.
Page 11 of 13
TREE DIAGRAMS are a useful tool in organizing and solving probability problems
Each complete path through the tree represents a separate mutually exclusive outcome in the sample space.
1. Draw a tree representing the possible mutually exclusive outcomes
2. Assign conditional probabilities along the branches of the tree
3. Multiply probabilities along each complete path through the tree to find probabilities of each "AND"
outcome in the sample space.
4. Add probabilities for the appropriate paths of a tree to find the probability of a compound OR event.
EXAMPLE 25: From Chapter 3 Section 3.7 Tree diagrams in Illowsky, B., & Dean, S. Collaborative Statistics.
Connexions, Dec. 5, 2008. http://cnx.org/content/col10522/1.29
An urn contains 11 marbles, 3 Red and 8 Blue. We are selecting 2 marbles randomly from the urn.
Draw the tree diagram. Show the events and probabilities for each branch and each complete path of the tree.
Select 2 marbles WITH REPLACEMENT:
Page 12 of 13
TREE DIAGRAMS
EXAMPLE 26: A certain virus infects 1% of people.
A test used to detect the virus can give a positive result or a negative result.
The test results are positive 80% of the time IF the person has the virus
For people who do not have the virus, the test results are positive 5% of the time (false positive)
V = event that a person has the virus
Pos = event that the test is positive Neg = event that the test is negative
Do ALL of the following:
(a) Fill in all probabilities along the branches of the tree.
(b) Find and write the event and probability corresponding to each complete path through the tree.
(c) Find the probability a persons test result is positive. Show your work.
Round all probabilities to 3 decimal places (thousandths)
V V
EXAMPLE 27: In a math class, 75% of students pass the quiz (event Q). 60% of students use a print
textbook (event T) and 40% use the e-book (event E). Based on data she collected, the instructor determined
that whether a student passes the quiz is independent of the format the student uses for the textbook.
Do ALL of the following:
(a) Draw a tree and fill in all probabilities along the branches of the tree.
(b) Find and write the event and probability corresponding to each complete path through the tree.
(c) Find the probability a student passes the quiz and uses the e-book.
(d) Find the probability a student passes the quiz or uses the e-book.
Round all probabilities to 3 decimal places (thousandths)
Page 13 of 13