Beruflich Dokumente
Kultur Dokumente
to
Statistics
Dr. P Murphy
Probability
is the
Science of Uncertainty.
It is used by Physicists to
predict the behaviour of
elementary particles.
It is used by engineers to
build computers.
It is used by economists to
predict the behaviour of the
economy.
It is used by stockbrokers
to make money on the
stockmarket.
It is used by psychologists
to determine if you should
What about
Statistics?
Statistics is the Science of
Data.
The Statistics you have
seen before has been
probably been Descriptive
Statistics.
And Descriptive Statistics
made you feel like this .
What is
Inferential Statistics?
It is a discipline that allows
us to estimate unknown
quantities by making some
elementary measurements.
Using these estimates we
can then
make Predictions and
Forecast the Future
Chapter 1
Probability
Consider
a Real Problem
Can
1.1 Experiments
An Experiment leads to a
single outcome which
cannot be predicted with
certainty.
ExamplesToss a coin:
head or tail
Roll a die:
1, 2, 3, 4, 5,
6
Take medicine: worse,
same, better
Set of all outcomes Sample Space.
1.2 Probability
The Probability of an
outcome is a number
between 0 and 1 that
measures the likelihood
that the outcome will
occur when the
experiment is performed.
(0=impossible, 1=certain).
Probabilities of all sample
points must sum to 1.
1.3 Events
An event is a specific
collection of sample
points.
The probability of an
event A is calculated by
summing the probabilities
of the outcomes in the
sample space for A.
the experiment.
List the sample points.
Assign probabilities to the
sample points.
Determine the collection of
sample points contained in
the event of interest.
Sum the sample point
probabilities to get the event
probability.
Example:
THE GAME Of
CRAPS
1.6 Sets
A compound event is a
composition of two or more
other events.
AC: The Complement of A is
the event that A does not
occur
AB : The Union of two
events A and B is the event
that occurs if either A or B
or both occur, it consists of
all sample points that
belong to A or B or both.
AB: The Intersection of
1.7 Basic
Probability Rules
P(Ac)=1-P(A)
P(AB)=P(A)+P(B)-P(AB)
Mutually Exclusive Events are
events which cannot occur at
the same time.
P(AB)=0 for Mutually
Exclusive Events.
1.8 Conditional
Probability
P(A | B) ~ Probability of A
occuring given that B has
occurred.
P(A | B) = P(AB) / P(B)
Multiplicative Rule:
P(AB)
= P(A|B)P(B)
= P(B|A)P(A)
1.9 Independent
Events
A and B are independent events
if the occurrence of one event
does not affect the probability
of the othe event.
If A and B are independent then
P(A|B)=P(A)
P(B|A)=P(B)
P(AB)=P(A)P(B)
Chapter 1
Probability
EXAMPLES
Probability as
a matter of
life and death
C
P ({T D} {T D})
P (T | D ) P ( D )
P (T D ) P (T D C )
P(T | D ) P ( D )
C
C
P (T | D ) P ( D ) P (T | D ) P( D )
(0.95)(0.0001)
(0.95)(0.0001) (0.05)(0.9999)
0.001897
Chapter 1
Examples
Example 1.1
S={A,B,C}
P(A) =
P(B) = 1/3
P(C) = 1/6
What is P({A,B})?
What is P({A,B,C})?
List all events Q such that
P(Q) = .
Chapter 1
Examples
Example 1.2
Suppose that a lecturer arrives
late to class 10% of the time,
leaves early 20% of the time
and both arrives late AND
leaves early 5% of the time.
On a given day what is the
probability that on a given day
that lecturer will either arrive
late or leave early?
Chapter 1
Examples
Example 1.3
Suppose you are dealt 5 cards
from a deck of 52 playing cards.
Find the probability of the
following events
1. All four aces and the king of
spades
2. All 5 cards are spades
3. All 5 cards are different
4. A Full House (3 same, 2
same)
Chapter 1
Examples
Example 1.4
The Birthday Problem
Suppose there are N people in a
room.
How large should N be so that
there is a more than 50% chance
that at least two people in the
room have the same birthday?
Chapter 1
Examples
Example 1.4
Children are born equally likely
as Boys or Girls
My brother has two children
(not twins)
One of his children is a boy
named Luke
What is the probability that his
other child is a girl?
Example 1.5
The Monty Hall Problem
Game Show
3 doors
1 Car & 2 Goats
You pick a door - e.g. #1
Host knows whats behind all
the doors and he opens another
door, say #3, and shows you a
goat
He then asks if you want to
stick with your original choice
#1, or change to door #2?
Ask Marilyn.
Parade Magazine Sept 9 1990
Whos right?
{ C GG, GC G, GG C }
Not convinced?
Imagine a game with 100 doors.
1 F430 Ferrari, 99 Goats.
You pick a door.
Host opens 98 of the 99 other
doors.
Do you stick with your original
choice? Prob = 1/100
Or move to the unopened door.
Prob = 99/100
Boys, Girls
and Monty Hall
Sample Space ( listing oldest child
first)
{GG, BG, GB, BB}
Equally likely events
Odd Socks
EXAMS
Campus
Female
Male
Pass Rate Pass Rate
Belfield
40%
33%
ET/
75%
Carysfort
etc.
71%
EXAM
Pass Rates
Overall Female pass rate
is 56%
Overall Male pass rate is
60%
HOW
CAN
THIS
BE?
Campus Female
Male
Pass Rate
Pass are
Rate LYING
Clearly UCD
!
Belfield
40%
33%
ET/
75%
Carysfort
etc.
71%
Simpsons
Paradox
Overall Female pass rate
is 56%
Overall Male pass rate is
Campus
Female
Male
60%
Pass Rate Pass Rate
Belfield
40%
= 20/50
33%
= 10/30
ET/
30/40
Carysfort =75%
etc.
50/90
= 56%
50/70
= 71%
60/100
=60%
DNA
You are holiday in Belfast
and an explosion destroys
the Odessey arena.
You are seen running from
the explosion and are
arrested.
You are subsequently
charged with being a
member of a prescribed
paramilitary organisation
and with causing the
explosion.
In court you protest your
DNA
Their forensic scientist
delivers the following vital
evidence.
The forensic scientist
indicates that DNA found
on the bomb matches
your DNA.
Your lawyer at first
disputes this evidence and
hires an independent
scientist.
However the second
forensic scientist also says
DNA
The National
Lottery
6
5
1 in 5,245,786
1 in 24,286
1 in 555
LOTTO 6/42
2 Years, 6 Weeks
Match 4
2 Years, 8 Months
Match 5
Share in Jackpot
25,220 Years
Tossing a coin!
Tossing a coin!
Law of Averages:
As N increases the chances that
there are equal numbers of heads
and tails among the 2N tosses
increases.
Lim N-> P( #H = #T ) = 1.
In the limit as N tends to infinity
the probability of matching
numbers of heads and tails
approaches 1.
Rosencrantz
and
Guildenstern
are Dead
Prob of equal
numbers of H and T
# of
2 4
tosses
Prob
3/8
5/16
35/128 63/256
10
0.246