Professional Documents
Culture Documents
Email: guofeng.zhang@polyu.edu.hk
Office: TU832
Telephone: 2766 6936
Student Consultation Hours: Tue. 13:00–15:00
1 / 49
Outline
2 / 49
Why Probability and Statistics
3 / 49
Example 1. Insurance industry
4 / 49
Example 2. Google, Facebook, Amazon, and etc
5 / 49
Example 3. Statistical arbitrage and high frequency trading
6 / 49
The age of Big Data is coming!
7 / 49
Experiments
Definition (10.1.1)
An experiment is defined to be any process which randomly generates
outcomes.
Experiment Outcomes
Toss a coin Head, Tail
Roll a die 1,2,3,4,5,6
Play a football game win, lose, tie
8 / 49
Sample space
Definition (10.1.3)
Given an experiment, the sample space S is defined as the set of all the
possible outcomes. Any particular outcome is referred to as a sample
and is an element of the sample space S.
Definition (10.2.1)
Given an experiment, an event is a collection of one or more of the
possible outcomes, namely, a subset of the sample space S.
9 / 49
Example: Rolling a die
10 / 49
Example
An experiment consists of flipping a coin three times and each time
noting whether it lands head or tail.
(a). What is the sample space of this experiment?
(b). What is the event that tails occur more often than heads?
Solution:
11 / 49
The precise definition of Probability
Definition (10.3.1)
Probability is a numerical measure of the likelihood that a specific
event occurs in an experiment.
13 / 49
Example
Find the probability of obtaining an even number in one roll of a fair
die.
Solution:
6 outcomes: 1, 2, 3, 4, 5, 6 (which occur equally likely)
Let A be the event that an even number is observed on the die. So
A = {2, 4, 6}, and whose probability is
3 1
P (A) = = .
6 2
14 / 49
2. “Relative Frequency Concept of Probability”.
Relative Frequency as an Approximation of Probability
If an experiment is repeated n times and an event A is observed f
times, then the relative frequency is used to approximate the
probability, i.e.,
f
P (A) ≈ .
n
15 / 49
Example
10 of the 500 randomly selected cars manufactured at a certain auto
factory are found to be defective.
Assuming that the defective cars are manufactured randomly, what is
the probability that the next car manufactured at this auto factory is
defective?
Solution:
16 / 49
Law of Large Numbers
freqA → P (A) as N → ∞.
17 / 49
3. “Subjective Probability”. Many times we face experiments that
neither have equally likely outcomes nor can be repeated to generate
data.
Consider the following probabilities of events.
The probability that Carol, who is taking AMA1110 this semester,
will get an A in this subject.
The probability that the Hang Seng Index will be higher than
26345 at the end of the next trading day.
The probability that the Manchester City will win the English
Premier League in this season.
18 / 49
Definition (Subjective probability)
Subjective probability is the probability assigned to an event based on
subjective judgment, experience, information, and belief.
19 / 49
§10.5 Counting Rules
Multiplicative Rule
Permutations Rule
Combinations Rule
20 / 49
§10.5.1 Multiplicative Rule
Multiplicative Rule
Let there be k tasks to be done. Assume that one has n1 different ways
to finish the first task, n2 different ways to accomplish the second task,
n3 different ways to execute the third task, etc.. Then he has in total
n1 × n2 × · · · × nk
21 / 49
Example
Suppose that you have 20 candidates to fill 3 different executive
positions, E1 , E2 and E3 . How many different ways could you fill the
positions? (It is generally agreed that each candidate can assume at
most one position.)
Solution.
1 The number of candidates available to fill position E1 : n1 = 20.
2 The number of candidates remaining (after filling E1 ) that are
available to fill E2 : n2 = 19.
3 The number of candidates remaining (after filling E1 and E2 ) that
are available to fill E3 : n3 = 18.
The number of different ways to fill the three positions is
20 × 19 × 18 = 6840.
22 / 49
§10.5.2 Permutations Rule
Definition (10.5.3)
A permutation of a set of distinctive objects, is any arrangement of
these objects in a definite order.
Example
If S = {a, b, c}, then
abc, acb, bca, bac, cab, cba
Factorial
n! = n(n − 1)(n − 2) · · · 3 · 2 · 1.
Specially, we define 0! = 1.
23 / 49
By the Multiplicative Rule, we have
• The number of permutations of n distinct elements is n!.
• The number of permutations of “taking r from n distinct objects”,
where 1 ≤ r ≤ n, is
n!
n(n − 1)(n − 2) · · · (n − (r − 1)) = ,
(n − r)!
which is denoted by n Pr .
24 / 49
Example
A company has 8 applicants to fill 6 different jobs. In how many
different ways can the jobs be filled? (It is assumed that each applicant
can take at most one job.)
Solution.
25 / 49
Example
Suppose that two letters are to be selected from A, B, C, and D and
after selection they are arranged in order. (It is assumed that each letter
can only be selected at most once.)
(a). How many permutations are possible?
(b). What is the probability that the selection will contain letter “A”?
Solution.
26 / 49
§10.5.3 Combination Rule
Definition (10.5.6)
A combination of a set of objects is a subset of the objects
disregarding their order. Thus, the number of combinations of “taking
r from n distinct objects” is
n n Pr n!
n Cr , or , = .
r P
r r r!(n − r)!
27 / 49
Example
To select 3 letters from {A, B, C, D, E}, one has 5 P3 = 5!
2! = 60
permutations; within these permutations, each group of 3 letters
appears EXACTLY 3 P3 = 3! = 6 times.
ABC ABD ABE ACD ACE ADE BCD BCE BDE CDE
ACB ADB AEB ADC AEC AED BDC BEC BED CED
CAB BDA BEA CDA CEA DEA CDB CEB DEB DEC
CBA BAD BAE CAD CAE DAE CBD CBE DBE DCE
BAC DAB EAB DAC EAC EAD DBC EBC EBD ECD
BCA DBA EBA DCA ECA EDA DCB ECB EDB EDC
5 P3 5! 1 5!
5 C3 = = × =
3 P3 (5 − 3)! 3! (5 − 3)!3!
28 / 49
Example (Semester 2, 2017-2018, 3(a))
A committee consists of 3 administrators, 3 engineers and 5 foremen.
A subcommittee of 6 members is to be chosen randomly.
(i) What is the probability that there will be 1 administrator,
3 engineers and 2 foremen on the subcommittee?
(ii) What is the probability that at least one foreman will be
in the subcommittee?
Solution.
29 / 49
§10.5.4 Venn Diagram
30 / 49
A
A typical Venn diagram. Here S (the big square) is the whole sample
space, and A (the shaded disk) is an event, namely a subset of S.
31 / 49
§10.5.5 Basic Probability Laws
Definition (10.5.8)
The Union of two events A and B is the event of all outcomes that are
included in either A or B or both. The union is denoted by A ∪ B.
A B
A∪B
S
The union A ∪ B (shaded) of A and B. Usually the union A ∪ B is
referred to as “A or B”.
32 / 49
Definition
The intersection of two events A and B is the event of all outcomes
that belong to both A and B. The intersection is denoted by A ∩ B.
A B
S A∩B
33 / 49
Example. Suppose we are tossing a die. Let event A be that we get 1
or 2, and event B be that we get even number (i.e. 2, 4, or 6).
Definition (10.5.12)
A collection of events A1 , A2 , . . . , An is said to be collectively
exhaustive if their union is the whole sample space. (Therefore at least
one of them will occur for sure in the experiment).
S = A1 ∪ A2 ∪ · · · ∪ An .
34 / 49
Example. Suppose a student is randomly selected from the Hong Kong
PolyU. Let M be the event that this student is male, and F be the event
that the student is female. Then events M and F are collectively
exhaustive.
35 / 49
Addition Rule
Theorem (10.5.14, Addition Rule)
P (A or B) = P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
A B A B
A∪B
S S A∩B
A B A B
S S
36 / 49
Example
A Burger shop finds that 65% of its customers order French fries, 78%
order soft drink, and 55% order both. What is the probability that a
customer would order at least one of these two items?
Solution.
37 / 49
Example (Semester 1, 2018-2019, 3(a))
A drum contains 3 black balls, 5 red balls and 6 green balls. If 4 balls
are selected at random, what is the probability that the 4 selected balls
contain
(i) Exactly 1 red ball and exactly 2 green balls?
(ii) Either exactly 1 red ball or exactly 2 green balls?
Solution.
38 / 49
Definition (10.5.16)
Two events are said to be mutually exclusive if when one of them
occurs, the other will not occur for sure.
A B
S
Venn diagram: the events A and B are mutually exclusive.
39 / 49
Clearly, if A and B are mutually exclusive, then P (A ∩ B) = 0.
Corollary 10.5.18 (Addition Rule – Mutually Exclusive). If the
events A and B are mutually exclusive then
P (A ∪ B) = P (A) + P (B).
Example
A box contains two white balls, four yellow balls and five red balls. A
ball is selected from the box randomly (in other words, all balls are to
be selected equally likely). What is the probability that the selected ball
is red or yellow?
Solution.
40 / 49
Definition (10.5.20)
The complement of an event A, denoted by A, or Ac , or A0 , is defined
to be the event consisting of all samples that are not in A.
S
Venn diagram: the event A and its complement A. We see that they are
mutually exclusive, and collectively exhaustive, i.e.,
A ∪ A = S, P (A ∩ A) = 0.
41 / 49
Example Suppose a student is randomly selected from the Hong Kong
PolyU. Let M be the event that this student is male, and F be the event
that the student is female. Then events M and F are collectively
exhaustive, and mutually exclusive. Furthermore, we have M = F , and
F = M.
A = {1, 2, 5, 6}.
42 / 49
Theorem (10.5.22)
For any event A,
P (A) = 1 − P (A).
so we have
P (A) = 1 − P (A).
43 / 49
Example. A school is recruiting four teachers. Five men and three
women are competing for the positions (no orders). Suppose each one
of the competitors is equally likely to be chosen. What is the
probability that at least one woman will be selected?
Solution.
44 / 49
Theorem (De Morgan’s laws)
Let A and B be two events, then A ∪ B = A ∩ B and A ∩ B = A ∪ B.
A∩B
A B A B
A∪B
A B A B
45 / 49
Here is another proof of the De Morgan’s laws.
Proof of “A ∪ B = A ∩ B”.
46 / 49
Example
Tom and Jerry work in the same company. Each day Tom has
probability 8% to be absent, Jerry has probability 5% to be absent, and
they together have 2% probability to be absent both. Find the following
probabilities.
a. either or both of them are absent;
Solution.
47 / 49
Example
Tom and Jerry work in the same company. Each day Tom has
probability 8% to be absent, Jerry has probability 5% to be absent, and
they together have 2% probability to be absent both. Find the following
probabilities.
b. either or both of them come to work;
Solution.
48 / 49
Example
Tom and Jerry work in the same company. Each day Tom has
probability 8% to be absent, Jerry has probability 5% to be absent, and
they together have 2% probability to be absent both. Find the following
probabilities.
c. only one of them comes to work.
Solution.
49 / 49