Documente Academic
Documente Profesional
Documente Cultură
I NTRODUCTION TO P ROBABILITY
Professor Alan Woodland
School of Economics
UNSW
Probability Theory
c
School
of Economics, UNSW
1 / 28
I NTRODUCTION TO P ROBABILITY
Probability Theory
c
School
of Economics, UNSW
2 / 28
It is 1941 and the Germans are bombing Moscow. Most people in Moscow flee to
the underground bomb shelters at night, except for a famous Russian statistician
who tells a friend that he is going to sleep in his own bed, saying that There is
only one of me, among five million other people in Moscow. What are the chances
Ill get hit?
He survives the first night, but the next evening he shows up at the shelter. His
friend asks why he has changed his mind. Well, says the statistician, there are
five million people in this city, and one elephant in the Moscow Zoo. Last night,
THEY GOT THE ELEPHANT!
Probability Theory
c
School
of Economics, UNSW
3 / 28
Probability Theory
c
School
of Economics, UNSW
4 / 28
D EFINITION (C LASSICAL )
If there are N equally likely possibilities, of which one must occur and n are
regarded as favorable, or as success, then the probability of a success is given
by the ratio Nn .
Example: A box contains 4 blue balls and 6 red balls. Randomly pick a ball from
the box, what is the probability it is blue?
Caveat: ideal situation with very limited scope
Probability Theory
c
School
of Economics, UNSW
5 / 28
Probability Theory
c
School
of Economics, UNSW
6 / 28
D EFINITION
With every situation (random experiment) with uncertain outcome we associate a
sample space, noted S, which represents the set of all possible outcomes
(described by the characteristics which we are interested in)
Each outcome is an element or sample point of the sample space.
Discrete sample space: contains a finite number of elements, or an infinite but
countable number of outcomes.
Continuous sample space: elements are not countable. Eg. measurements of
physical properties (time,pressure,length..)
Events are associated with subsets of the sample space.
combinations of two or more events are also events
from given observable events we can derive new observable events by
set theoretical operations.
Probability Theory
c
School
of Economics, UNSW
7 / 28
S ET T HEORETICAL O PERATIONS
There are two ways to to denote a set: either by giving a rule, or by listing the
elements. Here are the formal definitions of set theoretic operations. Letters A and
B, etc denote events from the same sample space S, and I is an arbitrary index set. x
stands for an element and x A means that x is an element of A:
1
A B {x : x A x B}: Containment.
A B = {x : x A or x B}: Union.
AC = {x : x
/ A but x S} (Event Complement)
BASIC L AWS
Associative Law: A B = B A and A B = B A
Distributive Law:(A B) C = A (B C) and (A B) C = A (B C)
DeMorgans Law: (A B)C = AC B C and (A B)C = AC B C
Probability Theory
c
School
of Economics, UNSW
8 / 28
P ROOF OF D E M ORGAN S L AW
Probability Theory
c
School
of Economics, UNSW
10 / 28
A XIOMS OF P ROBABILITY
Consider an experiment whose sample space is S and let E be an event in the sample
space S.
Probabilities are values of a set function.
Probability measure: assigns real numbers to the subsets of sample space S.
For each event E of the sample space S, we assume that a number P(E) is defined
and satisfies the following three axioms:
A XIOMS OF P ROBABILITY
1
0 P(E) 1.
P(S) = 1.
P ROPOSITIONS
1
P E C = 1 P (E).
Probability Theory
c
School
of Economics, UNSW
11 / 28
S UM RULE
If a first task can be done in m ways and a second task can be done in n ways, and if
these tasks cannot be done at the same time, then there are n + m ways to do either
task. Example: A library has 10 stat textbooks and 15 biology textbooks. How many
textbooks can a student choose from if he is interested in learning about either stat or
biology?
E XAMPLE
How many textbooks can a student choose from if he is interested in learning about
stat and biology?
M ULTIPLICATION P RINCIPLE
If two successive choices are to be made with n1 ways in the first stage, and n2 ways in
the second stage, then the total number of successive choices is n1 n1 .
Professor Alan Woodland (ECON3209 )
Probability Theory
c
School
of Economics, UNSW
12 / 28
11
21
31
41
51
61
12
22
32
42
52
62
13
23
33
43
53
63
14
24
34
44
54
64
15
25
35
45
55
65
16
26
36
46
56
66
6 6 = 36 possible
outcomes.
11 12 13 14
22 23
A = 21
,
31 32
41
.
P(A) = 10
36
B=
11
21
31
41
51
P(B)
12 13
22 23
32 33
42 43
52 53
= 25
.
36
14
24
34
44
54
15
25
35 ,
45
55
If r successive choices are to be made with exactly nj at each stage j, then the total
number of outcomes is n1 n1 ... nr = rj=1 nj .
E XAMPLE
You throw two dice and you flip two coins. What is the sample space?
Use Tree diagram.
Professor Alan Woodland (ECON3209 )
Probability Theory
c
School
of Economics, UNSW
13 / 28
Probability Theory
c
School
of Economics, UNSW
14 / 28
D EFINITION (P ERMUTATION )
A permutation of a set is its arrangement in a certain order (an ordered arrangement).
The number of permutations is the number of ways a set can be written without
repeating its its elements. From the multiplication principle, the number of permutations
of a set of n elements is n (n 1) (n 2)... 2 1 = n! (n factorial). By definition,
0! = 1.
Probability Theory
c
School
of Economics, UNSW
15 / 28
Probability Theory
c
School
of Economics, UNSW
16 / 28
Probability Theory
c
School
of Economics, UNSW
18 / 28
RULE OF C OMBINATIONS
The number of k -element subsets of an n-element set is :
P
n!
Cn,k = kn,k
= ( kn ) == (nk
. It is pronounced as: n choose k .
!
)!k !
(x + y ) =
n
X
Cn,k x k y nk
k=0
PASCAL T RIANGLE
(00)
(10)
1
1
1
1
1
1
3
4
1
2
1
3
6
10
10
(20)
1
4
3
0
(40)
(50)
Professor Alan Woodland (ECON3209 )
(21)
3
1
()
1
5
(11)
()
(33)
()
(41)
(51)
(22)
3
2
(42)
(52)
(43)
(53)
(44)
(54)
(55)
c
School
of Economics, UNSW
Probability Theory
19 / 28
n
n1 , n2 , ..., nk
n!
.
n1 !n2 !...nk !
n
n1 , n2 , ... nk
x1 1 x2 2 ...xk k =
n!
n
n
n
x1 1 x2 2 ...xk k
n1 !n2 !...nk !
where the summation extends over all possible combinations of nonnegative integers
n1 , n2 , ...nk such that n1 + n2 + ... + nk = n
Probability Theory
c
School
of Economics, UNSW
20 / 28
P(A B)
P(B)
C AUTION :
What is the difference between Independent events and Exclusive events?
Professor Alan Woodland (ECON3209 )
Probability Theory
c
School
of Economics, UNSW
21 / 28
I NDEPENDENCE
E XAMPLE
You have an urn with 5 white and 5 red balls. You take 2 balls without replacement. A is
the event that the first ball is white, and B that the second ball is white.
What is the probability that the first ball is white?
What is the probability that the second ball is white?
Are these two events independent?
Are these two events disjoint?
What is the probability that both balls have the same color?
Probability Theory
c
School
of Economics, UNSW
23 / 28
BAYES T HEOREM
T HEOREM
In its simplest form Bayes theorem reads:
P(A|B) =
P(B A)
P(B|A)P(A) + P(B|AC )P(AC )
P(Bj A)
i=1
Probability Theory
P(A|Bi )P(Bi )
c
School
of Economics, UNSW
24 / 28
BAYES T HEOREM
E XAMPLE
AIDS diagnostic tests are usually over 99.9% accurate on those who do not have AIDS
(i.e.,only 0.1% false positives) , and 100% accurate on those who have AIDS (i.e.,no
false negatives at all). A test is called positive if it indicates that the subject has AIDS.
Assuming that 0.5% of the population actually have AIDS, compute the probability that
a particular individual has AIDS, given that he or she has tested positive.
E XAMPLE (A NSWER )
Advice: Never trust your intuition. Always follow the rule
Let A be the event that the subject has AIDS, and let P be the event that the subject
tested positive. The information given to us is the following:
P(A) = 0.5% = 0.005 P(AC ) = 1 0.005 = 0.995
P(P|A) = 100% = 1
P(P|AC ) = 0.1% = 0.001
We want P(A|P)
P(A|P) =
P(A|P) =
P(P|A)P(A)
P(P|A)P(A)+P(P|AC )P(AC )
10.005
10.005+0.0010.995
5000
5995
= 0.8340.
Probability Theory
c
School
of Economics, UNSW
25 / 28
F UN T IME
Three roommates slept through their midterm statistics exam on Monday morning.
Since they had returned together by car from the same hometown late Sunday
evening, they decided on a great little falsehood. The three met with the instructor
Monday afternoon and told him that an ill-timed flat tyre had delayed their arrival
until noon.The instructor, while somewhat skeptical, agreed to give them a
makeup exam on Tuesday.
When they arrived the instructor issued them the same makeup exam and
ushered each to a different classroom. The first student sat down and noticed
immediately the instructions indicated that the exam would be divided into Parts I
and II weighted 10% and 90% respectively. Thinking nothing of this disparity, he
proceeded to answer the questions in Part I. These he found rather easy and
moved confidently to Part II on the next page. Suddenly his eyes grew large and
his face paled. Part II consisted of one short and pointed question.......
Which tyre was it?
Probability Theory
c
School
of Economics, UNSW
27 / 28
c
School
of Economics, UNSW
28 / 28
F URTHER R EADING
A. DeGroot.
Chapter 1, Chapter 2.
For special note:
Ch.1 Sampling with Replacement.
Ch.1 Sampling without Replacement.
Ch.1 Blood Types, DG pp.34.
Ch.1 Statistical Swindles, DG pp.51.
Ch.2 Clinical Trial.
Ch.2 The Game of Craps.
B. Miller and Miller.
Chapter 1, Chapter 2.
For special note:
Ch. 1 Combinatorial Methods.
Ch. 1 Binomial Coefficients.
Probability Theory