G.B Smith Stats
G.B Smith Stats
1
THE CONCEPT OF PROBABILITY
In our every day activities and conversations we 𝑖.e the probability of an event 𝐴 lies
make use of the words chance and likelihood. between 0 and 1. The probability of an
These words form the basis of probability and event can neither be greater than 1 nor
they have the same meaning in this context. less than 0.
2. 𝑃(𝑆) = ∑∀𝐴 𝑃(𝐴) = 1
1.1 Probability This can also be referred to as the
probability of the certain is one .
This is the likelihood or the chance of an event
i.e 𝑃(𝐶𝑒𝑟𝑡𝑎𝑖𝑛) = 1
occurring.
3. 𝑃(∅) = 𝑃(𝑖𝑚𝑝𝑜𝑠𝑠𝑖𝑏𝑙𝑒) = 0
Event: An event is the outcome or the result of i.e 𝑃(𝐴) = 0 𝑖𝑓 𝐴 ∉ 𝑆.
an experiment. 4. 𝑃(𝐴) + 𝑃(𝐴𝑐 ) = 1
Usually , we write
Sample Space: This is the set of all possible 𝑃(𝐴) = 𝑝 & 𝑃(𝐴𝑐 ) = 𝑞, hence 𝑝 + 𝑞 =
outcome of an experiment; it is denoted with the 1 0𝑟 𝑞 = 1 − 𝑝.
letter 𝑆 𝑜𝑟 Ω. For instance , in tossing a coin , the ⇒ 𝑃(𝐴) = 1 − 𝑃(𝐴𝑐 ).
sample space is {𝐻, 𝑇}. 𝑖.e the probability of an event occurring
is equal to one minus the probability of
In tossing a die once , the sample space is the event not occurring. These two
{1,2,3,4,5,6}. events are said to be complimentary.
5. If 𝐴1 , 𝐴2 , 𝐴3 , 𝐴4 , … , 𝐴𝑛 are pair-wise
In taking an examination ,the sample space for mutually exclusive events , then
the score of a student is
𝑃(𝐴1 ∪ 𝐴2 ∪ 𝐴3 ∪ … ∪ 𝐴𝑛 )
𝑛
𝑆 = {𝑥: 0% ≤ 𝑥 ≤ 100%}.
= 𝑃 (⋃ 𝐴𝑖 )
As can be seen from the foregoing text , there 𝑖=1
are two types of sample space, the discrete and = 𝑃(𝐴1 ) + 𝑃(𝐴2 ) + 𝑃(𝐴3 ) + ⋯
𝑛
continuous sample spaces. The sample space on
students’ examination score is a continuous + 𝑃(𝐴𝑛 ) = ∑ 𝑃(𝐴𝑖 )
sample space while the rest are discrete sample 𝑖=1
spaces. 1.3 Types of Events
Sample Point: A sample point is a single 1.3.1 Mutually Exclusive Events
outcome of an experiment. For instance , in
tossing a die , 5 and 6 are sample points. Two or more events are said to be mutually
exclusive if the occurrence of one excludes the
1.2 Axioms or Properties of Probability occurrence of others, i.e they can not occur
simultaneously. For instance , there is no way a
Let 𝑆 be the sample space of a given experiment,
lecturer can become the Head of two
then the following are the axioms or the laws of
departments in UNIPORT at the same time.
probability.
In particular , if 𝐴 and 𝐵 are mutually exclusive
1. 0 ≤ 𝑃(𝐴) ≤ 1.
events , then they are disjoint , i.e 𝐴 ∩ 𝐵 = ∅
Page 1 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
1.3.2 Independent events Given that 𝑃(𝐴) = 0.4 and 𝑃(𝐴 ∪ 𝐵) = 0.7, let
𝑃(𝐵) = 𝑥
Two or more events are said to be independent if
the occurrence of one does not affect the i. For mutually exclusive events,
occurrence of others, i.e they can occur together 𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵)
or occur separately. i.e 0.7 = 0.4 + 𝑥;
𝑥 = 0.7 − 0.4 = 0.3
If 𝐴 and 𝐵 are independent events , then ii. For independent events , 𝑃(𝐴 ∪ 𝐵)
𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴). 𝑃(𝐵). = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴). 𝑃(𝐵)
i.e 0.7 = 0.4 + 𝑥 − 0.4𝑥
1.3.3 Equally Likely Events
0.7 = 0.4 + 0.6𝑥
Two or more events are said to be equally likely 0.7 − 0.4 = 0.6𝑥
or equi-probable if they have equal chance of ⇒ 𝑥 = 0.3⁄0.6 = 0.5
occurring, i.e given the events
𝐴1 , 𝐴2 , 𝐴3 , 𝐴4 , … , 𝐴𝑛 , if they are equally likely , Example 1.2: (Question 13, 2011/2012
then 𝑃(𝐴𝑖 ) = 1⁄𝑛 ; 𝑖 = 1,2,3, … , 𝑛. Session)
1.4 Addition Law of Probability Let 𝐴 and 𝐵 be two events defined on a sample
space 𝑆. If 𝑃(𝐴) = 0.3 and 𝑃(𝐵) = 0.6, obtain
The addition law of probability states that if 𝐴 𝑃(𝐴 ∪ 𝐵) given that 𝐴 and 𝐵 are independent
and 𝐵 are two events , then the probability of 𝐴 events.
or 𝐵 occurring is equal to the probability of 𝐴
occurring plus the probability of 𝐵 occurring Solution
minus the probability of 𝐴 ∩ 𝐵 occurring.
Since the events are independent,⇒
Mathematically, this is written as
𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴). 𝑃(𝐵)
𝑃(𝐴 𝑜𝑟 𝐵) = 𝑃(𝐴 ∪ 𝐵)
i.e 𝑃(𝐴 ∪ 𝐵) = 0.3 + 0.6 − 0.3 × 0.6
= 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵).
= 0.9 − 0.18 = 0.72.
However, if the events are mutually exclusive
evnts , then 𝑃(𝐴 ∩ 𝐵) = 0 Example 1.3
⇒ 𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) Let 𝐴 and 𝐵 be two events with 𝑃(𝐴 ∪ 𝐵) =
7⁄ ,𝑃(𝐴 ∩ 𝐵) = 1⁄ and 𝑃(𝐴𝑐 ) = 5⁄ , find
If the events are independent events, 𝑃(𝐴 ∩ 8 4 9
𝐵) = 𝑃(𝐴). 𝑃(𝐵)
i. 𝑃(𝐴) ii. 𝑃(𝐵) iii. 𝑃(𝐴 ∩ 𝐵𝑐 ).
⇒ 𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴). 𝑃(𝐵).
Solution
Example 1.1(Question47,2014/2015;Section
A) i. To obtain 𝑃(𝐴), we use the axiom ,
𝑃(𝐴) + 𝑃(𝐴𝑐 ) = 1
Let 𝐴 and 𝐵 be two events associated with an ⇒ 𝑃(𝐴) = 1 − 𝑃(𝐴𝑐 ) = 1 − 5⁄9
experiment such that 𝑃(𝐴) = 0.4 and (𝐴 ∪ 𝐵) = = 4⁄9
0.7 . find 𝑃(𝐵) if the events are
ii. From the given parameters, to
i. Mutually exclusive obtain 𝑃(𝐵), we use the axiom
ii. Independent 𝑃(𝐴 ∪ 𝐵)
= 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵)
Page 2 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Solution
Example 1.4: (Question 21-22, 2014/2015;
Section A) i. Since the events are mutually
exclusive , 𝑃(𝐴 ∩ 𝐵) = 0
Given that 𝑃(𝐴) = 0.48, 𝑃(𝐵) = ii. From the distributive law of
0.37 𝑎𝑛𝑑 𝑃(𝐴 ∩ 𝐵) = 0.13, find sets,(𝐴 ∪ 𝐵) ∩ 𝐶 = (𝐴 ∩ 𝐶) ∪ (𝐵 ∩
𝐶)
i. 𝑃(𝐴 ∪ 𝐵) and 𝑃(𝐴𝑐 ∩ 𝐵𝑐 ). ⇒ 𝑃[(𝐴 ∪ 𝐵) ∩ 𝐶]
ii. 𝑃(𝐴 ∪ 𝐵𝑐 ) = 𝑃[(𝐴 ∩ 𝐶) ∪ (𝐵 ∩ 𝐶)]
= 𝑃(𝐴 ∩ 𝐶) + 𝑃(𝐵 ∩ 𝐶)
Solution
=0+0=0
i. Using the axiom , 𝑃(𝐴 ∪ 𝐵) iii. 𝑃(𝐴′ ∩ 𝐵′ ∩ 𝐶 ′ ) = 𝑃(𝐴 ∪ 𝐵 ∪
= 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵) 𝐶)′ = 1 − 𝑃(𝐴 ∪ 𝐵 ∪ 𝐶)
= 1 − {𝑃(𝐴) + 𝑃(𝐵) + 𝑃(𝐶)}
Therefore , 𝑃(𝐴 ∪ 𝐵) = 0.48 + = 1 − {0.2 + 0.3 + 0.4} = 0.1
0.37 − 0.13 = 0.72 and
Example 1.6: (Question 8, 2013/2014 Section)
𝑃(𝐴𝑐 ∩ 𝐵𝑐 ) = 𝑃(𝐴 ∪ 𝐵)𝑐 = 1 − 𝑃(𝐴 ∪ 𝐵)
= 1 − 0.72 = 0.28 Let 𝑋 and 𝑌 be events such that
Page 4 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Solution
Page 5 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
1 A B
G
6 G
1 B
3 B B
B
G
1
B
2 C G B
G
B
G
G
The above probability trees are for experiments From the above , the sample space is 𝑆 =
that are performed once. When the experiment is {𝐵𝐺𝐵, 𝐵𝐺𝐺, 𝐵𝐵𝐵, 𝐵𝐵𝐺, 𝐺𝐵𝐵, 𝐺𝐵𝐺, 𝐺𝐺𝐵, 𝐺𝐺𝐺}.
performed more than once , the probability tree
would be extended , as shown below. The probability of having at least of one girl is
7/8. This is so , since it is only 𝐵𝐵𝐵 that
In tossing a fair coin twice, the probability tree contains no girl.; the remaining seven outcomes
is as shown below. have at least one girl.
1.7Conditional probability
H
𝑃(𝐴 ∩ 𝐵)
Example 1.13: (Question 2, 2008/2009 𝑃(𝐵/𝐴) = ; 𝑃(𝐴) > 0
𝑃(𝐴)
Session)
From the above ,
Three children are born into a family . assuming
that the probability of having a boy is the same 𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴). 𝑃(𝐵/𝐴); this is termed the
as the probability of having a girl , construct a multiplication law of probability.
tree diagram for this phenomenon . find the
probability that at least one of the children is a If the events are independent events, then
girl. 𝑃(𝐴∩𝐵) 𝑃(𝐴)∩𝑃(𝐵)
𝑃(𝐴/𝐵) = 𝑃(𝐵)
= 𝑃(𝐵)
= 𝑃(𝐴), similarly
Solution 𝑃(𝐵/𝐴) = 𝑃(𝐵).
Let the event of a birth of boy and a girl be Example 1.14 If 𝑃(𝐴 ∩ 𝐵) = 0.13,
respectively, B and G , hence the probability tree
is as shown below: 𝑃(𝐴) = 0.2 𝑎𝑛𝑑 𝑃(𝐵) = 0.32, find 𝑃(𝐴/
𝐵) 𝑎𝑛𝑑 𝑃(𝐵/𝐴)
Solution
Page 6 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝑃(𝐴𝑘 ) ∩ 𝑃(𝐵/𝐴𝑘 )
Solution =
𝑃(𝐵)
From the above , we have it that
Where 𝑃(𝐵) is called the TotalProbabilityand it
𝑃(𝐴 𝑠𝑡𝑢𝑑𝑒𝑛𝑡 𝑓𝑎𝑖𝑙𝑖𝑛𝑔 𝑚𝑎𝑡ℎ𝑒𝑚𝑎𝑡𝑖𝑐𝑠) = 𝑃(𝑀) is given as
= 25% = 0.25 𝑛
1 3 3
×
2 5 10
=1 3 1 1 = 3 1 = 3/4 .
× + × +
2 5 2 5 10 10 The total probabilities are
1 3
× 72
3 5
=
𝑃(𝐴).𝑃(𝐴/𝐵)
and
𝑃(𝐶∩𝑊)
𝑃(𝐶/𝑊)= 𝑃(𝑊) = 187 = 187.
𝑃(𝑅) 360
The probability of defective from the Company i.e 𝑃(𝐷) = 𝑃(𝐴). 𝑃(𝐷/𝐴)+ 𝑃(𝐵). 𝑃(𝐷/𝐵)
A is 𝑃(𝐷/𝐴) = 5% = 0.05 and 𝑃(𝐷/𝐵)=
3% = 0.03 𝑃(𝐷) = 0.9(0.05) + 0.1(0.03) = 0.048, hence
the conditional probability is
The probability that the motor is supplied by
0.1(0.03)
Company B, given that it is defective is 𝑃(𝐵/𝐷) = 0.048
= 0.0625
2
Random Variables And Probability Distributions
2.1 Random variables From the table above , the random variable X
can assume three possible values, 0,1 and 2.
A random variable is a real valued function
having its domain as a sample space. Random Let 𝑋 be the volume of petrol that a given
variables are denoted with capital letters while 500,000litres capacity tanker carries, then
realizations(i.e values that can be assume by
these random variables ) of these random 𝑋 = {𝑥: 0 ≤ 𝑥 ≤ 50,000𝑙𝑖𝑡𝑟𝑒𝑠}.
variable are denoted with corresponding small
letters. It can be seen from the above that there are two
types of random variables, the discrete and the
For instance , in tossing a die, let 𝑋 be the continuous random variables.
number that appears , then 𝑋is a randm variable
and 𝑋 = {1,2,3,4,5,6}. A discrete random variable can only assume
countable values while a continuous random
In a single toss of a coin , a head (H) or a tail(T) variable can assume measurable values , that is,
would appear. Let 𝑋 be a r.v , then the random values that are as many as the number of points
variable 𝑋 can be defined as 𝑋 = 1 if a head between two numbers on the real number line.
appears and 0 if a tail appears.
For instance , the number of deaths in a given
⇒ 𝑋 = {0,1} year , the number of students ina class , the
number of subjects offered by a given student,
If a coin is tossed twice or two coins are tossed the number of defective item produced by a
once , and let 𝑋 represent the number of tails given machine in a factory are all discrete
that appears , then the sample space is 𝑆 = variables while , weights, height, age , volume
{𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇}. are all continuous variables.
Page 9 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Just as we have two types of random variables , In the question above , wehave a discrete
so also we have two classes of probability random variable, hence to obtain the value of the
distributions. constant , we use the property
∑ 𝑃(𝑥) = 1
Let 𝑋 be a discrete random variable , if 𝑃(𝑥) is a 1
function that satisfies the following properties ,
then it is called the probability mass function i.e
3
(p.m.f) of 𝑋:
∑ 𝑝(𝑥 + 2)𝑥 = 1
1. 𝑃(𝑥) ≥ 0∀ 𝑥 1
2. ∑∀ 𝑥 𝑃(𝑥) = 1
3. 𝑃(𝑥ℇ𝐸) = ∑𝑥ℇ𝐸 𝑃(𝑥) 𝑝(1 + 2)1 + 𝑝(2 + 2)2 + 𝑝(3 + 2)3 = 1
1 1 1 1
The series (3 + 32 + 33 + ⋯ ) is geometric with The first term is 33 and the common
1 1 1 1 1
1st term of 3 and common ratio of 3. ratio is 36 ÷ 33 = 33
= 1⁄27
The sum to infinity of the geometric series is
𝑎 ⇒ 𝑃(𝑋 𝑖𝑠 𝑑𝑖𝑣𝑖𝑠𝑖𝑏𝑙𝑒 𝑏𝑦 3)
𝑆∞ = 1−𝑟 1⁄
= 𝑘( 27 ) = 2(1⁄ )
∞
1 − 1⁄27 26
1 𝑥 1 1 1
⇒ ∑ ( ) = ( + 2 + 3 + ⋯)
3 3 3 3 = 1⁄13
𝑋=1
Page 11 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Page 12 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
(a) Value of c (b) 𝑃(1⁄2 < 𝑋 < 3⁄2) (c) Function of a random variable 𝑋 satisfies the
𝑃(𝑋 > 1) (d) 𝑃(𝑋 = 3) following properties:
Page 13 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Example 2.9: The p.m.f of a r.v 𝑋 is given as Let 𝑓(𝑥) be the p.d.f of a continuous r.v 𝑋, then
𝑃(𝑋 = 𝑥) = 𝑘(𝑥 + 1)3 ; 𝑋 = 0,1,2,3,4. the distribution function of 𝑋 is
𝑥
Obtain the value of 𝑘 and the C.D.F of 𝑋. 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 𝑓(𝑥)𝑑𝑥 .
Solution Note: The p.d.f is the derivative of the
distribution function.
From the given , the distribution is a Discrete
distribution . 𝑑𝐹(𝑥)
i.e 𝑓(𝑥) = 𝑑𝑥
.
To obtain the constant 𝑘, we use the property
Example 2.10: Given that 𝑓(𝑥) =
4 2 );
{𝑐(1 − 𝑥 0 ≤ 𝑋 ≤ 1 is the p.d.f of 𝑋,
∑ 𝑃(𝑥) = 1 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑥=0 determine the value of 𝑐 and the distribution
function of 𝑋.
4
𝑋 0 1 2 3 4 = 𝑐(2⁄3) = 1 ⇒ 𝑐 = 3⁄2
2.3.2 Distribution Function of Continuous Example 2.10: Given that the p.d.f of a r.v 𝑋 if
−6𝑥
Random Variables (𝑥) = {6𝑒 ; 𝑋 > 0 .
0 𝑜𝑡ℎ𝑒𝑟 𝑤𝑖𝑠𝑒
Obtain the Distribution function of 𝑋.
Page 14 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Solution Solution
Given 𝑓(𝑥) = 6𝑒 −6𝑥 ; 𝑋 > 0 To obtain the density function , all we need to do
is to differentiate the Distribution function with
⇒the distribution function of 𝑋is 𝐹(𝑥) = respect to 𝑥.
𝑥
𝑥 6𝑒 −6𝑥
𝑃(𝑋 ≤ 𝑥) = ∫0 6𝑒 −6𝑥 . 𝑑𝑥 = [ ] 𝑑[𝐹(𝑥)] 𝑑[1−3𝑒 −2𝑥 ]
−6 0
We have it that 𝑓(𝑥) = 𝑑𝑥
= 𝑑𝑥
= −𝑒 −6𝑥 + 𝑒 0 = 1 − 𝑒 −6𝑥
= 6𝑒 −2𝑥
−2𝑥
1 − 3𝑒 ; 𝑥 ≥ 0
Example 2.11: If 𝐹(𝑥) = { is −2𝑥
0 ; 𝑥<0 ⇒ 𝑓(𝑥) = {6𝑒 ;𝑥 ≥ 0
the distribution function of a r.v , obtain the 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
density function of 𝑋.
3
Mathematical Expectation and Variance
3.1 Expectation .
∀𝑥 ∫ 𝑥 𝑛 𝑓(𝑥)𝑑𝑥
= ∞
{−∞
∫ 𝑥𝑓(𝑥)𝑑𝑥 𝑖𝑓 𝑐𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠 𝑤𝑖𝑡ℎ 𝑝. 𝑑. 𝑓 𝑓(𝑥)
{−∞ In general,
∑ 𝑔(𝑥)𝑃(𝑥)
Using similar fashion
∀𝑥
𝐸(𝑔(𝑥)) = ∞
∑ 𝑥 2 𝑃(𝑥) ∫ 𝑔(𝑥)𝑓(𝑥)𝑑𝑥
∀𝑥 {−∞
𝐸(𝑋 2 ) = ∞
Example 3.1: Find the expectation , the variance = 4(1⁄3) + 9(1⁄2) + 121(1⁄6)
and the standard deviation of the r.v 𝑋 having = 4⁄3 + 9⁄2 + 121⁄6
the following distribution.
𝐸(𝑥 2 ) = 26
(𝑎)
⇒ 𝑣𝑎𝑟(𝑥) = 26 − 42 = 26 − 16 = 10 and the
X 2 3 11
standard deviation is √𝑣𝑎𝑟(𝑥) = √10.
P(x) 1⁄ 1⁄ 1⁄ (𝑏)
3 2 6
X -5 -4 1 2
(𝑏) P(x) 1⁄ 1⁄ 1⁄ 1⁄
4 8 2 8
X -5 -4 1 2
𝐸(𝑥) = ∑ 𝑥𝑝(𝑥)
Page 16 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
1 Solution
(i) 𝐸(𝑥) = ∫0 𝑥𝑓(𝑥)𝑑𝑥
1 We have it that 𝐸(𝑥 + 4) = 10. From te
= ∫ 𝑥6𝑥(1 − 𝑥). 𝑑𝑥 properties of expectation , this can also be
0
written in the form 𝐸(𝑥) + 𝐸(4) = 10
1
i.e 𝐸(𝑥) + 4 = 10; 𝐸(𝑥) = 10 − 4 = 6.
= ∫(6𝑥 2 − 6𝑥 3 ). 𝑑𝑥
0 Also , 𝑉𝑎𝑟(𝑥) = 𝐸(𝑥 2 ) − (𝐸(𝑥))2
Page 17 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Given 𝑓(𝑥) = 1⁄4 ; −1 ≤ 𝑥 ≤ 1, find 𝐸(𝑥) and Example 3.5: (Question 35, 2013/2014 session)
𝑣𝑎𝑟(𝑥).
Two fair coins are tossed , if 𝑌 represents the
(𝑎) 0 𝑎𝑛𝑑 6 (𝑏) 0 𝑎𝑛𝑑 1⁄6 (𝑐) 6 𝑎𝑛𝑑 1⁄6 number of tails , what is the expected value of
𝑌?
(𝑑) 6 𝑎𝑛𝑑 1⁄4 Solution
Solution For a fair coin , the sample space is {H,T},
hence the sample space for two coins is
This is a continuous distribution , hence 𝐸(𝑥) = {H,T}×{H,T}= {𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇}.
1
∫−1 𝑥𝑓(𝑥). 𝑑𝑥
From this , we have it that 𝑌 = {0,1,2} with
1 1
𝑝(0) = 1⁄4, 𝑝(1) = 2⁄4 and 𝑝(2) = 1⁄4
⇒ 𝐸(𝑥) = ∫ 𝑥(1⁄4). 𝑑𝑥 = 1⁄4 ∫ 𝑥 . 𝑑𝑥
2
−1 −1
⇒ 𝐸(𝑦) = ∑ 𝑦𝑃(𝑦)
2 1
𝑥 𝑦=0
= 1⁄4 [ ] = 0𝑝(0) + 1𝑝(1) + 2𝑝(2)
2 −1
2 1
(1)2 (−1)2 1 1 = 0 + 1( ) + 2( ) = 1
= 1⁄4 [ − ] = 1⁄4 ( − ) = 0 4 4
2 2 2 2
Example 3.6: (Question 14,2013/2014 Session)
⇒ 𝐸(𝑥) = 0.
Let 𝑋 be a r.v assuming the possible values 𝑋 =
𝑣𝑎𝑟(𝑥) = 𝐸(𝑥 2 ) − [𝐸(𝑥)]2 where {2,4,6,8} and suppose that the p.d.f is
1
𝑝(2) = 𝑝(4) = 0.25 and 𝑝(6) = 𝑝(8)
𝐸(𝑥 2 ) = ∫ 𝑥 2 𝑓(𝑥). 𝑑𝑥
−1
= 0.05, find the expected value of 𝑋.
Solution
Page 18 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
This is a discrete distribution , hence we use the Substituting these into the equations
formula 𝐸(𝑥) = ∑∀𝑥 𝑥𝑝(𝑥)
(1): 2 = 10𝑘 + 𝑑
= 2𝑝(2) + 4𝑝(4) + 6𝑝(6) + 8𝑝(8)
(1): 6 = 25𝑘 2 ⇒ 𝑘 2 = 6⁄25
= 2(0.25) + 4(0.25) + 6(0.05) + 8(0.05)
Example 3.7: Let 𝑋 be a r.v for which 𝐸(𝑥) = Substituting these values into 2 = 10𝑘 + 𝑑
10 and 𝑣𝑎𝑟(𝑥) = 25. For what possible values
of 𝑘 and 𝑑 does 𝑌 = 𝑘𝑋 + 𝑑 have mean of 0 When 𝑘 = √6⁄5 , 2 = 10 (√6⁄5) + 𝑑 = 2√6 +
and variance of 1? For what values does it have
mean of 2 and variance of 6? 𝑑
Given that 𝐸(𝑥) = 10, 𝑣𝑎𝑟(𝑥) and Solve for when 𝑘 = − √6⁄5.
𝑌 = 𝑘𝑋 + 𝑑
Example 3.8: A discrete r.v can take all
𝐸(𝑦) = 𝐸(𝑘𝑥 + 𝑑) = 𝑘𝐸(𝑥) + 𝑑 possible integer values from 1 to , each with
(𝑘 + 1)⁄
probability 1⁄𝑘. Show that its mean is 2
⇒ 𝐸(𝑦) = 𝑘𝐸(𝑥) + 𝑑
(𝑘 2 − 1)⁄
and variance is 12.
𝐸(𝑦) = 10𝑘 + 𝑑 … (1)
Solution
Also 𝑣𝑎𝑟(𝑦) = 𝑣𝑎𝑟(𝑘𝑥 + 𝑑) = 𝑣𝑎𝑟(𝑘𝑥) +
𝑣𝑎𝑟(𝑑) From the given statement , the r.v can take on
countable values from the set of natural numbers
𝑣𝑎𝑟(𝑦) = 𝑘 2 𝑣𝑎𝑟(𝑥) , i.e 𝑋 = 1,2,3,4, … , 𝑘. The probabilities are all
the same , hence the events or outcomes are said
𝑣𝑎𝑟(𝑦) = 25𝑘 2 … (2)
to be equally likely; i.e 𝑃(1) = 𝑃(2) = ⋯ =
1
For 𝐸(𝑦) = 0 𝑎𝑛𝑑 𝑣𝑎𝑟(𝑦) = 1 𝑃(𝑘) = .
𝑘
Substituting these values into (1) and (2). Now , the mean of the r.v is 𝐸(𝑋) =
1 1
(1): 0 = 10𝑘 + 𝑑 ∑𝑘𝑥=1 𝑥𝑝(𝑥) = ∑𝑘𝑥=1 𝑥 ( ) = ∑𝑘𝑥=1 𝑥
𝑘 𝑘
1 1
(2): 1 = 25𝑘 2 ⇒ 𝑘 2 = 25 ; 𝑘 = ± 1⁄5 = 𝑘 (1 + 2 + 3 + 4 + ⋯ + 𝑘). The expression
in the bracket is the sum of the first 𝑘 natural
When 𝑘 = 1⁄5 ; 0 = 10(1⁄5) + 𝑑 = 2 + 𝑑 ⇒ numbers. This is given by the expression
𝑘(𝑘+1)
𝑑 = −2 ∑𝑘𝑥=1 𝑥 = . The mean is thus (𝑋) =
2
1 𝑘(𝑘+1) 𝑘+1
. 2 = .
When 𝑘 = − 1⁄5 ; 0 = 10(− 1⁄5) + 𝑑 𝑘 2
Page 19 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
The sum in the bracket is the sum of the squares 𝐸(𝑥) = ∑ 𝑥𝑝(𝑥)
of the first 𝑘 natural numbers, and this is given 𝑥=1
𝑘(𝑘+1)(2𝑘+1)
as ∑𝑘𝑥=1 𝑥 2 = , hence we have
6 = 1𝑝(1) + 2𝑝(2) + 3𝑝(3) + 4𝑝(4) + 5𝑝(5)
+ 6𝑝(6)
1 𝑘(𝑘 + 1)(2𝑘 + 1)
𝐸(𝑋 2 ) = .
𝑘 6 = 1(1⁄6) + 2(1⁄6) + 3(1⁄6) + 4(1⁄6)
(𝑘+1)(2𝑘+1) + 5(1⁄6) + 6(1⁄6)
𝐸(𝑋 2 ) = 6
.
The variance is thus, = 1⁄6 + 2⁄6 + 3⁄6 + 4⁄6 + 5⁄6 + 6⁄6 = 21⁄6
= 3.5
2
𝑉𝑎𝑟(𝑋) = 𝐸(𝑋 2 ) − (𝐸(𝑋))
Example 3.10: (Question 6 and 7, 2013/2014
(𝑘 + 1)(2𝑘 + 1) 𝑘+1 2 Session)
= −( )
6 2 A random variable 𝑋 can take only values , 1
2 and 2 with 𝑝(1) = 0.8 𝑎𝑛𝑑 𝑝(2) = 0.2. find
(𝑘 + 1)(2𝑘 + 1) (𝑘 + 1)
= − 𝐸(𝑥) and 𝑣𝑎𝑟(𝑥).
6 4
2𝑘 + 1 𝑘 + 1 Solution
= (𝑘 + 1) ( − )
6 4 Given 𝑝(1) = 0.8 𝑎𝑛𝑑 𝑝(2) = 0, using 𝐸(𝑥) =
∑2𝑥=1 𝑥𝑝(𝑥)
4(2𝑘 + 1) − 6(𝑘 + 1)
= (𝑘 + 1) ( )
24 ⇒ 𝐸(𝑥) = 1𝑝(1) + 2𝑝(2) = 1(0.8) + 2(0.2)
= 1.2
8𝑘 + 4 − 6𝑘 − 6
= (𝑘 + 1) ( )
24 𝑣𝑎𝑟(𝑥) = 𝐸(𝑥 2 ) − [𝐸(𝑥)]2
2𝑘 − 2 (𝑘 + 1)(𝑘 − 1) Where 𝐸(𝑥 2 ) = ∑2𝑥=1 𝑥 2 𝑝(𝑥) = (1)2 𝑝(1) +
= (𝑘 + 1) ( )=
24 12 22 𝑝(2)
𝑘 2 −1 = 1(0.8) + 4(0.2) = 1.6
= 12
(Shown)
Example 3.9: (Question 2,2013/2014 session) ⇒ 𝑣𝑎𝑟(𝑥) = 1.6 − (1.2)2 = 1.6 − 1.44 = 0.14
A fair die is tossed once and 𝑋 is the number Example 3.11: (Question 44, 2014/2015;
Section A)
that turns up, then 𝐸(𝑥) is what?
If the p.d.f of a r.v 𝑋 is given by 𝑓(𝑥) =
Solution 1
2 𝑥
, 0 ≤ 𝑥 ≤ 1, 𝑓𝑖𝑛𝑑 𝐸(𝑥)𝑎𝑛𝑑 𝑣𝑎𝑟(𝑥).
√
In tossing a coin , the sample space is
{1,2,3,4,5,6}. Solution
Page 20 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
1 2
Using the formula 𝐸(𝑥) = ∫0 𝑥𝑓(𝑥)𝑑𝑥 ⇒ 𝑣𝑎𝑟(𝑥) = 1⁄5 − (1⁄3) = 1⁄5 − 1⁄9
1 1 = 4⁄45
𝑥 1
⇒ 𝐸(𝑥) = ∫ 𝑥 ( ) 𝑑𝑥 = ∫ ( ) 𝑑𝑥
2√𝑥 2√𝑥
0 0
0
= 3⁄125 (625⁄4) = 15⁄4.
1 1
𝑥2 1
= ∫𝑥 ( 2
) 𝑑𝑥 = ∫ ( ) 𝑑𝑥 𝐸(5𝑥 2 − 4𝑥 + 3)
2√𝑥 2√𝑥
0 0
= 𝐸(5𝑥 2 ) − 𝐸(4𝑥) + 𝐸(3)
1 3⁄
𝑥 2
= 5𝐸(𝑥 2 ) − 4𝐸(𝑥) + 3
=∫ 𝑑𝑥
2
0
= 5𝐸(𝑥 2 ) − 4(15⁄4) + 3
1 3 1
3 𝑥 2+1 = 5𝐸(𝑥 2 ) − 15 + 3
= 1⁄2 ∫ 𝑥 . 𝑑𝑥 = 1⁄2 [
2 ]
3⁄ + 1
0 2 5 3𝑥 2
0 = 5𝐸(𝑥 2 ) − 12 but 𝐸(𝑥 2 ) = ∫0 𝑥 2 ( ) 𝑑𝑥 =
125
1 5 3𝑥 4 5
𝑥2
5
∫0 (125) 𝑑𝑥 = 3⁄125 ∫0 𝑥 4 . 𝑑𝑥
= 1⁄2 [ ]
5⁄ 5
2 0 𝑥5 55 (0)5
= 3⁄125 [ ] = 3⁄125 [ − ]
1 1
5 5
0
5
5 5 5 5
2𝑥 2 𝑥2 (1)2 (0)2 = 3⁄125 (3125⁄5) = 15
= 1⁄2 [ ] =[ ] =[ − ] = 1⁄5
5 5 5 5
0 0
Page 21 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
1 1 1 1
Example 3.13: (Question 33, 2013/2014 = [− + + − ] = 0
Session) 2 3 2 3
0 1
Solution
= ∫(𝑥 2 + 𝑥 3 ) 𝑑𝑥 + ∫(𝑥 2 − 𝑥 3 ) 𝑑𝑥
1 + 𝑥; −1 ≤ 𝑥 ≤ 0
−1 0
Given 𝑓(𝑥) = { 1 − 𝑥; 0 ≤ 𝑥 ≤ 1
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 0 1
𝑥3 𝑥4 𝑥3 𝑥4
=[ + ] +[ − ]
𝑣𝑎𝑟(𝑥) = 𝐸(𝑥 2 ) − [𝐸(𝑥)]2 , where 𝐸(𝑥) = 3 4 −1 3 4 0
∫ 𝑥𝑓(𝑥) 𝑑𝑥
(0)3 (0)4 (−1)3 (−1)4
0 1 = [( + )−( + )]
3 4 3 4
= ∫ 𝑥(1 + 𝑥) 𝑑𝑥 + ∫ 𝑥(1 − 𝑥) 𝑑𝑥
−1 0 (1)3 (1)4 (0)3 (0)4
+ [( − )−( − )]
0 1 3 4 3 4
= ∫(𝑥 + 𝑥 2 ) 𝑑𝑥 + ∫(𝑥 − 𝑥 2 ) 𝑑𝑥 1 1 1 1
−1 0
= [ − + − ] = 1⁄6
3 4 3 4
0 1
𝑥2 𝑥3 𝑥2 𝑥3 ∴ 𝑣𝑎𝑟(𝑥) = 1⁄6 − 02 = 1⁄6
=[ + ] +[ − ]
2 3 −1 2 3 0
4
Theoretical Distributions
⇒ 𝑞 = 1−𝑝. Solution
The p.m.f of the Bernoulli r.v 𝑋 is 𝑃(𝑥) = Using the formula 𝑣𝑎𝑟(𝑥) = 𝑛𝑝𝑞, where 𝑞 =
𝑝𝑞1−𝑥 ; 𝑋 = 0 𝑜𝑟 1. 1 − 𝑝 = 1 − 0.1 = 0.9
The mean and the variance of the Bernoulli ⇒ 𝑣𝑎𝑟(𝑥) = 4(0.1)(0.9) = 0.36
distribution are𝐸(𝑥) = 𝑝 and 𝑣𝑎𝑟(𝑥) = 𝑛𝑝𝑞
respectively. Example 4.2: In a family of three children ,
what is the probability that there will be exactly
Binomial Distribution 2 boys assuming that the sexes are equally likely
to occur in each birth.
The binomial distribution is used when a
Bernoulli trial is performed atleast once . It’s Solution
used when a series of independent experiments
results to two possible outcomes each, and we In a single birth , the child will either be a boy or
are interested in the number of successes from a girland since the sexes are equally likely ,
these trials. 𝑃(𝑏𝑜𝑦) = 𝑃(𝑔𝑖𝑟𝑙) = 1⁄2 = 𝑝 = 𝑞. The number
of births is 𝑛 = 3
Let 𝑋 be a binomial r.v, then the p.m.f of 𝑋 is
𝑃(𝑥) = (𝑛𝑥)𝑝 𝑥 𝑞𝑛−𝑥 ; 𝑥 = 0,1,2, … , 𝑛 ⇒ 𝑋~𝐵(3, 1⁄2).
Page 24 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Page 25 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Consider 𝑋~𝐵(10, 1⁄2), find 𝑃(3 ≤ 𝑥 ≤ = 𝑃(𝑋 = 16) + 𝑃(𝑋 = 17) + ⋯ + 𝑃(𝑋
5). = 20)
20
= 𝐶16 (0.75) (0.25)4
16
The probability that your call to a service line is Usually , we write 𝑋~𝑝(𝜆), where 𝜆 is called
answered in less than 30 sec. is 0.75. the parameter of the distribution.
Assuming that your calls are independent, The mean and the variance of the poisson
distribution are equal to 𝜆.
(a) If you call 10 times , what is the
probability that exactly 9 of your calls Example of the poisson distribution are the
are answered in less than 30 secs.? number of deaths per year ,the number of
(b) If ypu call 20 times , what is the misprints in every five pages of a book, number
probability that at least 16 calls are of phone calls in every 2 minutes , e.t.c.
answered in less than 30 secs.?
(c) If you call 20 times , what is the mean Properties of the poisson distribution
number of calls that are answered?
1. The number of events in non-over-
Solution laping time intervals are independent.
2. The probability of an event occurring in
(a) In this , we shall use the binomial any sub-interval or the mean rate of
distribution , in which 𝑝 = 0.75 ⇒ 𝑞 = occurrence remains constant through the
1 − 0.75 = 0.25 entire time under consideration.
3. An interval can be divided into sub-
The sample size in this is 𝑛 = 10 intervals ; this is to enable the
probability of an even occurring in any
10
∴ 𝑃(𝑋 = 9) = 𝐶9 (0.75)9 (0.25)1 one sub – interval to tend to zero.
= 0.1877
Example 4.9: Suppose that the number of
(b) 𝑛 = 20. claims for missing baggage average 6 per day.
𝑃(𝑋 ≥ 16)
Page 26 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Find the probability that ona given day , there b. 𝑃(𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 2 𝑐𝑎𝑙𝑙𝑠) = 𝑃(𝑋 ≥ 2)
will be = 1 − 𝑃(𝑋 < 2)
= 1 − {𝑃(𝑋 = 0) + 𝑃(𝑋 = 1)}
(i) No claim 40 𝑒 −4 41 𝑒 −4
(ii) Exactly 6 claims =1−{ + }
(iii) At least 2 claims 0! 1!
= 1 − 0.0915782 = 0.908473
Solution c. 𝑃(𝑁𝑜 𝑐𝑎𝑙𝑙 𝑖𝑛 45 𝑠𝑒𝑐𝑠):
Since the time interval is not in 45 secs,
Let 𝑋 be the number of claims per day , then we need to convert the rate to per 45
𝑋~𝑝(𝜆 = 6). secs.
The given rate is 𝜆 =
𝜆𝑥 𝑒 −𝜆
Using the distribution 𝑃(𝑋 = 𝑥) = ;𝑥 = 4 𝑚𝑖𝑛𝑠 𝑝𝑒𝑟 𝑚𝑖𝑛𝑢𝑡𝑒.
𝑥!
0,1,2, … i.e In every 1 minute , we have 4 calls.
⇒ 4 𝑐𝑎𝑙𝑙𝑠 = 1 𝑚𝑖𝑛𝑢𝑡𝑒
(i) 𝑃(𝑁𝑜 𝑐𝑙𝑎𝑖𝑚) = 𝑃(𝑋 = 0) = 4 𝑐𝑎𝑙𝑙𝑠 = 60 𝑠𝑒𝑐𝑜𝑛𝑑𝑠
60 𝑒 −6 Let 𝑘 𝑐𝑎𝑙𝑙𝑠 = 45 𝑠𝑒𝑐𝑠
= 0.00248
0! ⇒ 4 × 45 = 60 × 𝑘
(ii) 𝑃(𝐸𝑥𝑎𝑐𝑡𝑙𝑦 6 𝑐𝑙𝑎𝑖𝑚𝑠) = 4 × 45
66 𝑒 −6 𝑘= = 3 𝑐𝑎𝑙𝑙𝑠 𝑝𝑒𝑟 45 𝑠𝑒𝑐𝑠.
𝑃(𝑋 = 6) = 6! = 0.1607 60
Using 𝜆 = 3 𝑐𝑎𝑙𝑙𝑠 𝑝𝑒𝑟 45 𝑠𝑒𝑐𝑠
(iii) 𝑃(𝐴𝑡 𝑙𝑒𝑎𝑠𝑡 2 𝑐𝑙𝑎𝑖𝑚𝑠) =
31 𝑒 −3
𝑃(𝑋 ≥ 2) = 1 − 𝑃(𝑋 < 2) 𝑃(𝑋 = 1) = = 0.14936
= 1 − {𝑃(𝑋 = 0) + 𝑃(𝑋 = 1)} 1!
60 𝑒 −6 61 𝑒 −6 d. 𝑃(𝑁𝑜 𝑐𝑎𝑙𝑙 𝑖𝑛 𝑎𝑛 𝑖𝑛𝑡𝑒𝑟𝑣𝑎𝑙 𝑜𝑓 45 𝑠𝑒𝑐𝑠. )
=1−{ + } 30 𝑒 −3
0! 1! 𝑃(𝑋 = 0) = = 0.04979
0!
= 1 − 0.01736 = 0.98264
Example 4.11: (Question 3, 2008/2009
Example 4.10: (Question 40-43, 2014/2015; Session)
Section A)
Customers arrive a booking office at an average
Given that the expected number of phone calls is rate of 3 per 10 minutes. In a particular 10
4 per minute , what is the probability that there minutes duration , what is the probability that
will be
a. Exactly 4 customers arrive?
a. No call in one minute? b. Not more than three customers arrive?
b. At least two calls in one minute?
c. One call in 45 seconds? Solution
d. No call in an interval of 45 seconds?
Given that the mean rate of occurrence is 𝜆 = 3
Solution
𝜆𝑥 𝑒 −𝜆
From the given , the rate is Using the p.m.f 𝑃(𝑥) =
𝑥!
34 𝑒 −3
𝜆 = 4 𝑝𝑒𝑟 𝑚𝑖𝑛𝑢𝑡𝑒 a. 𝑃(𝑋 = 4) = 4! = 0.16803
𝜆𝑥 𝑒 −𝜆 b. 𝑃(𝑁𝑜𝑡 𝑚𝑜𝑟𝑒 𝑡ℎ𝑎𝑛 3 𝑐𝑢𝑠𝑡𝑜𝑚𝑒𝑟𝑠) =
Using 𝑃(𝑥) = 𝑥!
. 𝑃(𝑋 ≤ 3)
= 𝑃(𝑋 = 0) + 𝑃(𝑋 = 1) + ⋯
40 𝑒 −4
a. 𝑃(𝑁𝑜 𝑐𝑎𝑙𝑙) = 𝑃(𝑋 = 0) = + 𝑃(𝑋 = 3)
0!
= 0.01832
Page 27 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Example 4.13: (Question 2b, 2007/2008 From the given statement , th e probability of an
Session) article being defective in a given production is
1% ⇒ 𝑝 = 0.01, the number of items in each
Suppose there is an average of 2 suicides per production is 𝑛 = 200, hence the mean rate of
50,000 animal population. In a colony of defective production is 𝜆 = 𝑛𝑝 = 200 × 0.01 =
100,000 , find the probability that in a given year 2 < 5.
, there are
The mean rate of occurrence is less than five .
i. No deaths? the poisson distribution can be used to model
ii. At least 2 deaths? this question.
Solution 𝜆𝑥 𝑒 −𝜆
i.e 𝑃(𝑋 = 𝑥) = 𝑥!
From the given , there are 2 suicides in every
500,000 animal population ⇒there are 4 suicides 1. 𝑃(𝐴𝑡 𝑚𝑜𝑠𝑡 2 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒) = 𝑃(𝑋 ≤ 2)
in 100,000 animal population.
= 𝑃(𝑋 = 0) + 𝑃(𝑋 = 1) + 𝑃(𝑋 = 2)
Let 𝜆 = 4.
Page 28 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
5
Regression Analysis and Correlation Coefficients
Page 32 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Find the least square regression line of 𝑦 on 𝑥. There are different methods that are used t
determine the correlation coefficient
Solution between two variables. In this text , we shall
be considering two methods; these are
Please , do this one!!
1. The Pearson’s Product Moment
𝟓. 𝟐 Correlation Coefficients Correlation Coefficient and
Correlation Coefficient is a measure of the 2. The Spearman’s Rank Correlation
linear relationship between two variables. Coefficient.
5.2.1 Pearson’s Product Moment
It is used to determine if the increase in one Correlation Coefficient.
variable would result in the increase or decrease
in another. Given the two variables ,𝑋 and 𝑌, the PPMCC is
𝑛 ∑ 𝑥𝑦−∑ 𝑥 ∑ 𝑦
𝑟= 2 2 2 2
√(𝑛 ∑ 𝑥 −(∑ 𝑥) )(𝑛 ∑ 𝑦 −(∑ 𝑦) )
If the increase in one results to the increase in
the other , then we say that the variables are
positively correlated.
Example 5.4
If the increase in one results to the decrease in
the other or vice versa , then the variables are The data below shows the scores of students in
said to be negatively correlated. mathematics (X) and economics(Y).
The correlation coefficient between two Maths(x) 70 49 58 12 67 23 12
variables , denoted as 𝑟 lies between 1 and −1,
i.e −1 ≤ 𝑟 ≤ 1. Econs. (y) 46 78 12 78 78 12 67
The following are different degrees of
correlation:
Obtain the PPMC and interpret the result.
1. If 𝑟 = 1, then the variables are said to
have a perfect positive correlation. i.e Solution
both will increase or decrease at the
same ate. Using the formula 𝑟 =
2. If 𝑟 = −1, then the variables are said t 𝑛 ∑ 𝑥𝑦−∑ 𝑥 ∑ 𝑦
have a perfect negative correlation, i.e √(𝑛 𝑥 −(∑ 𝑥)2 )(𝑛 ∑ 𝑦 2 −(∑ 𝑦)2 )
∑ 2
23 12 276 529 144 However , if there exist a tie , then the rank of
the values having the tie is the same ; this is as
12 67 804 144 4489 illustrated in the examples below.
Y 3 7 12 7
∑ 𝑦 2 = 25145.
𝑑 = 𝑅𝑥 − 𝑅𝑦
𝑅𝑥 and 𝑅𝑦 are the ranks of 𝑥 and 𝑦 respectively From the table above ,∑ 𝑑𝑖2 = 5 & 𝑛 = 4, hence
6(5) 1
in increasing or decreasing order of magnitude. 𝑟 =1− = 1 − = 0.5
4(4 2 −1) 2
To obtain the ranks of a set of values, we The variables have a moderate positive
identify the smallest value and give it a rank of 1 correlation.
, the next smallest value is given a rank of 2 and
so on. Example 5.6
Page 34 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Obtain the Spearman’s rank correlation i.e coefficient of determination is 𝑅 2 and it lies
coefficient for the data given below. between 0 and 1.
X 2 4 7 1 6 8 2 i.e 0 ≤ 𝑅 2 ≤ 1 or 0% ≤ 𝑅 2 ≤ 100%
Y 4 7 1 6 7 5 6 Example 5.7
𝑥 𝑦 𝑅𝑥 𝑅𝑦 𝑑𝑖 𝑑𝑖2 3 6
2 4 2 2 0 0 6 12
4 7 4 6 -2 4 2 8
7 1 6 1 5 25 4 9
1 6 1 4 -3 9 8 7
6 7 5 6 -1 1 6 10
8 5 7 3 4 16 2 5
2 6 2 4 -2 4
Solution
6(59) 𝑥 𝑦 𝑥𝑦 𝑥 2 𝑦2
𝑟 =1− = 1−= −0.0536.
7(72 − 1)
3 6 18 9 36
5.3 Coefficient of Determination
6 12 72 36 144
The coefficient of determination for a set of
pairs o data , also called the Goodness of fit is 2 8 16 4 64
the measures that determines the amount of
variation in the dependent variable that can be 4 9 36 16 81
explained by the independent variable. It is the
square of the correlation coefficient between the 8 7 56 64 49
two variables.
6 10 60 36 100
Page 35 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
= 0.47.
6
Construction of Confidence Interval
Page 36 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
From the given , the sample size is𝑛 = 200 ≥ From the 𝑡 𝑡𝑎𝑏𝑙𝑒, 𝑡0.05 (16) = 1.246
30.
2.059
The sample mean and variance are 𝑥̅ = ∴ 𝐶. 𝐼 = 22.3 ± 1.746 ( )
√17
1.07 𝑎𝑛𝑑 𝑆 2 = 0.25 ⇒ 𝑆 = 0.5.
= 22.3 ± 0.8719
This falls in the 3rd category. Using 𝐶. 𝐼 = 𝑥̅ ±
𝑆 ⇒ 𝐿𝑜𝑤𝑒𝑟 𝐿𝑖𝑚𝑖𝑡(𝐿𝐿) = 22.3 − 0.8719 =
𝑍∝⁄ . 𝑛, where ∝= 1 − 99%
2 √ 21.4281and
= 1 − 0.99 = 0.01 𝑈𝑝𝑝𝑒𝑟 𝐿𝑖𝑚𝑖𝑡(𝑈𝐿) = 22.3 + 0.8719
0.01 = 23.1719
⇒ 𝛼⁄2 = = 0.005.
2 Therefore , the confidence interval is
𝑍0.005 = 2.578 𝜇𝜖[21.4281𝑚𝑚, 23.1719𝑚𝑚].
Page 38 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
= 10. 𝑡0.025 (10) = 2.228. Example 6.4: Assuming the weights loss (in
gms) of 12 rabbits fed on diet A were
6.95
𝐶. 𝐼 = 55.53 ± 2.228 ( ) 12.8,14.8,13.5,16.0,18.1,15.1,11.4,15.2,10.2,
√11
= 55.53 ± 4.6662 14.6,15.5,17.1 while the loss in 10 rabbits fed
on diet B were
Therefore, there is a 95% chance that the mean 9.3,11.5,14.6,10.7,13.2,12.6,16.7,10.6,13.1
hardness of the material lies between 50.864 and
60.1962. , 12.7. If there these are independent
observations drawn from two normal
6.2.2 Confidence Interval for Difference in populations, construct a 90% 𝐶. 𝐼 for the
Population Means(𝝁𝟏 , 𝝁𝟐 ) difference in population mean weight loss and
interpret your results.
Let (𝑥̅1 , 𝑥̅2 ) and (𝜎1 2 , 𝜎2 2 ) be the sample means
and the population vectors of two population. A Solution
confidence interval ca be constructed for the
difference in population means . just like that for We need to obtain the sample mean and variance
a single mean , we have different cases thatfor of both populations.
the difference in population means.
For diet A:
Case1: The sample sizes are large and the
∑ 𝑥𝐴 12.8+14.8+13.5+16.0+⋯+17.1
population variances are known. i.e 𝑛1 , 𝑛2 ≥ 30 𝑥̅𝐴 = = = 14.5
𝑛𝐴 12
and (𝜎1 2 , 𝜎2 2 ) is known. ∑(𝑥𝐴 −𝑥̅𝐴 )2
and 𝑆𝐴2 = 𝑛𝐴 −1
=
The confidence interval for the difference in (12.8−14.5)2 +(14.8−14.5)2 +(13.5−14.5)2 +⋯+(17.1−14.5)2
population means 𝜇1 − 𝜇2 is (𝑥̅1 − 𝑥̅2 ) ± 12−1
𝜎2 𝜎22
𝑍∝⁄ . √ 1 + 𝑆𝐴2 = 4.701
2 𝑛1 𝑛2
Case2: The sample sizes are small and the For diet B:
population variances are unknown. Ie 𝑛1 , 𝑛2 < ∑ 𝑥𝐵 9.3+11.5+14.6+10.7+⋯+12.7
30 and (𝜎1 2 , 𝜎2 2 ) is unknown. 𝑥̅𝐵 = = = 12.5
𝑛𝐵 10
∑(𝑥𝐵 −𝑥̅𝐵 )2
In this, we use (𝑥̅1 − 𝑥̅2 ) ± and 𝑆𝐵2 = 𝑛𝐵 −1
=
𝑆2 𝑆2 (9.3−12.5)2 +(11.5−12.5)2 +(14.6−12.5)2 +⋯+(12.7−12.5)2
𝑡∝⁄ ,(𝑛1 +𝑛2 −2) . √𝑛1 + 𝑛2 , where 𝑛1 + 𝑛2 − 2 = 10−1
2 1 2
𝑑. 𝑓 𝑆𝐵2 = 4.56
Case3: The sample sizes are small and the 2
𝑆𝐴 𝑆2
population variances are unknown. Ie 𝑛1 , 𝑛2 < Using (𝑥̅𝐴 − 𝑥̅𝐵 ) ± 𝑡∝⁄ ,(𝑛 +𝑛 −2) . √
𝑛
+ 𝑛𝐵 ,
2 𝐴 𝐵 𝐴 𝐵
30 and (𝜎1 2 , 𝜎2 2 ) is unknown but estimated to where ∝= 1 − 90% = 0.10
be equal(𝜎1 2 = 𝜎2 2 ).
Page 39 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝑛𝐴 = 50 𝑛100 = 100
4.701 4.56
𝐶. 𝐼 = (14.5 − 12.5) ± 1.725√ +
12 10 𝑥̅𝐴 = 7.82ℎ𝑟𝑠 𝑥̅𝐴 = 6.75ℎ𝑟𝑠
∴ 𝜇𝐴 − 𝜇𝐵 𝜖[0.412,3.5883]. There is a 90% The sample sizes are large, hence we are to use
chance that the difference in the mean weights the 𝑍 distribution.
of the rabbits between the two diets lies between
0.412 and 3.5883. 𝑆2 𝑆2
Using (𝑥̅𝐴 − 𝑥̅𝐵 ) ± 𝑍∝⁄ . √𝑛𝐴 + 𝑛𝐵 , where ∝=
2 𝐴 𝐵
Example 6.5: Of two similar groups of patients 1 − 99% = 0.01
A and B , consisting of 50 and 100 individuals
respectively. The first was given a new type of ⇒ ∝⁄2 =
0.01
= 0.005 and 𝑍0.005 = 2.576.
sleeping pill and the second was given a 2
conventional type. For patience in group A , the
mean number of hours of sleep was 7.82 with a 0.242 0.302
standard deviation of 0.24hrs. for patience in 𝐶. 𝐼 = (7.82 − 6.75) ± 2.676√ +
50 100
group B , the mean number of hours was 6.75
with a standard deviation 0f 0.30hrs. find a 99% = 1.07 ± 0.11669 .
confidence limits for the difference in the mean
number of hours of sleep induced by the two The confidence interval is [0.95331,1.18669].
sleeping pills.
Solution
7
Test of Hypothesis
It’s not uncommon for one to make statement believe and different statements about the
about given phenomenon based on personal phenomenon.
believe or experience. In most cases , one
person’s experience may differ significantly In statistics , it is neither sufficient nor of good
from some other person’s, hence different practice for conclusions to be made about
situations(populations) based on personal
experience ; before such generalizations can be
Page 40 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Rejection region: This is the statistics that leads Case3: When sample size is large(𝑛 ≥ 30) and
to the rejection of the null hypothesis; this is also the population variance(𝜎 2 ) is unknown.
called the critical region.
Since the sample size is large , the 𝑍 statistic is
Acceptance region: This is the statistics that used.
leads to the acceptance of the null hypothesis.
(𝑥̅ −𝜇0 )√𝑛
i.e 𝑍 = ~𝑁(0,1)
Decision Rule: This is a rule that guides the 𝑆
researcher , as to whether reject or accept the
in all these cases , the hypotheses are
null hypothesis.
𝐻0 : 𝜇 = 𝜇0
Generally , in test of significance , we reject the
null hypothesis if vs
|𝑐𝑎𝑙. 𝑠𝑡𝑎𝑡. | > 𝑡𝑎𝑏𝑢𝑙𝑎𝑡𝑒𝑑 𝑠𝑡𝑎𝑡. In particular , 𝑖. 𝐻1 : 𝜇 ≠ 𝜇0
for
𝑖𝑖. 𝐻1 : 𝜇 > 𝜇0 or
i. Two tailed test , the decision rule is
“reject 𝐻0 if |𝑍𝑐𝑎𝑙. | > 𝑍∝⁄ ” 𝑖𝑖𝑖. 𝐻1 : 𝜇 < 𝜇0
2
ii. One tailed test, we reject 𝐻0 if
𝑍𝑐𝑎𝑙. > 𝑍∝ (one tailed to the right) Example 7.1: (Question 18-19,Section A;
2014/2015)
𝑍𝑐𝑎𝑙. < −𝑍∝ (one tailed to the left) Assuming that the mean age of a certain
population is 17yrs . a random sample of 25
Note : in two tailed test , we use 𝛼⁄𝟐 and ∝ for people drawn from this population shows a
one tailed tests. mean of 18.1yrs and a sample variance of 16.
The same principals are applied for t test. a. What is the calculated test statistic?
b. Is the population mean greater than what
7.3 Test About a Single Population Mean is specified based on sample observation
at 𝜶 = 5%?
We shall consider the test under the following
cases Solution
Case1: When sample size is large(𝑛 ≥ 30) and From the given statement, 𝜇0 = 17𝑦𝑟𝑠, 𝑛 =
the population variance(𝜎 2 ) is known. 25, 𝑥̅ = 18.1 & 𝑆 = √16 = 4.
Page 42 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
a. What is the calculated test statistic? This is a two tailed test, 𝑍∝⁄ = 𝑍0.025 = 1.96
2
b. Do we accept the hypothesis at ∝= 5%?
Since |−0.6484| = 0.6484 ≯ 1.96, we accept
Solution the null hypothesis and conclude that the mean
weight is 3.2𝑘𝑔.
a. Given 𝑛 = 50, 𝑥̅ = 1490, 𝜇0 =
1500 & 𝑆 = 31 Example 7.4: (Question 2(b), 2005/2006
(𝑥̅ −𝜇0 )√𝑛 Session)
Using 𝑍 = 𝑆
(1490−1500)√50 An electric engineer proposes that the time to
i.e 𝑍 = 31
= −2.2810
repair a particular electronic instrument exceeds
48hrs. 20 such instruments requiring repair were
b. This is a two tailed test, hence the
randomly chosen with repair times as follows
hypotheses are
𝐻0 : 𝜇 = 1500 39 50 51 48 54
𝐻1 : 𝜇 ≠ 1500
Using 5% level of significance,𝑍𝑐𝑟𝑖𝑡. = 48 54 53 49 50
1.96.
Since |−2.2810| = 2.2810 > 1.96, 46 43 49 50 49
hence we reject the null hypothesis .
60 54 52 53 52
Page 43 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Solution 𝐻0 : 𝜇1 = 𝜇2
Reject the null hypothesis if 𝑡𝑐𝑎𝑙 > 𝑡𝑡𝑎𝑏. Case3: When the sample sizes are small and the
population variance are unknown but estimated
Now, 𝑡𝑐𝑎𝑙 = 0.81764 ≯ 𝑡𝑡𝑎𝑏. = 1.729, hence to be equal.
we accept the null hypothesis and conclude that
the mean hour for the repair of the instrument is Since the sample size is small, we shall make
48hrs. use of the 𝑡 statistic .but with the pooled sample
variance
𝑥̅1 −𝑥̅1
7.4 Hypothesis about Equality of two i.e 𝑡 = 1 1
~𝑡(𝑛1 +𝑛2 −2), where 𝑆𝑝2 is the
𝑆𝑝 √ +
𝑛1 𝑛2
Population Means
pooled variance and is calculated , thus 𝑆𝑝2 =
In this , we wish to test the hypothesis that two (𝑛1 −1)𝑆12 +(𝑛2 −1)𝑆22
population mean are the same. If (𝜇1 , 𝜇2 ) and 𝑛1 +𝑛2 −2
(𝜎12 , 𝜎22 ) are the mean and variance vectors of
the two populations , then the hypotheses are Example 7.5: (Question 48-50,Section
A,2014/2015)
Page 44 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Ten soldiers visited their shooting range for two 𝐻1 : There’s a significant difference in their
weeks running. For the first week, their scores performance.
were 67,24,57,55,63,54,56,68,33 & 43. For the
second week, their scores were Since the sample sizes are small and the
70,38,58,58,56,67,68,77,42 & 38. Is there any population variances are unknown but known to
significant difference between their be equal , then the sample statistics to be used is
𝑥̅ −𝑥̅
performances in the two weeks? (Assume the 𝑡 = 1 1 1 1 ~𝑡(𝑛1 +𝑛2 −2)
population variances are equal). Take the level 𝑆𝑝 √ +
𝑛1 𝑛2
significance as 𝛼 = 5%.
Where the pooled variance is
Solution
(𝑛1 − 1)𝑆12 + (𝑛2 − 1)𝑆22
We need to obtain the mean and the variance for 𝑆𝑝2 =
𝑛1 + 𝑛2 − 2
the two weeks period.
(10 − 1) × 209.11 + (10 − 1) × 193.3
For the first week , we have the following: =
10 + 10 − 2
∑10
𝑖=1 𝑥 67 + 24 + 57 + 55 + ⋯ + 43 𝑆𝑝2 = 201.1
𝑥̅1 = =
10 10
⇒ 𝑆𝑝 = 14.185
∑10
𝑖=1(𝑥−𝑥̅ )
2
𝑥̅1 = 52 and 𝑆12 = 𝑛−1
52 − 57.2
(67 − 52)2 + (24 − 52)2 + (57 − 52)2 + ⋯ + (43 − 52)2
𝑡= = −0.8195
= 1 1
9 14.185√10 + 10
𝑆12 = 209.11 This is a two way test , hence the critical value is
𝛼
For week two , we have the mean and variance to be calculated at 2 , under 10+10-2=18
as degree of freedom, hence we have 𝑡0.025 (18) =
1.734.
∑10
𝑖=1 𝑥 70 + 38 + 58 + 58 + ⋯ + 38
𝑥̅2 = = Since |−0.8195| = 0.8195 < 1.734, we accept
10 10
the null hypothesis and conclude that there is no
= 57.2 𝑎𝑛𝑑 the variance is significant difference in their performance.
∑10
𝑖=1(𝑥 − 𝑥̅ )
2
Example 7.6:
𝑆22 =
𝑛−1
Suppose we are interested in the mean number
of hours worked by blue-caller workers and
white –caller workers. A random sample of 100
(70 − 57.2)2 + (38 − 57.2)2 + (58 − 57.2)2 + ⋯ + blue-caller 2
(38 − 57.2)workers has a mean of 42.4hrs/week
=
9 with a known population standard deviation of
3hrs/week. A random sample of 140 white-caller
𝑆22 = 193.3 workers has a mean of 39.8hrs/week with a
known population standard deviation of 5.4hrs.
The hypotheses are
Test the hypothesis of no significant difference
𝐻0 : There’s no significant difference between
between the two groups at∝= 5%.
their performance .
Solution
Page 45 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝑛1 = 140 𝑛2 = 040 𝐻0 : 𝜇𝐴 = 𝜇𝐵
𝐻0 : 𝜇𝐴 < 𝜇𝐵
𝑆1 = 5.4ℎ𝑟𝑠 𝑆2 = 3ℎ𝑟𝑠
This is a one tailed test to the right.
𝑥̅1 −𝑥̅1
Since the sample sizes are large, we use the 𝑍 Using 𝑍 =
𝜎 2𝜎 2
statistic √ 1+ 2
𝑛1 𝑛2
𝑥̅1 −𝑥̅1
i.e 𝑍 = ~𝑁(0,1) i.e 𝑍 =
84.6−88.3
= −3.884
𝑆2 𝑆2 35.4 49
√ 1+ 2 √ +
𝑛1 𝑛2 120 80
Page 46 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝑑̅ √𝑛 ∑ 𝑑 𝑛 Hypothesis
𝑡= ~𝑡(𝑛−1), where 𝑑̅ = 𝑖=1 𝑖 and 𝑆𝑑2 =
𝑆𝑑 𝑛
∑𝑛 (𝑑
𝑖=1 𝑖 −𝑑̅ )2 𝐻0 : The training is not effective (𝜇𝐴 = 𝜇𝐵 )
𝑛−1
for 𝑑𝑖 = 𝑥𝑖 − 𝑦𝑖
𝐻1 : The training is effective (𝜇𝐵 < 𝜇𝐴 )
The modified table is as shown below:
This is a one tailed test to the left.
Bef 78 76 74 80 81 86 76 78
𝑑̅ √𝑛
ore .6 .6 .5 .8 .6 .2 .2 .4 The test statistic is 𝑡 = 𝑆𝑑
~𝑡(𝑛−1)
Afte 76 75 74 79 80 85 74 76 Befor 1 1 1 8 7 1 3 0 5 6
r .5 .2 .0 .8 .3 .7 .7 .8 e 2 4 1 0
d 2. 1. 0. 1 1. 0. 1. 1. After 1 1 1 7 5 1 1 2 3 8
1 4 5 3 5 5 6 5 6 0 2 0
𝑑𝑖 -3 -2 1 1 2 -2 -7 - 2 -
2 2
From the above table , ∑𝑛𝑖=1 𝑑𝑖 = 9.9, hence 𝑑̅ =
∑𝑛
𝑖=1 𝑑𝑖 9.9
𝑛
= 8
= 1.2375 and the variance is 𝑆𝑑2 =
∑𝑛 ̅ 2
𝑖=1(𝑑𝑖 −𝑑 )
= 12
𝑛−1
(2.1−1.24)2 +(1.4−1.24)2 +(0.5−1.24)2 +⋯+(1.6−1.24)2 𝑑̅ = − = −1.2
10
8−1
𝑆𝑑2
𝑆𝑑2 = 0.303 ⇒ 𝑆𝑑 = √0.303 = 0.5505 (−3 + 1.2)2 + (−2 + 1.2)2 + ⋯ + (−2 + 1.2)2
=
1.24√8 10 − 1
The calculated statistic is 𝑡 = 0.5505 = 6.37 = 7.73 ⇒ 𝑆𝑑 = 2.781
8
Chi-Square Test
Chi- square test is used in testing observations N is the grand total , i.e 𝑁 = ∑𝑚
𝑖=1 𝑅𝑖
that are frequencies of categorical data,
𝑛
displayed on a table known as contingency
table. = ∑ 𝐶𝑗
𝑗=1
Contingency Table
The chi-Square test statistic is 𝜒 2 =
This is a table that displays the observed 2
(𝑜𝑖𝑗 −𝑒𝑖𝑗 )
frequencies froma given research or set of data. ∑𝑛𝑗=1 ∑𝑚
𝑖=1
2
~𝜒(𝑚−1)(𝑛−1)
𝑒𝑖𝑗
An 𝑚 × 𝑛contingencytable is as shown below
Where 𝑒𝑖𝑗 is the expected or theoretical
frequency of the observation in the (I,j)th cell.;
1 2 3 n Total 𝑅𝑖 ×𝐶𝑗
its value is obtained thus, 𝑒𝑖𝑗 = and (𝑚 −
𝑁
1 𝑜11 𝑜12 𝑜13 ... 𝑜1𝑛 𝑅1 1)(𝑛 − 1) is the degree of freedom.
2 𝑜21 𝑜22 𝑜23 ... 𝑜2𝑛 𝑅2 8.1 Application of the chi-square statistic
3 𝑜31 𝑜32 𝑜33 ... 𝑜3𝑛 𝑅3 The 𝜒 2 statistic can be used for the following
tests
. . . . . . .
1. To test for independence of attributes
. . . . . . . 2. To test if two or more samples are from
the same population
. . . . . . . 3. To test for goodness of fit
2 2
Reject 𝐻0 if 𝜒𝑐𝑎𝑙 > 𝜒𝑡𝑎𝑏 . From the table above , we need to obtain the
expected frequencies using the formula
Example 8.1
𝑅𝑖 × 𝐶𝑗
A psychologist classified 1725 school children 𝑒𝑖𝑗 =
𝑁
according to intelligence and family income
level. This is shown in the table below. 𝑅1 × 𝐶1 636 × 449
⇒ 𝑒11 = = = 165.54
𝑁 1725
Intelligence
𝑅1 × 𝐶2 636 × 942
𝑒12 = = = 347.32
Income Dull Intelligent Average 𝑁 1725
𝑅1 × 𝐶3 636 × 334
Well clothed 81 322 133 𝑒13 = = = 123.14
𝑁 1725
Averagely clothed 141 457 153 𝑅2 × 𝐶1 751 × 449
𝑒21 = = = 195.48
Poorly clothed 127 163 48 𝑁 1725
𝑅2 × 𝐶2 751 × 942
𝑒22 = = = 410.11
𝑁 1725
Test for independence at ∝= 1% 𝑅2 × 𝐶3 751 × 334
𝑒23 = = = 145.41
𝑁 1725
Solution
𝑅3 × 𝐶1 338 × 449
The hypotheses are 𝑒31 = = = 87.98
𝑁 1725
𝐻0 : intelligence is independent of family 𝑅3 × 𝐶2 338 × 942
income. 𝑒32 = = = 184.58
𝑁 1725
𝐻1 : intelligence is not independent of family 𝑅3 × 𝐶3 338 × 334
income. 𝑒33 = = = 65.44
𝑁 1725
From the table above , the complete table is as The chi square statistics is
shown below.
(181 − 165.54)2 (322 − 347.32)2
Intelligence Total 𝜒2 = +
165.54 347.32
(133 − 123.14)2
Income Dull Intelligent Average + +⋯
123.14
(48 − 65.44) 2
Well 181 322 133 636 + = 49.4966
65.44
clothed
The degree of freedom is (3-1)(3-1)=4 and the
Averagely 141 457 153 751 level of significance is 1%=0.01.
clothed
The critical value is 𝜒42 (0.01) = 13.28.
Poorly 127 163 48 338
Since the calculated is greater than the tabulated,
clothed
we reject the null hypothesis and conclude that
that students intelligence level is not
Total 449 942 334 1725
independent on family income.
Page 49 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Page 50 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
The hypotheses for this test are Two distributions (poisson and exponential )
have been suggested as possible fits for the data
𝐻0 : The data fits the distribution. below.
𝐻1 : The data does not fit the distribution. No of 0 1 2 3 4 5 6 7 8 9
∑(𝑜𝑖 −𝑒𝑖 )2 Errors
The test statistics is 𝜒 2 = 𝑒𝑖
, where 𝑒𝑖 =
𝑁𝑃(𝑥𝑖 ). Frequency 18 53 103 107 82 46 18 10 2 1
Solution
9
Analysis of Variance (ANOVA)
ANOVA is based on the F-test statistic or Level: A level is the amount , method , class of
Variance Ratio Statistic. a factor being used on a set of data. Level of
factor is also considered as treatments; for
Assumptions of ANOVA instance , if the factor being considered is
Detergent , the the following are possible
i. The observations are treatments or levels of factor: OMO,KLIN,
independent SUNLIGHT DETERGENT e.t.c
ii. The populations from which the
observations are taken are
Normally distributed.
Page 51 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
Block: A block is a group of items that are 𝑋𝑖𝑗 = 𝜇 + 𝛼𝑖 + 𝑒𝑖𝑗 ; 𝑖 = 1,2,3, … , 𝑘 𝑎𝑛𝑑 𝑗 =
homogeneous or whose characteristics are not so ,2,3, … , 𝑛
different , compared to other items.
Where
There are different classifications of ANOVA, in
this text , we shall consider one-way and Two- 𝑋𝑖𝑗 is the effect on the jth replication due to the
Ways ANOVA. ith treatment.
9.2 ONE-WAY (FACTOR) ANOVA 𝜇 is the grand mean or the overall mean.
A one-way ANOVA is one in which only one 𝛼𝑖 is the mean effect of the ith treatment.
factor is being considered. For example , a
botanist may be interested in the effect of 𝑒𝑖𝑗 is the random error on the jth replication due
different types of fertilizers on his/her crops. In to the ith treatment and 𝑒𝑖𝑗 ∼ 𝑁(0, 𝜎𝑒2 )
this, the types of fertilizer becomes the
levels(treatments ) of the factor(Fertilizer). ⇒the estimated model is 𝐸(𝑋𝑖𝑗 ) = 𝜇̂ + 𝛼̂𝑖 ; 𝑖 =
1,2,3, … , 𝑘 𝑎𝑛𝑑 𝑗 = ,2,3, … , 𝑛
The table of observations for the one-way
ANOVA is as shown below. 9.2.1 Statistical Analysis of the model
Treatments Replications To analyze the one-way ANOVA , we consider
the different sources of variation and the
1 2 3 … n Total relationship between them.
1 𝑥11 𝑥12 𝑥13 ... 𝑥1𝑛 𝑇1 It has been found that , for a one way ANOVA,
there are three different sources of variation,
2 𝑥21 𝑥22 𝑥23 . . . 𝑥2𝑛 𝑇2 namely:
where
The grand total is 𝑇 = ∑𝑘𝑖=1 𝑇𝑖
𝑛 𝑘
The mean effect of due to the ith treatment 𝑆𝑆𝑇 = ∑ ∑ 𝑋𝑖𝑗 − 𝐶. 𝐹
∑𝑛
𝑗=1 𝑥𝑖𝑗
is𝑥̅𝑖 = 𝑛
;𝑗 = 1,2, … , 𝑘 𝑗=1 𝑖=1
𝑘
The above able is of of 𝑘 treatments and 𝑛
𝑆𝑆𝑡 = 1⁄𝑛 ∑ 𝑇𝑖2 − 𝐶. 𝐹 𝑎𝑛𝑑
replications.
𝑖=1
The general model of the one-way ANOVA is
Page 52 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝐶. 𝐹 is the correction factor and it is equal to the same test . the table below shows the test
𝑇2 𝑇2 score of the student.
𝑛𝑘
= 𝑁
Using the above information , answer the
9.2.2 ANOVA table following questions.
The ANOVA table for the one way ANOVA is i. Determine the mean score for the
as shown below different methods, 𝑥̅1 , 𝑥̅2 , 𝑥̅3
respectively.
S.V d.f SS MS F-ratio
ii. Determine the grand mean
iii. Determine the total variation.
Treatment 𝑘 𝑆𝑆𝑡 𝑀𝑆𝑡 𝐹
iv. Determine the variation between
−1 𝑆𝑆𝑡 𝑀𝑆𝑡
(Between) = = methods.
𝑘−1 𝑀𝑆𝑒 v. Determine the variation within
methods.
Error 𝑛𝑘 𝑆𝑆𝑒 𝑀𝑆𝑒 vi. Determine at 𝛼 = 5%, whether
−𝑘 𝑆𝑆𝑒 there is a significant difference
(Within) =
𝑛𝑘 − 𝑘 amongst the teaching methods.
Total 𝑛𝑘 𝑆𝑆𝑇 Teaching methods Test Score
−1
Method1 3 7 4 6
Method2 4 2 3 3
Hypotheses
Method3 6 4 5 5
The hypotheses for the one way ANOVA are
Hypotheses
Page 54 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
𝐻0 : There’s no significant difference amongst 𝑆𝑆𝑒 = 𝑆𝑆𝑇 − 𝑆𝑆𝑡 = 184.95 − 27.2 = 157.75
the different varieties of wheats.
ANOVA table
𝐻0 : There’s a significant difference amongst the
different varieties of wheats. S.V d.f SS MS F-ratio
E 21 14 17 18 70 Total 19 184.95
Page 55 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
For example , the performance of students in a 𝛼𝑖 is the mean effect of the ith
class may depend on the method of teaching and treatment.
the tutor in charge of the class.
𝛽𝑗 is the mean effect of the jth block.
The table for two way ANOVA is as shown
below 𝑒𝑖𝑗 is the random error of the jth block
due to the ith treatment.
treatments Blocks
Hypotheses
1 2 3 … n 𝑋𝑖.
There are two sets of hypotheses for the two
1 𝑥11 𝑥12 𝑥13 … 𝑥1𝑛 𝑋1. way ANOVA without interaction; for the
treatment and the block.
2 𝑥21 𝑥22 𝑥23 … 𝑥2𝑛 𝑋2.
𝐻0𝑡 : There’s a significant difference amongst the
3 𝑥31 𝑥32 𝑥33 … 𝑥3𝑛 𝑋3. treatment.
𝑋.𝑗 𝑋.𝑗 𝑋.𝑗 𝑋.𝑗 … 𝑋.𝑗 𝑋.. In this, we have four sources of variation ,
namely: treatment, block , error and total. The
Where 𝑋𝑖. Is the total observed effect due to the relationship amongst these variation is as shown
ith treatment. below.
𝑋.𝑗 is the total observed effect due to the 𝑆𝑆𝑇 = 𝑆𝑆𝑡 + 𝑆𝑆𝑏 + 𝑆𝑆𝑒 ⇒ 𝑆𝑆𝑒
jth block. = 𝑆𝑆𝑇 − 𝑆𝑆𝑡 − 𝑆𝑆𝑏
Note: the treatment is not always on the row of Where 𝑆𝑆𝑇 = ∑𝑛𝑗=1 ∑𝑘𝑖=1 𝑋𝑖𝑗 − 𝐶. 𝐹, 𝑆𝑆𝑡 =
the table. It all depends on the definition of the 1⁄ ∑𝑘 𝑋 2 − 𝐶. 𝐹 , 𝑆𝑆𝑡 = 1⁄ ∑𝑛 𝑋 2 −
𝑛 𝑖=1 𝑖. 𝑘 𝑗=1 .𝑗
problem. 𝐶. 𝐹
9.3.1 Model for two way ANOVA without 𝑋..2 𝑋..2
interaction 𝑎𝑛𝑑 𝐶. 𝐹 = =
𝑛𝑘 𝑁
The model for a two way classification without 9.3.2 ANOVA Table
interaction is
S.V d.f SS MS F-
𝑋𝑖𝑗 = 𝜇 + 𝛼𝑖 + 𝛽𝑗 + 𝑒𝑖𝑗
ratio
Where 𝑋𝑖𝑗 is the effect of the ith treatment on
Treatme k-1 SSt 𝑆𝑆𝑡 𝐹𝑡
the jth block. 𝑀𝑆𝑡 =
nt 𝑘−1 𝑀𝑆𝑡
=
𝑀𝑆𝑒
Page 56 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
The decision rule remains the same . reject the 𝐻0𝑡 : there’s no significant difference in
null hypotheses if the calculated value is greater treatment effect.
than the tabulated value.
𝐻0𝑏 : there’s no significant difference in block
Example 9.3 effect.
To study the performance of three detergents 𝐻1𝑡 : there’s a significant difference in treatment
and three different water temperature , the effect
following ‘ whiteness’ reading were obtained
with specially designed equipment. 𝐻1𝑏 : there’s a significant difference in block
effect
Analysis
Detergent 𝑛 𝑘
Page 57 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
The critical value for the detergent and water The complete table is shown below.
temperature are the same.
Chemicals
Decision Rule
Page 58 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988
Intro. to probability and statistics
C 3 6 5 4 18 Total 11 31
Total 18 19 14 15 66
Decision Rule
𝑋..2 662
𝐶. 𝐹 = = = 363
𝑛𝑘 12
𝑛 𝑘
∑ ∑ 𝑋𝑖𝑗 = 82 + 52 + 52 + ⋯ + 42 = 394
𝑗=1 𝑖=1
Page 59 of 59
DETERMINATION and FOCUS are part of the keys to SUCCESS. Build INTEREST in what ever you do and it will be hard for failure to be your
attendant. Just know that “YOU CAN, ONLY IF YOU THINK YOU CAN” For enquiries,call GEORGE WHYTE: 08173887711 or 08165335988