MIS1122 Probability 2024 Note
MIS1122 Probability 2024 Note
Statistics
Leslie Jayasekara
Senior Professor in Mathematics
Department of Mathematics
Faculty of Science
University of Ruhuna
1 / 68
MIS1122 Introduction to Probability and Statistics
Scheduled Time
▶ Lecture : Wednesday 9.00am - 10.55am
2 / 68
References
3 / 68
What is Statistics?
Statistics
Statistics is the science of collecting, analyzing, presenting,
and interpreting data, as well as of making decisions based on
such analyses.
4 / 68
Type of Statistics
Descriptive Statistics
Descriptive statistics consists of methods for organizing,
displaying, and describing data by using tables, graphs, and
summary measures.
Inferential Statistics
Inferential statistics consists of methods that use sample results
to help make decisions or predictions about a population.
5 / 68
Population and Sample
6 / 68
Population and Sample
Population
The entire collection of individuals or objects about which
information is desired is called the population of interest.
Sample
A portion of the population selected for study is referred to as a
sample.
7 / 68
Random Sample
A sample drawn in such a way that each element of the
population has a chance of being selected is called a random
sample.
8 / 68
Population Versus Sample
without replacement
Sampling without replacement occurs when the selected
element is not replaced in the population.
9 / 68
Census and Sample Survey
10 / 68
Census and Sample Survey
A survey that includes every member of the population is called
a census. The technique of collecting information from a
portion of the population is called a sample survey.
11 / 68
Some Basic Concepts
12 / 68
Variables and Data sets
13 / 68
Variable Classification
Categorical Variable
A categorical variable (also called qualitative variable) is a
variable whose values are classifications or categories.
Numerical Variable
A numerical variable (also called a quantitative variable) is a
variable whose values are numbers obtained from a count or
measurement.
14 / 68
Variable Classification Cont..
Discrete Variable
A variable whose values are countable is called a discrete
variable.
Continuous Variable
A variable that can assume any numerical value over a certain
interval is called a continuous variable
15 / 68
Types of Data
16 / 68
Example
Classify the following as either categorical or numerical. If
numerical, further classify as discrete or continuous.
a. Age of students entering university
b. Education level of a person
c. Number of children in a family
17 / 68
Solution
a. Age is a measurement of time and hence is numerical. It is
continuous variable.
b. Education level is a categorical variable.
c. The number of children is a count and it is a discrete
variable.
18 / 68
Basic Probability Concepts
Introduction
One of the most important goals of statistics is to make
inference about a population from the information contained in
a sample. Once an inference is made, we must measure the
reliability of that inference. This is accomplished with
probability.
19 / 68
Experiment
20 / 68
Sample space
▶ S = {Head, Tail}
▶ S = {Defective, Non-defective}
▶ S = {1, 2, 3, 4, 5, 6}
▶ If the experiment is weighing a person, the sample space
(assuming no one weighs more than 60 kilograms) is
21 / 68
Event
22 / 68
Complement of event A
23 / 68
Intersection of Two Events
Example
Let x be DBP (Diastolic Blood Pressure), A be the event that
x ≥ 90, and B be the event that 75 ≤ x ≤ 100. That is
A = {x ≥ 90} and B = {75 ≤ x ≤ 100}
then
A ∩ B = {90 ≤ x ≤ 100}
24 / 68
Mutually Exclusive Events
Definition
Two events that have no common outcomes are said to be
disjoint or mutually exclusive.
25 / 68
Mutually Exclusive Events
Example
The events A and B are not mutually exclusive, since they both
occur when 90 ≤ x ≤ 100.
26 / 68
Union of the two events
Example
Let A = {x < 90}, and B = {90 ≤ x ≤ 95}, where x=DBP. Then
A ∪ B = {x ≤ 95}
Example
Let A = {x ≥ 90} and B = {75 ≤ x ≤ 100}
then A ∪ B = {x ≥ 75}.
27 / 68
Probability Types
1. Classical method
2. Relative frequency method and
3. Subjective method
28 / 68
Definition of Probability
29 / 68
Example
* If an ordinary die is tossed, there are six possible
outcomes - 1,2,3,4,5 or 6.
These six outcomes are mutually exclusive since two or
more faces cannot be turn up simultaneously.
* If the die is fair, the six outcomes are equally likely.
The probability that an even number will appear when a die is
tossed is 63 or 12 .
30 / 68
Lets consider the following questions.
31 / 68
Relative Frequency Approach to Probability
Definition
The probability of an event E, denoted by P(E) , is defined to
be the value approached by the relative frequency of
occurrence of E in a very long series of trials of a random
experiment. Thus, if the number of trials is quite large,
32 / 68
Relative Frequency Approach to Probability
Example
Tossing a coin. Let H be the event that the coin lands with its
heads side facing up.
33 / 68
Relative Frequency Approach to Probability
34 / 68
Subjective Approach to Probability
Example
A physician assesses the probability of patient’s recovery. This
is a personal judgment based on his feeling about the situation.
So subjective probability is also called Personal Probability.
35 / 68
Axioms of Probability
Whatever the kind of probability involved, the set of
mathematical rules must be satisfied for manipulating and
analyzing probability.
Definition
Suppose S is a sample space associated with an experiment.
To every event A in S ( A is a subset of S) we assign a number,
P(A), called the probability of A, so that the following axioms
hold:
Axiom 1: P(A) ≥ 0.
Axiom 2: P(S)=1.
Axiom 3: If A1 , A2 , A3 , · · · , form a sequence of pairwise
mutually exclusive events in S (that is, Ai ∩ Aj = 0 if i ̸= j), then
36 / 68
The Additive Law of Probability
37 / 68
The Additive Law of Probability
Example
Consider the data given in previous example. suppose a patient
is referred for further lab tests if either A or B makes a positive
diagnosis. What is the probability that a patient will be referred
for further lab tests?
38 / 68
The Additive Law of Probability
Solution
The event that either doctor makes a positve diagnosis can be
represented by {A+ ∪ B + }. We know that
Thus, 19% of all patients will be referred for further lab tests.
39 / 68
The Additive Law of Probability
Example
John is going to graduate by the end of this year. After being
interviewed at two companies, he assesses that his probability
of getting an offer from company A is 0.8, and his probability of
getting an offer from company B is 0.6. If he believes that the
probability that he will get offers from both companies is 0.5,
what is the probability that he will get at least one offer from
these two companies?
40 / 68
The Additive Law of Probability
Example
Using the additive rule, we have
41 / 68
The Additive Law of Probability
42 / 68
Complement Law
P(A′ ) = 1 − P(A)
43 / 68
Complement Law
Example
Let A = {x < 90} and C = {x ≥ 90}
then, C = A′ , since C can only occur when A does not occur.
44 / 68
Independent Events
Definition
Two events A and B are referred to as independent events if
45 / 68
Independent Events
Example
Suppose two doctors, A and B, diagnose all patients coming
into their clinic for a certain disease. let the events
A+ = {Dr. A makes a positive diagnosis},
B + = {Dr. B makes a positive diagnosis}.
Suppose that Dr. A diagnoses 10% of all patients as positive,
Dr. B diagnose 17% of all patients as positive, and both doctors
diagnose 8% of all patients as positive. Are the events A+
and B + independent?
46 / 68
Independent Events
Solution
We are given that
Thus
47 / 68
Example
Example
Suppose that a desktop computer system consists of a monitor,
a mouse, a keyboard, the computer processor itself, and
storage devices such as disk drive. Purchasers of new
computer systems are advised to run their computer on as
soon as they are purchased and then to let them run for a few
hours to see if any problem crop up.
Let
E1 = event that a newly purchased monitor operates properly
E2 = event that a newly purchased mouse operates properly
E3 = event that a newly purchased disk drive operates properly
E4 = event that a newly purchased computer processor operates p
48 / 68
Example
The probability that all these components operate properly is
then
49 / 68
Example
The probability that all components except the monitor will run
properly is
50 / 68
Example
A group of executives is classified according to the status of
body weight and incidence of hypertension. The proportions in
the various categories appear in the following table.
51 / 68
Solution
Let A denote the event that a person is hypertensive, and let B
denote the event that a person is overweight.
20
(a) P(A) = 100 = 0.2
10
(b) 25 = 0.4
This probability is denoted as P(A|B). It is called
conditional probability of A given B
52 / 68
Conditional Probability
Definition
The conditional probability of an event A given that an event B
has occurred, is equal to
P(A ∩ B)
P(A|B) =
P(B)
53 / 68
Example
Suppose that a balanced die is tossed once. Find the
probability of a 1, given that an odd number was obtained.
Solution
A: observe a 1.
B: observe an odd number.
P(A) =1/6
P(B)=1/2
P(A ∩ B) = P(A) = 1/6
P(A ∩ B) 1/6 1
P(A|B) = = =
P(B) 1/2 3
54 / 68
Exercise
Is ultrasound a reliable method for determining the gender of an
unborn baby? The following data on 1000 births are consistent
with summary values that appeared in the online version of the
Journal of Statistics Education.
Ultrasound Ultrasound
Predicted Predicted
Female Male
Actual Gender is
Female 432 48
Actual Gender is
Male 130 390
55 / 68
Exercise
(a) Use the given information to estimate the probability that a
newborn baby is female, given that the ultrasound
predicted the baby would be female.
(b) Use the given information to estimate the probability that a
newborn baby is male, given that the ultrasound predicted
the baby would be male.
(c) Based on your answers to Parts (a) and (b), do you think
ultrasound is equally reliable for predicting gender for boys
and for girls? Explain.
56 / 68
The Multiplicative Law of Probability
P(A ∩ B) = P(A)P(B|A)
= P(B)P(A|B)
P(A ∩ B) = P(A)P(B).
57 / 68
Extended Multiplicative Law
P(A ∩ B ∩ C) = P[(A ∩ B) ∩ C]
= P(A ∩ B)P(C|A ∩ B)
= P(A)P(B|A)P(C|A ∩ B).
58 / 68
The Additive Law of Probability
59 / 68
The Law of Total Probability
Definition (Partition)
For some positive integer k, let sets B1 , B2 , · · · , Bk be such that
1. S = B1 ∪ B2 ∪ · · · ∪ Bk
2. Bi ∩ Bj = ϕ for i ̸= j.
Then the collection of sets {B1 , B2 , · · · , Bk } is said to be a
partition of S.
60 / 68
The Law of Total Probability
Theorem
Assume that {B1 , B2 , · · · , Bk } is a partition of S such that
P(Bi ) > 0 for i = 1, 2, · · · , k. Then for any event A
k
X
P(A) = P(A|Bi )P(Bi ).
i=1
61 / 68
Proof.
Any subset A of S can be written as
A = A∩S
= A ∩ (B1 ∪ B2 ∪ · · · ∪ Bk )
= (A ∩ B1 ) ∪ (A ∩ B2 ) ∪ · · · ∪ (A ∩ Bk ).
(A ∩ Bi ) ∩ (A ∩ Bj ) = A ∩ (Bi ∩ Bj ) = A ∩ ϕ = ϕ
63 / 68
Solution
If A is the event that the construction job will be completed on
time and B is the event that there will be a strike.
P(B)=0.6 P(A|B ′ ) = 0.85 P(A|B) = 0.35
64 / 68
Theorem (Bayes’ Rule)
Assume that {B1 , B2 , · · · , Bk } is a partition of S such that
P(Bi ) > 0 for i = 1, 2, · · · , k. Then
P(A|Bj )P(Bj )
P(Bj |A) = Pk .
i=1 P(A|Bi )P(Bi )
65 / 68
Proof.
The proof follows directly from the definition of conditional
probability and the law of total probability.
66 / 68
Example
Consider a test for an illness. The test has a known reliability:
1. when it is applied to an ill person, the test will indicate so
with probability 0.92.
2. when it is applied to a person who is not ill, the test will
erroneously give a positive result with probability 0.04.
Suppose that the illness is rare and is known to affect only
0.1% of the entire population. If a person is randomly selected
from the entire population and is given the test and the result is
positive, what is the probability that the person is ill?
67 / 68
Solution
Let Z denote the event that the test result is positive and I the
event that the person tasted is ill.
P(I)=0.001 P(I) = 0.999
P(Z |I) = 0.92 P(Z |I) = 0.04
P(Z |I)P(I)
P(I|Z ) =
P(Z |I)P(I) + P(Z |I)P(I)
(0.92)(0.001)
=
(0.92)(0.001) + (0.04)(0.999)
= 0.0225
68 / 68