Stat276 - Chapter 3
Stat276 - Chapter 3
Page 1 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Note: Most of the experiments that we conducted to verify science law is an example of
deterministic experiment.
B- Non-deterministic experiment: this is an experiment for which the outcome of a given trial
cannot predict in advance prior to its conduct. We also call this experiment an unpredictable
or probabilistic or stochastic or Random Experiment. Usually the result of this experiment is
subjected to chance and is possible more than one. In this experiment, whatever the condition
under which an experiment is performed one cannot tell with certainty which outcome occur
at any particular execution of an experiment but we can list those outcomes.
This types of experiments are characterized by the following three properties:
I. The experiment is repeatable under identical conditions.
II. The outcome in any particular trial is variable; dependent on some chance or random
mechanism.
III. If the experiment is repeated a large number of times, then some regularity becomes
apparent in the outcome obtained and the mathematical form of equations to be defined
on those experiment to handle those outcome regularity is called a Non-deterministic
model.
Definition: Non-deterministic model is a model in which a chance plays an important role on the
outcome of an experiment.
Example: The experiment of tossing a coin: there are two possible outcomes i.e. getting a Head
or Tail. Though we know the possible outcomes, we cannot for sure predict that we can get a tail
if we throw the coin in a particular manner and so on.
Note: the quantitative measure of a certainty regarding one or more outcomes of a random
experiment is called a Probability.
c) Yi=AXi+ei where ei is the error term (or random component) associated with the ith
observat ion.
1.2. Review of set theory: sets, union, intersection, complementation, De-Morgan’s rules
Page 2 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
An object that belongs to a particular set is called an element. Sets are usually denoted by capita l
letters (A, B, C etc). On the other hand, elements of sets are usually denoted by small letters (a,
b, c etc).
Examples: The set of students in a class; the set of even numbers; the set of possible outcomes
of an experiment; etc.
Note: If X belo ngs to set A we write X A, and if X does not belong to set A we write X A
Universal set (U): Universal set is the co llect ion of all objects under considerat ion. Universal set
for a given discussio n is fixed and pre-determined.
Example: * The set of real numbers can be seen to be universal set of numbers.
* Consider an experiment of ro lling a balanced die. Then, the set of all possible
outcomes of this experiment can be considered as the universal set. U={1,2,3,4,5,6}
Example: In the experiment of tossing two dice at the same t ime, define A to be a set whose
elements are pairs of outcomes fro m the two dice with sum greater than 20. Obviously, the set A
is empt y set because the maximum possible sum is 12, which is attained when both the outcomes
are 6.
1. 2. 1 Set operations
One can ident ify three basic set operations. These are:
/ c
a. Complement: For any set A, the complement of A denoted by A/, or Ac or Ā is given by
X U/ XA
Page 3 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Note: U/ = ; / = U ; ( A/ )/ = A
b. Union: Given two sets A and B, the unio n o f A and B denoted by A B is the set of all
elements, which belong to set A or B, or both.
AB = X: X A X B ; here the logical connect ive (OR) is used in its inclusive sense.
n
A1 A2 … An = A
i 1
i { X U : X Ai for at least one i between 1 and n}
c. Intersection: For any two sets A and B the intersection of A and B is defined to be the set of
all elements that occur in both set A and also set B. Symbo lically, we write
A B = X U / X A XB
n
A1 A2 … An = Ai { X U : X Ai for all i between 1 and n}
i 1
Sets with no intersection are called disjo int sets. A and B are disjo int if A B = .
I. Commutative law
i) A B = B A, and
ii) A B = B A
i) A (B C) = (A B) C, and
ii) A (B C) = (A B) C
i) A (B C) = (A B) (A C),
Page 4 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
More generally,
n n
A B i A
B i , and
i1 i1
n n
A B i A Bi
i1 i1
More generally,
' '
n n
n n
Ai Ai , and Ai Ai
' '
i 1 i 1 i 1 i 1
Introduction
Perhaps the concept of sample space and events may be considered as the corner stones for the
who le discussio n in probabilit y. The concept of probabilit y can never be addressed without
furnishing the idea of sample space and events. The good news is that one can easily grasp the
concept of sample space and events provided there is a clear understanding o f universal set and
subsets, which are elementary concepts in set theory. We have a perfect analogy. The concepts of
universal set and subsets in the theory o f sets directly correspond, respectively, to the concepts
sample space and events when it comes to the theory of probabilit y.
1. Random Experiment: It is an experiment that can be repeated any number of times under
similar condit io ns and it is possible to enumerate the total number o f outcomes wit h out
predict ing an individual out come. Rando m experiments are associated with probabilit y
models. As the experiment is repeated a large number of time a certain patterns appear.
Some features of a random experiment
Each experiment is capable of being repeated indefinitely under essentially unchanged
condit ions,
Page 5 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Alt hough we are, in general, unable to determine which possible outcome will result in a
single trial o f the experiment, we are able to describe the set of all possible outcomes.
As the experiment is repeated a large number of times a definite pattern or regularit y is
expected to appear. From this regularit y we can construct a precise mathemat ical model.
i) For the experiment of flipping a co in the possible outcomes are eit her Head (H) or
Tail (T). Hence, the sample space will be S = H, T
ii) For the experiment of rolling a die the possible outcomes are the six sides of the die
that are numbered fro m 1 to 6. Thus, the sample space will be S= 1,2,3,4,5,6
iii) Toss a coin twice and observe the face up. The sample space of this experiment is S
= HH, HT, TH, TT . What would be the sample space if you were to toss three
times?
iv) For the experiment of drawing a card fro m a deck of cards the fo llowing sets can be
possible sample spaces.
S={Heart, Spider, Diamo nd, Flower}
As the last case of the above example indicates it is possible to have more than one sample space
for a given rando m experiment. Hence, we can state the fo llowing remark.
Countably infinite sample space: if there is a one-to-one mapping between the elements
of S and the natural numbers;
S={0, 1, 2, 3, …}
S={ … -3, -2, -1, 0, 1, 2, 3, …}
S={p: p is prime} = {2, 3, 5, 7, 11, 13, 17, …}
S={1/r: r is a positive natural number} = {1/2, 1/3, 1/4, 1/5, … }
Page 6 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Uncountable sample space: if there are an infinite number of elements in S and there is
not a one-to-one mapping between the elements and the natural numbers.
S=(0, ∞)
S=(–∞, ∞)
S={(x, y): 0≤ x≤ 1; y>0}
Examples:
In the experiment of flipping a die we can define an event E1=Heads shows up={H}
In the experiment of rolling a die we can define an event C2=The number is odd 1,3,5
In tossing a co in twice we can define an event D1=At least one head occurs= HH, TT,
TH
Note:
If S has n members, then there are exactly 2n subsets or events.
Recall that any set is the subset of itself. Accordingly, the sample space S by itself is an
event called a sure event or certain event.
An event occurs if any one of its elements turns out to be the outcome of the experiment.
Empty set () is called an impossible event.
Any event which consists of a single outcome in the sample space is called an
elementary or simple event whereas events which consist of more than one outcome are
called compound events.
4. Mutually Exclusive events: Two events A and B are said to be mutually exclusive if they
cannot occur simultaneously (together) or A B =
5. Independent Events: Two events are said to be independent if the occurrence of one does
not affect probability of the other occurring.
6. Dependent Events: Two events are dependent if the first event affects the outcome or
occurrence of the second event in a way the probability is changed.
7. Combination of events
A A/ = S ′
A A/=
Page 8 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
d) Male who is eit her under 30 or speaks foreign language but not both.
A [(B C/) (B/ C)]
Exercise 2: Let A, B and C be three events associated wit h an experiment. Describe the
fo llo wing in symbo ls.
a) AUBUC b) B A C c) ( A B C ) ( B A C ) (C B A)
d) ( A B C ) ( B A C ) (C B A)
e) (( A B ) C ) ( A C ) B ) (C B ) A))
f) ( A B C )
Page 9 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
where
n(E) = Number of outcomes of event E
n(E1) = Number of outcomes of event E1
n(E2) = Number of outcomes of event E2
In general, if there are K procedures and the procedure can be performed in ways, =
1, 2, … . , , then the number of ways in which we may perform procedure 1 or 2 or….. or
procedure k is given by + + ⋯.+ =∑ , assuming no procedures may be
performed together.
Example 1: Suppose that we are planning a trip and deciding between bus and train
transportation. If there are three bus routes and two train routes. How many different routes are
available for the trip?
Solution: Let A= {an event for bus transportation}, B= {an event for train transportation}.
Then, we have = 3 and = 2; assuming that we are going to use only one route, by the
addition rule we have + = 3 + 2 = 5 different possible routes are available for the trip.
Example 2: Consider a set of numbers S = {-4, -2, 1, 3, 5, 6, 7, 8, 9, 10}
Let the events E1, E2 and E3 be defined as:
E = choosing a negative or an odd number from S;
E1= choosing a negative number from S;
E2 = choosing an odd number from S.
Find n(E).
Solution:
E1 and E2 are mutually exclusive events (i.e. no common outcomes).
n(E) = n(E1) + n(E2)
=2+5
=7
Example 2
In how many ways can a number be chosen from 1 to 22 such that it is a multiple of 3 or 8?
Solution:
Here, E1 = multiples of 3:
E1 = {3, 6, 9,12, 15, 18, 21}
n(E1) = 7
Page 10 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
E2 = multiples of 8:
E2 = {8, 16}
n(E2) = 2
Events E1 and E2 are mutually exclusive.
n(E) = n(E1) + n(E2) = 7 + 2 = 9
II. The Multiplication Rule
If there are K procedures and the procedure can be performed in ways, = 1, 2, … . , , then
the procedure consisting of procedure 1 followed by procedure 2,…, followed by procedure k
may be performed in ∗ ∗ …∗ =∏ ways.
Example 1: Suppose that there are three different types of meal for lunch and four different
types of soft drinks. How many choices of meal and soft drinks can be made?
Solution: = 3 = 4 hence ∗ = 3 ∗ 4 = 12 different choices of meal and soft
drinks can be made.
Example 2: How many two digit numerals can be written by choosing the ten’s digit from
A={1,3,5,7,9} and the units digit from B= {2,4,6,8}
Solution: The Selection Consists of two steps where the 1st can be made in 5 different ways for
the ten’s digits and for each of these the 2nd can be made in 4 different ways for the units digit,
Hence the whole selection one after the other can be made in 5 x 4 different ways. i.e. there are
20 two digit numerals
i.e. = 5 and =4
Example 3: The digits 0, 1, 2, 3, and 4 are to be used in 4 digit identification card. How many
different cards are possible if
a) Repetitions are permitted.
b) Repetitions are not permitted.
Solution:
a) There are four steps
1st digit 2nd digit 3rd digit 4th digit
5 5 5 5
1. Selecting the 1st digit, this can be made in 5 ways.
2. Selecting the 2nd digit, this can be made in 5 ways.
3. Selecting the 3rd digit, this can be made in 5 ways.
Page 11 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
III. Permutation
An arrangement of n objects in a specified order is called permutation of the objects.
Permutation Rules:
1. The number of permutations of distinct objects taken all together is n!
Where ! = ∗ ( − 1) ∗ ( − 2) ∗, … ,∗ 2 ∗ 1. Note that: 0! = 1
2. The arrangement of objects in a specified order using objects at a time is called the
Page 12 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Combination Rule
The number of combinations of r objects selected from n objects is denoted by nСr or and is
given by the formula:
!
=
( − )! ∗ !
Example 1: In how many ways can a committee of 5 people be chosen out of 9 people?
Ans: 126 ways
Page 13 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Example 2: Among 15 clocks there are two defectives .In how many ways can an inspector
chose three of the clocks for inspection so that:
a) There is no restriction.
b) None of the defective clock is included.
c) Only one of the defective clocks is included.
d) Two of the defective clock is included.
Ans: 455, 286, 156, and 13 ways, respectively.
Example 3: A delegation of four students is selected each year from a college to attend the ESA
meeting.
a. In haw many ways can the delegation be chosen if there are 12 eligible students?
b. In how many ways if two of the eligible students will not attend the meeting together?
c. In how many ways if two of the eligible students are married and will only attend the
meeting together?
Some remarks
1. When we select objects from distinct once, we have ( − ) objects unselected and
hence there are as many ways of selecting from as there are not selected − objects.
Thus
a. =
b. = +
2. Binomial Coefficients
n
The quant it y is also known as a bino mial coefficient because it is the coefficient of the term
r
a b in the expansio n of the expressio n (a + b)n.
n-r r
Binomial Theorem
n
n
n r nr
For any two real numbers a and b and any posit ive integer n we have (a b) a b
r 0 r
Page 14 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Special cases
n n
n n
1. (a 1) n a r 2. (1 - a) n ( a) r
r 0 r r 0 r
n
n n
n
n
3. (1 1) n 2 n 4. 1 - 1 (1) r 0
r 0 r r 0 r
1.5.Definitions of probability
In any random experiment there is always uncertainty as to whether a particular event will or will
not occur. Thus, if is an event associated with an experiment we cannot state with certainty
that an event will occur or will not occur. Hence, it becomes very important to try to associate
a number with the event A which will measure how likely is the event will occur in the defined
sample space. This leads to the theory of probability in which we are going to consider the
quantitative measure of uncertainty.
There are four different conceptual approaches to study probability theory. These are:
The classical approach.
The frequencies approach.
The subjective approach.
The axiomatic approach.
A. The classical approach
This approach is used when:
All outcomes are equally likely and mutually exclusive.
Total number of outcome is finite, say N.
Definition: If a random experiment with N equally likely outcomes is conducted and out of these
NA outcomes are favorable to the event A, then the probability that event A occur denoted P (A)
is defined as:
. outcomes are favorable to the event A ( )
( )= = =
Total nuber outcomes ( )
Example 1: A fair die is tossed once. What is the probability of getting
a) Number 4?
b) An odd number?
Page 15 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
( ) = lim
→
Example 1: If records show that 60 out of 100,000 bulbs produced are defective. What is the
probability of a newly produced bulb to be defective?
60
( ) = lim = = 0.006
→ 100,000
Limitations of frequencies approach:
If repeated trials are not possible we cannot use this approach
The limit as N approaches to infinitive has no clear meaning (How large is large??)
Page 16 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
( ∪ ,∪ ∪ ….) = = ( )
( )+ ( )−2 ( ∩ )
Examples
1) For any events A and B show that P(A B) P(A) + P(B)
Page 17 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
P (A B) = P (A) + P (B) – P (A B)
Since P (A B) 0
P (A B) P (A) + P (B)
Solution:
Page 18 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
= 1-[x +y –z]
=1 – x –y + z
Solution
P (A B) = P(A) + P(B) =3/4 + ¼ = 6/4 =3/2
Solution
P( S) P(A B) =P(A) + P(B)- P(A B)
1 x – a + 1-b –P(A B)
1 – a – b- P(A B) 0
1 – a – b P(A B)
P(A B) 1-a-b
The axio mat ic approach does not give us ways of co mputing probabilit ies but rather it states
certain axio ms that a probabilit y o f an event should satisfy.
P (A ) = P(A)
P() = 0
Page 19 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Proof: S=A A/
P (A/) = 1- P(A)
Theorem: If A and B are any two events then P (A B) = P (A) + P (B) – P (A B)
Proof: A B = A (A/ B)
And B = (A B) (A/ B)
Proof: Let A B = D
P(D C) = P (A B C )
Proof: B = A (A/ B)
Page 20 of 21
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Since P (A/ B) 0
P(A) P(B)
P(A) + P (B) - 2P (A B)
Page 21 of 21