Professional Documents
Culture Documents
V - Intro. To Probability
V - Intro. To Probability
PROBABILITY
Lecture outline
•Definition
•Types of events
•Basic probability rules
•Conditional probability
Probability
• Chance of observing a particular outcome
• Likelihood of an event
Probability of an Event E
• Is a number between 0 and 1 representing the proportion of
times that event E is expected to happen when the
experiment is done over and over again under the same
conditions.
Sample space: is the set of all possible
outcomes of an experiment.
E.g. the sample space for tossing a fair
coin is (H, T).
- All 6 faces of a die.
- All 52 cards of a bridge deck.
Classical Probability
• Is based on gambling ideas
• Rolling a die -
• – There are 6 possible outcomes:
• – Total ways = {1, 2, 3, 4, 5, 6}.
• Each event is equally likely to occur
• – P(i) = 1/6, i=1,2,...,6.
• P(1) = 1/6
• P(2) = 1/6
• …….
• P(6) = 1/6
• SUM = 1
• Definition: If an event can occur in N mutually
exclusive and equally likely ways, and if m of
these posses a characteristic, E, the probability of
the occurrence of E = m/N.
• P(E)= the probability of E = m/N
• If we toss a coin, what is the probability of Head
coming up?
• m = 1 (which is head) and N = 2
• The probability of head coming up is 1/2.
Relative Frequency Probability
• In the long run process …..
• The proportion of times the event A occurs — in a large
number of trials repeated under essentially identical
conditions
• Definition: If a process is repeated a large number of
times (n), and if an event with the characteristic E
occurs m times, the relative frequency of E,
• Probability of E = P(E) = m/n.
Example
• If you toss a coin 100 times and head comes up 40
times,
• P(H) = 40/100 = 0.4.
And If we toss a coin 10,000 times and the head comes
up 5562 times,
• P(H) = 0.5562.
• Therefore, the longer the series and the longer sample
size, the closer the estimate to the true value (0.5).
Example: Probability of male live births during the
period 1965 - 1974
Time Period No. of Male births No. of live births Probability of
male births
These are empirical probabilities based on a finite amount of data. If the sample
size increased indefinitely, an increasingly more precise estimate (0.5) can be
obtained.
Mutually Exclusive Events
Two events A and B are mutually exclusive if
they cannot both happen at the same time.
P (A ∩ B) = 0
A B
P(A ∩ B)
Union
• The Union of A and B, A U B, is the event that
either A happens or B happens or they both
happen simultaneously
• P ( A or B ) = P ( A U B )
• Here, the union of A and B is the event that the
newborn is either male or has blood group AB,
or both.
Union of events
A B
P(A U B)
Properties of Probability
• 1. The numerical value of a probability always lies
between 0 and 1, inclusive.
0 ≤ P(E) ≤ 1
A value 0 means the event can not occur
A value 1 means the event definitely will
occur
A value of 0.5 means that the probability
that the event will occur is the same as the
Properties…
2. The sum of the probabilities of all mutually
exclusive outcomes is equal to 1.
• P(E₁) + P(E₂ ) + .... + P(En ) = 1.
3. For two mutually exclusive events A and B,
• P(A or B ) = P(AUB)= P(A) + P(B).
• If not mutually exclusive:
• P(A or B) = P(A) + P(B) - P(A and B)
Cont’d…
4. The complement of an event A, denoted by Ā ,
is the event that A does not occur
• Consists of all the outcomes in which event A
does NOT occur
• P(Ā) = P(not A) = 1 – P(A)
• Ā occurs only when A does not occur.
Cont’d…
• In the example of Male birth, the
complement of A is the event that the
newborn is Female.
• If the P(A) = 0.48, then:
• P(Ā) = 1 - P(A)
= 1 - 0.48
= 0.52
Basic Probability Rules
1. Addition rule
• If events A and B are mutually exclusive:
• P(A or B) = P(A) + P(B)
• P(A and B) = 0
More generally:
• P(A or B) = P(A) + P(B) - P(A and B)
• P (event A or event B occurs or they both occur)
• If two events E₁ and E₂ are mutually exclusive, then:
So
• P(E1 or E2) = P(E1) + P(E2) –
= P(E1) + P(E2) = 0 if
mutually exclusive P(E1 and E2)
A and B are non mutually exclusive
P(A ∩ B)
P(A) P(B)
≤ 8 years 0.056
9 – 11 yeas 0.159
12 years 0.329
13 – 15 years 0.226
≥ 16 years 0.230
Exercise
What is the probability that a mother has
completed < 12 years of schooling?
What is the probability that a mother has
completed 12 or more years of schooling?
What is the probability that a mother has
completed at least 12 years of education?
Exercise
What is the probability that a mother has
completed < 12 years of schooling? = 0.215
What is the probability that a mother has
completed 12 or more years of schooling? = 0.769
What is the probability that a mother has
completed at least 12 years of education? = 0.769
2. Multiplication rule
•If A and B are independent events, then
•P(A ∩ B) = P(A) × P(B)
More generally (both independent &
dependent),
•P(A ∩ B) = P(A) P(B|A) = P(B) P(A|B)
•P (A and B) denotes the probability that A and
B both occur at the same time.
Conditional Probability
• Refers to the probability of an event, given that
another event is known to have occurred.
• “What happened first is assumed”
• When thinking about conditional probabilities,
think in stages. Think of the two events A and B
occurring chronologically, one after the other, either
in time or space.
Conditional …
•
E.g. Calculating conditional probability of an event
• Example: A study investigating the effect of prolonged exposure to
bright light on retina damage in premature infants.
_ ___________________________________________________________________________ _____________ ______
Bright light 18 3 21
Reduced light 21 18 39
--------------------------------------------------------------------------------------------------------------------------
Total 39 21 60
------------------------------------------------------------------------------------------------------------------------------------------
Cont’d…
•
Cont’d…
•
Cont’d…
•
Test for Independence
Two events A and B are Two events A and B are
independent if: dependent if
P(B|A) ≠ P(B)
• P(B|A) = P(B) or
or
P(A and B) ≠ P(A) • P(B)
P(A and B) = P(A) • P(B)
E.g. Calculating probability of an event
Table 7: Shows the frequency of cocaine use by gender
among adult cocaine users
____________________________________________________________________________ ___________________
1-19 times 32 7 39
20-99 times 18 20 38
more than 100 times 25 9 34
---------------------------------------------------------------------------------------------------------
Total 75 36 111
-------------------------------------------------------------------------------------------------------------------------------
Exercise
1. What is the probability of a person randomly picked
is a male?
2. What is the probability of a person randomly picked
uses cocaine more than 100 times?
3. Given that the selected person is male, what is the
probability of a person randomly picked uses cocaine
more than 100 times?
4. Given that the person has used cocaine less than 100
times, what is the probability of being female?
5. What is the probability of a person randomly picked
Answers
1. What is the probability of a person randomly picked is a
male? P(M) = Males/Total = 75/111 = 0.68
2. What is the probability of a person randomly picked uses
cocaine more than 100 times? 34/111 = 0.31
3. Given that the selected person is male, what is the
probability of a person randomly picked uses cocaine more
than 100 times? 25/75 = 0.32
4. Given that the person has used cocaine less than 100 times,
what is the probability of being female? 27/77 = 0.35
5. What is the probability of a person randomly picked is a
male and uses cocaine more than 100 times? 25/111 =0.23
Reading assignment
Bayes’ Theorem
Application of Bayes’ theorem on diagnostic tests
Thank you!