Beruflich Dokumente
Kultur Dokumente
The tool that will allow us to bridge the gap from descriptive to inferential well start by using simple problems, in which probability can be calculated by merely COUNTING
Flipping a Coin
Say I flip a coin...
OMG Heads!!!! Do you care? Why Not?
Sample Space:
(draw on board) collection of all possible outcomes for a given phenomenon coin toss: {H,T}
mutually exclusive: either one happens, or the other
Flipping a Coin
Probability(Heads)? So.... must the next one be Tails? No!
Independent trials Random Phenomenon:
cant predict individual outcome can predict pattern in the LONG RUN
2 Coin Flips
OMG 2 Heads!
impressed yet?
Sample space
(draw on board) Prob(2 Heads): 1/4 outcome: single observation
OMG 2 of same!
Prob(2 Heads OR 2 Tails): event: subset of the sample space made of 1 or more possible outcomes
Larger Point
OMG 30 Heads in a row!
NOW maybe youre finally interested...
Descriptive Stats: measuring & summarizing outcomes Inferential Stats: to understand some outcome, must consider it in context of all possible outcomes that couldve occurred (sample space)
Counting Rules
Count up the possible outcomes
that is: define the sample space
Combinations
when order doesnt matter
Venn Diagrams
Sample Space: set of all possible outcomes of a random phenomenon
big rectangle (defined by Researcher [e.g., YOU!])
Populations...
Venn Diagrams
Probability:
# outcomes in some event/subset # outcomes in Sample Space area of some event/subset area of Sample Space
Union:
AUB this means: EITHER/OR/ANY
could be both
Independent Events
(unrelated events) ex: Multiple coin tosses: Heads 1st time; Heads 2nd time ex: Draws w/ replacement: Red Car 1st time; Yellow Car 2nd time Intersection:
p(AB)= p(A)*p(B)
Union:
p(AUB)= p(A)+p(B) -p(AB)
Dependent Events
(related events) Occurrence of A affects p(B) ex: Draws w/o replacement: Red Car 1st time; Yellow Car 2nd time
Sequential
Conditional Probability
p(B|A)
means: The probability of B, GIVEN the occurrence of A No formula needed for the following: Mutually Exclusive Events: p(B|A)= 0 Independent Events: p(B|A)= p(B)
Conditional Probability
Formula:
p(B|A) =
p(BA) p(A)
Conditional Probability
p(BA) p(B|A)= p(A) Dependent Events: Example
100 people at party Could like: Cola, Lime, Both, or Neither
p(Cola) = p(Lime) = p(ColaLime) =
Conditional Probability
p(BA) p(B|A)= p(A) Notes:
The GIVEN becomes the denominator. ~like zooming in on a subset
Intersection:
from
we get:
Union:
stays the same as for ind. events:
p(BUA) = p(A)+p(B)-p(BA)
Union:
P(A U B) =P(A)+P(B)- P(AB)
Compliment:
p(A)=1-p(A)
Conditional Probability
p(B|A) =
Conceptually this means:
p(BA) p(A)
Bayes Theorem
p(B|A) =
p(A|B)p(B) p(A|B)p(B) + p(A|B)p(B)
p(A|B)*p(B) + p(A|B)*p(B)
= p(AB) + p(AB) = p(A) p(B|A) = So, this is just: p(BA) p(A)
General Rules!
Intersection: Multiplication Rule
p(BA) = p(A)*p(B|A)
Complement Rule:
p(A)=1-p(A)
Plus: definition of mutually exclusive events, independent events, and conditional probability
Tree Diagrams
Independent Events
all branches at a given level have same probability
Dependent Events
probability of branch at a given level is conditional on which branch of prior level
Bayes Theorem
(Reverse Conditional Probability)
what if we know: p(A|B) but we WANT to know: p(B|A) ? if you know p(B), you can do it! (get ready...)
Bayes Theorem
(Reverse Conditional Probability) p(B|A) =
Ex: HIV testing A=test positive B=person truly has HIV Tests Hit Rate: p(A|B)=.95 Tests Correct Rejection Rate: p(A|B)=.95 But: say someone gets a positive test result... false positive rate? say base rate of HIV: p(B)=.005 calculate false positive rate: p(B|A)=...
The Plan
I plan to cover material related to these topics. Specifically, well Review all the formulas well need. Go over one conceptual example in depth. Work through a number of the problems that have been giving you trouble. Address any specific questions/problems.
Formula s:
Event Probability
A
Not A A or B
(or both)
Terms/Explanation
probability of A is between 0 and 1
Compliment: Note that the probability of either getting A or not getting A sums to 1.
p(A) [0,1]
p(A) = 1 - p (A)
p(AB) = p(A) + p(B)-p(AB) Union: =p(A) + p(B) if A & B are mutually exclusive p(AB) = p(A)p(B) = p(A|B)p(B) P(A|B) = p(AB)/p(B)
Intersection: only if A and B are independent Conditional Probability: The probability of event A given that you already have event B.
A&B
A given B
p(B)
Or if we dont have p(B) we can use the more complicated variation of Bayes:
p(A|B) =
The reason those two formulas are the same has to do with the
Terms/Explanation
probability of A is between 0 and 1 And is the sum of all partitions of A
Compliment: probability of either getting A or not getting A sums to 1.
Not A
A or B
(or both)
p(AB) = p(A) + p(B)-p(AB) Union: only if A & B are mutually =p(A) + p(B) exclusive p(AB) = p(A)p(B) = p(A|B)p(B) = p(B|A)p(A) P(A|B) = p(AB)/p(B) = p(B|A)p(A)/p(B) = p(B|A)p(A)
Intersection: only if A and B are independent
A&B
A given B
Conditional Probability: The probability of event A given that you already have event B.
Shapes Demo
Imagine that we have the following population of shapes: Notice that there are several dimensions that we could use to sort or group these shapes: Shape Color Size We could also calculate the frequency with which each of these groups appears and determine the probability of randomly selecting a shape with a particular dimension from the larger set of shapes. So lets do that
Shapes Demo
Imagine that we have the following population of shapes:
P(R) = 8/24 = 1/3 P(Y) = 8/24 = 1/3 P(B) = 8/24 = 1/3 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P(BIG) = 12/24 = 1/2 P(small) = 12/24 = 1/2
Now that weve figured out the probability of these events, What else can we do?
P(R) = 8/24 = 1/3 P(Y) = 8/24 = 1/3 P(B) = 8/24 = 1/3 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P(BIG) = 12/24 = 1/2 P(small) = 12/24 = 1/2
Now that weve figured out the probability of these events, What else can we do? P(R) = 8/24 = 1/3 Lots of stuff! Whats the probability of getting a blue triangle?
P(Y) = 8/24 = 1/3 P(B) = 8/24 = 1/3 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P(BIG) = 12/24 = 1/2 P(small) = 12/24 = 1/2
Now that weve figured out the probability of these events, What else can we do? P(R) = 8/24 = 1/3 Lots of stuff! What else? p( ) = p(B ) = 1/12
p(
or B or ) = p(B )
= p(B )+p( )- p(B ) = 8/24 +6/24 - 1/12 =12/24 =1/2
P(Y) = 8/24 = 1/3 P(B) = 8/24 = 1/3 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P(BIG) = 12/24 = 1/2 P(small) = 12/24 = 1/2
Now that weve figured out the probability of these events, What else can we do? P(R) = 8/24 = 1/3 Lots of stuff!
What else? p( ) = p(B ) = 1/12 p( or B or ) = p(B )=1/2 p( given that we have B) = p( |B) = p(B ) /p(B) = 2/24 / 8/24 = 2/8
= 1/4
P(Y) = 8/24 = 1/3 P(B) = 8/24 = 1/3 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P( ) = 6/24 = 1/4 P(BIG) = 12/24 = 1/2 P(small) = 12/24 = 1/2
Set Theory
Set Compliment A = 1 - A Subsets
Proper Subset (all objects in subset are not only objects in set) C A Subset (all objects in subset could be only objects in set C A
1 3 3
1 1 3
3 7
3 3
Multiplication Principle
(a.k.a. Fundamental Counting Principle)
For 2 independent phenomenon, how many different ways are there for them to happen together?
# possible joint outcomes?
Simply multiply the # possible outcomes for the two individual phenomena Example: flip coin & roll die 2*6=12
Multiplication Principle
(a.k.a. Fundamental Counting Principle)
Can be used with Permutations &/or Combinations Ex: Lunch at the Racetrack
7 horses racing 7 items on the cafe menu I see the results of the race (1st, 2nd, 3rd) and order a 3-item combo plate. How many different ways can this happen?
Calculating Probabilities
Counting rules (Permutation, Combination, Multiplication):
Define sample space (# possible outcomes)
Probability of an event?
event: subset of sample space made of 1 or more possible outcomes
Calculating Probabilities
Sample Space:
7 Micro Machines (3 yellow, 4 red)
Outcome:
draw the yellow corvette Probability = 1/7
Event:
draw any yellow car there are 3 outcomes that could satisfy this event: yellow corvetter, yellow pickup, yellow taxi Probability = 3/7
Divide
Recap
Today:
Probability is the tool well use to make inferences about a population, from a sample Counting rules: define sample space for simple phenomena Intro to calculating probability
Next time:
Probability rules, more about events, Venn diagrams