Professional Documents
Culture Documents
Acknowledgement
Acknowledgement
iii
Acknowledgement
Contents
Acknowledgement............................................................................ii
Instructions for Students................................................................iii
Contents...........................................................................................iv
Course Description...........................................................................v
Index................................................................................................vi
LESSON ONE....................................................................................1
LESSON TWO..................................................................................45
LESSON THREE..............................................................................80
LESSON FOUR..............................................................................116
LESSON FIVE................................................................................157
5. Probability.............................................................................................................157
LESSON SIX..................................................................................186
LESSON SEVEN............................................................................229
7. Decision Theory....................................................................................................229
LESSON EIGHT.............................................................................250
8. Operation Research...............................................................................................250
LESSON NINE...............................................................................294
9. Revision Aid..........................................................................................................294
QUANTITATIVE TECHNIQUES
v
Contents
Course Description
Course Description
vi
Index
QUANTITATIVE TECHNIQUES
Lesson One
1
LESSON ONE
1. Linear Algebra and Matrices
Contents
- Functions and graphs
- Linear equations, higher order equations, inequalities and
simultaneous equations
- Matrix algebra
- Application of matrix algebra output analysis and elementary
Markovian.
- Input output analysis.
- Markovian Process.
QUANTITATIVE TECHNIQUES
2
Algebra and Matrices
Linear
1.1
Functions and graphs
A function is a mathematical relationship in which the value of a single
dependent variable are determined from the values of one or more
independent variables. The following is an example of a function in which
y is said to be a function of x.
y = a + bx
In the example, both x and y are variables this is because they may
assume different values throughout the analysis of the function. On the
other hand, a and b are referred to as constants because they assume
fixed values.
The variable y is a dependant variable in the sense that its values are
generated from an independent variable x.
The collection of all the values of the independent variable for which the
function is defined is referred to as the domain of the function
corresponding to this we have the range of the function, which is the
collection of all the values of the dependent variable defined by the
function
The fact that it is a function of x can also be denoted by the following
general form
y = f(x)
Functions of a single independent variable may either be linear or non
linear.
Linear functions can be represented by:
y = a + bx
Whereas non linear functions can be represented by functions such as:
i.
ii.
iii.
iv.
v.
vi.
y = o + 13 x + 2x3
y2 = 3x + 18
y = 2x2 + 5x + 7
where , a, b, c, d, k =
ax2 + bx + cy + d = 0constants
xy = k
y = ax
Graph of a function
A graph is a visual method of illustrating the behaviour of a particular
function. It is easy to see from a graph how as x changes, the value of the
f(x) is changing.
The graph is thus much easier to understand and interpret than a table
of values. For example by looking at a graph we can tell whether f(x) is
increasing or decreasing as x increases or decreases.
We can also tell whether the rate of change is slow or fast. Maximum and
minimum values of the function can be seen at a glance. For particular
values of x, it is easy to read the values of f(x) and vice versa i.e. graphs
can be used for estimation purposes
Different functions create different shaped graphs and it is useful
knowing the shapes of some of the most commonly encountered
functions. Various types of equations such as linear, quadratic,
Lesson One
3
trigonometric, exponential equations can be solved using graphical
methods.
Equations
An equation is an expression with an equal sign (=)
Equations are classified into two main groups linear equations and non
linear equations. Examples of linear equations are
x + 13 = 15
7x + 6 = 0
Non linear equations in the variable x are equations in which x appears
in the second or higher degrees. They include quadratic and cubic
equations amongst others. For example
5x2 + 3x + 7 = 0 (quadratic equation)
2x3 + 4x2 + 3x + 8 = 0 (cubic equation)
The solution of equations or the values of the variables for which the
equations hold is called the roots of the equation or the solution set.
Solution of Linear Equation
Supposing M, N, and P are expressions that may or may not involve
variables, then the following constitute some rules which will be useful in
the solution of linear equations
Rule 1: Additional rule
If M = N then M + P = N + P
Rule 2: Subtraction rule
If M = M, Then M P = N P
Rule 3: multiplication rule
If M = N and P O then M x P = N x P
Rule 4: Division rule
If P x M = N and P O
And N/P = Q
Q being a raterial number then
M = N/P
Example
i.
Solve 3x + 4 = - 8
ii.
Solve
y
=-4
3
Solutions
i.
3x + 4 = 8
3x + 4 4 = 8 4
3x = 12
QUANTITATIVE TECHNIQUES
4
Algebra and Matrices
Linear
3x
12
3
3
x=4
ii.
y
3
(simplifying)
4 3
y = 12
(simplifying)
zero
(iv)
equations
Example
Solve the following equation by factorization
i.
6x2 = 18x
ii.
15x2 + 16x = 15
Solutions
i.
6x2 = 18x
6x2 18x = 0....................................(step 1)
6x(x 3) = 0.....................................(step 2)
6x = 0...............................................(step 3)
and x 3 = 0
Lesson One
5
x = 0 or x = 3 ...............................(by step 4)
15x2 + 16x = 15
ii.
5x 3) = 0} Step 3
3x + 5 = 0}
x=-5
or + 3 ...........................(step 4)
iv.
v.
Solve for x
Example
Solve by completing the square.
i.
3x2 = 9x
ii.
2x2 + 3x + 1 = 0
Solutions
i.
3x2 = 9x or
(3x2 - 9x = 0)
x2 - 3x = 0.............................................. (Step 1)
2
3
3
x 2 3 x
2
2 ..........................(Step 2)
QUANTITATIVE TECHNIQUES
6
Algebra and Matrices
Linear
3
9
x
2
4 ............................................(Step 3)
x 3
9
4 ............................................(Step 4)
3 3
2 2
33 3 3
or
2
2 2
(= 3 or 0)
2x2 + 3x + 1 = 0
ii.
x2 +
X2
or
(2x2 + 3x = -1)
3x
1
= - ..... (Step 1)
2
2
3x 3
2 4
1 (Step 2)
2
3x
1
.. (Step 3)
x+ =
4
16
3
1
x+ =
4
16
3
1
x= =
4
4
3
1
3
1
+ or
4
4
4
4
1
or 1 =
2
ax 2 + bx + c = 0 where a 0
The roots of the equation are obtained by the following formula:
x
b b 2 4ac
2a
Example
Lesson One
7
Solve for x by formula
5x2 + 2x 3 = 0
Solution
a = 5, b = 2, c = - 3
x
b b 2 4ac
2a
2 2 4(5)(3)
2(5)
3
or 1
5
Inequalities
An inequality or inequation is an expression involving an inequality sign
(i.e. >, <, , , i.e. greater than, less than, less or equal to, greater or
equal to) The following are some examples of inequations in variable x.
3x + 3 > 5
x2 2x 12 < 0
The first is an example of linear equation and the second is an example of
a quadratic in equation.
Solutions of inequations
The solutions sets of inequations frequently contain many elements. In a
number of cases they contain infinite elements.
Example
Solve and graph the following inequation
x 2 > 2 ; x c w (where x is a subset of w)
Solution
x 2 > 2 so x 2 + 2 > 2 + 2
Thus, x>4
The solution set is infinite, being all the elements in w greater than 4
0
Example
Solve and graph
3x 7 < - 13;
QUANTITATIVE TECHNIQUES
10
11
8
Algebra and Matrices
Linear
Solution
3x - 7 < -13
3x - 7 + 7 < -13 + 7
3x < -6
3x
-6
<
3
3
x < -2
.. R Line
-4
-3
-2
-1
Lesson One
9
If M/P N/Q where P, Q 0
M1/P > N1/Q
Then P/M Q/N and P/M1 < Q/N1
Note: The rules for solving equations are the same as those for solving
equations with one exception; when both sides of an equation is
multiplied or divided by a negative number, the inequality symbol must
be reversed (see rule 3 & Rule 4 above).
Example
Solve and graph the following:
i.
7 2x > - 11 ;
ii.
5x + 4 2x 10 ;
iii.
3 2x + 1 < 7 ;
Solutions
i.
7 - 2x > -11
-2x > -11 (subtraction rule)
-2x 18
<
(bydivision rule)
-2
-2
x<9
line
-3 -2 -1 0
ii.
-5x + 4x 2x - 10
-7x + 4 10
-7x -14
x2
QUANTITATIVE TECHNIQUES
10
11
10
Algebra and Matrices
Linear
....Q
line
-4
-3
-2
-1
-3 2x + 1 < 7
iii.
-4 2x < 6
-2 x < 3
( by division rule)
Q
line
-4
-3
-2
-1
Lesson One
11
Example
y
10
8
6
(2,
4)
2x + y = 8
4
2
-4
-2
x + 2y = 10
2
10
12
-2
-4
The above figure illustrates:
Solution by graphical method of two equations
2x + y = 8
x + 2y = 10
The system has a unique solution (2, 4) represented by the point of
intersection of the two equations.
b) The elimination technique
This method requires that each variable be eliminated in turn by making
the absolute value of its coefficients equal in the equations of the system
and then adding or subtracting the equations. Making the absolute
values of the coefficients equal necessitates the multiplication of each
equation by an appropriate numerical factor.
Consider the system of two equations i and ii below
2x 3y = 8 .. ..................................i.
3x + 4y = -5 ...................................ii.
Step 1
Multiply (i) by 3
6x 9y = 24 .............................................iii.
Multiply (ii) By 2
6x + 8y = - 10 ..........................................iv.
Subtract iii from iv.
QUANTITATIVE TECHNIQUES
12
Algebra and Matrices
Linear
y = -2
Step 2
Multiply (i) by 4
8x 12y = 32 . ..........................................vi
Multiply (ii) by 3
9x + 12y = -15 .. ..........................................vii
Add vi to vii
17x = 17 ...................................................viii
x=1
c) The substitution technique
i.
.....3x = 4y = -5
ii.
(iii)
Step 2
Substitute this value of x into equation (ii). And obtain an equation in y
only
3x + 4y = -5
3 (4 + 3/2 y) + 4y = -5
8 y = - 17 .
(iv)
Lesson One
13
Step 3
Solve the equation (iv). For y
8 = -17
y = -2
Step 4
Substitute this value of y into equation (i) or (iii) and obtain the value of x
2x 3y = 8
2x 3(-2) = 8
x=1
Example
Solve the following by substitution method
2x + y = 8
3x 2y = -2
Solution
Solve the first equation for y
y = 8 2x
Substitute this value of y into the second equation and solve for x
3x 2y = -2
3x 2 (8-2x) = -2
x=2
Substitute this value of x into either the first or the second original
equation and solve for y
2x + y = 8
(2) (2) + y = 8
y=4
1.3
MATRICES
A matrix is a rectangular array of items or numbers. These items or
numbers are arranged in rows and columns to represent some
information.
The position of an element in one matrix is very important as well be
seen later; therefore an element is located by the number of the row and
column which is occupies.
The size of a matrix is defined by the number of its rows (m) and column
(n).
QUANTITATIVE TECHNIQUES
14
Algebra and Matrices
Linear
a b
For example =
and B =
c d
a b c
d e f
g h i
a11 a12
A= a 21 a 22
a
31 a 32
a13
a 23
a 33
a14
a 24
a 34
or
A = a ij i = 1, 2, 3
j = 1, 2, 3, 4
Properties of matrices
Equal Matrices
Two matrices A and B are said to be equal, that is
A=B
or
a = b
ij
ij
If and only if they are identical if they both have the same number of
rows and columns and the elements in the corresponding locations in the
two matrices should be the same, that is, a ij = bij for all i. And j.
Example
3 4 0 3 4
2 2 3 = 2 2
5 1 1 5 1
Lesson One
15
For example x =
x1
x 2
.
.
.
x n
mxn
aij
aji
mxn
nxm
Example
Find the transposes of the following matrices
1 5 7
A= 2 1 4
0 9 3
B= b1 , b 2 , b3 , b 4
x1
C= x 2
x
3
Solution
QUANTITATIVE TECHNIQUES
16
Algebra and Matrices
i. A
1 5 7
= 2 1 4
0 9 3
Linear
1 2 0
= 5 1 9
7 4 3
ii. BT = b1 , b 2 , b3 , b 4
b1
b
= 2
b3
b 4
x1
T
iii. C = x 2
x
3
x1 x 2 x 3
Square Matrix
A matrix A is said to be square when it has the same number of rows as
columns
Lesson One
17
e.g.
A=
2 5
3 7
B = n n is a square matrix of the order n
Diagonal matrices
It is a square matrix with zeros everywhere in the matrix except on the
principal diagonal
e.g.
3 0 0
A = 0 1 0
0 0 7
9 0 0
, B = 0 0 0
0 0 0
0 1
1 0 0
andI3 0 1 0
0 0 1
2 2 unitmatrix
0 1
3 3unitmatrix
2 x 2 unit matrix
0 0 1
7 9 8
e.g, if A = 2 3 6
1 5 0
2 3 6
7 9
and A 2 =
1 5 0
1 5
then A1 =
QUANTITATIVE TECHNIQUES
18
Algebra and Matrices
Linear
OPERATION ON MATRICES
Matrix addition and subtraction
We can add any number of matrices (or subtract one matrix from
another) if they have the same sizes. Addition is carried out by adding
together corresponding elements in the matrices. Similarly subtraction is
carried out by subtracting the corresponding elements of two matrices as
shown in the following example
Example: Given A and B, calculate A + B and A B
A=
6 1 10 5
4
2 5
3
9 13 6 0
12 4 7 3
B = 0 4 10 4
7 3 7 9
1 10 5 12 4 7 3
18 3 3 8
6
A+B= 3
4
2 5 + 0 4 10 4 = 3 0 12 9
9 13 6 0 7 3 7 9 2 10 1 9
1 10 5 12 4 7 3
6 5 17 2
6
A-B= 3
4
2 5 - 0 4 10
4 = 3
8 8 1
9 13 6 0 7 3 7 9 16 16 13 9
A+B=B+A
b) Associative law: (A + B) + C = A + (B + C)
=A+B+C
Lesson One
19
If A =
6 1 10 5
3 4 2 5
9 13 6 0
60 10 100 50
then (10)A = 30 40 20 50
90 130 60 0
Matrix Multiplication
a) Multiplication of two vectors
Let row vector A represent the selling price in shillings of one unit of
commodity P, Q, R respectively and let column vector B represent the
number of units of commodities P, Q, R sold respectively. Then the vector
product A B will be equal to the total sales value
i. e. A B =
Total sales value
100
100
then 4 5 6 200
= 400 + 1,000 + 1,800 = Shs 3,200
300
Rules of multiplication
i.
ii.
iii.
The row vector must have the same number of elements as the
column vector
The first vector is a row vector and the second is a column
vector
The corresponding elements in each vector are multiplied
together and the results obtained are added. This addition is
always a single number
Going back to the example given before
100
single number
b) Multiplication of two matrices
QUANTITATIVE TECHNIQUES
20
Algebra and Matrices
Linear
Rules
i.
b11
b 21
a11 a12
a 21 a 22
and b =
Let A =
d11 d12
d 21 d 22
Then A B = D =
A = 2 x 2 matrix
b12
b 22
b13
b 23
d13
d 23
B = 2 x 3 matrix
D = 2 x 3 matrix
Where
d11 = a11 b11 + a12 b21
d12 = a11 b12 + a12 b22
Lesson One
21
Example I
6 3 1 5 6 0 1 5 6 2 1 8
6 1
3 0 2
2 3 3 4 2 0 3 5 2 2 3 8
2 3
4 5 8
22 5 20
=
18 15 28
Example II
Matrix X gives the details of component parts used in the make up of two
products P1 and P2 matrix Y gives details of products made on each day of
the week as follows:
Matrix
Y
Products
Matrix
X
P1
Parts
A
P1 3 4
Products
P2 2 5
Mon
Tues
Wed
Thur
Fri
C
2
P2
1 2
2 3
3 2
2 2
1 1
2
YX= 3
2
1
3
2
2
1
5 x 2 matrix
3 4 2
2 5 3
2 x 3 matrix =
13+22
23+32
33+22
23+22
13+12
14+25
24+35
34+25
24+25
14+15
5 x 3 matrix
QUANTITATIVE TECHNIQUES
12+25
22+33
32+23
22+23
12+13
22
Algebra and Matrices
A B
Mon
Tues
Wed
Thur
Fri
12
13
10
5
Linear
14 8
23 13
22 12
18 10
9 5
Interpretation
On Monday, number of component parts A used is 7, B is 14 and C is 8. in
the same way, the number of component parts used for other days can be
interpreted.
The determinant of a square matrix
The determinant of a square matrix det (A) or A is a number associated
to that matrix. If the determinant of a matrix is equal to zero, the matrix
is called singular matrix otherwise it is called non-singular matrix. The
determinant of a non square matrix is not defined.
Determination of a 2 x 2 matrix
a b
c d
= ad - cb
a b c
A d e f
g h i
e f
h i
= a
d f
b
g i
+c
d e
g h
a ei - fh - b di - gf +c dh - eg
simplify
iii.
Determinant of a 4 x 4 matrix
Lesson One
23
A=
a b c d
e f g h
i j k l
m n o p
f g h
A = a j k l
n o p
e g h
b i k
l
n o p
e f h
e f g
+c i j l
d i j
k
m o p
m n o
4 2 3
Let A = 5 6 1
2 3 0
QUANTITATIVE TECHNIQUES
24
Algebra and Matrices
Linear
m11 =
6 1
= 60 31 = 3
3 0
m12 =
5 1
= 50 12 = 2
2 0
Similarly
m13 =
5 6
2 3
m 21 =
=15 12=3
2 3
3 0
m 22 =
=0 9= 9
=0 6= 6
m 32 4 3
m31 = 2 3
6 1
= 2 -18 = -16
4 3
2 0
m 23 =
4 2
2 3
=12 4 = 8
m 33 4 2
5 1
= 4 - 15 = -11
5 6
= 24 -10 = 14
3 2 3
9 6 8
16 11 14
a b c
=
d e f
g h i
Lesson One
25
A B C
= D E F
G H I
A B C
A D G
(transpose)
The inverse of the matrix
is written as
i.e. A -1
a b c
d e f
g h i
1
(ad joint of the matrix of cofactors)
determinant
A D G
1
=
B E H
C F I
QUANTITATIVE TECHNIQUES
26
Algebra and Matrices
Linear
Where = aA + bB + cC
4 2 3
Hence inverse of 5 6 1
2 3 0
is found as follows
= (4 3) + (2 2) + (3 3) = 1
A = -3
B=2
C=3
D=9
E = -6
F = -8
G = -16
H = 11
A D G
B E H
C F I
-1
I = 14
-3 9 -16
2 -6 11
3 -8 14
-3 9 -16
1
2 -6 11
3 -8 14
-3 9 -16
2 -6 11
3 -8 14
Lesson One
27
Example
Solve the following
a) 4x1 + x2 5x3 = 8
-2x1 + 3x2 + x3 = 12
3x1 x2 + 4x 3 = 5
b) 4x1 + 3x3 + 5x3 = 27
x1 + 6x2 + 2x3 = 19
3x1 + x2 + 3x3 = 15
c) 4x1 + 2x2 + 6x3 = 28
3x1 + x2 + 2x3 = 20
10x1 + 5x2 + 15x3 = 70
d) 2x1 + 4x2 3x3 = 12
3x1 5x2 + 2x3 = 13
-x1 + 3x2 + 2x3 = 17
Solution
a) From a, we have
4 1 -5 x1
-2 3 1 x2
3 -1 4 x
3
A
= 12
We need to determine the minors and the cofactors for the above
matrix
Definition
A minor is a determinant of a sub matrix obtained when other elements
are detected as shown below.
A cofactor is the product of (-1) i + j and a minor where
i = Ith row i = 1, 2, 3 .
j = Jth row j = 1, 2, 3 .
QUANTITATIVE TECHNIQUES
28
Algebra and Matrices
Cofactor of 4 (a11) = (-1)
Linear
1+1
2+1
3+1
1+2
2+2
2+3
1+3
2+3
3+3
3 1
= 13
1 4
1
1
1
3
2
3
5
= 1
4
5
= 16
1
1
= 11
4
4 5
= 31
3 4
4 5
= 6
2 1
2 3
= 7
3 1
4 1
= 7
3 1
4 1
= 14
2 3
13 11 7
1 31 7
16 6 14
13 1 16
4 1 5
1
= 2 3
3 1 4
Therefore
Lesson One
29
4 1 5
2 3 1
3 1 4
4 1 5 4 1
2 3 1 2 3
3 1 4 3 1
41 + 57
98
13 1 16
1
=
11 31 6
98
-1 7 14
by multiplying the inverse on both sides of * we have,
4 1 5
13 1 16
1
11 31 6 2 3 1
98
3 1 4
-1 7 14
x1
x
2
x
3
13 1 16 8
1
11 31 6 12
98
5
-1
7
14
98 0 0 x1
1
x
0 98 0
2
98
0 0 98 x 3
1 0 0 x1
= 0 1 0 x 2
0 0 1 x
3
x1
x 2
x
3
196
1
=
490
98
98
2
= 5
1
5
1
X1 = 2, X2 = 5, X3 = 1
c) 4x1 + 2x2 + 6x3 = 28
QUANTITATIVE TECHNIQUES
30
Algebra and Matrices
Linear
3x1 + x2 + 2x3 = 20
10x1 + 5x2 + 15x3 = 70
4 2 6 x1
3 1 2 x2
10 5 15 x
3
4 2 6
3 1 2
10 5 15
28
= 20
70
4 2 6 4 2
3 1 2 3 1
10 5 15 10 5
x1 =
b1a 22 b 2a12
a11a 22 a12a 21
b1 a12
b 2 a 22
a11 a12
a 21 a 22
and
x2 =
a11b 2 - a 21b1
a11a 22 - a12 a 21
a11 b1
a 21 b 2
a11 a12
a21 a22
Lesson One
31
Solutions of x1 and x2 obtained this way are said to have been derived
using Cramers rule, practice this method over and over to internalize it.
Its advisable for exam situation since its shorter.
Example
Solve the following systems of linear simultaneous equations by Cramers
rule:
i)
2x1 5x2 = 7
x1 + 6x2 = 9
ii)
x1 + 2x2 + 4x3 = 4
2x1 + x3 = 3
3x2 + x3 = 2
Solutions
i.
2x1 5x2 = 7
x1 + 6x2 = 9
2 5
1 6
x1
7
=
9
x 2
x1 =
7 -5
9 6
=
2 -5
1 6
x2 =
2
1
2
1
7
9
=
-5
6
87
2
= 5
17
17
11
17
1 2 4 x1
2 0 1 x2
0 3 1 x
4
= 3
2
QUANTITATIVE TECHNIQUES
32
Algebra and Matrices
Linear
4
3
2
x1 =
1
2
0
2
0
3
2
0
3
4
1
1
4
1
1
22
17
1
2
0
x2
1
2
0
4
3
2
2
0
3
4
1
1
4
1
1
9
17
1
2
0
x3
1
2
0
2
0
3
2
0
3
4
3
2
4
1
1
7
17
2 3 x 13
=
3 2 y 12
pre multiply both sides by the inverse of the matrix
2 3
= 5
3 2
and inverse of the matrix is
Lesson One
33
1
5
2 3
3 2
2
5
=
3
3
5
2
5
3
5
2
5
2
5
Therefore x = 2
ii.
2
5
=
3
2 3
3 2
3
5 13 2
=
2 12 3
y=3
Solution:
Writing these equations in matrix format, we get
BX =
A
4 2 3
5 6 1
2 3 0
x
y
z
4
2
-1
3 9 16 4 3
2 6 11 5 6
3 8 14 2 3
hence x = 22
2 x
1 y
0 z
y = -15
3 9 16
= 2 6 11
3 8 14
3 9 16
2 6 11
2 =
-1
3 8 14
22
-15
-18
z = -18
34
Algebra and Matrices
Linear
These are matrices in which the individual elements are in the form of
probabilities.
The probabilities represent the probability of one even following another
event i.e. the probability of transition from one event to the next
The probabilities of the various changes applied to the initial state by
matrix multiplication, give a forecast of the succeeding state.
Normally a transition matrix is defined with its columns adding upto one
and state vectors as column vectors.
In this case the succeeding sated is found by pre-multiplying the
transition matrix by the proceeding state (column) vector
If the transition matrices are given with their rows adding up to one,
then the succeeding state is found by post multiplying the transition
matrix by the preceding state (row) vector.
Example 1
The probability transition matrix of the switching probabilities, consider
that two brands G and X share the market in the ratio of 60% to 40%
respectively of customers. If in every week 70% of Gs customers retain
the brand but 30% switch to product x where as 80% of Xs customers
retain brand but 20% percent switch to brand G. Analyse the exchange in
share market per week.
G
X
G 0.7
0.2
X 0.3
0.8
G 60
X 40
0.7 0.2 60 50
=
0.3 0.8 40 50
0.7 0.2 50 45
=
0.3 0.8 50 55
and so on
0.7 0.2 G G
=
0.3 0.8 X X
STRATHMORE UNIVERSITY STUDY PACK
Lesson One
35
0.7G + 0.2 X = G
0.2X = 0.3G
i.e.
G
X
or
or
0.3G + 0.8X = X
0.3X = 0.2X
0.3
3
=
0.2
2
Another Brand
(Sate II)
0.2
0.6
TO
Our Brand
(State I)
0.9
0.5
FROM
Our brand (State I)
Another Brand (sate II)
Another Brand
(Sate II)
0.1
0.5
0.8P1 0.4 P2
Before Advertising
P1
0.8 0.2
P1
0.4 0.6
P2
P2
0.2 P1 0.6 P2 P1
QUANTITATIVE TECHNIQUES
P2
36
Algebra and Matrices
P1 2 3 and P2
Linear
0.9 P1 0.5P2
After Advertising
P1
0.1P1 0.5 P2 P1
0.9 0.1
P1
0.5 0.5
P2
Thus:
P2
P1 5 6 and P2
P1 2 3
After Advertising
P1 5 6
will
buy our brand
= Sh.100,000
TO
Agric
Final
Total
Industr Servic Deman Demand
y
e
d
(output)
300
360
320
1080
2060
450
470
410
800
2130
610
500
520
270
1900
P2
Lesson One
37
Primary inputs
Total inputs
700
2060
800
2130
650
1900
NB: In the above table, one should be able to interpret the table e.g. of
the total demand of 2060 metric tones, 300 is produced from the
agricultural sector, 360 from industrial sector and 320 from the service
sector. 1080 metric tones makes up the final demand.
The final demand is the additional demand besides the sectoral demand
which is normally made by other users e.g. government, foreign
countries, other manufacturers not included in the other sectors.
For production if items besides the inputs from other sectors namely
labour capital e.t.c
Technical coefficients : (to sectors)
300
Agriculture 300 =
2060
450
450 =
2060
610
610 =
Industry
2060
0.22
0.30
2130
470
470 =
2130
500
500 =
Service
360
360 =
2130
0.7
0.22
0.23
320
320 =
1900
410
410 =
1900
520
520 =
1900
0.14
0.22
0.27
0.17
TO
Agric
Agric
Industry
Service
Primary
Service
0.14
Industr
y
0.7
0.22
0.30
x
0.22
0.23
x
0.22
0.27
x
0.17
Final
Deman
d
1080
(y1)
800 (y2)
270(y3)
-
QUANTITATIVE TECHNIQUES
Total
Demand
(output)
2060
2130
1900
-
38
Algebra and Matrices
Linear
inputs
2060(x1
)
2130(x2
)
1900(x3
)
0.22 0.22 0.22 x2
0.30 0.23 0.27 x
3
A
y1
+ y2
y3
x1
x2 ...................(*)
x3
X
a11 a12
a 21 a 22
a
31 a 32
a13
a 23
a 33
y1
and y = y2
y3
x1
and x = x2
x3
(I A)1 Y = X
1
A = 2
3
20
B = 10
30
Lesson One
39
From the input output analysis
X = (I A) B , Where X =
X1
X 2 X1
x
3
1 0 0
0.3 0.4 0.1
(I - A)
-1
(I - A)
(I - A) =
0.51 0.62 0.47
0.809
QUANTITATIVE TECHNIQUES
40
Algebra and Matrices
Linear
0.63 0.77 0.58 10 = X2
0.23 0.31 0.44 30
X3
Therefore X =
30
X = 37.7
21.9
The total demand from the three industries 1, 2 and 3 is 30 from 1, 37.7
from 2 and 21.9 from 3.
Example 2
Three clients of Disrup, Ltd P, Q and Rare direct competitors in the retail
business. In the first week of the year P had 300 customers Q had 250
customers and R had 200 customers. During the second week, 60 of the
original customers of P transferred to Q and 30 of the original customers
of P transferred to R. similarly in the second week 50 of the original
customers of Q transferred to P with no transfers to R and 20 of the
original customers of R transferred to P with no transfers to Q.
Required
a) Display in a matrix the pattern of retention and transfers of customers
from the first to the second week
(4 marks)
b) Re-expres the matrix that you have obtained in part (a) showing the
elements as decimal fractions of the original numbers of customers of
P, Q and R (2 marks) Refer to this re expressed matrix as B
c) Multiply matrix B by itself to determine the proportions of the original
customers that have been retained or transferred to P, Q and R from
the second to the third week.
(4 marks)
d) Solve the matrix equation (xyz)B = (xyz) given that x + y + z = 1
(8 marks)
e) Interpret the result that you obtain in part (d) in relation to the
movement of customers between P, Q and R
(2marks)
(Total
20
marks)
Solution
a). Think of each row element as being the point from which the
customer originated and each column element as being the
destination e.g. 210 customers move from P to P, 60 move from P to Q
and 30 move from P to R. The sum of the elements of the first row
totalling 300, that is the number of customers originally with P.
Hence required matrix is
STRATHMORE UNIVERSITY STUDY PACK
Lesson One
41
To
P 210 60 30 rowtotal300
R 20
0 180
rowtotal200
b).
Hence B =
0.2 0.8 0
0.1 0 0.9
c).
d).
y x X 0.2 0.8 0 = x
0.1 0 0.9
y z
2y + z = 3x ...(i)
Or
The second row produces,
Reducing to
0.2x + 0.8y = y
0.2x = 0.2 y
X = y ..(ii)
Or
The third row produces
Reducing to
0.1x + 0.9z = z
0.1x = 0.1z
QUANTITATIVE TECHNIQUES
42
Algebra and Matrices
Linear
X = z .
(iii)
At this point you will notice that condition h (ii) and condition (iii)
produce 2x + x = 3x when substituted into condition (i), we therefore
need extra condition x + y + z = 1 to solve the problem.
Thus
x+x+x=1
Or
3x = 1
That is
x = 13
Leading to
x = 13 ,
y = 13 ,
z = 13
e). In proportion terms this solution means that P, Q, and R will in the
long term each have one third of the total customers
Example 4
There are three types of breakfast meal available in supermarkets known
as brand BM1, brand BM2 and Brand BM3. In order to assess the
market, a survey was carried out by one of the manufacturers. After the
first month, the survey revealed that 20% of the customers purchasing
brand BM1 switched to BM2 and 10% of the customers purchasing brand
BM1 switched to BM3. similarly, after the first month of the customers
purchasing brand BM2, 25% switched to BM1 and 10% switched to BM3
and of the customers purchasing brand BM3 0.05% switched to BM1 and
15% switched to BM2
Required
i.
ii.
iii.
Solution
The objective of the first part of the question was to test the candidates
ability to formulate and manipulate a matrix, then interpret the result of
such manipulation.
a. i. The matrix showing the pattern of retention and transfer from the
first to the second month is
Lesson One
43
S = 0.25
0.05
0.20
0.65
0.15
0.10
0.10
0.80
BM1
BM2
BM3
(The second element in the first row shows the 20% movement from
BM1 to BM2 and so on)
i.
0.25
0.05
0.20
0.65
0.15
0.10
0.70
0.10 0.25
0.05
0.80
0.20
0.65
0.15
0.10
0.10
0.80
0.5450
0.3425
0.2850
0.4875
0.1125
0.2275
0.1700
0.1700
0.6600
Where for example second element in the first row, that is 0.2850 is the
result of multiplying the corresponding elements of the first row of S by
the second column of S and summing the product.
0.2850
ii.
=
=
MARKOV CHAINS/PROCESSES
The Markov processes are defined as a set of trials which follow a certain
sequence which depend on a given set of probabilities known as
transition probabilities. These probabilities indicate how a particular
activity or product moves from one state to another.
Applications of Markov Chains in Business
The Markov processes or chains are frequently applied as follows:1. Brand Switching
QUANTITATIVE TECHNIQUES
44
Algebra and Matrices
Linear
S1
S1 P11
S2 P21
S3 P31
S2 S3
P12
P22
P32
P13
P23
P33
are probabilities
2. The outcome of each trial depends of the immediate preceding
activities but not on the previous activities
BASIC TERMS IN MARKOV CHAINS
a) Probability Vector
This is a row matrix whose elements are non-negative and also they
add up to 1 e.g. u = 0.2, 0.1, 0.2, 0.5)
Example
Consider u =( , 0, - , 1/2 ) Not because is negative
v = ( , , 0, ) Not because the sum of the element <1
w= ( , , 0, )
negative.
Therefore its a prob, vector
Lesson One
45
Example (i) M
0.1
0.0
=
0.5
0.3
0.2
0.7
0.1
0.4
0.4
0.2
0.3
0.1
0.3
0.1
0.1
0.2
A=
2
3
1
1
2
4
1
1
3
3
0
B=
3
4
1
3
0
1
2
1
3
C=
1
1
6
2
3
1
3
A is not stochastic matrix because the element in the 2 nd row and 3rd
column is negative.
B is not Stochastic matrix because the elements in the second row do not
add up to 1
C is stochastic matrix because each element is non negative and they add
up to 1 in each row.
c) Regular stochastic matrix
A matrix P is said to be regular stochastic matrix if all the elements in
Pm are all positive, where m is a power, m = 1, 2, 3 e.t.c
Let A =
1
2
1
2
0
1
1
0
1
1
2
1
2
1
2
1
1
2
1
2
3
4
1
2
3
4
3
4
5
8
QUANTITATIVE TECHNIQUES
46
Algebra and Matrices
Linear
ABSORBING STATES
A state Si (I = 1, 2, 3 ) of a markov chain is called absorbing if the
system remains in the state, Si once it enters there. Thus a state, Si is
absorbing if and only if the ith row of the transition matrix p has a 1 on
the main diagonal and zeroes every where else. See the following
example.
The following matrix, P is a transition matrix of the markov chain.
S1 S2 S3 S4
P=
1
S1 4
S2 0
S3 1
2
S4
0
S5
0
4
0
1
4
0
0
1
0
4
0
1
4
0
S5
1
4
0
0
1
The States S2 and S5 are absorbing states since the 2 nd and 4th rows have
1 on the main diagonal.
REINFORCING QUESTIONS
QUESTION ONE
Determine
a) f(1)
b) f(-2)
1. f(x) = 5x + 2
2. f(x) = x2 + 3x+10
3. f(t) = 10 t + t3
4. f(u) =
QUESTION TWO
Solve the following simultaneous equations.
a) 2 x 5 y 20
4x y 4
b)
2x y 9
x 3 y 6
c)
12 x 4 y 18
4 x y 6
QUESTION THREE
A simple hypothetical economy of three industries A, B and C is
represented in the following table (data in millions of shillings).
User
Producer
A
B
C
Final
Demand
Total
Output
80
80
80
100
200
100
100
60
100
40
60
20
320
400
300
Determine the output vector for the economy if the final demand changes
to 60 for A, 60 for B and 60 for C
QUESTION FOUR
A tea blender uses tow types of tea, T1, and T2, to produce two blends,
B1 and B2 for sale. B1 uses 40% of available T1 and 60% of the available
T2 whilst B2 uses 50% of the available T1 and 25% of the available T2.
Required:
QUANTITATIVE TECHNIQUES
2 2
3 -3
Let A =
a)
Find A2 and A3
b)
If F(x) = x3 3x2 2x + 41
Find F (A)
c)
QUESTION SIX
A childs toy is marketed in three sizes standard size contains 10 squares
(S), 15 triangles (T) and 6 hexagons (H). The deluxe set contains 15 S,
20 T, 6 H and 4 octagons (O). The super set contains 24 T, 8 H, 16 H, 16
S and 6 (O). Squares cost 12 pence to produce, triangles cost 8p,
hexagons cost 18p and octagons 22p.
The standard set is sold at 6, the deluxe set for 10 and super for 1.5.
The manufacturer produces 100 standard sets, 80 deluxe sets and 50
super sets per week.
Use matrix form and matrix multiplications to find:
The cost of producing each set.
The number of each shape required each week
Total expenditure on shapes each week
QUESTION SEVEN
Matrix N below shows the number of items of type A, B, and C in
warehouses y and X. Matrix p shows the cost in pence per day of storing
(S) and maintaining (M) one item each of A, B and C
48
B C
Y 10 12 50
W 60 0 20
S M
A 2 0.5
P = B 3 1.5
C 2 0.5
QUANTITATIVE TECHNIQUES
50
Sets Theory and Calculus
LESSON TWO
2. Sets Theory and Calculus
-
2.1
Sets and set theory
A set is a collection of distinct objects. We may consider all the ocean in
the world to be a set with the objects being whales, sea plants, sharks,
octopus etc, similarly all the fresh water lakes in Africa can form a set.
Supposing A to be a set
A = {4, 6, 8, 13}
The objects in the set, that is, the integers 4, 6, 8 and 13 are referred to
as the members or elements of the set. The elements of a set can be
listed in any order. For example,
A = {4, 6, 8, 13} = {8, 4, 13, 6}
Sets are always precisely defined. Each element occurs once and only
once in a set.
{4, 6, 8, 13} or 4 A; 16 A
{4, 8} A; {5, 7} A; A A
4
ii.
50
Lesson Two
51
For example, the set of numbers 0, 1, 2, 3, 4, 5, 6 and 7 can be
represented ass follows
P = {0, 1, 2, 3, 4, 5, 6, 7} ,
P = {X/x = 0, 1, 27}
enumerative method
descriptive method
Or
P = {x/0 x 7}
QUANTITATIVE TECHNIQUES
52
Sets Theory and Calculus
Finite and infinite sets
A set can be classified as a finite or infinite set, depending upon the
number of elements it has. A finite set has a finite number of elements
whereas an infinite set has an infinite number of elements.
For example, set P below has ten elements and is therefore a finite set.
Set S, on the other hand, is an infinite set since it has an infinite number
of elements.
P = {2, 4, 620}
S = {1, 3, 5}
Universal set
The term refers to the set that contains all the elements that an analyst
wishes to study.
The notation U is generally used to denote universal sets
The null set or empty set
This is a set which contains no elements. It is normally designated by a
Greek letter , or { }.
The sets and { } are not the same thing since the former has no
elements in it, while the latter has one element in it, namely zero
Equal or equivalent sets
Two sets C and D are said to be equal if every member of set C belongs
to D and every member of set D also belongs to C
Complement of a set
The complement of set A is written as A. This set contains all those
elements of universal set which are not in A
Intersection and union
B C denotes the intersection of B and C. it is the set containing all
those elements, which belong to both B and C
If B = {5, 8, 11, 20, 25} and C = {1, 3, 5, 7, 9, 11, 13}
Then B C = {5, 11}
52
Lesson Two
53
U
B
A
C
Example:
You are given the universal set
T = {1, 2, 3, 4, 5, 6, 7, 8}
And the following subjects of the universal set:
A = {3, 4, 5, 6,}
B = {1, 3, 4, 7, 8}
Determine the intersection of A and B
Solution
The intersection of A and B is the subject of T, containing elements that
belong to both A and B
A B = {3, 4, 5, 6,}
{1, 3, 4, 7, 8}
= {3, 4}
or
T
U
A
5
6
3
4
1
7
8
QUANTITATIVE TECHNIQUES
54
Sets Theory and Calculus
Example
Consider the following universal set T and its subjects C, D and E
T = {0, 2, 4, 6, 8, 10, 12}
C = {4, 8,}
D = {10, 2, 0}
E = {0}
Find
ii)
DE
CDE
iii)
Solution
ii)
D E = {10, 2, 0}
{0} = {0}
D E = Shaded area
ii) C D E = {4, 8} {10, 2, 0} {0} = { } =
T
D
C
E
54
Lesson Two
55
A B = Shaded area
Example
Consider the universal set T and its subsets A, B and C below:
T = {a, b, c, d e, f}
A = {a, d}
B = {b, c, f}
C = {a, c, e, f}
Find
ii)
iii)
iv)
v)
A B
AC
B C
A BC
Solution
A C = {a, d} {b, c, f} = {a, b, c, d, f}
i)
ii)
iii)
iv)
=T
QUANTITATIVE TECHNIQUES
56
Sets Theory and Calculus
Complement of a set
Venn diagram representing the complement of a set say A represented by
A1 is illustrated below.
A1
A1
(A1)1
(B1)1
iii)
iv)
Solution
i)
A1 ={2, 3}1 = {1, 4, 5}
ii)
(A1)1 =({2, 3}1)1 = {1, 4, 5}1={2, 3} = A
iii)
(B1)1=({5}1)1 = {1, 2, 3, 4}1={5} = B
Some Laws of Set Algebra
From the following Venn diagram where T is the universal set and A its
subset, we can deduce a number of laws.
T
i)
ii)
iii)
A = A
A T = T
A A = A
STRATHMORE UNIVERSITY STUDY PACK
56
Lesson Two
57
iv)
v)
vi)
vii)
viii)
A A= A
A T= A
A A1 = T
A A1=
(A1)1 = A
n(T) = 12
16 x y 2
y
2
12 y z
2
x
4 x z
2
n(B) = 4
H = Hockey
T = Tennis
B = Basketball
QUANTITATIVE TECHNIQUES
58
Sets Theory and Calculus
-
Required
i)
How may voters did not vote
ii)
How many voters voted for x only
iii)
Who won the elections
Solution
N(e) = 250
12
P
14
59
Q
37
Z
P + 12 + 59 = 147 giving P = 76
Q + 59 + 37 = 102 giving Q = 6
i)
ii)
x = 76 + 12 + 14 = 102
y = 12 + 59 + 6 = 77
z = 37 + 14 + 6 = 57
iii)
2.2
CALCULUS
Calculus is a branch of mathematics which explains how one variable
changes in relationship to another variable. It enables us to find the rate
of change of one variable with respect to another variable.
58
Lesson Two
59
Example
i.
The rate at which business revenue is increasing at a particular
stage when volume of sales is increasing.
ii.
The rate at which costs are changing at a particular stage when
volume of sales is given
iii.
The evaluation of rate of change can help us to identify when
the change in one variable reaches a maximum or minimum.
iv.
Calculus may be used in production management when the
production manager wants to know
a) How much is to be manufactured in order to maximize the
profits, revenues e.t.c
b) How much is to be produced in order to minimize the
production costs
Calculus is divided into two sections namely:
Differentiation and integration
Differentiation deals with the determination of the rates of change of
business activities or simply the process of finding the derivative of a
function.
Integration deals with the summation or totality of items produced over a
given period of time or simply the reverse of differentiation
The derivative and differentiation
The process of obtaining the derivative of a function or slope or gradient
is referred to as derivation or differentiation.
The derivative is denoted by
dy
dx
Change in y
Change in x
y dy y
x dx x
dy
dx
y
B = (x + dx, y +dy)
(y + dy)
A = (x,y)
A
B
d
y
QUANTITATIVE TECHNIQUES
60
Sets Theory and Calculus
Line AB
Y
dx
x
(x + dx)
Rules of Differentiation
1. The constant function rule
If given a function y = k where k is a constant then
dy
= 0
dx
Example
Find the derivative of (i) y = 5
Solution
i. y = 5
dx
dy = 0
Illustration
y=5
Slope = dy = o
dx
60
Lesson Two
61
i.
ii.
iii.
iv.
y
y
y
y
=
=
=
=
x7
x2
x-3
x
Solution
i.
y = x7
dy = 7x
dx
ii.
7-1
= 7x6
y = x2
dy = 2 x(2 - 1)
dx
iii.
y = x-3
dy = -3x
dx
iv.
3-1
= -3x-4
y=x
dy = 1x
dx
1-1
dy = rAXr-1
QUANTITATIVE TECHNIQUES
62
Sets Theory and Calculus
i.
y = 3x2 + 5x + 7
ii.
y = 4x2 2xb
Solution
i.
y = 3x2 + 5x + 7
dy = d(3x2) + d(5x) + d(7)
dx dx
dx
dx
= 6x + 5 + 0
= 6x + 5
ii.
y = 4x2 2xb
dy = d(4x2) - d(2xb )
dx dx
dx
= 8x 2bxb-1
6. The product rule both factors are functions
y = x2(x)
ii.
Solution
i.
y = x2(x)
dy =
dx
= x.2x + x2.1
= 2x2 + x2
= 3x2
Note that y = x2(x) = x3. Directly differentiating this we get 3x2.
62
Lesson Two
63
y = (x2+ 3) (2x3+ x2- 3)
ii.
dy =
dx
h x
g x
For example
Find
i.
ii.
dy for
dx
x
3 x2
x
3x 7
Solutions
x
i.
3 x2
dy dx
d (3 x 2 )
.(3 x 2 )
.x
dx dy
dx
3 x
2
3 x 2 x . x
3 x
3 x 2 2x 2
3 x2
3 x 2 3 x 2
ii.
x3
3x 7
QUANTITATIVE TECHNIQUES
64
Sets Theory and Calculus
dy
dx
3x 7 2
Example
A farmer of a large farm of poultry announced that egg production per
month follows the equation;
w = 3m3 m2
m2 + 10
Where w Total no of eggs produced per month
m amount in kilograms of layers mash feed.
Required
Determine the rate of change of w with respect to m (i.e. the rate at
which the number of eggs per month increase or decrease depending on
the rate at which the kilos of layers marsh are increased).
64
Lesson Two
65
Solution
Let u = 3m3 m2
du = 9m2 2m
dm
Let v = m2 + 10
dv = 2m
dm
dy
du
du
dx
Solution
y = (2x2 + 3)3
Let u = 2x2 + 3
du = 2x
Dx
Let y = u3
dy
du
= 3u2
dy = dy . du = 3u2 x 4x = 12xu2
dx
du dx
= 12x(2x2 + 3)2
QUANTITATIVE TECHNIQUES
66
Sets Theory and Calculus
Example
Consider the function
y = (x2 + 16x + 5)2
which can be decomposed into
y = u2 and u = x2 + 16x + 5. in this case y is a function of (x2 + 16x + 5)
Hence y = f(u) and u = g(x)
dy = dy . du
dx
du dx
= (2u) (2x +16)
= 2 (x2 + 16x + 5) (2x + 16)
9. The derivative of a function raised to power r; the
composite function rule.
The derivative of a function raised to power r equals to the power r times
the function which is raised by power (r-1), all of which is multiplied by
the derivative of the function
If y = {g(x)}r
Then dy = r{g(x)}r-1 . g1(x)
dx
For example
Find
dy given y = (3x2 + 4x)5
dx
Solution
dy = 5(3x2 + 4x)4 . (6x +4)
dx
Differentiation of an implicit function
An Implicit function is one of the y = x 2 y + 3x2 + 50. it is a function in
which the dependent variable (y) appears also on the right hand side.
To differentiate the above equation we use the differentiation method for
a product, quotient or function of a function.
Solution
y = x2 y + 3x2 + 50
dy = d (x2y) + d (3x2) d (50)
dx
dx
dx
dx
66
Lesson Two
67
dy = y (2x) + x2 dy 6x + 0
dx
dx
QUANTITATIVE TECHNIQUES
68
Sets Theory and Calculus
dx
68
Lesson Two
69
y
C
dy =0
dx
dy >0
dx
B
dy <0
dx
y= f(x)
x1
x2
x3
QUANTITATIVE TECHNIQUES
70
Sets Theory and Calculus
iii.
The critical values for the function are obtained by equating the
first derivative of the function to zero, that is:
dy
= 0 or 3x2 24x + 36 = 0
dx
Hence (x-2) (x-6) = 0
And x = 2 or 6
The critical values for x are x = 2 or 6 and critical values for the function
are y = 40 or 8
ii. To ascertain whether these critical values of x will give rise to a
maximum, we apply the second text, that is
d2y
<0
d2x
dy
= 3x2 24x + 36 and
dx
d2y
= 6x - 24
d2x
a) When x = 2
Then d2y
= -12 <0
d2x
b) When x = 6
Then d2y
= +2 > 0
d2x
Hence a maximum occurs when x = 2, since this value of x satisfies the
second condition. X = 6 does not give rise to a local maximum
b) Tests for relative minimum
There are two tests for a relative minimum point
i.
The first derivative, that is
dy = f(x) = 0
dx
ii.
The second derivative, that is
d2y
= f(x) > 0
dx2
Example:
For the function
h(x) = 1/3 x3 + x2 35x + 10
Determine the critical values and find out whether these critical values
are maxima or minima. Determine the extreme values of the function
Solution
i.
Critical values
h(x) = 1/3 x3 + x2 35x + 10 and
h1(x) = x2 + 2x 35
by first text,
then h1(x) = x2 + 2x 35 = 0
or (x-5) (x+7) = 0
70
Lesson Two
71
Hence x = 5 or x = -7
ii.
y=g(x)
P
k1
Diagram (i)
y
y +f(x)
Q
QUANTITATIVE TECHNIQUES
72
Sets Theory and Calculus
k2
y=x3
point of
STRATHMORE UNIVERSITY STUDY PACK
72
Lesson Two
73
inflexion
0
Example
1. The weekly revenue Sh. R of a small company if given by
R = 14 + 18x x3 Where x is the number of units produced.
12
Required
i.
Determine the number of units that maximize the revenue
ii.
Determine the maximum revenue
iii.
Determine the price per unit that will maximize revenue
Solution
i.
To find maximum or minimum value we use differential calculus
as follows
R = 14 + 81x x3
12
dR = 81 1 . 3x2
dx
12
d2R = 0 - 1 . 3.2x2 = -x
dx2
12
2
Put
dR = 0
i.e. 81 -x2 = 0
2
dx
4
Which gives x = 18 or x = -18
d2R = -x
dx2
2
when x = 18
value)
74
Sets Theory and Calculus
18
2.3
INTEGRATION
It is the reversal of differentiation
An integral can either be indefinite (when it has no numerical value) or
definite (have specific numerical values)
It is represented by the sign f(x)dx.
Rules of integration
i.
Example
Find the following
a) 23dx
b) 2dx. (where is a variable independent of x, thus its
treated as constant).
Solution
i.
ii.
23dx = 23x + c
2dx. = 2 x + c
1 xn+1 + c
n+1
Example
Find the following integrals
a) x2dx
b) x-5/2 dx
Solution
i.
ii.
x2dx = 1/3 x3 + c
x-5/2 dx = - 2/3x 3/2 + c
a) ax3dx = a x3dx
= a x4 + c
4
b) 20x5dx = 20x5dx
STRATHMORE UNIVERSITY STUDY PACK
74
Lesson Two
75
= 20 x6 + c
6
4. Integral of sum of two or more functions
{f(x) + g(x)} dx = f(x)dx + g(x) dx
{f(x) + g(x) + h(x)} dx = f(x)dx + g(x) dx + h(x) dx
Example
Find the following
i.
(4x2 + x-3) dx
ii.
(x3/4 + 3/7 x- + x5)
Solution
i.
(4x2 + x-3) dx = 4x2 dx + x-3 dx
= 4 x3 + c
3
ii.
(x3/4 + 3/7 x- + x5) = x3/4 dx + 3/7 x- + x5dx
= 4 x7/4 + 6 x1/2 + 1 x6 + c
7
7
6
5. Integral of a difference
{f(x) - g(x)} dx = f(x)dx - g(x) dx
Definite integration
Definite integrals involve integration between specified limits, say a and
b
The integral baf(x)dx
Is a definite integral in which the limits of integration are a and b
The integrals is evaluated as follows
1. Compute the indefinite integral f(x)dx. Supposing it is f(x) +
c
2. Attach the limits of integration
3. Substitute b(the upper limit) and then substitute a (the
lower limit) for x.
4. Take the difference and the result is the numerical value for
the definite integral.
Applying these steps to the definite integral
f(x)dx = [f(x) + c] a
= [{f(b) + c}] - [{f(a) + c}]
= f(b) f(a)
Example
Evaluate
i.
(3x 2 + 3)dx
QUANTITATIVE TECHNIQUES
76
Sets Theory and Calculus
ii.
(x + 15)dx
Solution
a.
= (27 + 9 + c) (1 + 3 + c)
= 32
b.
as the area bounded by the function f(x), the horizontal axis, and x=a and
x=b see figure below
y=f(x)
f(x)
Example
1. You are given the following marginal revenue function
MR = a a1q
76
Lesson Two
77
Find the corresponding total revenue function
Solution
Total revenue = MR.dq = a a1q).dq
= aq a1q2 + c
Example 2
A firm has the following marginal cost function
MC = a - a1q a2q2
Find its total cost function.
Solution
The total cost C is given by
C
= MC.dq
= (a + a1q + a2q2).dq
= aq +
a1 2
a
q + 2 q3 + C
2
3
Note: Exams focus: Note the difference between marginal function and
total function.
You differentiate total function to attain marginal
function, this is common in exams, total profit = total revenue total
cost.
3. Your company manufacturers large scale units. It has been shown that
the marginal (or variable) cost, which is the gradient of the total cost
curve, is (92 2x) Shs. thousands, where x is the number of units of
output per annum. The fixed costs are Shs. 800,000 per annum. It has
also been shown that the marginal revenue which is the gradient of the
total revenue is (112 2x) Shs. thousands.
Required
i.
Establish by integration the equation of the total cost curve
ii.
Establish by integration the equation of the total revenue curve
iii.
Establish the break even situation for your company
iv.
Determine the number of units of output that would
a) Maximize the total revenue and
b) Maximize the total costs, together with the maximum total
revenue and total costs
Solution
i.
First find the indefinite integral lacks limit points of the
marginal cost as the first step to obtaining the total cost curve
Thus (92 2x) dx = 92x x2 + c
Where c is constant
Since the total costs are the sum of variable costs and fixed costs, the
constant term in the integral represents the fixed costs, thus if Tc are the
total costs then,
Tc = 92x x2 + 800
Or Tc = 800 + 92x - x2
QUANTITATIVE TECHNIQUES
78
Sets Theory and Calculus
ii.
The total revenue is zero if no items are sold, thus the constant is zero
and if Tr represents the total revenue, then
Tr = 112x x2
iii.
iv.
a) Tr = 112x x2
dTr
dx
= 112x x2
d2Tr
dx2
=-2
112 2x = 0
112 = 2x
x = 56 units per annum
78
Lesson Two
79
92 2x = 0
92 = 2x
x = 46 units per annum
since
d2Tc = - 2 this confirms the maximum
dx2
the maximum costs are Shs. (800 + 92 x 46 - 46 x 46) x 1000
= Shs. 2,916,000
QUANTITATIVE TECHNIQUES
80
Sets Theory and Calculus
REINFORCING QUESTIONS
QUESTION ONE
Find the derivative of
a) y = 6x x
1
x2
b)
c)
y 1 2x
d)
1
x
QUESTION TWO
A cost function is
80
Lesson Two
81
a) Determine the number of units that maximize the revenue.
b) Determine the maximum revenue.
c) Determine the price per unit that will maximize the revenue
QUANTITATIVE TECHNIQUES
82
Sets Theory and Calculus
QUESTION FIVE
A furniture firm has two operating departments; Production and sales.
The firmss operating costs are split between these two departments with
the resultant period of fixed costs of Shs.20,000 and Shs.6,000
respectively. The production department has a basic variable cost per
unit of Shs.6 plus additional variable cost per unit of Shs.0.0002 which
relates to all the manufactured items during the period. The sales
department has a variable cost per unit of Shs.2. The sales department
receives the finished goods from the production department and pay the
basic variable cost per unit plus 80% of the same.
NB:
1000
100 5q q 2
q
Required
i) What does 1000 in the ATC equation represent economically?
(1 mark)
q
ii) Determine the output that leads to maximum profit and the profit
at the
level of output.
(9
marks)
c) Alpha industries sells two products, X and Y, in related markets, with
demand functions given by:
STRATHMORE UNIVERSITY STUDY PACK
82
Lesson Two
83
Px 13 + 2X + Y = 0
Py 13 + X + 2Y = 0
The total cost, in shillings, is given by:
TC = X + Y
Required:
Determine the price and the output for each good which will
maximize profits.
(7 marks)
(Total: 20
marks)
QUESTION SEVEN
a) The following table shows the Fixed Cost (F) and the variable cost (V)
of producing 1 unit of X and 1 unit of Y:
Cost F
Cost V
X
5
4
Product
Y
8
(Shs 000)
12
When x units of X and y units of Y are produced, the total fixed cost is
Shs.640,000 and total variable cost is Shs.820,000.
Express this
information as a matrix equation and hence find the quantities of x and y
produced using matrix algebra.
(10 marks)
The marginal productivity of an industrial operation (the production of
electric furnaces) is given by:
f(x) = 60 + 10
x2
Where x is capitalization in millions of shillings. Given that, when the
capitalization is Shs. Million they can produce 62 of the furnaces per
week.
Required:
a) How many furnaces they will be able to produce if their capitalization
increased to Shs 10 million.
b) What does the term marginal of productivity mean?
(10 marks)
(Total: 20
marks)
Check your answers with those given in lesson 9 of the study pack
QUANTITATIVE TECHNIQUES
84
Sets Theory and Calculus
COMPREHESIVE ASSIGNMENT ONE
QUESTION ONE
a) Explain the importance of set theory in business.
(4 marks)
b) By use of matrix algebra, develop the Leontief inverse matrix.
(8 marks)
c) Digital Ltd. Manufactures and sells floppy disks at Nairobi Industrial
Area.
The average total cost (ATC) and Average Revenue (AR) (in thousands
of shillings)
of producing x floppy disks are given by the following functions:
ATC =
And
1 2 5
500
x x 50
2
2
x
AR = 800 2x2
Where: x is the number of floppy disks produced
Required:
i) The profit function
(3
marks)
ii) The number of floppy disks required to maximize profit
(3 marks)
iii) The maximum profit
(2
marks)
(Total: 20
marks)
QUESTION TWO
Define the following terms as used in Markov analysis:
Markov process
marks)
Equilibrium or steady state
marks)
Absorbing state
marks)
Closed state
marks)
(2
(2
(2
(2
The manufacturer of Tamu Soft drinks has been facing stiff competition
on its main brand Tamu-cola soda. The management is considering an
extensive advertising and rebranding campaign for Tamu-Cola soda. If
the current branding remains, the transition matrix of consumer between
Tamu-Cola and other brands will be as follows:
84
Lesson Two
85
To
TamuCola
0.85
Others
0.15
TamuFrom Cola
0.25
0.75
Others
The
advertising
rebranding campaign is expected to cost Sh.20 million each year.
and
There are 40 million consumers of soft drinks in the market and for each
consumer the average profitability is Sh.5 annually.
Required:
The equilibrium state proportion of consumer using Tamu-Cola before
the advertising campaign.
(4 marks)
ii)
The equilibrium state proportion of consumers using Tamu-Cola after
the advertising campaign.
(4 marks)
iii)
The expected annual profit increase or decrease after the advertising
campaign. Would you recommend the advertising campaign?
(4 marks)
(Total: 20
marks)
i)
QUESTION THREE
a) A market researcher investigating consumers preference for three
brands of beverages namely: coffee, tea and cocoa, in Ongata town
gathered the following information:
From a sample of 800 consumers, 230 took coffee, 245 took tea and
325 took cocoa, 30 took all the three beverages, 70 took coffee and
cocoa, 110 took coffee only, 185 took cocoa only.
Required:
i)
Present the above information in a Venn Diagram.
(4 marks)
ii)
The number of customers who took tea only.
(2 marks)
iii)
The number of customers who took coffee and tea only.
(2 marks)
iv)
The number of customers who took tea and cocoa only.
(2 marks)
v)
The number of customers who took none of the beverages.
(2 marks)
b)
i)
QUANTITATIVE TECHNIQUES
86
Sets Theory and Calculus
ii)
Days of the
week
Number of
books borrowed
Tuesda
y
110
Wednesd
ay
128
Thursda
y
105
Frida
y
150
Total
625
Required:
Test the hypothesis that eh number of books borrowed does not depend
on the day of the week at the 1% significance level.
(6
marks)
(Total: 20
marks)
QUESTION FOUR
a) The general multiple linear regression equation is expressed as:
Yi = o + n
1 + X 1 + i
Where
Yi is the response variable
Xi are the explanatory variables
o is the constant
1 are the parameters, and
i is the error term
Required:
Express the above multiple linear regression equation in a matrix
form. Clearly indicate the size of each vector column and the matrix.
(10 marks)
b) Mambo Company Ltd. Manufactures five products V, W, X Y and Z.
The company has divided its sales team into three regions; A, B and
C. The Matrix Q below represent the expected sales quantities in
thousands for each product in each sales region for the coming year.
Q=
A
50
40
25
10
25
Region
B
C
20
35
30
10
42.5
5
15
35
17.5
22.5
V
W
X
Y
Z
products
86
Lesson Two
87
T=
Components
1
2
3
1
1
2
0
1
1
3
2
1
4
0
2
1
V
W
X
0
1
1
1
Y
Z
0
2
3
3
product
s
M=
Part
1
Part
2
Part
3
0
2
1
Productions
Labour
hours
2
4
1
Assembl
y
hours
1
3
6
2
0
1
1
3
2
1
2
3
component
s
4
The costs of the resources in matrix M are Part 1 Sh.20, Part 2 Sh.10,
Part 3 Sh.30 while each labour hour in the production and assembly
departments cost Sh.15 and Sh.5 respectively.
Required:
i) The total expected demand for each product.
(2
marks)
ii) The quantities of each component needed in the production
process.
(3 marks)
iii) The quantities of each resource required in the production.
(3 marks)
iv) The total cost of producing the required units of each product.
(2 marks)
(Total: 20
marks)
QUESTION FIVE
The Young Childrens Fund (YCF) is planning its annual fund-raising
campaign for its December school holiday camp for disadvantaged
children. Campaign expenditures will be incurred at a rate of Sh.10,000
per day. From past experience, it is known that contributions will be
high during the early stages of the campaign and will tend to fall off as
the campaign continues. The function describing the rate at which
contributions are received is:
QUANTITATIVE TECHNIQUES
88
Sets Theory and Calculus
C (t) = 100t2 + 200,000
Where t = days of the campaign
C (t) = rate at which contributions are received in shillings per day
The fund wants to maximize the net precedes from the campaign.
Required:
i) The number of days the campaign should be conducted to maximize
the
net proceeds.
(3
marks)
ii) The total campaign expenditure
(2
marks)
iii) The total contributions expected to be collected
(5
marks)
iv) Net proceeds from the campaign
(1
mark)
The national office of a car rental company is planning its maintenance
for the next year.
The companys management are interested in
determining the companys needs for certain repair parts. The company
rents saloon cars, station wagons and double cab pick-ups. The matrix N
shown below indicates the number of each type of vehicle available for
renting in the four regions of the country.
Saloons
N
160
150
Station
wagons
400
300
Double
cabs
500
200
100
120
100
400
150
300
Coast
Central
=
Western
Highland
s
17
12
Station
wagons
16
8
Double
cabs
15
5
Fun belts
Plugs
9
4
7
7
5
6
Batteries
Tyres
88
Lesson Two
89
Required:
i) The total demand for each type of car.
(3
marks)
ii) The total number of each repair part required for the fleet.
(3 marks)
iii) If matrix C below contains the cost per unit in shillings for fan belts,
spark plugs, batteries and tyres, calculate the total cost s for all
repair parts. C = (1250,800,6500,8000). (3 marks)
(Total: 20
marks)
QUANTITATIVE TECHNIQUES
90
Sets Theory and Calculus
QUESTION SIX
a) Define the following terms as used in input-output analysis:
i) Transactions table.
(2
marks)
ii) Primary inputs.
marks)
iii) Technical coefficients.
marks)
(2
(2
0.46
0.43
0.30
0.24
0.60
0.24
0.26
0.41
0.42
(3
marks)
iii) If the final demand from steel drops by 2 million units, and that from
motor vehicles increases by 10 million units, but there is no change in
the final demand from construction, what would be the change in the
total output of constructions?
(5 marks)
(Total: 20
marks)
QUESTION SEVEN
a) Explain the purpose of Venn diagram
(3 marks)
b) A market study taken at a local sporting goods store, Maua Wahome
Stores showed that of the 200 people interviewed, 60 owned tents,
STRATHMORE UNIVERSITY STUDY PACK
90
Lesson Two
91
100 owned sleeping bags, 80 owned camping stoves, and 40 owned
both tents and camping stoves and 40 owned both sleeping bags and
camping stoves.
Required:
If 20 people interviewed owned a tent, a sleeping bag and a camping
stove, determent how many people owned only a camping stove. In
this case, it is possible for 30 people to own both a tent and a sleeping
bag, but not a campaign stoves.
(6 marks)
Under One Thousand Shillings Corner Store is planning to open a
new store on the corner of Main and Crescent Streets. It has asked
the Tomorrows Marketing company to do a market study of randomly
selected families within a five kilometers radius of the store. A month
the questions it wishes Tomorrows Marketing Company to ask each
home-owner are:
i)
Family income
ii)
Family size
iii)
Distance from home to the store site
iv)
Whether or not the family owns a car or uses public transport
Required:
For each of the four questions, develop a random variable of interest to
Under One Thousand Shillings Corner Store. Denote which of these
are discrete and which are continuous random variables.
(11 marks)
(Total: 20
marks)
QUESTION EIGHT
Two CPA students were discussing the relationship between average cost
and total cost. One student said that since average cost is obtained by
dividing the cost function by the number of units Q. It follows that the
derivative of the average cost is the same as marginal cost, since the
derivative of Q is
Required:
Comment on this analysis.
marks)
(4
QUANTITATIVE TECHNIQUES
92
Sets Theory and Calculus
Investigations of the clients firms cost profile shows that marginal cost
(MC) is given by:
MC = Q 28Q + 211 (in millions of shillings)
Further investigations have shown that the firms cost when not
producing output is Sh.10 million.
Required:
i) The equation of total cost.
marks)
ii) The equation of total revenue
marks)
iii) An expression for profit
marks)
iv) The level of output that maximizes profit.
marks)
v) The equation of marginal revenue.
marks)
(5
(2
(2
(5
(2
(Total: 20
marks)
92
Lesson Three
93
LESSON THREE
3. Descriptive Statistics and Index Numbers
Contents
-
i.
ii.
iii.
iv.
v.
vi.
-
Application of statistics
Measures of centra tendency
i.
Arithmetic mean
ii.
Median
iii.
Mode
iv.
Geometric mean
v.
Harmonic mean
Measures of dispersion
Simple range
Quartile deviation
Mean deviation
Standard deviation
Coefficient of mean deviation
Coefficient of quartile deviation
Skew ness and Kurtosis
Indices
QUANTITATIVE TECHNIQUES
94
and Index Numbers
Descriptive Statistics
3.1
Descriptive Statistics
Statistics
a)
Application of statistics
1. Quality Control
Usually there is a quality control department in every industry which is
charged with the responsibility of ensuring that the products made do
meet the customers standards e.g. the Kenya bureau of standards (KeBS)
is one of the national institutions which on behalf of the government
inspects the various products to ensure that they do meet the customers
specification.
The KeBS together with other control department have developed quality
control charts. They use these charts to check whether the products are
up to standards or not.
2. Statistics may be used in making or ordering economic order
quantities (EOQ). It is important for a business manager to realize that it
is an economic cost if one orders a large quantity of items which have to
be stored for too long before they are sold. This is because the large
stock holds a lot of capital which could otherwise be used in buying other
items for sale.
It is also important to realize that the longer the items are stored in the
stores the more will be the storage costs
On the other hand if one orders a few items for sale he will incur
relatively low storage expenses but may not be able to satisfy all the
clients. These may loose their customers if the goods are out of stock.
Therefore it is advisable to work out the EOQ which will be sufficient for
the clients in a certain period before delivery.
The EOQ will also ensure that minimal costs are incurred in terms of
storage
3. Forecasting
Statistics is very important for business managers when predicting the
future of a business for example if a given business situation involves a
dependent and independent variables one can develop an equation which
can be used to predict the output under certain given conditions.
4. Human resource management
94
Lesson Three
95
Statistics may be used in efficient use of human resources for example
we may give questionnaires to workers to find out where the
management is weak
By compiling the statistics of those who were signing it may be found
useful to analyze such data to establish the causes of resignation thus
whether its by frustration or by choice.
3.2
Measures of Central Tendency
These are statistical values which tend to occur at the centre of any well
ordered set of data. Whenever these measures occur they do not indicate
the centre of that data. These measures are as follows:
i.
The arithmetic mean
ii.
The mode
iii.
The median
iv.
The geometric mean
v.
The harmonic mean
1.
350
4
=87.5
The arithmetic mean is very useful because it represents the values of
most observations in the population.
The mean therefore describes the population quite well in terms of the
magnitudes attained by most of the members of the population
Computation of the mean from grouped Data i.e. in classes.
QUANTITATIVE TECHNIQUES
96
and Index Numbers
Descriptive Statistics
No. of cells
1600 1799
1800 1999
2000-2199
2300 2399
2400 2599
2600 2799
2800 2999
A = Assumed
Class MP(x)
XA=d
fd
(f)
25
1699.5
-600
-15000
32
1899.5
-400
-12800
46
2099.5
-200
-9200
58
2299.5(A)
0
0
40
2499.5
200
8000
30
2699.5
400
12000
7
2899.5
600
4200
mean, this is an arbitrary number selected from the data.
Arithmetic mean
assumed mean +
2299.5 +-53.78
fd
f
= 2299.5 +
12800
238
= 2245.72 hours
Example 2 (use of the coded method)
The following data was obtained from students who were registered in a
certain college.
The table shows the age distribution
Age (yrs)
No. of Students mid points
x-a = d
D/c = u
fu
(f)
(x)
15 19
21
17
-15
-3
-63
20 24
35
22
-10
-2
-70
25 29
38
27
-5
-1
-38
30 34
49
32(A)
0
0
0
35 39
31
37
+5
+
31
40 44
19
42
+10
+2
38
193
-102
Required calculate the mean age of the students using the coded method
Actual mean =
A(assumed mean) +
32 +
fu
f
102
5
193
= 29.36 years
96
Lesson Three
97
NB. The following statistical terms are commonly used in statistical
calculations. They must therefore be clearly understood.
i)
Class limits
These are numerical values which limits uq extended of a given class i.e.
all the observations in a given class are expected to fall within the
interval which is bounded by the class limits e.g. 15 & 19 are class limits
as in the table of the example above.
ii) Class boundaries
These are statistical boundaries, which separate one class from the
other. They are usually determined by adding the lower class limit to the
next upper class limit and dividing by 2 e.g. in the above table the class
19+20
boundary between 19 and 20 is 19.5 which is =
.
2
iii) Class Mid points
This are very important values which mark the center of a given class.
They are obtained by adding together the two limits of a given class and
dividing the result by 2.
iv) Class interval/width
This is the difference between an upper class boundary and lower class
boundary. The value usually measures the length of a given class.
2.
The mode
Example
In a social survey in which the main purpose was to establish the
intelligence quotient (IQ) of resident in a given area, the following
results were obtained as tabulated below:
QUANTITATIVE TECHNIQUES
98
and Index Numbers
IQ
1 20
21 40
41 60
61 80
81 100
101 120
121 140
No. of residents
6
18
32 fo
48 f1
27 f2
13
2
Descriptive Statistics
CF
6
24
56
104
131
144
146
Required
Calculate the modal value of the IQs tabulated above using
i.
ii.
Formular
98
Lesson Three
99
Graphical method
50
40
30
20
10
20
40
60
80
100
120
140
f1 f 0
c
2f1 f 0 f 2
Mode = L +
Therefore Mode=60.50 +
48- 32 20
2 48 - 32- 27
= 69.14
3.
-
The median
This is a statistical value which is normally located at the center of a
given set of data which has been organized in the order of magnitude
or size e.g. consider the set 14, 17, 9, 8, 20, 32, 18, 14.5, 13. When
the data is ordered it will be 8, 9, 13, 14, 14.5, 17, 18, 20, 32
The middle number/median is 14.5
QUANTITATIVE TECHNIQUES
100
Statistics and Index Numbers
-
Descriptive
The importance of the median lies in the fact that it divides the data
into 2 equal halves. The no. of observations below and above the
median are equal.
In order to determine the value of the median from grouped data.
When data is grouped the median may be determined by using the
following methods
i.
Graphical method using the cumulative frequency curve
(ogive)
ii.
The formula
Example
Referring to the table in 105, determine the median using the methods
above
The graphical method
IQ
0 20
20 40
40 60
60 80
80 100
100 120
120 140
No of resid
6
18
32
48
27
13
2
146
UCB
20
40
60
80
100
120
140
Cumulative Frequency
6
24
56
104
131
144
146
xv
160
140
120
100
80
60
40
20
20
40
60
80
100
120
140
160
100
Lesson Three
101
n+1 146+1
=
2
2
ii Computation
The formula used is
n+1
2 Cfbm
Median = L +
c
cfmc
73.5- 56
48
- Cfbm
cfmc
20
= 60 + 7.29
= 67.29
4.
-
Geometric mean
This is a measure of central tendency normally used to measure
industrial growth rates.
It is defined as the nth root of the product of n observations or
values
i.e. GM = n x 1 x 2 ... x n
Example
In 1995 five firms registered the following economic growth rates; 26%.
32% 41% 18% and 36%.
Required
Calculate the GM for the above values
QUANTITATIVE TECHNIQUES
102
Statistics and Index Numbers
Descriptive
GM= 5 2632411836
= 1 Log26+Log32+Log41+Log18+Log26
5
No. Log
26
32
41
18
36
1.4150
1.5052
1.6128
1.2533
1.5563
7.3446
Therefore Log of GM = 1/5 x 7.3446 = 1.46892
So GM = Antilog of 1.46892
= 29.43
5.
Harmonic mean
HM =
1
1 ( 1 + 1 +..... 1
n x1
x2
xn
Example
The economic growth rates of five countries were given as 20%, 15%,
25%, 18% and 5%
Calculate the harmonic mean
1
The HM=
1 (1 +1 +1 +1 +1
5 20 15 25 10 5
1
0.2(0.05+0.07+0.04+0.10+0.2)
1
0.092
10.86%
6.
-
Weighted mean
This is the mean which uses arbitrarily given weights
It is a useful measure especially where assessment is being done yet
the conditions prevailing are not the same. This is particularly true
102
Lesson Three
103
when assessment of students is being done given that the subjects
being taken have different levels of difficulties.
Examples
The following table shows that marks scored by a student doing section 3
and 4 of CPA
Subject
STAD
BF
FA2
LAW
QT
FA3
Scores (x)
65
63
62
80
69
55
Weight (w)
50
40
45
35
55
60
w = 285
wx
3250
2520
2340
2800
3795
3300
wx = 18005
Weighted mean
Ewx
Ew
18005
285
63.17%
Merits and demerits of the measures of central tendency
The arithmetic mean
Merits
i.
ii.
iii.
iv.
QUANTITATIVE TECHNIQUES
104
Statistics and Index Numbers
Descriptive
The mode
Merits
i.
ii.
iii.
iv.
Demerits
i.
ii.
iii.
The median
Merits
i.
ii.
iii.
iv.
v.
Demerits
i.
ii.
iii.
Demerits
i.
ii.
104
Lesson Three
105
The harmonic mean and weighted mean
Merits same as the arithmetic mean
Demerits same as the arithmetic mean
-
3.3
Measures of Dispersion
The measures of dispersion are very useful in statistical work
because the indicate whether the rest of the data are scattered
around the mean or away from the mean.
If the data is approximately dispersed around the mean then the
measure of dispersion obtained will be small therefore indicating
that the mean is a good representative of the sample data. But on
the other hand, if the figures are not closely located to the mean
then the measures of dispersion obtained will be relatively big
indicating that the mean does not represent the data sufficiently
The commonly used measures of dispersion are
a) The range
b) The absolute mean deviation
c) The standard deviation
d) The semi interquartile and quartile deviation
e) The 10th and 90th percentile range
f) Variance
a) The range
-
The range is defined as the difference between the highest and the
smallest values in a frequency distribution. This measure is not
very efficient because it utilizes only 2 values in a given frequency
distribution. However the smaller the value of the range, the less
dispersed the observations are from the arithmetic mean and vice
versa
The range is not commonly used in business management because
2 sets of data may yield the same range but end up having
different interpretations regarding the degree of dispersion
Example 1
In a given exam the scores for 10 students were as follows
Student
A
B
C
D
E
F
Mark (x)
60
45
75
70
65
40
x-x
1.8
16.8
13.2
8.2
3.2
21.8
QUANTITATIVE TECHNIQUES
106
Statistics and Index Numbers
G
H
I
J
Descriptive
69
64
50
80
618
7.2
2.2
11.8
18.2
104.4
Required
Determine the absolute mean deviation
Mean, x =
618
10
Therefore
= 61.8
AMD =
/ X - X/ 104.4
=
=10.44
N
10
Example 2
The following data was obtained from a given financial institution. The
data refers to the loans given out in 1996 to several firms
Firms
(f)
fx
[x-x]
F[x-x]
Amount of
loan per firm
(x)
20000
60000
4157.9
60000
240000
35842.1
1
5
15000
12000
15000
60000
9157.9
12157.9
14000
84000
10157.9
fx =
459000
f/x x/
12473.7
0
143368.
40
9157.9
60789.5
0
60947.4
0
286736.
90
f = 19
Required
Calculate the mean deviation for the amount of items given
X'=
fx 459,000
=
= 24157.9
19
f
AMD =
/ X - X'/ 286736.90
=
19
f
=Shs15,091.40
106
Lesson Three
107
NB if the absolute mean deviation is relatively small it implies that the
data is more compact and therefore the arithmetic mean is a fair sample
representative.
c) The standard deviation
This is one of the most accurate measures of dispersion. It has the
following advantages;
i. It utilizes all the values given
ii. It makes use of both negative and positive values if they occur
iii.
The standard deviation reflects an accurate impression of how
much the sample data varies from the mean. This is because its
suitability can also be tasted using other statistical methods
-
Example
A sample comprises of the following observations; 14, 18, 17, 16, 25, 31
Determine the standard deviation of this sample
Observation.
x
14
18
17
16
25
31
121
X' =
121
6
[x-x)2
37.21
4.41
9.61
16.81
24.01
118.81
210.56
=20.1
standard deviation,
x x 2
n
286736.90
6
= 5.93
Alternative method
X2
196
324
289
256
625
961
x
14
18
17
16
25
31
121
x2
n
x
n
286736.90
6
QUANTITATIVE TECHNIQUES
108
Statistics and Index Numbers
=
Descriptive
265.1 121
2
6
6
= 5.93
Example 2
The following table shows the part-time rate per hour of a given no. of
laborers in the month of June 1997.
Rate per hr
(x) Shs
230
400
350
450
200
150
No. of
labourers (f)
7
6
2
1
8
11
35
Fx
Fx2
1610
2400
700
450
1600
1100
8410
370300
960000
245000
202500
320000
247500
2345300
Calculate the standard deviation from the above table showing how the
hourly payment were varying from the respective mean
=
fx - fx
ff
2345300 8410
35
35
67008.6 577372
9271.4
standard deviation,
= 96.29
Example 3 Grouped data
In business statistical work we usually encounter a set of grouped data.
In order to determine the standard deviation from such data, we use any
of the three following methods
i.
The long method
ii.
The shorter method
iii.
The loaded method
The above methods are used in the following examples
Example 3.1
108
Lesson Three
109
The quality controller in a given firm had an accurate record of all the
iron bars produced in may 1997. The following data shows those records
i.
Bar lengths
(cm)
201 250
251 300
301 350
351 400
401 450
451 500
501 - 550
No. of bars(f)
25
36
49
80
51
42
30
313
Class mid
point (x)
225.5
275.5
325.5
375.5
425.5
475.5
525.5
fx
Fx2
5637.5
9918
15949.5
30040
21700.5
19971
15765
118981.50
1271256.25
2732409
5191562.25
11280020
9233562.75
9496210.50
8284507.50
47489526
fx - fx
ff
47489526 118981.50
313
313
standard deviation,
= 84.99 cm
ii.
Bar lengths
(cm)
201 250
251 300
301 350
351 400
401 450
451 500
501 - 550
No. of
bars(f)
25
36
49
80
51
42
30
313
mid point
(x)
225.5
275.5
325.5
375.5 (A)
425.5
475.5
525.5
x-A = d
fd
Fd2
-150
-100
-50
0
50
100
150
-3750
-3600
-2450
0
2550
4200
4500
1450
562500
360000
122500
0
127500
420000
675000
2267500
fd
f
fd
QUANTITATIVE TECHNIQUES
110
Statistics and Index Numbers
Descriptive
2267500 1450
313
313
7244.40 21.50
7222.90
= 84.99 cm
iii.
Bar
lengths
(cm)
201 250
251 300
301 350
351 400
401 450
451 500
501 - 550
(f)
x-A = d
d/c = u
fu
fu2
25
36
49
80
51
42
30
313
225.5
275.5
325.5
375.5 (A)
425.5
475.5
525.5
-150
-100
-50
0
50
100
150
-3
-2
-1
0
1
2
3
-75
-72
-49
0
51
84
90
29
225
144
49
0
51
168
270
907
C = 50
Standard deviation using the coded method. This is the most preferable
method among the three methods
fu - fu
ff
2
=c
907 29
313 313
= 50
= 50 1.6997
= 84.99
Variance
Square of the standard deviation is called variance.
d) The semi interquartile range
-
110
Lesson Three
111
boundary of a division when any given set of data is divided
into four equal divisions
- Each of such divisions normally carries 25% of all the
observations
- The semi interquartile range is a good measure of dispersion
because it shows how the rest of the data are generally spread
around the mean
- The quartiles normally used are three namely;
i. The lower quartile (first quartile Q1) this usually binds the
lower 25% of the data
ii. The median (second quartile Q2)
iii. The upper quartile (third quartile Q3)
The semi quartile range,
SIR =
Q3 - Q1
2
Example 1
The weights of 15 parcels recorded at the GPO were as follows:
16.2, 17, 20, 25(Q1) 29, 32.2, 35.8, 36.8(Q2) 40, 41, 42, 44(Q3) 49, 52,
55 (in kgs)
Required
Determine the semi interquartile range for the above data
SIR =
Q3 Q1
2
44 - 25
2
19
2
= 8.5
No of
retirees (f)
50
69
70
90
52
40
11
UCB
cf
29.5
39.5
49.5
59.5
69.5
79.5
89.5
50
119
189
279
331
371
382
Required
i.
ii.
QUANTITATIVE TECHNIQUES
112
Statistics and Index Numbers
Descriptive
iii.
Determine the maximum value for the lower 40% of the
retirees
Solution
The lower quartile (Q1) lies on position
N +1
382+1
4
=95.75
the valueof Q1
=29.5+
(95.75- 50)
69
x 10
= 29.5 + 6.63
= 36.13
The upper quartile (Q3) lies on position
N+1
4
382 + 1
=
4
= 287.25
the value of Q3
= 59.5 +
287.25- 279
52
10
= 61.08
The semi interquartile range =
Q3- Q1
2
61.08 - 36.13
=
2
= 12.475
= 12,475
ii. The top 10% is equivalent to the lower 90% of the retirees
The position corresponding to the lower 90%
90
(n + 1) = 0.9 (382 + 1)
100
STRATHMORE UNIVERSITY STUDY PACK
112
Lesson Three
113
= 0.9 x 383
= 344.7
the benefits (value) corresponding to the minimum value for top 10%
= 69.5 +
344.7- 331
40
x 10
= 72.925
= 72925
iii. The lower 40% corresponds to position
=
40
(382 + 1)
100
= 153.20
retirement benefits corresponding to its position
= 39.5 +
153.2-119
70
= 39.5 + 4.88
x 10
= 44.38
= 44380
e. The 10th 90th percentile range
This is a measure of dispersion which uses percentile. A percentile is a
value which separates one division from the other when a given data is
divided into 100 equal divisions.
This measure of dispersion is very important when calculating the coefficient of skew ness (see later)
Example
Using the above data for retirees calculate the 10 th = 90th percentile. The
tenth percentile 10th percentile lies on position
10
(382 + 1) = 0.1 x 383
100
= 38.3
the value corresponding to the tenth percentile
QUANTITATIVE TECHNIQUES
114
Statistics and Index Numbers
= 19.5 +
Descriptive
(38.3 x 10)
50
= 19.5 + 7.66
= 27.16
th
90
(382 + 1) = 0.9 x 383
100
= 344.7
the value corresponding to the 90th percentile
= 69.5 +
344.7- 331 x 10
40
= 69.5 + 3.425
= 72.925
the required value of the 10th 90th percentile = 72.925 27.16 =
45.765
Relative measures of dispersion
Definition:
A relative measure of dispersion is a statistical value which may be used
to compare variations in 2 or more samples.
The measures of dispersion are usually expressed as decimals or
percentages and usually they do not have any other units
Example
The average distance covered by vehicles in a motor rally may be given
as 2000 km with a standard deviation of 5 km.
In another competition set of vehicles covered 3000 km with a standard
deviation of 10 kms
NB: The 2 standard deviations given above are referred to as absolute
measures of dispersion. These are actual deviations of the measurements
from their respective mean
However, these are not very useful when comparing dispersions among
samples.
Therefore the following measures of dispersion are usually employed in
order to assess the degree of dispersion.
i.
Coefficient of mean deviation
=
ii.
Mean deviation
mean
Coefficient of quartile deviation
114
Lesson Three
115
1 Q3- Q1
= 2
Q3+Q1
Where Q1 = first quartile
Q2 = third quartile
iii.
iv.
Standard deviation
mean
Coefficient of variation
=
standard deviation
mean
100
=5
x 100
2000
= 0.25%
Second group of cars: mean = 3000 kms
Standard deviation = 10kms
C.O.V
= 10 x 100
3000
= 0.33%
Conclusion
Since the coefficient of variation is greater in the 2 nd group, then in the
first group we may conclude that the distances covered in the 1 st group
are much closer to the mean that in the 2nd group.
Example 2
In a given farm located in the UK the average salary of the employees is
3500 with a standard deviation of 150
The same firm has a local branch in Kenya in which the average salaries
are Kshs 8500 with a standard deviation of Kshs.800
QUANTITATIVE TECHNIQUES
116
Statistics and Index Numbers
Descriptive
= 80
8500
x 100
= 9.4%
Conclusively, since 4.29% < 9.4% then the salaries offered by the firm in
UK are much closer to the mean given them in the case to the local
branch in Kenya
COMBINED MEAN AND STANDARD DEVIATION
Sometimes we may need to combine 2 or more samples say A and B. It is
therefore essential to know the new mean and the new standard
deviation of the combination of the samples.
Combined mean
Let m be the combined mean
Let x1 be the mean of first sample
Let x2 be the mean of the second sample
Let n1 be the size of the 1st sample
Let n2 be the size of the 2nd sample
Let s1 be the standard deviation of the 1st sample
Let s2 be the standard deviation of the 2nd sample
Combined mean =
n1x1 n2x2
n1 n2
2
2
n1s1 n1 m x1 n2s2 n2 m xs
n1 n2
Example
A sample of 40 electric batteries gives a mean life span of 600 hrs with a
standard deviation of 20 hours.
Another sample of 50 electric batteries gives a mean lifespan of 520
hours with a standard deviation of 30 hours.
If these 2 samples were combined and used in a given project
simultaneously determined the combined new mean for the larger
sample and hence determine the combined or pulled standard deviation.
STRATHMORE UNIVERSITY STUDY PACK
116
Lesson Three
117
Size
40(n1)
50 (n1)
s
600 hrs(x1) 20hrs (s1)
520 hrs (x2) 30 hrs (s2)
40 600 +50 520
Combined mean
=
40+50
50,000
90
=555.56
=
=
=47.52hrs
SKEWNESS
- This is a concept which is commonly used in statistical decision
making. It refers to the degree in which a given frequency curve is
deviating away from the normal distribution
- There are 2 types of skew ness namely
i.
Positive skew ness
ii.
Negative skew ness
i.
-
Frequency
Normal distribution
Positively skewed frequency curve
Long tail
QUANTITATIVE TECHNIQUES
118
Statistics and Index Numbers
Descriptive
Mode
Median
mean
Long tail
10
20
40
Mean
50
60
mode
70
80
AGE DISTRIBUTION
Median
NB: This frequency curve for the age distribution is characteristic of the
age distribution in developed countries
- The mode is usually bigger than the mean and median
- The median usually occurs in between the mean and mode
- The no. of observations above the mean are usually more than
those below the mean (see the shaded region)
MEASURES OF SKEWNESS
- These are numerical values which assist in evaluating the
degree of deviation of a frequency distribution from the normal
distribution.
- Following are the commonly used measures of skew ness.
1. Coefficient Skew ness
STRATHMORE UNIVERSITY STUDY PACK
118
Lesson Three
119
= 3
mean- median
Standard deviation
2. Coefficient of skewness
mean- mode
Standard deviation
NB: These 2 coefficients above are also known as Pearsonian measures
of skewness.
3. Quartile Coefficient of skewness
Q3+Q1- 2Q2
=
Q3+Q1
Where Q1 = 1st quartile
Q2 = 2nd quartile
Q3 = 3rd quartile
NB: The Pearsonian coefficients of skew ness usually range between ve
3 and +ve 3. These are extreme value i.e. +ve 3 and ve 3 which
therefore indicate that a given frequency is negatively skewed and the
amount of skewness is quite high.
Similarly if the coefficient of skew ness is +ve it can be concluded that
the amount of skew ness of deviation from the normal distribution is
quite high and also the degree of frequency distribution is positively
skewed.
Example
The following information was obtained from an NGO which was giving
small loans to some small scale business enterprises in 1996. the loans
are in the form of thousands of Kshs.
fu
Fu2
UCB
cf
-15
d/c=
u
-3
-96
288
50.5
32
53
-10
-2
-124
248
55.5
94
97
58
-5
-1
-97
97
60.5
191
65
70
75
120
92
83
52
63A
68
73
78
0
5
10
15
0
+1
+2
+3
0
92
166
156
0
92
332
468
0
70.5
75.5
80.5
0
403
486
538
40
83
20
+4
160
640
85.5
57.8
21
88
25
+5
105
525
90.5
599
11
93
30
+6
66
396
95.5
610
428
3086
Loans
46
50
51
55
56
60
61
66
71
76
80
81
85
86
90
91
95
Midpoints(
x)
48
x-a=d
Units
(f)
32
62
610
QUANTITATIVE TECHNIQUES
120
Statistics and Index Numbers
Descriptive
Required
Using the Pearsonian measure of skew ness, calculate the coefficients of
skew ness and hence comment briefly on the nature of the distribution of
the loans.
fu
Arithmetic mean = Assumed mean +
f
4285
= 63 +
610
= 66.51
=c
fu - fu
ff
=5
3086 428
610 610
= 10.68
The Position of the median lies m =
=
= 60.5 +
305.5-191
= 60.5 +
114.4
120
120
n+1
2
610+1
2
= 305.5
Median = 65.27
Therefore the Pearsonian coefficient
= 3
66.51- 65.27
10.68
= 0.348
Comment
The coefficient of skewness obtained suggests that the frequency
distribution of the loans given was positively skewed
This is because the coefficient itself is positive. But the skewness is not
very light i.e. 0.348 cf +3.00
However, the value obtained is more implying the degree of deviation of
the frequency distribution from the normal distribution is small
STRATHMORE UNIVERSITY STUDY PACK
120
Lesson Three
121
Example 2
Using the above data calculate the quartile coefficient of skewness
Q3+Q1- 2Q2
Quartile coefficient of skewness =
Q3+Q1
The position of Q1 lies on
610+1
4
=152.75
152.75- 94 5
97
= 58.53
The position of Q3 lies on
actual value Q3 =70.55 +
= 3
610+1 =458.25
4
458.25- 403
83
= 73.83
i.e. 2
610+1
= 305.5
4
305.5-191 5
60.5 +
120
The required coefficient of skew ness
73.83+58.53 2 65.27
=
73.83+58.53
= 0.013
Conclusion
Same as above when the Pearsonian coefficient was used
KURTOSIS
- This is a concept, which refers to the degree of peaked ness of
a given frequency distribution. The degree is normally
measured with reference to normal distribution.
- The concept of kurtosis is very useful in decision making
processes i.e. if is a frequency distribution happens to have
either a higher peak or a lower peak, then it should not be used
to make statistical inferences.
- Generally there are 3 types of kurtosis namely;i.
Leptokurtic
ii.
Mesokurtic
iii.
Platykurtic
QUANTITATIVE TECHNIQUES
122
Statistics and Index Numbers
Descriptive
Leptokurtic
a)
A frequency distribution which is lepkurtic has generally a
higher peak than that of the normal distribution. The
coefficient of kurtosis when determined will be found to be
more than 3. thus frequency distributions with a value of
more than 3 are definitely leptokurtic
b)
Some frequency distributions when plotted may produce a
curve similar to that of the normal distribution. Such
frequency distributions are referred to ass mesokurtic. The
degree of kurtosis is usually equal to 3
c)
When the frequency curve contacted produces a peak which
is lower that that of a normal distribution when such a curve
is said to be platykurtic. The coefficient of such is usually
less than 3
- It is necessary to calculate the numerical measure of kurtosis.
The commonly used measure of kurtosis is the percentile
coefficient of kurtosis. This coefficient is normally determined
using the following equation
Q3- Q1
Percentile measure of kurtosis, K (Kappa) = 12
P90- P10
Example
Refer to the table above for loans to small business firms/units
Required
Calculate the percentile coefficient of Kurtosis
90
P90 =
n+1 =0.9 610+1
100
= 0.9 (611)
= 549.9
The actual loan for a firm in this position
549.9- 538 x 5 = 81.99
(549.9) = 80.5 +
40
P10 =
10
(n + 1) = 0.1 (611) = 61.1
100
61.1 32
62
x 5 = 52.85
= 0.9 (611)
= 549.9
percentile measure of kurtosis
K(Kappa)
Q3- Q1
P90- P10
73.83- 58.53
81.99- 52.85
122
Lesson Three
123
= 0.26
Since 0.26 < 3, it can be concluded that the frequency distribution
exhibited by the distribution of loans is platykurtic
Kurtosis is also measured by moment statistics, which utilize the exact
value of each observation.
i. M1 the first moment = M1 =
M2 =
M3 =
M4 =
= Mean M1 or M1
M4 =
x m
f
Where m is mean
M4
S4
Example
Find the moment coefficient of the following distribution
x
f
12
1
14
4
16
6
18
10
20
7
22
2
X
12
14
f
1
4
xf
12
56
(x-m)
-5.6
-3.6
(x-m)2
31.36
12.96
QUANTITATIVE TECHNIQUES
(x-m)2f
31.36
51.84
(x-m)4f
983.45
671.85
124
Statistics and Index Numbers
16
18
20
22
6
10
7
2
30
96
180
140
44
528
Descriptive
-1.6
.4
2.4
4.4
2.56
0.16
5.76
19.36
15.36
1.60
40.32
38.72
179.20
39.32
0.256
232.24
749.62
2,676.74
528
= 17.6
30
179.20
=
= 5.973
30
= 35.677
2
4
M4 =
x m
f
2,676.74
30
= 89.22
89.22
35.677
= 2.5
Where po is the price of the same commodity in the base year (the year
for comparison purposes)
Where Qn and Qo are defined in the same way
AGGREGATE PRICE INDEX NUMBERS AND QUANTITY INDEX
NUMBERS
PRICE INDEX
QUANTITY INDEX
124
Lesson Three
125
p q
Pq
p q
Pq
LASPEYRES INDEX
n o
q p
q p
q q
q p
n o
100
o o
PAASCHES INDEX
n n
n n
100
o o
Value index =
p q
Pq
n n
100
o o
100
100
o o
pn
po
p q
w0 100
o e
Where w0 are the proportions of the total expected in the basic period.
This formula is frequently used to calculate retail price index.
CHANGING THE BASE OF THE INDEX
For comparison purposes if two series have different base years, it is
difficult to compare them directly. In such cases, it is necessary to
change the base year of one of the series (or both) so that both have the
same base.
It is also necessary to keep the index relevant to current conditions
hence the need to change the base from time to time.
Example;
Year
1985 1986 1984 1988 1989 1990 1991 1992
Price index 100
104
108
109
112
120
125
140
Suppose we wish to change the base year to 1989
We recalculate each index by expressing it as a percentage of 1989
1985
Previous index
100
1986
104
1987
108
1988
109
112
1990
120
Recalculated index
100
100 = 89.3
112
104
100 = 92.9
112
108
100 = 96.4
112
109
100 = 97.3
112
112
100 = 100
112
120
100 = 107.1
112
QUANTITATIVE TECHNIQUES
126
Statistics and Index Numbers
1991
1992
Descriptive
125
125
140
112
140
112
100 = 111.6
100 = 125.0
When changing the base year, it is advisable to update the weights used
in the base year.
CHAIN BASED INDEX NUMBERS
A chain based index is one where the index is calculated every year using
the previous year as the base year. This type of index measures rate of
change from year to year.
This method is suitable where weights are changing rapidly and items
are constantly being brought into the index and unwanted items taken
out. It can be a price or quantity index
1985
1986
Previous index
100
104
1987
108
1988
109
1989
112
1990
120
1991
125
1992
140
Recalculated index
100
104
100 = 104
100
108
100 = 103.8
104
109
100 = 100.9
108
112
100 = 102.8
109
120
100 = 107.1
112
125
100 = 104.2
120
140
100 = 112
120
Recalculated index
100(1985 base year
104
100 = 104
100
108
100 = 1084
100
109
100 = 109
100
112
100 = 112
100
120
100 = 120
100
125
100 = 125
100
140
100 = 140
100
126
Lesson Three
127
pn
po
W0 100
p q
p q
n n
100
0 n
Retail
index
100
120
6,000
140
6,500
170
7,200
200
Real earnings
5000 = 5000
100
5,500
=
120
4,583.3
100
6,000
=
140
4,285.7
100
6,500
=
170
3,823.5
100
7,200
=
200
3,600.0
QUANTITATIVE TECHNIQUES
128
Statistics and Index Numbers
Descriptive
Price on
1.1.1990
Shs 10
Price on
1.1.1991
Shs 12
Shs 12
Shs 15
Shs 20
Shs 25
Shs 5
Shs 6
(12 x 15 x 25 x 6) = (27000)
10 12 20 5
12000
(27) = (2.25)
12
= 1.5
= 1.225
% increase = 22.5%
index = 122.5
128
Lesson Three
129
INFLATION
The inflation rate for a given period can be calculated using the following
formula;
Current retail price index
Inflation =
100
Retail price index in thebase year
MARSHAL HEDGE WORTH INDEX
Marshal Hedge worth index =
p p
p q
n
qn
qn
100
QUANTITATIVE TECHNIQUES
130
Statistics and Index Numbers
Descriptive
REINFORCING QUESTIONS
QUESTION ONE
a) Distinguish between discrete and continuous data.
b) What is dispersion and what is the formula for the standard
deviation?
c) What is the measure of relative dispersion?
d) Draw diagrams showing positive and negative skewness
QUESTION TWO
The managers of an import agency are investigating the length of time
that customers take to pay their invoices, the normal terms for which are
30 days net. They have checked the payment record of 100 customers
chosen at random and have compiled the following table:
Payment in
Number of
customers
4
10
17
20
22
16
8
3
5 to 9 days
10 to 14 days
15 to 19 days
20 to 24 days
25 to 29 days
30 to 34 days
35 to 39 days
40 to 44 days
Required:
a) Calculate the arithmetic mean.
b) Calculate the standard deviation
c) Construct a histogram and insert the modal value.
d) Estimate the probability that an unpaid invoice chosen at random will
be between 30 and 39 days old.
QUESTION THREE
The price of the ordinary 25p shares of Manco PLC quoted on the stock
exchange, at the close of the business o successive Fridays is tabulated
below
126
125
128
124
127
120
127
126
127
122
122
113
117
114
106
105
112
114
111
121
129
130
120
116
116
119
122
123
131
135
131
134
127
128
142
138
136
140
137
130
Required
a) Group the above date into eight classes.
marks)
(4
130
Lesson Three
131
b) By constructing the ogive, calculate the median value, quartile values
and the
semi-quartile range.
(5
marks)
c) Calculate the mean and standard deviation of your frequency
distribution.
(7 marks)
d) Compare and contrast the values that you have obtained for:
i)
The median and mean
ii)
The semi-interquartile range and the standard deviation
(4 marks)
(Total:
20
marks)
QUANTITATIVE TECHNIQUES
132
Statistics and Index Numbers
Descriptive
QUESTION FOUR
Define the coefficient of variation.
The following table gives profits (in ten thousands of shillings) of two
supermarkets over a duration of one year.
Month
January
February
March
April
May
June
July
August
September
October
November
December
Supermarket A
65
48
15
28
41
59
41
10
24
56
92
120
Supermarket B
28
33
20
23
69
45
53
15
35
57
99
136
Required:
i)
Compute the coefficient of variation for each supermarket.
ii)
Indicate for which supermarket the variability of profits is relatively
greater.
QUESTION FIVE
Prodco PLC manufactures an item of domestic equipment which requires
a number of components which have varied as various modifications of
the model have been used. The following table shows the number of
components required together with the price over the last three years of
production.
COMPONEN
T
1982
Prices
A
B
C
D
3.63
2.11
10.03
4.01
Quantit
y
3
4
1
7
1983
Prices
4.00
3.10
10.36
5.23
Quantit
y
2
5
1
6
1984
Prices
4.49
3.26
12.05
5.21
Quantit
y
2
6
1
5
Required:
a) Establish the base weighted price indices for 1982 and 1983 based on
1981 for the item of equipment.
(8
marks)
b) Establish the current weighted price indices for 1982 and 1983 based
on
132
Lesson Three
133
1981 for the item of equipment.
(8
marks)
c) Using the results of (a) and (b) as illustrations, compare and contrast
Laspeyres and Paasche price index numbers.
(4 marks)
(Total:
20
marks)
QUESTION SIX
a) A company manufacturing a product known as 257 uses five
components in its assembly.
The quantities and prices of the components used to produce a unit of
K257 in 1982, 1983 and 1984 are tabulated as follows:
COMPONEN
T
A
B
C
D
E
i)
1982
Prices
10
6
5
9
50
Quantit
y
3.12
11.49
1.40
2.15
0.32
1983
Prices
12
7
8
9
53
Quantit
y
3.17
11.58
1.35
2.14
0.32
1984
Prices
14
5
9
10
57
Quantit
y
3.20
11.67
1.31
2.63
0.32
Required:
Calculate Laspyeres type price index number for the cost of one unit
of K257
for 1983 and 1984 based on 1982.
(6
marks)
ii)
Calculate Paasche type price index numbers for the cost of one unit of
K257
for 1983 and 1984 based on 1982.
(6
marks)
iii)
QUANTITATIVE TECHNIQUES
134
Statistics and Index Numbers
Descriptive
Production
(1000 boxes)
1980
1990
48,600
62,000
22,000
37,440
47,040
61,430
43,110
55,720
1990
150
310
200
170
134
Lesson Three
135
Required:
Calculate the increase or decrease in prices from 1980 on the basis of
the following indices:
a)
b)
c)
d)
e)
Men relatives
Laspeyres index
Paasche index
Marshall Hedgeworth index
Fishers index.
QUANTITATIVE TECHNIQUES
136
Relationships and Forecasting
Measures of
LESSON FOUR
4. Measures of Relationships and Forecasting
-
Correlation
Regression analysis
Multiple Linear Regression
Time series analysis and forecasting
136
Lesson Four
137
4.1
Correlation
This is an important statistical concept which refers to interrelationship
or association between variables.
The purpose of studying correlation is for one to be able to establish a
relationship, plan and control the inputs (independent variables) and the
output (dependent variables)
In business one may be interested to establish whether there exists a
relationship between the
i.
Amount of fertilizer applied on a given farm and the resulting
harvest
ii.
Amount of experience one has and the corresponding
performance
iii.
Amount of money spent on advertisement and the expected
incomes after sale of the goods/service
There are two methods that measure the degree of correlation between
two variables these are denoted by R and r.
(a) Coefficient of correlation denoted by r, this provides a measure
of the strength of association between two variables one the
dependent variable the other the independent variable r can range
between +1 and 1 for perfect positive correlation and perfect
negative correlation respectively with zero indicating no relation
i.e. for perfect positive correlation y increase linearly with x
increament.
(b) Rank correlation coefficient denoted by R is used to measure
association two sets of ranked or ordered data. R can also vary
from +1, perfect positive rank correlation and -1 perfect negative
rank correlation where O or any number near zero representing no
correlation.
SCATTER GRAPHS
- A scatter graph is a graph which comprises of points which have
been plotted but are not joined by line segments
- The pattern of the points will definitely reveal the types of
relationship existing between variables
- The following sketch graphs will greatly assist in the
interpretation of scatter graphs.
QUANTITATIVE TECHNIQUES
138
Relationships and Forecasting
Measures of
y
Dependant variable
x
x
x
x
x
x
x
x
Independent variable
NB: For the above pattern, it is referred to as perfect because the points
may easily be represented by a single line graph e.g. when measuring
relationship between volumes of sales and profits in a company, the more
the company sales the higher the profits.
Perfect negative correlation
y
Quantity sold
x
x
X
x
x
x
x
x
x
10
20
Price
138
Lesson Four
139
This example considers volume of sale in relation to the price, the
cheaper the goods the bigger the sale.
High positive correlation
y
Dependant variable
xx
xx
x
x
xx
xx
xx
xx
x
xxx
x
x
independent variable
y
quantity sold
x
x
xx
x
xx
x
x
x
x
xx
x
price
QUANTITATIVE TECHNIQUES
140
Relationships and Forecasting
Measures of
No correlation
600
x
x
400
x
x
x
200
x
x
20
30
40
50
0
10
h) Spurious Correlations
- in some rare situations when plotting the data for x and y we may
have a group showing either positive correlation or ve correlation
but when you analyze the data for x and y in normal life there may
be no convincing evidence that there is such a relationship. This
implies therefore that the relationship only exists in theory and
hence it is referred to as spurious or non sense e.g. when high
passrates of student show high relation with increased accidents.
Correlation coefficient
- These are numerical measures of the correlations existing between
the dependent and the independent variables
- These are better measures of correlation than scatter groups
- The range for correlation coefficients lies between +ve 1 and ve
1. A correlation coefficient of +1 implies that there is perfect
positive correlation. A value of ve shows that there is perfect
negative correlation. A value of 0 implies no correlation at all
- The following chart will be found useful in interpreting correlation
coefficients
140
Lesson Four
141
__ 1.0 }
}
__ 0.5}
}
__0
}
}
__-0.5}
}
__-1.0}
n xy x y
n x 2 x n y 2 y
2
note that this formula can be rearranged to have different outlooks but
the resultant is always the same.
Example
The following data was observed and it is required to establish if there
exists a relationship between the two.
X
15
24
25
30
35
40
45
65
70
75
Y
60
45
50
35
42
46
28
20
22
15
QUANTITATIVE TECHNIQUES
142
Relationships and Forecasting
Solution
Compute the
X
15
24
25
30
35
40
45
65
70
75
X 424
r=
r=
Measures of
Y 363
21,926
15,123
XY 12,815
n xy x y
n x 2 x n y 2 y
2
25, 762
0.93
142
Lesson Four
143
be dependent on fertilizer used, soil exhaustion, soil acidity level,
season of the year, type of seed etc.) in which case multiple
correlation should be used instead.
The Rank Correlation Coefficient (R)
Also known as the spearman rank correlation coefficient, its purpose is to
establish whether there is any form of association between two variables
where the variables and arranged in a ranked form.
R=1-
6 d 2
n n 2 1
ranking
3
6
4
2
5
1
8
7
2
7
6
1
4
3
5
8
-1
1
2
-1
-1
2
-3
1
1
1
4
1
1
4
9
1
22
6 d 2
n n 1
2
6 22
8 82 1
= 0.74
Thus we conclude that there is a reasonable agreement between
students performances in the two types of tests.
NOTE: in this example, if we are given the actual marks then we
find r. R varies between +1 and -1.
Tied Rankings
A slight adjustment to the formula is made if some students tie and have
the same ranking the adjust is
t3 t
where t = number of tied rankings the adjusted formula
12
becomes
QUANTITATIVE TECHNIQUES
144
Relationships and Forecasting
R=1-
Measures of
d
n n 1
2
t 3 t
12
Example
Assume that in our previous example student E & F achieved equal
marks in Q. T. and were given joint 3rd place.
Solution
Student
Q. T. ranking
Law
A
B
C
D
E
F
G
H
2
7
6
1
3
3
5
8
ranking
3
6
4
2
5
1
8
7
R = 1-
d
n n 1
2
t 3 t
12
d2
II d
-1
1
2
-1
-1
2
-3
1
1-
1
1
4
1
2
6
9
1
6 26 1 2 212 2
3
8 8 1
26 1 2
= 0.68
NOTE:
It is conventional to show the shared rankings as above, i.e.
E, & F take up the 3 rd and 4th rank which are shared between the
two as 3 each.
ii. Coefficient of Determination
This refers to the ratio of the explained variation to the total variation
and is used to measure the strength of the linear relationship. The
stronger the linear relationship the closer the ratio will be to one.
Coefficient determination =
Explained variation
Total variation
Example (Rank Correlation Coefficient)
In a beauty competition 2 assessors were asked to rank the 10
contestants using the professional assessment skills. The results
obtained were given as shown in the table below
144
Lesson Four
145
1st
assessor
6
1
3
7
8
2
4
5
10
9
Contestants
A
B
C
D
E
F
G
H
J
K
2nd assessor
5
3
4
6
7
1
8
2
9
10
REQUIRED
Calculate the rank correlation coefficient and hence comment briefly on
the value obtained
d
d2
A
B
C
D
E
F
G
H
J
K
6
1
3
7
8
2
4
5
10
9
5
3
4
6
7
1
8
2
9
10
1
-2
-1
1
1
1
-4
3
+1
-1
1
4
1
1
1
1
16
9
1
1
d2 = 36
6 d 2
R = 1 - n n2 1
6 36
= 1 - 10 102 1
=1-
216
990
= 1 0.22
= 0.78
Comment: since the correlation is 0.78 it implies that there is high
positive correlation between the ranks awarded to the contestants. 0.78
> 0 and 0.78 > 0.5
Contestan
t
1st
assesso
2nd
assessor
d2
QUANTITATIVE TECHNIQUES
146
Relationships and Forecasting
A
B
C
D
E
F
G
H
r
1
5 (5.5)
3
2
4
5 (5.5)
7
8
Measures of
2
3
4
1
5
6.5
6.5
8
-1
2.5
-1
1
-1
-1
-0.5
0
1
6.25
1
1
1
1
0.25
0
d2 = 11.25
1-
6 d 2
n n 2 1
6 11.25
8 63
67.5
=1
504
=1-
= 1 0.13
= 0.87
This implies high positive correlation
Example (Rank Correlation Coefficient)
Sometimes numerical data which refers to the quantifiable variables may
be given after which a rank correlation coefficient may be worked out.
Is such a situation, the rank correlation coefficient will be determined
after the given variables have been converted into ranks. See the
following example;
Candidate
s
P
Q
R
Math
92
82
60
1
3
5(5.5
)
2
4
5(5.5
)
8
9
10
7
S
T
U
87
72
60
V
W
X
Y
52
50
47
59
Accounts
d2
67
88
58
5
1
7(7.5)
-4
2
-2
16
4
4
80
69
77
2
4
3
0
0
-2.50
0
0
6.25
58
60
32
54
7(7.5)
6
10
9
0.5
3
0
-2
0.25
9
0
4
d2 =
43.5
146
Lesson Four
147
Rank correlation r =
1-
=1-
6 43.5
10 102 1
=1
261
990
6 d 2
n n 2 1
= 1 0.26
= 0.74 (High positive correlation between
mathematics
marks and accounts)
Example
(Product moment correlation)
The following data was obtained during a social survey conducted in a
given urban area regarding the annual income of given families and the
corresponding expenditures.
Family
A
(x)Annual
income
000
420
(y)Annual
expenditur
e 000
360
380
390
148200
520
510
265200
610
500
305000
400
360
144000
320
290
92800
G
H
280
410
250
380
70000
155800
380
240
91200
300
4020
270
3550
K
Total
xy
151200
81000
1504400
x2
Y2
17640
0
14440
0
27040
0
37210
0
16000
0
10240
0
78400
16810
0
14440
0
90000
17066
00
12960
0
15210
0
26010
0
25000
0
12960
0
84100
62500
14440
0
57600
72900
13429
00
Required
Calculate the product moment correlation coefficient briefly comment on
the value obtained
The produce moment correlation
QUANTITATIVE TECHNIQUES
148
Relationships and Forecasting
Measures of
n xy x y
r=
n x 2 x n y 2 y
2
Workings:
X =
4020
= 402
10
3550
355
10
r=
= 0.89
Comment: The value obtained 0.89 suggests that the correlation between
annual income and annual expenditure is high and positive. This implies
that the more one earns the more one spends.
4.2
REGRESSION
This is a concept, which refers to the changes which occur in the
dependent variable as a result of changes occurring on the
independent variable.
- Knowledge of regression is particularly very useful in business
statistics where it is necessary to consider the corresponding
changes on dependant variables whenever independent variables
change
- It should be noted that most business activities involve a
dependent variable and either one or more independent variable.
Therefore knowledge of regression will enable a business
statistician to predict or estimate the expenditure value of a
dependant variable when given an independent variable e.g.
consider the above example for annual incomes and annual
expenditures. Using the regression techniques one can be able to
determined the estimated expenditure of a given family if the
annual income is known and vice versa
- The general equation used in simple regression analysis is as
follows
y = a + bx
Where y = Dependant variable
a= Interception y axis (constant)
b = Slope on the y axis
x = Independent variable
i.
The determination of the regression equation such as given
above is normally done by using a technique known as the
method of least squares.
Regression equation of y on x i.e. y = a + bx
-
148
Lesson Four
149
x
x
x
x
x
x
x
(x)Acreage
Hectares
2.3
1.7
4.2
3.3
5.2
(y) Cost
000
230
150
450
310
550
xy
x2
529
255
1890
1023
2860
5.29
2.89
17.64
10.89
27.04
QUANTITATIVE TECHNIQUES
150
Relationships and Forecasting
F
G
H
J
6.0
7.3
8.4
5.6
x =44.0
590
740
850
530
y = 4400
Measures of
3540
5402
7140
2969
xy= 25607
36
53.29
70.56
31.36
2
x = 254.96
Required
Determine the regression equations of
i. y on x and hence estimate the cost of a piece of land with 4.5
hectares
ii. Estimate the expected average if the piece of land costs
900,000
y = an + bxy
xy = ax + bx2
By substituting of the appropriate values in the above equations we have
4400 = 9a + 44b .. (i)
25607 = 44a + 254.96b ..(ii)
By multiplying equation . (i) by 44 and equation (ii) by 9 we have
193600 = 396a + 1936b .. (iii)
230463 = 396a + 2294.64b ..(iv)
By subtraction of equation . (iii) from equation (iv) we have
36863 = 358.64b
102.78 = b
by substituting for b in .. (i)
4400 = 9a + 44( 102.78)
4400 4522.32 = 9a
122.32 = 9a
-13.59 = a
Therefore the equation of the regression line of y on x is
Y = 13.59 + 102.78x
When the acreage (hectares) is 4.5 then the cost
(y) = -13.59 + (102.78 x 4.5)
= 448.92
= 448, 920
Note that
Where the regression equation is given by
y= a + bx
Where a is the intercept on the y axis and
b is the slope of the line or regression coefficient
n is the sample size
then,
intercept a =
Slope b =
y b x
n
n xy x y
n x 2 x
150
Lesson Four
151
Example
The calculations for our sample size n = 10 are given below. The linear
regression model is y = a + bx
Table
xy
x2
y2
16
56.0
256
2.4
4.9
13
19
31.0
93.1
4.2
18
75.6
3.0
1.3
1.0
3.0
1.5
4.1
12
11
8
14
9
16
36.0
14.3
8.0
42.0
13.5
65.6
136
435.
3
xy
12.2
5
5.76
24.0
1
17.6
4
9.0
1.69
1.0
9.0
2.25
16.8
1
99.4
1
x2
Distance x
miles
3.5
Total 28.9
x
Time y mins
The Slope b =
169
361
324
144
121
64
196
81
256
1972
y2
10 99.41 28.92
158.9
= 2.66
= 5.91
We now insert these values in the linear model giving
y = 5.91 + 2.66x
or
Delivery time (mins) = 5.91 + 2.66 (delivery distance in miles)
The slope of the regression line is the estimated number of minutes per
mile needed for a delivery. The intercept is the estimated time to prepare
for the journey and to deliver the goods, that is the time needed for each
journey other than the actual traveling time.
PREDICTION WITHIN THE RANGE OF SAMPLE DATA
We can use the linear regression model to predict the mean of dependant
variable for any given value of independent variable
For example if the sample model is given by
QUANTITATIVE TECHNIQUES
152
Relationships and Forecasting
Measures of
Output (standard
units)
12
18
19
20
24
30
Required
i.
Using the method of least squares, determine on appropriate
linear relationship between total power costs and output
ii.
If total power costs are related to both output and time (as
measured by the number of the month) the following least
squares regression equation is obtained
Power costs = 4.42 + (0.82) output + (0.10) month
152
Lesson Four
153
Where the regression coefficients (i.e. 0.82 and 0.10) have t
values 2.64 and 0.60 respectively and coefficient of multiple
correlation amounts to 0.976
Compare the relative merits of this fitted relationship with one
you determine in (a). Explain (without doing any further
analysis) how you might use the data to forecast total power
costs in seven months.
Solution
a)
Output (x)
12
18
19
20
24
30
Power costs
(y)
6.2
8.0
8.6
10.4
10.2
12.4
x2
y2
xy
144
324
361
400
576
900
38.44
64.00
73.96
108.16
104.04
153.76
74.40
144.00
163.40
208.00
244.80
y = 55.8
x2 = 2705
y2 =
542.36
xy=
1,206.60
x = 123
b=
372.00
n xy x y
n x 2 x
6 2705 123
376.2
1101
= 0.342
a
1
(y by)
n
1
x (55.8 0.342) x 123
6
= 2.29
QUANTITATIVE TECHNIQUES
154
Relationships and Forecasting
r=
Measures of
= 0.96
This show a strong correlation between power cost and output. The
multiple correlation when both output and time are considered at the
same time is 0.976.
We observe that there has been very little increase in r which means
that inclusion of time variable does not improve the correlation
significantly
The value for time variable is only 0.60 which is insignificant as
compared with a t value of 2.64 for the output variable
In fact, if we work out correlation between output and time, there will be
a high correlation. Hence there is no necessity of taking both the
variables. Inclusion of time does improve the correlation coefficient but
by a very small amount.
If we use the linear regression analysis and attempt to find the linear
relationship between output and time i.e.
Month
1
2
3
4
5
6
Output
12
18
19
20
24
30
The value of b and a will turn out to be 3.11 and 9.6 i.e. relationship will
be of the form
Output = 9.6 + 3.11 month
For this equation forecast for 7th month will be
Output = 9.6 + 3.11 7
= 9.6 + 21.77
= 31.37 units
Using the equation , Power costs = 2.29 + 0.34 output
= 2.29 + 0.34 31.37
= 2.29 + 10.67
= 12.96 i.e. 12,960
Non Linear Relationships
In the scatter diagram and the correlation coefficient do not indicate
linear relationship, then the relationship may be non linear
Two such relationships are of peculiar interest
y = abx
154
Lesson Four
155
Both of these can be reduced to linear model. Simple or multiple linear
regression methods are then used to determine the values of the
coefficients
i.
Exponential model
y = abx
Take log of both sides
Log y = log a + log bx
Log x = log a + xlog b
Let log y = Y and log a = A and log b = B
Then Y = A + Bx. This is a linear regression model
ii.
Geometric model
y = axb
using the same technique as above
Log y = log a + blog x
Y = A + bX
Where Y = log
A = log a
X = log x
Using linear regression technique (the method of least squares), it is
possible to calculate the value of a and b
TIME SERIES AND ANALYSIS
This is the mathematical or statistical analysis on past data arranged in a
periodic sequence.
Decision making and planning in an organization involves forecasting
which is one of the series analysis.
Impediments in time series analysis
Accuracy of data in reflecting
a) Drastic changes e.g. in advent of a major competitor, period of war or
sudden change of taste.
b) For long term forecasting internal and external pressures makes
historical data less effective.
1.
Moving Average
Periodical data e.g. monthly sales may have random fluctuation every
month despite a general trend being evident. Moving average helps in
smoothing away these random changes.
A moving average is the forecast for a period that takes the average of
the previous periods.
Example:
The table below represents company sales, calculate 3 and 6 monthly
moving averages, for the data
Months
Sales
January
February
1200
1280
3 months moving
average
QUANTITATIVE TECHNIQUES
6 months moving
average
156
Relationships and Forecasting
March
April
May
June
July
August
September
October
November
December
Measures of
1310
1270
1190
1290
1410
1360
1430
1280
1410
1390
1263
1287
1257
1250
1297
1353
1400
1357
1373
1257
1292
1305
1325
1327
1363
Jan+Feb+Mar+Apr+May + Jun
6
=
And so on.
1200+1280+1310+1270+1190+1290
Note:
When plotting moving average on graphs the points are plotted as the
midpoint of the period of the average, e.g. in our example the forecast
for April (1263) is plotted on mid Feb.
Characteristics of moving average
1) The more the number of periods in the moving average, the
greater the smoothing effect.
2) Different moving averages produce different forecasts.
3) The more the randomness of data with underlying trend being
constant then the more the periods should be involved in the
moving averages.
Limitations of moving averages.
1) Equal weighing with disregard to how more recent data is more
relevant.
156
Lesson Four
157
2) Moving average ignores data outside the period of the average
thus it doesnt fully utilise available data.
3) Where there is an underlying seasonal variation, forecasting
with unadjusted moving average can be misleading.
2.
Exponential smoothing
This is a weighted moving average technique, its given by:
New forecast = Old forecast + (Latest Observation Old
forecast)
Where = Smoothing constant
This method involves automatic weighing of past data with weights that
decrease exponentially with time.
Example
Using the previous example and smoothing constant 0.3 generate
monthly forecasts
Months
Sales
Forecasts
= 0.3
January
1200
February
1280
1200
March
1310
1224
April
1270
1250
May
1190
1256
June
1290
1233
July
1410
1250
August
1360
1283
September
1430
1327
October
1280
1358
November
1410
1335
December
1390
1357
Solution
Since there were no forecasts before January we take Jan to be the
forecast for February.
Feb 1200
For March;
March forecast = Feb forecast + 0.3 ( Feb sales Feb forecast)
= 1200 + 0.3 (1280 1200)
=1224
Note:
The value lies between 0 and 1.
The higher the value the sensitive the forecast is to the current
status.
Characteristics of exponential smoothing
More weight is given to the most recent data.
All past data are incorporated unlike in moving averages.
Less data is needed to be stored unlike in periodic moving averages.
QUANTITATIVE TECHNIQUES
158
Relationships and Forecasting
Measures of
158
Lesson Four
159
Value
Value
Of the four elements of time series the most important are trend and
seasonal variation. The following illustration shows how the trend (T)
and seasonal variation (S) are separated out from a time series and how
the calculated T and S values are used to prepare forecast. The process
of separating out the trend and seasonal variation is known
deseasonalising the data.
There are two approaches to this process: one is based on regression
through the actual data points and the other calculates the regression
line through moving average trend points. The method using the actual
data is demonstrated first followed by the moving average method.
1.
The following data will be used to illustrate how the trend and seasonal
variation are calculated.
Example 1
Year
1
2
3
4
QUANTITATIVE TECHNIQUES
Quarter 4
29
31
48
53
160
Relationships and Forecasting
Measures of
Step 2:
Step 3:
Step 4:
Step 5:
using
the
Solution
Step 1
Calculate the trend in the data by calculating the linear regression line y
= a + bx.
Year 1
Year 2
Year 3
Year 4
x (sales)
xy
x2
x
(quarters)
1
2
3
4
20
32
62
29
20
64
186
116
1
4
9
16
5
6
7
8
21
42
75
31
105
252
525
248
25
36
49
64
9
10
11
12
23
39
77
38
207
390
847
576
81
100
121
144
13
14
15
16
27
39
92
53
351
546
1380
848
169
196
225
256
160
Lesson Four
161
x=136
y= 710
xy= 6661
x2=1496
Year
1
Year
2
Year
3
x
(quarters)
y (sales)
Trend
1
2
3
20
32
62
30.58
32.42
34.26
29
36.10
80
5
6
7
21
42
75
37.94
39.78
41.62
55
106
180
31
43.46
71
9
10
11
23
39
77
45.30
47.14
48.98
51
83
157
QUANTITATIVE TECHNIQUES
Actual
%
Trend
65
99
181
162
Relationships and Forecasting
Year
4
Measures of
12
48
50.82
94
13
14
15
27
39
92
52.66
54.50
56.34
51
72
163
16
53
58.18
91
162
Lesson Four
163
4=
Q1
%
65
55
51
51
222
56%
Q2
%
99
106
83
72
360
90%
Q3
%
181
180
157
163
681
170%
Q4
%
80
71
94
91
336
84%
These then are the average variations expected from the trend for each
of the quarters; for example, on average the first quarter of each year
will be 56% of the value of the trend. Because the variations have been
averaged, the amounts over 100% (Q3 in this example). This can be
checked by adding the average and verifying that they total 400% thus:
56% + 90% + 170% + 84% = 400%.
On occasions, roundings in the calculations will make slight adjustments
necessary to the average variations.
Step 5
Prepare final forecasts based on the trend line estimates from trend
estimates and percentages variation table (i.e. 30.58, 32.42, etc) and
the averaged seasonal variations from the table above. (i.e. 56%, 90%,
170% and 84%)
The seasonally adjusted forecast is calculated thus:
Seasonally adjusted forecast = Trend estimate Seasonal
variation%
X
(quarters)
Year 1
Year 2
Year 3
Y (sales)
1
2
3
4
20
32
62
29
Seasonally
adjusted
forecast
17.12
29.18
58.24
30.32
5
6
7
8
21
42
75
31
21.24
35.80
70.75
36.51
9
10
11
12
23
39
77
48
25.37
42.43
83.27
42.69
QUANTITATIVE TECHNIQUES
164
Relationships and Forecasting
Year 4
13
14
15
16
Measures of
27
39
92
53
29.49
49.05
95.78
48.87
Notes:
a)
b)
c)
Quarter 18 = 55.67
19 = 108.29
20 = 55.05
164
Lesson Four
165
these values would have been used to make the final seasonally
adjusted forecasts.
2.
Trend and seasonal variation using moving averages
When the correlation coefficient is low the method of calculating
the regression line through the actual data points should not be
used. This is because the regression line is too sensitive to
changes in the data values.
In such circumstances, calculating a regression line through the
moving average trend points is more robust and stable.
Example 1 is reworked below using this method and, because
there are many similarities to the earlier method, only the key
stages are shown.
x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
3 point
moving
average (1)
20
32
62
29
21
42
75
31
23
39
77
48
27
39
92
53
Trend line
(2)
38
41
37.3
30.7
46
49.3
43
31
46.3
54.7
50.7
38
52.7
61.3
34.38
35.70
37.02
38.34
39.66
40.98
42.30
43.62
44.94
46.26
47.58
48.90
50.22
51.54
52.86
54.18
Actual
%
Trend
58
90
167
76
53
102
177
71
51
84
162
98
54
76
174
98
20 32 62
= 38 which is entered opposite period 2
3
32 62 29
= 41, and so on
3
166
Relationships and Forecasting
Measures of
y = 33.06 + 1.32x
This is used to calculate the trend line:
e.g.
Q1
54
Q2
89
Q3
170
Q4
86
The trend line and the average seasonal variations are then used in a
similar manner to that previously described.
For example, to extrapolate future sales for the next year (i.e. quarters
17, 18, 19 and 20) is as follows:
Quarter 17
Forecast sales = (33.06 + 1.32(17)) 0.54 =
29.97
A similar process produces the following figures:
Quarter
18 = 50.57
19 = 98.84
20 = 51.13
Forecast errors
Differences between actual results and predictions may arise from many
reasons. They may arise from random influences, normal sampling
errors, choice of the wrong forecasting system or alpha value or simply
that the future conditions turn out to be radically different from the past.
Whatever the cause(s) management wish to know the extend of the
forecast errors and various methods exist to calculate these methods.
A commonly used technique, appropriate to time series, is to calculate
the mean squared error of the deviations between forecast and actual
and choose the forecasting system and/or parameters which gives the
lowest value of mean squared errors, i.e. akin to the least squares
method of establishing a regression line.
Longer- term forecasting
Moving averages, exponential smoothing and decomposition methods
tend to be used for short to medium term forecasting. Longer term
forecasting is usually less detailed and is normally concerned with
forecasting the main trends on a year to year basis. Any of the
166
Lesson Four
167
techniques of regression analysis described in the preceding chapters
could be used depending on the assumptions about linearity or nonlinearity, the number of independent variables and so on. The least
squares regression approach is often used for trend forecasting.
Forecasting using least squares
Example 2
Data have been kept of sales over the last seven years
Year
1
2
3
4
5
6
7
Sales (in 000
14 17
15 23 18
22
27
units
It is required to forecast the sales for 8 years and to calculate the
coefficient of determination
Solution
The data are drawn on a time series graph where x, the independent
variable representing time, is represented on the horizontal axis in the
graph below. Note that, unlike a scatter diagram, the points are joined.
The least squares line of best fit will become the linear trend when
plotted on the graph.
QUANTITATIVE TECHNIQUES
168
Relationships and Forecasting
Measures of
Sales in 000s
40
30
20
10
5
Years
Sales (y)
14
17
15
23
18
22
27
y = 136
xy
14
34
45
92
90
132
189
xy=596
x2
1
4
9
16
25
36
49
2
x = 140
136 = 7a + 28b
596 = 28a + 140b
Which reduces to
52 = 28b
b = 1.86
And substituting in one of the equations we obtain
STRATHMORE UNIVERSITY STUDY PACK
168
Lesson Four
169
A = 12
Regression line = y = 12 + 1.86x
Or, in terms of the problem above :
Sales in (000s of units) = 12.00 + 1.86 (no of years)
To use this expression for forecasting, we merely need to insert the
number of the year required.
For example, 8th year sales
= 12 + 1.86 (8)
=26.88 i.e. 26888
units
QUANTITATIVE TECHNIQUES
170
Relationships and Forecasting
Measures of
REINFORCING QUESTIONS
QUESTION ONE
a) What is meant by correlation?
b) Why is the co-efficient of determination calculated?
c) Define R.
QUESTION TWO
a) The following data has been collected regarding sales and advertising
expenditure.
Sales
(m)
8.5
9.2
7.9
8.6
9.4
10.1
Advertising
expenditure
( 000)
210
250
290
330
370
410
Plot the above data on a scatter diagram and, using judgment , decide
whether there is correlation between sales and advertising expenditure.
b) Calculate r for the data in a and interpret
c) Calculate r2 for the data in a and interpret
d) Find the values of a and b in the formula y = a + bx from the
following data relating to costs incurred at various output levels.
(Using a calculator and the direct formulae for a and b given in the
chapter).
Output
level
(units)
40
55
68
73
82
89
94
95
103
110
Cost incurred
( )
812
890
955
948
1050
1100
1160
1095
1250
1380
QUESTION THREE
170
Lesson Four
171
An analysis of representatives car expenses shows that the expenses are
dependent on the miles traveled (x) and the type of journey (x). the
general form is:
y = a = b1x1 + b2x2
Calculations have produced the following values (where y is expenses per
month)
y = 86 + 0.37x1 + 0.08x2
r2x1 = 0.78
r2x1 = 0.16
R = 0.88
Interpret these values
QUESTION FOUR
Past sales of widgets
Month
Actual
Sales
(units)
January
450
February
440
March
460
April
410
May
380
June
400
July
370
August
360
September 410
October
450
November
470
December
490
January
460
Forecasts produced by
3 monthly
6 monthly
Moving
moving
average
average
12 monthly
moving
average
450
437
417
397
383
377
380
407
443
470
424
423
410
397
388
395
410
425
Table 1
Any months forecast is the average of the proceedings n months actual
sales. For example, the 3 monthly moving average forecasts were
prepared as follows:
Aprils forecast
=
=
=
January
Sales
February
Sales
March
Sales
3
450
QUANTITATIVE TECHNIQUES
172
Relationships and Forecasting
Mays forecast
=
=
=
Measures of
February
Sales
March
Sales
AprilSales
3
437
172
Lesson Four
173
QUESTION FIVE
The following data will be used to illustrate ho w the trend and seasonal
variation are calculated.
Year 1
2
3
4
Quarter 4
29
31
48
53
April-June
July-Sept
Oct-Dec
Jan-March
Quarter 1
000
49
50
51
50
Quarter 2
000
37
38
40
42
Quarter 3
000
58
59
60
61
Quarter 4
000
67
68
70
-
Required:
a) Calculate the four-quarterly moving average trend for this set of data.
b) Calculate the seasonal factors using either the additive model or the
multiplicative model, but not both.
c) Explain, but do not calculate how you would use the results in parts
(a) and (b) of this question to forecast the revenue for the last
quarter of 1993/4 and for the first three quarters of 1994/95.
B.
A company has a fleet of vehicles and is trying to predict the annual
maintenance cost per vehicle. The following data have been supplied for
a sample of vehicles:
Vehicle
number
Age in years
(x)
QUANTITATIVE TECHNIQUES
Maintenance
cost
Per annum
X 10
(y)
174
Relationships and Forecasting
1
2
3
4
5
6
7
8
9
10
Measures of
2
8
6
8
10
4
4
2
6
10
60
132
100
120
150
84
90
68
104
140
Required:
a) Using the least squares technique calculate the values of a and b in
the equation
b) y = a + bx, to allow managers to predict the likely maintenance cost,
knowing the age of the vehicle.
c) Prepare a table of maintenance costs covering vehicles from 1 to 10
years of age, based on your calculations in (a).
d) Estimate the maintenance costs of a 12-year-old vehicle and comment
on the validity of making such an estimate.
QUESTION SEVEN
A company is building a model in order to forecast total costs based on
the level of output. The following data are available for last year:
Month
Output
000
units
(x)
16
20
23
25
25
19
16
12
19
Costs
000
(y)
January
170
February
240
March
260
April
300
May
280
June
230
July
200
August
160
Septembe
240
r
October
25
290
Novembe
28
350
Required:
r
a)
State
two
possible
December
12
200
reasons for the large
variation in output per month.
b) Plot a graph of output and costs, and comment on the relationship
observed.
174
Lesson Four
175
c) Using the least square technique, calculate the values of a an b in the
equation y = a + bx in order to predict costs given the output, and
explain the meaning of the calculated values.
d) Calculate the correlation coefficient between output and costs, and
comment on the value.
e) Prepare a forecast of the costs for the next two months, when output
will be 20,000 and 40,000 units respectively. Discuss the validity of
your forecast.
QUESTION EIGHT
Your company has been selling data base and spreadsheets for the last
four year and has found the business to vary with season. The quarterly
sales figures for the last four years are shown in table 6b1 and table 6b2
shows the deviation from the trend at the appropriate periods
QUANTITATIVE TECHNIQUES
176
Relationships and Forecasting
Measures of
Table 6b1
Quarterly sales in 000s
Year
1983
1984
1985
1986
1987
Q1
Q2
360
430
500
590
Q3
530
750
660
710
Q4
354
395
509
521
Q1
Q2
Q3
-128
-145
-165
-37
12
43
276
153
153
Q4
-42
-93
-15
304
340
374
440
Table 6b2
Seasonal deviation from trend in 000s
Year
1983
1984
1985
1986
Required
i.
establish the trend figures from the data in the two tables
ii.
establish the seasonal variations for the four year period
iii.
plot the trend figures on a properly labeled time series graph
iv.
using your results from parts ii and iii forecast sales for 1987
quarter 2
QUESTION NINE
1. The directors of your company wish to make a serious study of the
heating costs of the **** block. The data for the last sixteen quarterly
periods are tabulated as follows.
Heating costs in
Quarter
Year
1980
1981
1982
1983
1984
Q1
Q2
Q3
1730
1950
1860
1910
1554
1595
1709
1721
1504
1540
1574
1640
Q4
1560
1630
1700
1790
Required
a) Assuming the additive model calculate the trend of heat costs
using the method of moving averages
b) Display the heating costs and the trend on a histogram ( a time
series graph)
c) Estimate the seasonal deviations from trend
176
Lesson Four
177
d) Estimate the heating costs for quarter IV of 1984 and comment
on any factors affecting the reliability of your forecast
QUANTITATIVE TECHNIQUES
178
Relationships and Forecasting
Measures of
178
Lesson Four
179
to 50 kilogrammes. In addition, a barbell plat must have a hole just
slightly larger than 1 centimeter in diameter so that it will slip onto
the 1 centimeter diameter bar easily but fit smoothly when it is in
place.
A recent sampling of barbell plates of 10 and 50 kilogrammes
revealed the following information:
i)
ii)
iii)
iv)
Required:
Determine whether the production process associated with one size of
barbell plant produced more variable results than the production
process associated with the other size.
(6 marks)
(Total: 20
marks)
QUESTION TWO
a) The index of industrial production in the Utopian country by July 2001
is given below:
Sector
Mining and
quarrying
Manufacturing:
Food, drink and
tobacco
Chemicals
Metal
Engineering
Textiles
Other manufacturing
Construction
- Gas, electricity and
water
Weight
41
77
106
66
47
298
67
142
182
80
109
72
86
70
91
84
115
Required:
QUANTITATIVE TECHNIQUES
180
Relationships and Forecasting
Measures of
(Total: 20
marks)
QUESTION THREE
Leisure Publishers Ltd. recently published 20 romantic novels by 20
different authors. Sales ranged from just over 5,000 copies for one novel
about 24,000 copies for another novel. Before publishing, each novel
had been assessed by a reader who had given it a rating between 1 and
10. The managing director suspects that the main influence on sales is
the cover of the book. The illustrations on the front covers were drawn
either by artist A or artist B. the short description on the back cover of
the novel was written by either creditor C or editor D.
A multiple regression analysis was done using the following variables:
Y
Sales (million of shillings)
X1
1 if front cover is by artist A
2 if front cover is by artist B
X2
readers rating
X1
1 if the short description of the novel is by editor C
2 if the short description of the novel is by editor D
The computer analysis produced the following results:
Correlation coefficient
r = 0.921265
Standard error of estimate
= 2.04485
Analysis variance
Degrees of
freedom
Regressio
3
n
Residue
16
Individual analysis of variables
Variable
Coefficient
Constant
1
2
15.7588
-6.25485
0.0851136
Sum of
squares
375.37
Mean square
F ratio
125.12
29.923
66.903
1.1814
Standard
error
2.54389
0.961897
0.298272
F Value
38.375
42.284
0.081428
180
Lesson Four
181
3
5.86599
Correlation coefficients
1
-0.307729
1
0.922233
40.457741
0
0.123094
1
-0.674104
0.310838
0.627329
1
Required:
a) The regression equation.
(3
marks)
b) Does the regression analysis provide useful information? Explain.
(3 marks)
c) Explain whether the covers were more important for sales than
known quality of the novels.
(4 marks)
d) State with 95% confidence the difference in sales of a novel if its
cover illustrations were done by artist B instead of artist A.
(5 marks)
e) State with 95% confidence the difference in sales of a novel if its
short description was by editor D and not editor C.
(5 marks)
(Total:
20
marks)
QUESTION FOUR
a) Explain the difference between regression and correlation analysis .
(4 marks)
b) Explain why the existence of a significant correlation does not imply
causation.
(2 marks)
c) A bakery bakes cakes under the brand name super cakes. Irene
Juma, the manageress does not know the cost of each cake. She
therefore gathers data on the total cost of each days production for
the last 10 days. The results are shown in the table below;
QUANTITATIVE TECHNIQUES
182
Relationships and Forecasting
Day
1
2
3
4
5
6
7
8
9
10
Measures of
Number of
cakes
(00 units)
22.5
21.0
27.5
21.5
30.0
20.0
24.0
26.5
18.3
17.0
Total cost
(Sh. 000)
23.0
21.6
23.3
24.0
28.2
22.4
23.1
25.3
20.1
16.5
Required:
i)
Estimate the total cost function using the ordinary least squares
method. State the fixed cost and unit cost.
(11 marks)
ii)
1
40
42
46
54
2
64
84
78
78
3
124
150
154
184
4
58
62
96
106
Required:
i) The trend in the data using the least squares method.
(8 marks)
ii) The estimated sales for each quarter of year 2004.
(4 marks)
iii) The percentage variation of each quarters actual sales for year 2004.
(4 marks)
(Total: 20
marks)
182
Lesson Four
183
QUESTION SIX
a) Explain the following terms as used in index numbers:
i) Price index
marks)
ii) Quantity index
marks)
iii) Composite index
marks)
iv) Value index
marks)
(2
(2
(2
(2
Item
Oranges (kg)
Milk (Litres)
Bread (Loafs)
Eggs (Dozens)
Year 2002
Price (p1)
Quantity
(q1)
Sh.
25
1
35
2
40
3
65
1
Required:
i) Price relatives for each item
marks)
ii) Laspeyres price index
marks)
iii) Paasche price index
marks)
(4
(4
(4
(Total: 20
marks)
QUESTION SEVEN
Explain three methods of fitting a trend in time series analysis.
(6 marks)
The quarterly sales data for Chuce hardware are given below:
Year
2000
2001
2002
2003
1
(Sh.
Million)
8.5
9.5
10.4
9.5
Quarter
2
3
(Sh.
(Sh.
Million)
Million)
10.4
7.5
12.2
8.8
13.5
9.7
11.7
8.4
QUANTITATIVE TECHNIQUES
4
(Sh.
Million)
11.8
13.6
13.1
12.9
184
Relationships and Forecasting
2004
10.9
Measures of
13.7
10.1
15.0
Required:
(a)
The centred four-quarter moving averages.
marks)
(b)
The specific seasonal variation for each quarter
(3 marks)
(c)
The typical seasonal indices
marks)
(d)
Explain the third quarter typical seasonal index
(2 marks)
(6
(3
(Total: 20
marks)
184
Lesson Four
185
QUESTION EIGHT
a) A machine produces circular bolts and as a quality control test, 250
bolts were selected randomly and the diameter of their heads
measured as follows:
Diameter of
(cm)
0.9747
0.9750
0.9753
0.9756
0.9759
0.9762
0.9765
0.9768
0.9771
0.9774
0.9777
0.9780
-
head
0.9749
0.9752
0.9755
0.9758
0.9761
0.9764
0.9767
0.9770
0.9773
0.9776
0.9779
0.9782
Number of
components
2
6
8
15
42
68
49
25
18
12
4
1
Required:
b)
i)
Determine whether the customer is getting reasonable value if the
label on the circular bolt advertises that the average diameter of
the head is 0.97642 cm.
(8 marks)
ii)
In what situation would weighted mean be used?
(3 marks)
iii)
Describe briefly how to estimate the median on a grouped
frequency distribution graphically?
(3 marks)
iv)
Why is the mode not used extensively in statistical analysis?
(3 marks)
The standard deviation is the natural partner to the mean.
Explain
(3 marks)
(Total: 20
marks)
QUANTITATIVE TECHNIQUES
186
Lesson Five
LESSON FIVE
5. Probability
Contents
- Probability theory
- Bayes Theorem and conditional probability
- Permutations and combinations
- Discrete probability distributions
- Continuous probability distribution
186
Probability
187
5.1
PROBABILITY
Probability is a very popular concept in business management.
This is because it covers the risks which may be involved in certain
business situations. It is a fact that when a business investment is
being arranged, the outcome is usually uncertain. Therefore the
concept of probability may be used to describe the degree of
uncertainty of a particular business outcome
Probability may therefore be defied as the chances of a given
event occurring. Numerically, probability values range between 0
and 1. a probability of 0 implies that the event cannot occur at all.
A probability of 1 implies that the event will certainly occur.
Therefore other events have their probabilities with values lying
between 0 and 1
The formular used to determine probability is as follow
Probability (x) =
r
n
Favourable
outcomes
Totaloutcomes
(ii)
(iii)
20
4
Number
of black
ballsinthebag
P B
Probability of black ball =
Totalnumber
of balls
0
0
=
80
P(R or B) =
20
80
or
25
80
80
Number
of redballs
inthebag
P R
Totalnumber
of ballsinthebag
20 25
80 80
9
16
QUANTITATIVE TECHNIQUES
188
Lesson Five
Common terms
Events: an event is a possible outcome of an experiment or a result of a
trial or an observation.
Mutually exclusive events
A set of events is said to be mutually exclusive if the occurance of any
one of the events precludes the occurrence of any of the other events e.g.
when tossing a coin, the events are a head or a tail these are said to be
mutually exclusive since the occurrence of heads for instance implies
that tails cannot and has not occurred.
It can be represented in venn diagram as.
E1
E2
E1 E2 =
E1
E2
Non-mutually exclusive
events (independent
events)
E1 E2
Consider a survey in which a random sample of registered voters is
selected. For each voter selected their sex and political party affiliation
are noted. The events KANU and woman are not mutually exclusive
because the selection of KANU does not preclude the possibly that the
voter is also a woman.
Independent Events
Events are said to be independent when the occurance of any of the
events does not affect the occurrence of the other(s).
e.g. the outcome of tossing a coin is independent of the outcome of
the preceeding or succeeding toss.
188
Probability
189
Example
From a pack of playing cards what is the probability of;
(i)
Picking either a Diamond or a Heart mutually exclusive
(ii)
Picking eigher a Flower or an Ace endepent events
Solutions.
(i)
P(Diamond or Heart)
= P(Diamond) + P(Heart)
=
13 13 26
52 52 52
= 0.5
(ii)
P(Flower or Ace)
= P(Flower) + P(Ace) P(Flower and Ace)
=
=
13 4
1
52 52 52
4
52
= 0.31
(b)
Multiplicative rule
This is used when there is a string of independent events for which
individual probability is known and it is required to know the
overall probability.
Example
What is the probability of a 3 and a 6 with two throws of a die?
Solution
P(throwing a 3) and P(6)
= P(3) and P(6) =
Note: 1)
1 1 1
6 6 36
190
Lesson Five
2)
P(x) and P(y) P(x and y) note that these two are
different. The first implies P(x) happening and P(y),
but if the order of which happened first is
unimportant then we have p(x and y).
In the example above:
P(3) and P(6) = 1
36
but
P(3 and 6) = P(3 followed by 6) or P(6 followed by 3)
= [P(3) P(6)] or [P(6) P(3)]
= 1
1 1
36 36 18
190
Probability
191
(c)
Conditional probability
This is the probability associated with combinations of events but
given that some prior result has already been achieved with one of
them.
Its expressed in the form of
P(x|y) = Probability of x given that y has already occurred.
P(x|y) =
P ( xy )
P( y)
Example:
In a competitive examination. 30 candidates are to be selected. In all
600 candidates appear in a written test, and 100 will be called for the
interview.
(i)
What is the probability that a person will be called for the
interview?
(ii)
Determine the probability of a person getting selected if he has
been called for the interview?
(iii)
Probability that person is called for the interview and is selected?
Solution:
Let event A be that the person is called for the interview and event B that
he is selected.
(i)
(ii)
(iii)
P(A) =
100
600
= 1
30
P(B|A) =
100 10
1 3 3 1
6 10 60 20
Example:
From past experience a machine is known to be set up correctly on 90%
of occasions. If the machine is set up correctly then 95% of good parts
are expected but if the machine is not set up correctly then the
probability of a good part is only 30%.
On a particular day the machine is set up and the first component
produced and found to be good. What is the probability that the machine
is set up correctly.
Solution:
This is displayed in the form of a probability
tree or diagram as follows:
CS GP
GP =
CS Correct
0.95
Setting
CS =
0.9
IS =
0.1
BP =
0.05
GP =
0.3
CS BP
IS Incorrect
Setting
IS
GP
GP Good
Product
QUANTITATIVE TECHNIQUES
BP = 0.7
IS
BP Bad Product
192
Lesson Five
0.966
Totalpossible
outcomes
P(GP)
0.885
Or
= P(CS|GP) =
P(CSGP) 0.855
0.966
P(GP)
0.885
Example
In a class of 100 students, 36 are male are studying accounting, 9 are
male but not studying accounting, 42 are female and studying
accounting, 13 are female and are not studying accounting.
Use these data to deduce probabilities concerning a student drawn at
random.
Solution:
Male M
Female F
Total
P(M) =
Accounting
A
36
42
78
Not accounting
A
9
13
22
Total
45
55
100
45
0.45
100
192
Probability
193
P(F) =
55
0.55
100
78
0.78
P(A) =
100
22
0.22
P A =
100
36
100
= 0.36
P(AandM)
P(M)
0.36
0.80
0.45
P A andM
P(A)
Bayes rule/Theorem
This rule or theorem is given by
P(A|B) =
P A P B A
P(B)
QUANTITATIVE TECHNIQUES
194
Lesson Five
Solution
P(A|B) =
P A P B A
P(B)
0.6 0.9
P H P G H
P(G)
0.75
= 0.72.
Worked examples on probability
1. A machine comprises of 3 transformers A, B and C. The machine may
operate if at least 2 transformers are working. The probability of each
transformer working are given as shown below;
P(A) = 0.6, P(B) = 0.5, P(C) = 0.7
A mechanical engineer went to inspect the working conditions of those
transformers. Find the probabilities of having the following outcomes
i.
Only one transformer operating
ii.
Two transformers are operating
iii.
All three transformers are operating
iv.
None is operating
v.
At least 2 are operating
vi.
At most 2 are operating
Solution
P(A) =0.6
P(C) = 0.7
P( A ) = 0.4
P( C ) = 0.3
P(B) = 0.5
P(~B) = 0.5
i.
given by the
x 0.5 x 0.3 = 0.09
x 0.5 x 0.7 = 0.21
x 0.5 x 0.7 = 0.14
194
Probability
195
iii.
iv.
v.
vi.
Definition
Permutation
- This is an order arrangement of items in which the order must be
strictly observed
Example
Let x, y and z be any three items. Arrange these in all possible
permutations
1st
X
X
Y
Y
Z
Z
2nd
Y
Z
X
Z
Y
X
3rd
Z
Y
Z
X
X
Y
QUANTITATIVE TECHNIQUES
196
Lesson Five
NB: The above 6 permutations are the maximum one can ever obtain in a
situation where there are only 3 items but if the number of items exceeds
3 then determining the no. of permutations by outlining as done above
may be cumbersome. Therefore we use a special formula to determine
such permutations. The formula is given below
The number of permutations of r items taken from a sample of n items
may be provided as nPr
n!
n - r !
! = factorial
E.g.
i.
3P3
=
=
=
ii.
5P3
=
=
=
iii.
7P5
=
=
=
=
3!
3 3 !
3 2 1
0!
NB 0! = 1
6
=6
1
5!
5 - 3 !
5 4 3 2 1
60
1 2
7!
7 - 5 !
7 6 5 4 3 2 1
2 1
5040
2
2520
Example
There are 6 contestants for the post of chairman secretary and treasurer.
These positions can be filled by any of the 6. Find the possible no. of
ways in which the 3 positions may be filled.
Solution
Chairman
Secretary
Treasurer
6
5
4
Therefore the no of ways of filing the three positions is 6 x 5 x 4 = 120
6P3
=
=
6!
6 - 3 !
6 5 4 3 2 1
3 2 1
720
6
120
196
Probability
197
Combinations
Definition
A combination is a group of times in which order is not important.
For a combination to hold at any given time it must comprise of the same
items but if a new item is added to the group or removed from the group
then we have a new combination
Example
3 items x, y and z will have 6 different permutation but only one
combination.
The following formular is usually used to determine the no. of
combinations in a given situation.
Cr
n!
r n - r !
Example
i.
Cr
=
=
=
=
ii.
C4
=
=
=
iii.
C3
8
7 8 7 !
8
7 !1!
8 7!
1 7!
6
6 6 4 !
6
6 !2 !
6 5 4!
4!
2 1
15
8
3 !5 !
=
=
8 7 6 5!
3 2 1 5!
56
Example
There is a committee to be selected comprising of 5 people from a group
of 5 men and 6 women. If the selection is randomly done. Find the
possibility of having the following possibilities (combinations)
i.
Three men and two women
ii.
At least one man and at least one woman must be in the
committee
iii.
One particular man and one particular woman must not be in
the committee (one man four women)
QUANTITATIVE TECHNIQUES
198
Lesson Five
Solution
i.
The committee size = 5 people
The group size = 5m + 6w
assuming no restrictions the committee can be selected in
11c5
the committee has to consist of 3m & 2w
these may be selected as follows.
5c3 x 6c2
P(committee 3m and 2w
=
=
=
=
5c3 6c2
11c5
5!
3! 2 !
6!
4!2!
5 4 3 2 1
3 2 1 2 1
11 !
5!6 !
6 5 4! 6!
5!
2 14!
11!
27
77
198
Probability
199
ii.
P(at least one man and at least one woman must be in the
committee)
The no. of possible combinations of selecting the committee
without any woman = 5C5
The probability of having a committee of five men only
5C 5
11C 5
1
462
6C 5
11C 5
6!
11c6
5 !1!
6 5!
6!5!
5!1! 11 10 9 8 7 6!
6 5 4 3 2 1
=
=
11 10 9 8 7
1
77
77 462
6 1
1 462
7
1 462
455
465
=1
=
=
=
iii.
5c4 4c1
9c5
5!
6!
4 !1!
1! 3 !
5 4!
1!4!
4 3!
1 3!
9!
4 !5!
4!5!
9 8 7 6 5!
QUANTITATIVE TECHNIQUES
200
Lesson Five
=
10
63
n!
r ! n - r !
Pr ( 1- P)n-r
40%
60%
=
=
0.4
0.6
=P
=1P=q
200
Probability
201
=
6!
(0.4)1(0.6)5
5 !1!
= 0.1866
Note that from the formula
r n-r
n = sample size = 6
nCrP q :
p = 0.4
r = 1 = only one person having cancer
b) P(2 pple had the disease)
= 6c2 (0.4)2 (0.6)4
=
=
6!
(0.4) 2 (0.6)5
4!2!
6 5 4 !
4! 2 1
(0.4) 2 (0.6)5
= 15 x (0.4) 2 (0.6)5
= 0.311
c) P(at most 2) = P(0) + P(1) + P(2) = P(0) or P(1) or P(2)
So we calculate the probability of each and add them up.
P(0) = P(nobody having cancer)
= 6c0 (0.4) 0(0.6)6
=
6!
(0.4) 0(0.6)6
0 !6 !
= (0.6)6
= 0.0467
The probabilities of P(1) and P(2) have been worked out in part (a) and
(b)
Therefore P(at most 2) = 0.0467 + 0.1866 + 0.311 = 0.5443
d) P(at least 2)
= P(2) + P(3) + P(4) + P(5) + P(6)
= 1 [P(0) + P(1)] This is a shorter way of working out the
solution since
(P(0) + P(1) + P(2) + P(3) + P(4) + P(5) + P(6) = 1)
= 1 (0.0467 + 0.1866)
= 0.7667
e) P(3 or 4 people had the disease)
= P(3) +P(4)
= 6c3(0.4)3(0.6)3 + 6c4(0.4)4(0.6)2
=
6!
(0.4) 3(0.6)3
3!3!
6!
(0.4) 4(0.6)2
2! 4!
QUANTITATIVE TECHNIQUES
202
Lesson Five
= 6 5 4 3! (0.4) 3(0.6)3 + 6 5 4! (0.4) 4(0.6)2
3 2 1 3!
2 1 4!
= 20(0.4)3(0.6)3 + 15(0.4)4(0.6)2
= (20 0.013824) + (15 0.009216)
= 0.27648 + 0.13824
= 0.41472
202
Probability
203
Example 2
An insurance company takes a keen interest in the age at which a person
is insured. Consequently a survey conducted on prospective clients
indicated that for clients having the same age the probability that they
will be alive in 30 years time is
using the actuarial tables. If a sample of 5 people was insured now, find
the probability of having the following possible outcomes in 30 years
a) All are alive
b) At least 3 are alive
c) At most one is alive
d) None is alive
e) At least 1 is alive
Sample size = 5
P(alive) =
3
1
P(not alive) =
5c52 1
3 3
5! 2 5 1 0
3
5!0! 3
23
32
243
5c32 1
3 3
5! 2 3 1 2
3
3!2! 3
5 4 3! 2 3 1 2
3
3!2 1 3
10 2 1
3 3
P(4)
80
243
5c42 1
3 3
5! 2 4 1 1
3
4!1! 3
QUANTITATIVE TECHNIQUES
204
Lesson Five
5 4! 2 4 1 1
3
4! 1! 3
80
243
80
80
32
+
+
243
243
243
192
243
5c02 1 5c12 1
3 3
3 3
5! 2 0 1 5
5! 2 1 1 4
3
3
0!5! 3
4!1! 3
3 13
0
= 2
5 4! 2 1 1 4
3
4! 1! 3
10
234 + 243
11
243
d) P( none is alive)
5c02 1
3 3
5! 2 0 1 5
3
5!0! 3
1
243
242
1
243
243
204
Probability
205
ii.
Traffic jams at certain roads at 9 oclock at night
iii.
Sales boom
iv.
Attaining an age of 100 years (Centurenean)
- Poisson probabilities are frequently applied in business situations
in order to determine the numerical probabilities of such events
occurring.
The formular used to determine such probabilities is as follows
e x
P(x) =
Where
X!
x= No. of successes
= mean no. of the successes in the sample ( =
np)
= lambda = np
e= 2.718
Example 1
A manufacturer assures his customers that the probability of having
defective item is 0.005. A sample of 1000 items was inspected. Find the
probabilities of having the following possible outcomes
i.
Only one is defective
ii.
At most 2 defective
iii.
More than 3 defective
e x
P(x) =
x!
( = np = 1000 0.005) = 5
i.
P(only one is defective) = P(1) = P(x = 1)
5
1
2.718
51
=
Note that 2.718-5=
5
2.718
1!
=
5
5
2.718
5
148.33
=
ii.
0.0337
P(at most 2 defective) = P(x 2)
=
P(0) + P(1) + P(2)
=
P(x = 0) =
2.718-5
1
2.718 5
e 5 50
0!
1
148.336
=
=
0.00674
P(x = 1) = 0.0337
P(x = 2)
2.7185 52
2!
QUANTITATIVE TECHNIQUES
206
Lesson Five
=
=
=
=
iii.
25
2 148.336
0.08427
P(x2) = 0.00674 + 0.0337 + 0.08427
0.012471
P(more than 3 defective) = P(x > 3)
= 1 P 0 P 1 P 2 P 3
BINOMIAL MATHEMATICAL PROPERTIES
1. The mean or expected value = n p = np
Where n = Sample Size
p = Probability of success
2. The variance = npq
Where q = probability of failure = 1 - p
3. The standard deviation = npq
Example
A firm manufacturing 45,000 units of nuts. The probability of having a
defective nut is 0.15
Calculate the following
i.
The expected no. of defective nuts
ii.
The variance and standard deviation of the defective nuts in a
daily consignment of 45,000
Solution
Sample size n = 45,000
P(defective) = 0.15 = p
P(non defective) = 0.85 = q
i.
the expected no of defective nuts
= 45,000 0.15 = 6,750
ii.
The variance = npq
= 45000 0.85 0.15
= 5737.50
The standard deviation = npq
= 5737.50
= 75.74
POISSON MATHEMATICAL PROPERTIES
1. The mean or expected value = np =
Where n = Sample Size
p = Probability of success
2. The variance = np =
3. Standard deviation = np=
Example
The probability of a rare disease striking a given population is 0.003. A
sample of 10000 was examined. Find the expected no. suffering from the
206
Probability
207
disease and hence determine the variance and the standard deviation for
the above problem
Solution
Sample size n = 10000
P(a person suffering from the disease) = 0.003 = p
expected number of people suffering from the disease
Mean = = 10000 0.003
= 30
= np =
variance = np = 30
Standard deviation = np =
= 30
= 5.477
5.5
Line of symmetry
Normal probability
Distribution curve
Tail End
Tail End
QUANTITATIVE TECHNIQUES
Age
(Yrs)
208
Lesson Five
20
25
30
35
40
45
50
55
70
STANDARDIZATION OF VARIABLES
- Before we use the normal distribution curve to determine
probabilities of the continuous variables, we need to standardize
the original units
of measurement, by using the following
formular.
Z=
208
Probability
209
Z = Standardization of x
= population mean
= Standard deviation
Example
A sample of students had a mean age of 35 years with a standard
deviation of 5 years. A student was randomly picked from a group of 200
students. Find the probability that the age of the student turned out to be
as follows
i.
Lying between 35 and 40
ii.
Lying between 30 and 40
iii.
Lying between 25 and 30
iv.
Lying beyond 45 yrs
v.
Lying beyond 30 yrs
vi.
Lying below 25 years
Solution
i. The standardized value for 35 years
Z=
35 - 35
5
= 0
40 - 35
=1
5
5
40 35
Z=
=
Z=
5
5
= -1
1
25 35
=
10
= -2
5
QUANTITATIVE TECHNIQUES
210
Lesson Five
Z=
30 35
=
= -1
5
5
Probability corresponding to Z = 2
between 35 and 45
P(Age > 45yrs) = 0.5000 0.4772
= 0.0228
= 0.4772 = probability of
(ii).The
210
Probability
211
ii.
iii.
iv.
0 2x2 dx = [
iii.
4 1
=-
2 2
)
3
4
9
4
9
1
18
1
Variance =
18
3
2
Similarly L0 f(x) dx =
L
i.e.
0 2xdx =
Giving L2 = and L =
Interquartile range
3
2
3 1]
0 f(x) dx =
show that the median is
v.
0 f(x) dx =
0 f(x) dx =
Lower quartile
212
Lesson Five
21
= kx 0 = 1
2
= [ k 0] = 1 i.e. K = 2
ii.
Mean = ba xf (x) dx
= 10 x X kx dx Where k = 2
Exponential distribution
Example
The mean life of an electrical component is 100 hours and its life has an
exponential distribution.
Find
a. The probability that it will last less than 60 hours
b. The probability that it will last more than 90
hours
Solution
A continuous random variable X has an exponential distribution, if for
some constant k (>0) it has the probability density function
F(x) =[Ke-kx, x 0]
[0, otherwise]
The function f(x) is positive for all values of x and the area under the
curve
0 f(x) dx = 0 ke-kx dx = 1
The mean of an exponential distribution with parameter K is 1/K and its
variance is 1/K2
a) P(x <60) = 600 1/100e 1/100x dx
[mean = 100 hours hences k
=)
[e1/100x ]600 = 1 e-0.6
=
0.45 (2dp)
b) P(x> 90 = 1 P(x 90)
= 1 - 900 1/100e 1/100x dx
= 1 - [e0.9]600 = e-0.9
=
0.41 (2dp)
The students t distribution
The students t distribution was presented by W. S. Gasset in 1908 under
the pen name of student. The t distribution is of great importance in the
so called small sample tests and is profoundly used in statistical
inference
The t distribution has a single parameter, known as the number of
degrees of freedom. It is denoted by the Greek symbol (read as nu). It
can be interpreted as the number of useful items of information
generated by a sample of given size. The degrees of freedom are sample
size less one (v= n-1)
Properties of t distribution
212
Probability
213
1.
2.
3.
4.
5.
QUANTITATIVE TECHNIQUES
214
Lesson Five
Relation between the t distribution and standard normal distribution is
shown in the following diagram
-4
-3
-2
-1
Note that the t distribution has different shapes depending on the size of
the sample. When the sample is quite small the height of the t
distribution is shorter than the normal distribution and the tails are
wider.
Assumptions of t distribution
1. The sample observations are random
2. The population standard deviation is known
3. Samples are draw from normal distribution
4. The size of sample is thirty or less n 30
Application of t distribution
Estimation of population mean from small samples
Test of hypothesis about the population mean
Test of hypothesis about the difference between two means
Chi Square distribution
Chi square was first used by Karl Pearson in 1900. It is denoted by the
Greek letter 2. it contains only one parameter, called the number of
degrees of freedom (d-f), where the term degree of freedom represents
the number of independent random variables that express the chi square
Properties
1.
Its critical values vary with the degree of freedom. For every
increase in the number of degrees of freedom there is a new
2 distribution.
214
Probability
215
2.
3.
4.
5.
=1
P(x)
=2
=3
=4
=5
10
2
6. 2 distribution is a continuous probability distribution which
has the value zero at its lower limit and extends to infinity in
the positive direction. Negative value of 2 is not possible
because the differences between the observed and expected
frequencies are always squared
F distribution or Variance ratio distribution
It was developed by R. A fisher in 1924 and is usually defined in terms of
the ratio of the variances of two normally distribution populations
It is used to test the hypothesis that the two normally distributed
populations have two equal variances
QUANTITATIVE TECHNIQUES
216
Lesson Five
F distribution ratio of the variances between two normally distributed
s12
population may be expressed as
s22
d12
d22
S22 =
if d
2
1
2
x1 x '1
as the unbiased estimator of d12
v1 n1 1
x 2 x'2 2
v2 n2 1
= d2
S12
Largest estimate of variance
then the statistic F = 2 =
Smallest
estimate of variance
S2
216
Probability
217
Assumptions
a) All sample observations are randomly selected and independent
b) The total variance of the various sources of variance should be
additive.
c) The ratio of S12 to S22 should be equal to or greater than 1
d) The population for each sample must be normally distributed with
identical mean of variance
e) F value can never be negative
QUANTITATIVE TECHNIQUES
218
Lesson Five
REINFORCING QUESTIONS
QUESTION ONE
The quality controller, Mr. Brooks, at Queensville Engineers has become
aware of the need for an acceptance sampling programme to check the
quality of bought-in components. This is of particular importance for a
problem the company is currently having with batches of pump shafts
bought in from a local supplier. Mr. Brooks proposes the following
criteria to assess whether or not to accept a large batch of pump shafts
from this supplier.
From each batch received take a random sample of 50 shafts, and accept
that batch if no more than two defectives are found in the sample.
Mr. Brooks needed to calculate the probability of accepting a batch P a ,
when the proportion of defectives in the batch, p, is small (under 10%,
say)
Required:
a)
Explain why the Poisson distribution is appropriate to
invstigate this situation.
b)
Using the Poisson distribution, determine the probability of
accepting a batch Pa, containing p=2% defectives if the method is
used.
c)
Determine Pa, for p = 0%, 5%, 10%, 15% and hence plot a
graph showing the relationship between Pa (on the vertical axis)
and p (on the horizontal axis) .
Use this graph to estimate
1)
The proportion of defectives which must not be
exceeded if the supplier needs to be 95% certain that the batch
will be accepted.
2)
The proportion of defectives in the batch for which
there is only a 5% probability of acceptance by Queensville.
Briefly outline the importance of these values to the supplier.
QUESTION TWO
A woven cloth is liable to contain faults and is subjected to an inspection
procedure. Any fault has a probability of 0.7 that it will be detected by
the procedure, independent of whether any other fault is detected or not.
Required:
a) If a piece of cloth contains three faults, A, B and C,
i)
Calculate the probability that A and C are detected, but that B
is undetected;
ii)
Calculate the probability that any two of A, B and C be
detected, the other fault being undetected;
iii)
State the relationship between your answers to parts (i) and (ii)
and give reasons for this.
218
Probability
219
b) Suppose now that, in addition to the inspection procedure given
above, there is a secondary check which has a probability of 0.6 of
detecting each fault missed by the first inspection procedure. This
probability of 0.6 applies independently to each and ever fault
undetected by the first procedure.
i)
Calculate the probability that a piece of cloth with one fault has
this fault undetected by both the inspection procedure and the
secondary check;
ii)
Calculate the probability that a piece of cloth with two faults
has one of these faults detected by either the inspection
procedure or the secondary check, and one fault undetected by
both;
iii)
Of the faults detected, what proportion are detected by the
inspection procedure and what proportion by the secondary
check?
QUESTION THREE
A company ha three production sections S 1,S2 and S3 which contribute
40%,35% and 25%, respectively, to total output. The following
percentages of faulty units have been observed:
2%
(0.02)
S1
3%
(0.03)
S2
4%
(0.04)
S3
There is a final check before output is dispatched. Calculate the
probability that a unit found faulty at this check has come from section 1,
S1
QUESTION FOUR
Assuming a Binomial Distribution what is the probability of a salesman
making 0,1,2,3,4,5 or 6 sales in 6 visits if the probability of making a sale
on a visit is 0.3?
Do not use tables for this question.
QUESTION FIVE
Records show that 60% of students pass their examinations at first
attempt. Using the normal approximation to the binomial, calculate the
probability that at least 65% of a group of 200 students will pass at the
first attempt.
QUESTION SIX
A batch of 5000 electric lamps has a mean life of 1000 hours and a
standard deviation of 75 hours. Assume a normal distribution.
a)
QUANTITATIVE TECHNIQUES
220
Lesson Five
b)
c)
d)
How many lamps will fail between 950 and 1000 hours?
What proportion of lamps will fail before 925 hours?
Given the same mean life, what would the standard
deviation have to be to ensure that no more than 20% of lamps
fail before 916 hours?
220
LESSON SIX
6. Sampling and Estimation
-
Sampling techniques
Central limit theorem
Sampling distribution of statistical parameters
Test of hypothesis
6.1
Methods of Sampling
a . Random or probability sampling methods
they include
i.
Simple random sampling
ii.
Stratified sampling
iii.
Systematic sampling
iv.
Multi stage sampling
b. Non random probability sampling methods
these consist of
i.
ii.
iii.
Judgment sampling
Quota sampling
Cluster sampling
QUANTITATIVE TECHNIQUES
222
Lesson Six
stratification. The groups are called strata. Simple random samples from
each of the strata are collected and combined into a simple. This
technique of collecting a sample from a population is called stratified
sampling. Stratification may be by age, occupation income group e.t.c.
222
224
Lesson Six
have a distribution of sample means, which approaches a normal
distribution.
Standard errors of the mean
The series of sample means X 1 , X 2 , X 3 .. is normally distributed or
nearly so (according to the central limit theorem). It can be described by
its mean and its standard deviation. This standard deviation is known as
the standard error.
s
n
Note: this formular is satisfactory for larger samples and a large
population i.e. n > 30 and n > 5% of N.
- The word error is in place of deviation to emphasize that variation
among sample means is due to sampling errors.
- The smaller the standard error the greator the precision of the
sample value.
6.3
Statistical inference
It is the process of drawing conclusions about attributes of a population
based upon information contained in a sample (taken from the
population).
It is divided into estimation of parameters and testing of hypothesis.
Symbols for statistic of population parameters are as follows.
Sample
Statistic
Arithmetic mean
Standard deviation
Number of items
s
n
Population
Parameter
Statistical estimation
It is the procedure of using statistic to estimate a population parameter
It is divided into point estimation (where an estimate of a population
parameter is given by a single number) and interval estimation (where
an estimate of a population is given by a range which the parameter may
be considered to lie) e.g. a bus meant to take a class of 100 students
(population N) for trip has a limit to the maximum weight of 600kg of
which it can carry, the teacher realizes he has to find out the weight of
the class but without enough time to weigh everyone he picks 25
students selected at random (sample n = 25). These students are
weighed and their average weight recorded as 64kg ( X - mean of a
sample) with a standard deviation (s), now using this the teacher intends
to estimate the average weight of the whole class ( population mean)
by using the statistical parameters standard deviation (s), and mean of
the sample ( x ).
224
Confidence Interval
The interval estimate or a confidence interval consists of a range (an
upper confidence limit and lower confidence limit) within which we are
confident that a population parameter lies and we assign a probability
that this interval contains the true population value
The confidence limits are the outer limits to a confidence interval.
Confidence interval is the interval between the confidence limits. The
higher the confidence level the greater the confidence interval. For
example
A normal distribution has the following characteristic
i.
Sample mean 1.960 includes 95% of the population
ii.
Sample mean 2.588 includes 99% of the population
1.
LARGE SAMPLES
These are samples that contain a sample size greater than 30(i.e. n>30)
(a)
Estimation of population mean
Here we assume that if we take a large sample from a population then
the mean of the population is very close to the mean of the sample
Steps to follow to estimate the population mean includes
i.
Take a random sample of n items where (n>30)
ii.
Compute sample mean ( X ) and standard deviation (S)
iii.
Compute the standard error of the mean by using the following
formular
Sx =
iv.
v.
s
n
QUANTITATIVE TECHNIQUES
226
Lesson Six
Example
The quality department of a wire manufacturing company periodically
selects a sample of wire specimens in order to test for breaking strength.
Past experience has shown that the breaking strengths of a certain type
of wire are normally distributed with standard deviation of 200 kg. A
random sample of 64 specimens gave a mean of 6200 kgs. Find out the
population mean of 95% level of confidence
Solution
Population mean = 1.96 S x
Note that sample size is alredy n > 30 whereas s and x are given thus
step i), ii) and iv) are provided.
Here: X = 6200 kgs
Sx =
s
=
n
200
=
64
25
Population mean
= 6200 1.96(25)
= 6200 49
= 6151 to 6249
At 95% level of confidence, population mean will be in between 6151 and
6249
FINITE POPULATION CORRECTION FACTOR
If a given population is relatively of small size and sample size is more
than 5% of the population then the standard error should be adjusted by
multiplying it by the finite population correction factor
FPCF is given by
N n
n 1
s
n
15000
x
100
N n
n 1
500 100
500 1
226
Sx
Population mean
= X 2.58 S x
=shs 75000 2.58(1342.50)
=shs 75000 3464
= Shs 71536 to 78464
b)
Estimation of difference between two means
We know that the standard error of a sample is given by the value of the
standard deviation ()divided by the square root of the number of items
in the sample ( n ).
But, when given two samples, the standard errors is given by
S X
AX B =
S A2 S B2
n A nB
Also note that we do estimate the interval not from the mean but from
the difference between the two sample means i.e. X A X B .
The appropriate number of confidence level does not change
Thus the confidence interval is given by;
X A X B Confidence level S X X
= X
X B Z S X A X B
Example
Given two samples A and B of 100 and 400 items respectively, they have
the means X1 = 7 ad X 2 = 10 and standard deviations of 2 and 3
respectively. Construct confidence interval at 70% confidence level?
Solution
A
B
X1 = 7
X 2 = 10
n1 = 100
n2 = 400
S1 = 2
S2 = 3
The standard error of the samples A and B is given by
Sample
S X
AX B
25
=
400
=
=
4
9
100 400
5
20
0.25
QUANTITATIVE TECHNIQUES
228
Lesson Six
At 70% confidence level, then appropriate number is equal to 1.04 (as
read from the normal tables)
X 1 X 2 = 7 10 = - 3 = 3
We take the absolute value of the difference between the means e.g. the
value of /X/ = absolute value of X i.e. a positive value of X.
Confidence interval is therefore given by
= 3 1.04 (0.25 ) From the normal tables a z value of 1.04 gives
a value of 0.7.
= 3 0.26
= 3.26 and 2.974
Thus 2.974 X 3.26
Example 2
A comparison of the wearing out quality of two types of tyres was
obtained by road testing. Samples of 100 tyres were collected. The miles
traveled until wear out was recorded and the results given were as
follows
Tyres
T1
T2
Mean
X1 = 26400 miles X 2 = 25000 miles
Variance
S21= 1440000 miles
S22= 1960000 miles
Find a confidence interval at the confidence level of 70%
Solution
=
26400
X1
X 2 = 25000
Difference between the two means
X 1 X 2 = (26400 25000)
= 1,400
Again we take the absolute value of the difference between the two
means
We calculate the standard error as follows
S X
AX B
S12 S22
n1 n2
100
100
=
184.4
Confidence level at 70% is read from the normal tables as 1.04 (Z =
1.04).
Thus the confidence interval is calculated as follows
= 1400 (1.04) (184.4)
228
Pq
= Standard error for sampling of
n
population proportions
Where n is the sample size and q = 1 p.
The procedure for estimating a proportion is similar to that for
estimating a mean, we only have a different formular for calculating
standard error is different.
Example 1
In a sample of 800 candidates, 560 were male. Estimate the population
proportion at 95% confidence level.
Solution
Here
Sample proportion (P) =
560
= 0.70
800
q = 1 p = 1 0.70 = 0.30
n = 800
pq
=
n
0.70 0.30
800
Sp = 0.016
population proportion
= P 1.96 Sp where 1.96 = Z.
= 0.70 1.96 (0.016)
= 0.70 0.03
= 0.67 to 0.73
= between 67% to 73%
Example 2
QUANTITATIVE TECHNIQUES
230
Lesson Six
A sample of 600 accounts was taken to test the accuracy of posting and
balancing of accounts where in 45 mistakes were found. Find out the
population proportion. Use 99% level of confidence
Solution
Here
n = 600; p =
45
= 0.075
600
q = 1 0.075 = 0.925
Sp =
pq
=
n
0.075 0.925
600
= 0.011
Population proportion
= P 2.58 (Sp)
= 0.075 2.58 (0.011)
= 0.075 0.028
= 0.047 to 0.10
= between 4.7% to 10%
d) Estimation of difference between population proportions
Let the two proportions be given by P1 and P2, respectively
Then the difference (absolute) between the two proportions is given by
(P1 P2)
The standard error is given by
S P1 P2 =
p1n1 p2 n2
pq pq
where p =
and q = 1 - p
n1 n2
n1 n2
Then given the confidence level, the confidence interval between the two
population proportions is given by
(P1 P2) Confidence level S P1 P2
= (P1 P2) Z
Where P =
pq pq
n1 n2
p1n1 p2 n2
always remember to convert P1 & P2 to P.
n1 n2
2.
SMALL SAMPLES
(a)
Estimation of population mean
If the sample size is small (n<30) the arithmetic mean of small samples
are not normally distributed. In such circumstances, students t
distribution must be used to estimate the population mean.
230
Sx =
s
n
x x
n 1
n = sample size
v = n 1 degrees of freedom.
The value of t is obtained from students t distribution tables for the
required confidence level
Example
A random sample of 12 items is taken and is found to have a mean
weight of 50 grams and a standard deviation of 9 grams
What is the mean weight of population
a) with 95% confidence
b) with 99% confidence
Solution
X 50; S = 9; v = n 1 = 12 1 = 11;
Sx
s
9
n
12
= x ts x
At 95% confidence level
= 50 2.262
12
= 50 5.72 grams
Therefore we can state with 95% confidence that the population mean is
between 44.28 and 55.72 grams
At 99% confidence level
12
= 50 3.25
= 50 8.07 grams
Therefore we can state with 99% confidence that the population mean is
between 41.93 and 58.07 grams
Note: To use the t distribution tables it is important to find the degrees of
freedom (v = n 1). In the example above v = 12 1 = 11
QUANTITATIVE TECHNIQUES
232
Lesson Six
From the tables we find that at 95% confidence level against 11 and
under 0.05, the value of t = 2.201
6.4
Hypothesis Testing
Definition
- A hypothesis is a claim or an opinion about an item or issue. Therefore
it has to be tested statistically in order to establish whether it is correct
or not correct
- Whenever testing an hypothesis, one must fully understand the 2 basic
hypothesis to be tested namely
i.
The null hypothesis (H0)
ii.
The alternative hypothesis(H 1)
The null hypothesis
This is the hypothesis being tested, the belief of a certain characteristic
e.g. Kenya Bureau of Standards (KBS) may walk to a sugar making
company with an intention of confirming that the 2kgs bags of sugar
produced are actually 2kgs and not less, they conduct hypothesis testing
with the null hypothesis being: H0 = each bag weighs 2kgs. The testing
will set out to confirm this or to refute it.
The alternative hypothesis
While formulating a null hypothesis we also consider the fact that the
belief might be found to be untrue hence we will reject it. We therefore
formulate an alternative hypothesis which is a contradiction to the null
hypothesis, thus when we reject the null hypothesis we accept the
alternative hypothesis.
In our example the alternative hypothesis would be
H1 = each bag does not weigh 2kg
Acceptance and rejection regions
All possible values which a test statistic may either assume consistency
with the null hypothesis (acceptance region) or lead to the rejection of
the null hypothesis (rejection region or critical region)
The values which separate the rejection region from the acceptance
region are called critical values
Type I and type II errors
While testing hypothesis (H0) and deciding to either accept or reject a
null hypothesis, there are four possible occurrence.
a) Acceptance of a true hypothesis (correct decision) accepting the null
hypothesis and it happens to be the correct decision. Note that
statistics does not give absolute information, thus its conclusion could
be wrong only that the probability of it being right are high.
b) Rejection of a false hypothesis (correct decision).
c) Rejection of a true hypothesis (incorrect decision) this is called
type I error, with probability = .
d) Acceptance of a false hypothesis (incorrect decision) this is called
type II error, with probability = .
STRATHMORE UNIVERSITY STUDY PACK
232
0.5000
0.4900
1% provision for errors
Critical value
or
5% = 0.05000
0.4500
Critical value (-1.65)
Critical region
NB: If the standardized value of the mean is less than 1.65 we reject the
null hypothesis (H0) and accept the alternative Hypothesis (H 1) but if the
standardized value of the mean is more than 1.65 we accept the null
hypothesis and reject the alternative hypothesis
The above sketch graph and level of significance are applicable when the
sample mean is < (i.e. less than the population mean)
QUANTITATIVE TECHNIQUES
234
Lesson Six
The following is used when sample mean > population mean
Acceptance region
Critical region
(rejection region)
5% = 0.05
NB: If the sample mean standardized value < 1.65, we accept the null
hypothesis but reject the alternative. If the sample mean value > 1.65 we
reject the null hypothesis and accept the alternative hypothesis
The above sketch is normally used when the sample mean given is
greater than the population mean
0.05% = 0.05
0.495
0.495
-2.58
0.5% = 0.05
+2.58
NB: if the standardized value of the sample mean is between 2.58 and
+2.58 accept the null hypothesis but otherwise reject it and therefore
accept the alternative hypothesis
234
H0
Critical region
Critical region
15cm
17 cm
QUANTITATIVE TECHNIQUES
236
Lesson Six
left
On the other hand the test may compuliate on the right hand tail of the
normal distribution when this happens the major complaint is likely to do
with oversize items bought. Therefore the test is known as one tailed as
the focus is on one end of the normal distribution.
5%
level
significance
1%
level
significance
of
of
Number of standard
errors
Two tailed
One tailed
test
test
1.96
1.65
2.58
2.33
236
QUANTITATIVE TECHNIQUES
238
Lesson Six
1. Normal test
Test a sample mean ( X ) against a population mean () (where
samples size n > 30 and population variance 2 is known) and sample
proportion, P(where sample size np >5 and nq >5 since in this case
the normal distribution can be used to approximate the binomial
distribution
2. t test
Tests a sample mean ( X ) against a population mean and especially
where the population variance is unknown and n < 30.
3. Variance ratio test or f test
It is used to compare population variances and it is used with samples
of any size drawn from normal populations.
4. Chi squared test
It can be sued to test the association between attributes or the
goodness of fit of an observed frequency distribution to a standard
distribution
Example 1
A certain NGO carried out a survey in a certain community in order to
establish the average at which the girls are married. The results of the
survey indicated that the marriage age for the girls is 19 years
In order to establish the validity of the mean marital age, a sample of 50
women was interviewed and the average age indicated that they got
married at the age of 16 years. However the different ages at which they
were married differed with the standard deviation of 2.1years
The sample data indicates that the marital age is less 19 years. Is this
conclusion true or not ?
Required
Conduct a statistical test to either support the above conclusion drawn
from the sample statistics i.e. the marriage age is less than 19 use a level
of significance of 5%
Solution
1. Null hypothesis
H0: (mean marital age) = 19 years
Alternative hypothesis
H1: (mean marital age) < 19 years
2. The level of significance is 5%
3. The test statistics is the sample mean age, X = 16 years
4. The critical value of the one tailed test (one tailed because the
alternative hypothesis is an inequality) at 5% level of significance
is 1.65
238
Acceptance region
Rejection region
- 1.65
X = Sample mean
= Population mean
S = sample standard deviation
n = sample size
z = standard value (as per computation)
The standard value Z must fall within the acceptance region for us
to accept the null hypothesis. Thus it must be > - 1.65 otherwise
we accept the alternative hypothesis.
Z
16 19
2.1
50
= - 10.1
6. Since 10.1 < -1.65, we reject the null hypothesis but accept the
alternative hypothesis at 5% level of significance i.e. the marriage
age in this community is significantly lower than 19 years
Example 2
A foreign company which manufactures electric bulbs has assured its
customers that the lifespan of the bulbs is 28 month with a standard
deviation of 4months
Recently the company embarked on a quality improvement research for
their product. After the research using new technology. A sample of 70
bulbs was tested and they gave a mean lifespan of 30.2 months
QUANTITATIVE TECHNIQUES
240
Lesson Six
Does this justify the research undertaken? Use 1% level of significance to
conduct a statistical test in order to establish the truth about the above
question.
Testing procedure
1. Null hypothesis H0: = 28
Alternative hypothesis H1: > 28
2. The level of significance is 1% (one tailed test)
3. The test statistics is the sample mean age, x = 30.2
4. The critical value of the one tailed test at 5% level of significance
is + 2.33
0.4900
1% = 0.01
2.33
5. The standardized value of the sample mean is
Z
X
Sx
30.2 28
4
70
= 4.6
6. Since 4.6 > 2.33, we reject the null hypothesis but accept the
alternative hypothesis at 1% level of significance i.e. the new
sample mean life span is statistically significant higher than the
population mean
Therefore the research undertaken was worth while or justified
Example 3
A construction firm has placed an order that they require a consignment
of wires which have a mean length of 10.5 meters with a standard
deviation of 1.7 m
The company which produces the wires delivered 90 wires, which had a
mean length of 9.2 m., The construction company rejected the
consignment on the grounds that they were different from the order
placed.
Required
Conduct a statistical test to indicate whether you support or not support
the action taken by the construction company at 5% level of significance.
240
QUANTITATIVE TECHNIQUES
242
Lesson Six
- 1.96
+1.96
X -
SX
9.2 10.5
1.7
90
= - 7.25
Since 7.25 < 1.96, reject the null hypothesis but accept the
alternative hypothesis at 5% level of significance i.e. the sample mean
is statistically different from the consignment ordered by the
construction company. Therefore support the action taken by the
construction company
TESTING THE DIFFERENCE BETWEEN TWO SAMPLE MEAN
(LARGE SAMPLES)
A large sample is defined as one which contains 30 or more items (n30)
Where n is the sample size
In a business those involved are constantly observant about the
standards or specifications of the item which they sell e.g. a trader may
receive a batch of items at one time and another batch at a later time at
the end he may have concluded that the two samples are different in
certain specifications e.g. mean weight mean lifespan, mean length e.t.c.
further it may become necessary to establish whether the observed
differences are statistically significant or not. If the difference are
statistically significant then it means that such differences must be
explained i.e. there are known causes but if they are not statistically
significant then it means that the difference observed have no known
causes and are mainly due to chance
If the differences are established to be statistically significant then it
implies that the complaints, which necessitated that kind of test, are
justified
Let X1 and X2 be any two samples whose sizes are n1 and n2 and mean X 1
and X 2. Standard deviation S1 and S2 respectively. In order to test the
242
X1 X 2
S X1 X 2
where S X 1 X 2
S12 S22
n1 n2
Example 1
An agronomist was interested in the particular fertilize yield output. He
planted maize on 50 equal pieces of land and the mean harvest obtained
later was 60 bags per plot with a standard deviation of 1.5 bags. The
crops grew under natural circumstances and conditions without the soil
being treated with any fertilizer. The same agronomist carried out an
alternative experiment where he picked 60 plots in the same area and
planted the same plant of maize but a fertilizer was applied on these
plots. After the harvest it was established that the mean harvest was 63
bags per plot with a standard deviation of 1.3 bags
Required
Conduct a statistical test in order to establish whether there was a
significant difference between the mean harvest under the two types of
field conditions. Use 5% level of significance.
Solution
H0 : 1 = 2
H1 : 1 2
Critical values of the two tailed test at 5% level of significance are 1.96
The standardized value of the difference between sample means is given
by Z where
=
=
X1 X B
S X1 X 2
where S X 1 X 2 =
60 63
0.045 0.028
11.11
QUANTITATIVE TECHNIQUES
1.52 1.32
50
60
244
Lesson Six
- 1.96
+1.96
Since 11.11 < -1.96, we reject the null hypothesis but accept the
alternative hypothesis at 5% level of significance i.e. the difference
between the sample mean harvest is statistically significant. This implies
that the fertilizer had a positive effect on the harvest of maize
Note: You dont have to illustrate your solution with a diagram.
244
X1 X 2
S X1 X 2
63 62
42
200
1
250
2
3.45
Acceptance region
Rejection region
- 2.58
+2.58
+3.45
Since 3.45 > 2.33 reject the null hypothesis but accept the alternative
hypothesis at 1% level of significance i.e. there is a significant
QUANTITATIVE TECHNIQUES
246
Lesson Six
difference between the reading speed of Males and females, thus
females are actually faster readers.
TEST OF HYPOTHESIS ON PROPORTIONS
This follows a similar method to the one for means exept that the
standard error used in this case:
Sp =
Pq
n
P
Sp
in the sample.
the hypothetical
proportion.
Example
A member of parliament (MP) claims that in his constituency only 50% of
the total youth population lacks university education. A local media
company wanted to acertain that claim thus they conducted a survey
taking a sample of 400 youths, of these 54% lacked university education.
Required:
At 5% level of significance confirm if the MPs claim is wrong.
Solution.
Note: This is a two tailed tests since we wish to test the hypothesis that
the hypothesis is different () and not against a specific
alternative hypothesis e.g. < less than or > more than.
H0 : = 50% of all youth in the constituency.
H1 : 50% of all youth in the constituency.
pq
0.5 x0.5
=
= 0.025
n
400
0.54 0.50
Z=
= 1.6
0.025
Sp =
246
P1 P2 1 2
S P1 P2
But since the null hypothesis is 1 = 2, the second part of the numerator
disappear i.e.
1 - 2 = 0 which will always be the case at this level.
Then Z =
P1 P2
S P1 P2
Where;
Sample 1
n1 =
10,000
Sample size
Sample proportion of
success
Population proportion of
success.
Now
S p1 p2 =
Where P =
P1 =
1.2
10
Sample 2
n2 =
12,000
P2 = 0.83
pq pq
n1 n2
p1n1 p2 n2
n1 n2
And q = 1 p
in our case
10, 000(0.72) 12, 000(0.83)
P=
10, 000 12, 000
QUANTITATIVE TECHNIQUES
248
Lesson Six
=
84, 000
22, 000
= 0.78
q = 0.22
0.78 0.22 0.78 0.22
S P1 P2
10, 000
12, 000
= 0.00894
0.72 0.83
Z=
0.00894
12.3
Since 12.3 > 1.96, we reject the null hypothesis but accept the
alternative. the differences between the proportions are statistically
significant. This implies that the perfume is much more popular in
Rook town than in Back rank city.
HYPOTHESIS TESTING ABOUT THE DIFFERENCE BETWEEN
TWO PROPORTIONS
Is used to test the difference between the proportions of a given attribute
found in two random samples.
The null hypothesis is that there is no difference between the population
proportions. It means two samples are from the same population.
Hence
H0 : 1 = 2
The best estimate of the standard error of the difference of P1 and P2 is
given by pooling the samples and finding the pooled sample proportions
(P) thus
p1n1 p2 n2
n1 n2
P=
S p1 p2
And Z =
pq pq
n1 n2
P1 P2
S p1 p2
Example
In a random sample of 100 persons taken from village A, 60 are found to
be consuming tea. In another sample of 200 persons taken from a village
B, 100 persons are found to be consuming tea. Do the data reveal
significant difference between the two villages so far as the habit of
taking tea is concerned?
Solution
248
p1n1 p2 n2
n1 n2
0.6 100 0.5 200
=
100 200
= 0.53
= 1 0.53
= 0.47
pq pq
n1 n2
S P1 P2 =
=
200
= 0.0608
0.6 0.5
Z=
0.0608
= 1.64
Since the computed value of Z is less than the critical value of Z = 1.96
at 5% level of significance therefore we accept the hypothesis and
conclude that there is no significant difference in the habit of taking tea
in the two villages A and B
t distribution (students t distribution) tests of hypothesis (test
for small samples n < 30)
For small samples n < 30, the method used in hypothesis testing is
exactly similar to the one for large samples exept that t values are used
from t distribution at a given degree of freedom v, instead of z score, the
standard error Se statistic used is also different.
Note that v = n 1 for a single sample and n 1 + n2 2 where two sample
are involved.
a) Test of hypothesis about the population mean
When the population standard deviation (S) is known then the t statistic
is defined as
t
X
SX
where S X
S
n
250
Lesson Six
n = sample size
and S is the standard deviation of the sample calculated by the formula
S=
X X
n 1
for n < 30
0.5
10
= SX
t
=
=
15.8 16
0.5
10
0.2
0.16
= -1.25
The table value for t for 9 d.f. at 5% level of significance is 2.26. the
computed value of t is smaller than the table value of t. therefore,
difference is insignificant and the null hypothesis is accepted.
b) Test of hypothesis about the difference between two means
The t test can be used under two assumptions when testing hypothesis
concerning the difference between the two means; that the two are
normally distributed (or near normally distributed) populations and that
the standard deviation of the two is the same or at any rate not
significantly different.
Appropriate test statistic to be used is
t
X1 X 2
S X X 2
1
at n1 + n2 2 d.f.
250
Sp =
n1 1 S12 n2 1 S22
n1 n2 2
Sp
Sp
and S X 2 =
n1
n2
Now S X 1 =
S X1X 2 =
S X2 S X2 2
1
n n2
Alternatively S X 1 X 2 = Sp 1
n1n2
Example
Two different types of drugs A and B were tried on certain patients for
increasing weights, 5 persons were given drug A and 7 persons were
given drug B. the increase in weight (in pounds) is given below
Drug A
Drug B
8
10
12
8
16
12
9
15
3
6
11
t=
X1 X 2
S X1X 2
X1 =
(X1 X 1 ) =
0
X
n1
45
=9
5
X2
10
8
12
15
6
8
11
X2=
70
(X1 X 1 )2=
62
X2 =
X
n2
70
10
7
QUANTITATIVE TECHNIQUES
(X2 X 2 )
0
-2
+2
+5
-4
-2
+1
(X2 X 2 ) =
0
(X2 X )2
0
4
4
25
16
4
1
(X2 X 2 )2=
54
252
Lesson Six
S1 =
Sp =
62
= 3.94
4
S2 =
54
3
6
4 15.5 6 9
10
= 3.406
S X1X 2
75
11.6 11.6
or 3.406
5 7
5
7
= 1.99
t
X1 X 2
S X1X 2
9 10
1.99
= 0.50
Now t0.05 (at v = 10) = 2.23 > 0.5
Thus we accept the null hypothesis.
Hence there is no significant difference in the efficacy of the two drugs in
the matter of increasing weight
Example
Two salesmen A and B are working in a certain district. From a survey
conducted by the head office, the following results were obtained. State
whether there is any significant difference in the average sales between
the two salesmen at 5% level of significance.
252
No. of sales
Average sales in shs
Standard deviation in shs
Solution
H0 : 1 = 2
H1 : 1 2
Where
Sp =
A
20
170
20
B
18
205
25
n1 1 S12 n2 1 S22
n1 n2 2
S X 1 X 2 = Sp n1 n2
n1n2
Where: X 1 =170, X 2 = 205, n1 = 20, n2 = 18, S1 = 20, S2 = 25, V = 36
Sp =
19 202 17 252
20 18 2
= 22.5
38
S X 1 X 2 22.5
360
= 7.31
t=
170 205
7.31
= 4.79
t0.05(36) = 1.9 (Since d.f > 30 we use the normal tables)
The table value of t at 5% level of significance for 36 d.f. when d.f. >30,
that t distribution is the same as normal distribution is 1.9. since the
value computed value of t is more than the table value, we reject the null
hypothesis. Thus, we conclude that there is significant difference in the
average sales between the two salesmen
Testing the hypothesis equality of two variances
The test for equality of two population variances is based on the
variances in two independently selected random samples drawn from two
normal populations
Under the null hypothesis 12 22
QUANTITATIVE TECHNIQUES
254
Lesson Six
F=
s12
12
s22
22
F=
S12
which is the test statistic.
S 22
S12
S 22
X1 X 1
n1 1
X 2 X 2
n2 1
120
9
314
11
13.33
28.55
28.55
13.33
254
It is given by; =
O E
E
E = Expected frequency
The computed value of 2 is compared with that of tabulated 2 for a
given significance level and degrees of freedom.
i.
Test for goodness of fit
This tests are used when we want to determine whether an actual sample
distribution matches a known theoretical distribution
The null hypothesis usually states that the sample is drawn from the
theoretical population distribution and the alternate hypothesis usually
states that it is not.
Example
Mr. Nguku carried out a survey of 320 families in Ateka district, each
family had 5 children and they revealed the following distribution
No. of boys
5
4
3
2
1
0
No. of girls
0
1
2
3
4
5
No. of families
14
56
110
88
40
12
Is the result consistent with the hypothesis that male and female births
are equally probable at 5% level of significance?
Solution
If the distribution of gender is equal probable then the distribution
conforms to a binomial distribution with probability P(X) = .
Therefore
H0 = the observed number of boys conforms to a binomial
distribution with P =
H1 = The observations do not conform to a binomial distribution.
On the assumption that male and female births are equally probable the
probability of a male birth is P = . The expected number of families
can be calculated by the use of binomial distribution. The probability of
male births in a family of 5 is given by
P(x) = 5cX Px q5-x (for x = 0, 1, 2, 3, 4, 5,)
QUANTITATIVE TECHNIQUES
256
Lesson Six
= 5cX ( )5 (Since P = q = )
To get the expected frequencies, multiply P(x) by the total number N =
320. The calculations are shown below in the tables
x
P(x)
Expected frequency =
NP(x)
= 1 32
320 1 32 = 10
= 5 32
320 5 32 = 50
= 10 32
320 10 32 = 100
= 10 32
320 10 32 = 100
= 5 32
320 5 32 = 50
= 1 32
320 1 32 = 10
c0 ( ) 5
c1 ( ) 5
c2 ( ) 5
c3 ( ) 5
c4 ( ) 5
c5 ( ) 5
O E
= 7.16
The table of 2 for V = 6 1 = 5 at 5% level of significance is 11.07. The
computed value of 2 = 7.16 is less than the table value. Therefore the
hypothesis is accepted. Thus it can be concluded that male and female
births are equally probable.
ii)
Test of independence of attributes
This test disclosed whether there is any association or relationship
between two or more attributes or not. The following steps are required
to perform the test of hypothesis.
1. The null and alternative hypothesis are set as follows
H0: No association exists between the attributes
H1: an association exists between the attributes
256
RC
n
O E
R1C1
120 100
=
n
200
60
E12 =
R1C2
120 100
=
n
200
60
E21 =
R2C1
80 100
=
n
200
40
QUANTITATIVE TECHNIQUES
258
Lesson Six
E22 =
R2C2
80 100
=
n
200
40
(O E) 2
25
25
25
25
E
60
40
40
40
O E
with
120
80
200
(O E) 2 /E
0.417
0.625
0.417
0.625
(O E) 2 /E = 2.084
their
corresponding
= 2.084
2
V= (r 1) (c-1) = (2 1) (2 1) = 1; tabulated ( 0.05) = 3.841
The calculated value of 2 is less than the table value. The hypothesis is
accepted. Hence the drug is not effective in curing the disease.
Test of homogeneity
It is concerned with the proposition that several populations are
homogenous with respect to some characteristic of interest e.g. one may
be interested in knowing if raw material available from several retailers
are homogenous. A random sample is drawn from each of the population
and the number in each of sample falling into each category is
determined. The sample data is displayed in a contingency table
The analytical procedure is the same as that discussed for the test of
independence
Example
A random sample of 400 persons was selected from each of three age
groups and each person was asked to specify which types of TV
programs be preferred. The results are shown in the following table
Type of program
Age group
Under 30
30 44
A
120
10
B
30
75
C
50
15
Total
200
100
258
O E
QUANTITATIVE TECHNIQUES
260
Lesson Six
SUMMARY OF FORMULAE IN HYPOTHESIS
Testing
(a)
S
X
Where S X
at level of significance.
SX
n
For n < 30
t=
S
X
where S X
SX
n
at n 1 d.f
level of significance
(b)
X1 X B
S X1X 2
Where S
X1X 2
S12 S22
n1 n2
At = level of significance
For n < 30
t=
X1 X 2
at n1 + n2 2 d.f
S X1X 2
where S X 1 X 2 S p
and S p
(c)
n1 1 S12 n2 1 S22
n1 n2 2
P
Sp
Where: Sp =
(d)
n1 n2
n1n2
Pq
n
260
P1 P2
S P1 P2
Where:
pq pq
n1 n2
p1n1 p2 n2
p=
n1 n2
S P1 P2
(e)
q=1P
Chi-square test
X2 =
(f)
O E
S12
F= 2
S2
here the bigger value between the standard deviations make the
numerator.
QUANTITATIVE TECHNIQUES
262
Lesson Six
REINFORCING QUESTIONS
QUESTION ONE
A firm purchases a very large quantity of metal off-cuts and wishes to
know the average weight of an off-cut. A random sample of 625 off-cuts is
weighed and it is found that the mean sample weight is 150 grams with a
sample standard deviation of 30 grams. What is the estimate of the
population mean and what is the standard error of the mean? What
would be the standard error if the sample size was 1225?
QUESTION TWO
A sample of 80 is drawn at random from a population of 800. The sample
standard deviation was found to be 6 grams.
- What is the finite population correction factor?
- What is the approximation of the correction factor?
- What is the standard error of the mean?
QUESTION THREE
State the Central Limit Theorem
QUESTION FOUR
a)
b)
c)
d)
e)
f)
262
n2=9
x2=970
s2=76
QUESTION EIGHT
Torch bulbs are packed in boxes of 5 and 100 boxes are selected
randomly to test for the number of defectives
Number of
Defectives
0
1
2
3
4
5
Number
of boxes
40
37
17
5
1
0
100
Total
defectives
0
37
34
15
4
0
90
QUANTITATIVE TECHNIQUES
264
Lesson Six
QUESTION TEN
Express Packets guarantee 95%of their deliveries are on time. In a
recent week 80 deliveries were made and 6 were late and the
management says that, at the 95%level there has been a significant
improvement in deliveries.
Can the MDs statement be supported?
If not, at what level of confidence can it be supported?
A batch of weighing machines has been purchased and one machine
selected at random for testing. Ten weighing tests have been conducted
and the errors found noted as follows:
Test
1
2
3
4
5
6
7
8
9
10
Errors (gms)
4.6
8.2
2.1
6.3
5.0
3.6
1.4
4.1
7.0
4.5
264
166
133
118
165
137
140
200
132
167
140
150
145
149
240
136
126
170
130
120
130
QUANTITATIVE TECHNIQUES
266
Lesson Six
Required
Is there statistical evidence of a difference between the two sets of
wages? Interpret your answer and state any assumptions you make.
Check your answers with those given in lesson 9 of the study pack
266
Answer
all
QUESTION ONE
a) Explain what is meant by the following terms as used in statistical
inference:
i) Statistical hypothesis;
(2
marks)
ii) Test of a hypothesis;
(2
marks)
iii) Type I error;
(2
marks)
iv) Type II error;
(2
marks)
v) Level of significance
(2
marks)
b) Cross Lines Group (CLG) has two factories in different parts of the
country. Their
Resources, including the labour force skills are regarded as identical
and both factories
Were built at the same time.
A random sample of output data during a given period has been taken
from each factory and converted to standard hours of output per
employee. The data are given below:
Factory
1
Factory
2
42
50
43
39
41
49
52
41
46
48
39
45
36
42
52
37
43
41
40
39
You are given that for factory 1 mean = 45.1 and variance = 20.10
and that for factory 2 mean = 41.4 and variance = 21.16.
Required:
i) Test the hypothesis that the mean standard hours for employees in
the two factories
is the same.
(7
marks)
QUANTITATIVE TECHNIQUES
268
Lesson Six
ii) Comment briefly on the conditions of the test and interpret the
outcome. (3 marks)
(Total:
20
marks)
QUESTION TWO
a) State clearly what is meant by two events being statistically
independent.
(2 marks)
b) In a certain factory which employs 500 men, 2% of all employees have
a minor accident in a given year.
Of these, 30% had safety
instructions whereas 80% of all employees had no safety instructions.
Required
Find the probability of an employee being accident-free given that he
had:
i) No safety instructions
(5
marks)
ii) Safety instructions
(5
marks)
c) An electric utility company has found that the weekly number of
occurrences of lightning striking the transformers is a Poisson
distribution with mean 0.4.
Required:
i) The probability that no transformer will be struck in a week.
(3 marks)
ii) The probability that at most two transformers will be struck in a week
(5 marks)
(Total:
20
marks)
QUESTION THREE
Explain the difference between the paired t-test and the two-sample ttest
(4 marks)
Trendy Tyres Ltd. Has introduced a new brand of tyres which in their
advertisements claim to be superior to their only competitor brand. The
Roadmaster Tyres. The brand manager of Roadmaster Tyres disputes
this claim which he says is an advertisement gimmick. The brand
managers of the two companies agree to run a road test for the brands.
Ten (10) saloon cars of uniform weight and identical specifications are to
be used for the test. Each car is fitted with both brands of tyres: One
brand at the front the other brand at the rear. The cars cover a distance
of 5,000 kilometers and the trend wear is recorded as follows:
Trend tyres
centimeters
Roadmaster tyres
Centimeters
268
1.08
1.06
1.24
1.20
1.17
1.21
1.18
1.10
1.22
1.60
1.12
1.09
1.16
1.24
1.23
1.25
1.20
1.15
1.19
1.13
Required:
i) Determine whether Trendy Tyres Ltd.s claim is true using = 0.01
(15 marks)
ii) What are the assumptions you have made in (i) above?
(1 mark)
(Total:
20
marks)
QUESTION FOUR
Kenear Commercial bank Ltd. commissioned a research whose results
indicated that automatic teller machines (ATM) reduces the cost of
routine banking transactions.
Following this information, the bank installed an ATM facility at the
premises of Joy Processing Company Ltd., which for the last several
months has exclusively been, used by JoyS 605 employees. Survey on
the usage of the ATM facility by 100 of the employees in a month
indicated the following:
QUANTITATIVE TECHNIQUES
270
Lesson Six
Number
of Frequency
times
ATM
used
0
20
1
32
2
20
3
13
4
10
5
5
Required:
a) An estimate of the proportion of Joys employees who do not use the
ATM facility in a month
(2 marks)
b)
i)
Determine the 95% confidence interval for the estimate in (a) above
(5 marks)
ii)
Can the bank be certain that at least 40% of Joys employees will
use the ATM facility?
(1 mark)
c) The number of ATM transactions on average an employee of Joy
makes per month
(3
marks)
d) Determine the 95% confidence interval of the mean number of
transactions made by an employee in a month.
(6 marks)
e) Is it possible that the population mean number of transactions is four?
Explain. (3 marks)
(Total:
20
marks)
QUESTION FIVE
State any five problems encountered in the construction of the consumer
price index. (5 marks)
An investment analyst gathered the following data on the 91-day
Treasury bill rates for the years 2003 and 2004.
Month
January
February
March
April
May
June
July
August
270
3.8
4.2
4.5
5.1
2.3
2.8
3.1
3.7
S2
n1 1 S12 n2 1 S22
n1 n2 2
(Total:
20
marks)
QUESTION SIX
a) Describe the characteristics of the following distributions:
i) Binomial distribution
marks)
ii) Poisson distribution.
marks)
(3
(3
b) High Grade Meat Ltd. Produces beef sausages and sells them to
various supermarket. In order to satisfy the industrys requirement,
the firm may only produces 0.2 per cent of sausages below a weight
of 80 grammes. The sausage producing machine operates with a
standard deviation of 0.5 grammes. The weights of the sausages are
normally distributed.
The firms weekly output is 300,000 sausages and the sausage
ingredients cost Sh.5.00 per 100 grammes. Sausages with weights in
excess of 82 grammes require additional ingredients costing Sh.2.50
per sausage.
Required:
i) The mean weight at which the machine should be set.
(4 marks)
ii) The firms weekly cost of production
(10 marks)
(Total:
marks)
QUESTION SEVEN
QUANTITATIVE TECHNIQUES
20
272
Lesson Six
a) The past records of Salama Industries indicate that about 4 out of 10
of the companys orders are for export. Further, their records
indicate that 48 per cent of all orders are for export in one particular
financial quarter. They expect to satisfy about 80 orders in the next
financial quarter.
Required:
Determine the probability that they will break their previous export
record.
(7 marks)
Explain why you have used the approach you have chosen to solve part
(i) above.
(2 marks)
b) Gear Tyre Company has just developed a new steel-belted radial tyre
that will be sold through a national chain of discount stores. Because
the tyre is a new product, the companys management believes that
the mileage guarantee offered with the tyre will be an important
factor in the consumer acceptance of the product. Before finalizing
the tyre mileage guarantee policy, the actual road test with the tyres
shows that the mean tyre mileage is = 36,500 kilometers and the
standard deviation is = 5,000 kilometers. In addition, the data
collected indicate that a normal distribution is a reasonable
assumption.
Required:
Gear Tyre Company will distribute the tyres if 20 per cent of the tyres
manufactured can be expected to last more than 40,000 kilometres.
Should the company distributed the tyres?
(4
marks)
ii)
The company will provide a discount on a new set of tyres if the
mileage on the original tyres does not exceed the mileage stated on
the guarantee.
i)
(2
(2
272
Coefficient of correlation
Rank correlation coefficient
marks)
(2 marks
(2
QUANTITATIVE TECHNIQUES
274
Decision Theory
LESSON SEVEN
7. Decision Theory
-
Decision theory
Decision trees and sequential decisions
Game theory
7.1
Decision Theory
Types of decisions
There are many types of decision making
1. Decision making under uncertainty
These refer to situations where more than one outcome can result from
any single decision
2. Decision making under certainty
Whenever there exists only one outcome for a decision we are dealing
with this category e.g. linear programming, transportation assignment
and sequencing e.t.c.
3. Decision making using prior data
It occurs whenever it is possible to use past experience (prior data) to
develop probabilities for the occurrence of each data
4. Decision making without prior data
No past experience exists that can be used to derive outcome
probabilities in this case the decision maker uses his/her subjective
estimates of probabilities for various outcomes
Decision making under uncertainty
Several methods are used to make decision in circumstances where only
the pay offs are known and the likelihood of each state of nature are
known
a) Maximin Method
This criteria is based on the conservative approach to assume that the
worst possible is going to happen. The decision maker considers each
strategy and locates the minimum pay off for each and then selects that
alternative which maximizes the minimum payoff
Illustration
Rank the products A B and C applying the Maximin rule using the
following payoff table showing potential profits and loses which are
274
Lesson Seven
275
expected to arise from launching these three product in three market
conditions
(see table 1 below)
QUANTITATIVE TECHNIQUES
276
Decision Theory
Product A
Product B
Product C
Boom
condition
+8
-2
+16
Mini profits
row minima
-10
-2
-26
-10
+12
-26
Table 1
Ranking the MAXIMIN rule = BAC
b) MAXIMAX method
This method is based on extreme optimism the decision maker selects
that particular strategy which corresponds to the maximum of the
maximum pay off for each strategy
Illustration
Using the above example
Max. profits rw maxima
Product A
+8
Product B
+12
Product C
+16
Ranking using the MAXIMAX method = CBA
c) MINIMAX regret method
This method assumes that the decision maker will experience regret
after he has made the decision and the events have occurred. The
decision maker selects the alternative which minimizes the maximum
possible regret.
Illustration
Product A
Product B
Product C
A regret table (table 2) is constructed based on the pay off table. The
regret is the opportunity loss from taking one decision given that a
certain contingency occurs in our example whether there is boom
steady state or recession
The ranking using MINIMAX regret method = BAC
d) The expected monetary value method
The expected pay off (profit) associated with a given combination of act
and event is obtained by multiplying the pay off for that act event
combination by the probability of occurrence of the given event. The
276
Lesson Seven
277
expected monetary value (EMV) of an act is the sum of all expected
conditional profits associated with that act
Example
A manager has a choice between
i.
A risky contract promising shs 7 million with probability 0.6 and
shs 4 million with probability 0.4 and
ii.
A diversified portfolio consisting of two contracts with
independent out comes each promising Shs 3.5 million with
probability 0.6 and shs 2 million with probability 0.4
Can you arrive at the decision using EMV method?
Solution
The conditional payoff table for the problem may be constructed as
below.
(Shillings in millions)
Event Ei Probability Conditional pay offs
Expected pay off
(Ei)
decision
decision
(i)
Contract (ii) Portfolio( Contract Portfolio
iii)
(i) x (ii)
(i) x (iii)
Ei
0.6
7
3.5
4.2
2.1
E2
0.4
4
2
1.6
0.8
EMV
5.8
2.9
Using the EMV method the manager must go in for the risky contract
which will yield him a higher expected monetary value of shs 5.8
million
e) Expected opportunity loss (EOL) method
This method is aimed at minimizing the expected opportunity loss
(OEL). The decision maker chooses the strategy with the minimum
expected opportunity loss
f) The Hurwiz method
This method was the concept of coefficient of optimism (or pessimism)
introduced by L. Hurwicz. The decision maker takes into account both
the maximum and minimum pay off for each alternative and assigns
them weights according to his degree of optimism (or pessimism). The
alternative which maximizes the sum of these weighted payoffs is then
selected
g) The Laplace method
This method uses all the information by assigning equal probabilities to
the possible payoffs for each action and then selecting that alternative
which corresponds to the maximum expected pay off
Example
QUANTITATIVE TECHNIQUES
278
Decision Theory
A company is considering investing in one of three investment
opportunities A, B and C under certain economic conditions. The payoff
matrix for this situation is economic condition
Investment
opportunities
A
B
C
5000
-2000
4000
7000
10000
4000
3000
6000
4000
A
B
C
Economic condition
1
2
3
Minimu
Maximum
m
5000
7000
3000
3000
7000
-2000
10000
6000
-2000
10000
4000
4000
4000
4000
4000
Maximin rule Highest minimum = 4000
Choose investment C
Using the Maximax rule Highest maximum = 10000
Choose investment B
Minimax Regret rule
1
0
7000
1000
3000
0
6000
3000
0
2000
Maxim
um
regret
3000
7000
6000
278
Lesson Seven
279
The expected value of perfect information EVPI is the expected outcome
with perfect information minus the expected outcome without perfect
information namely the maximum EMV
Example
From table 1 above and given that the probabilities are Boom 0.6, steady
state 0.3 and recession 0.1 then
When conditions of the market are; boom launch product C: profit = 16
When conditions of the market are; steady state launch product B: profit
= 6
When conditions of the market are; recession launch product B: profit =
12
The expected profit with perfect information will be
(16 x 0.6) + (6 x 0.3) + (12 x 0.1) = 12.6
our expected profit choosing product C is 7
the maximum price that we would pay for perfect information is 12.6 7
= 5.6
7.2
DECISION TREES AND SUB SEQUENTIAL DECISIONS
A decision tree is a graphic display of various decision alternatives and
the sequence of events as if they were branches of a tree.
-
The symbol
and
event
ACT
E1
A1
E2
D1
B1
D2
B2
C1
122
D3
A2
112
C2
121
131
QUANTITATIVE TECHNIQUES
280
Decision Theory
For example 111 represents the payoff of the act event combination A1
E1 B1
When probabilities of various events are known they are written along
the corresponding branches. Joint probabilities are obtained by
multiplying the probabilities along the branches
Example
Kauzi Agro mills ltd (KAM) is considering whether to enter a very
competitive market. In case KAM decided to enter this market it must
either install a new forging process or pay overtime wages to the entire
workers. In either case, the market entry could result in
i.
high sales
ii.
medium sales
iii.
low sales
iv.
no sales
a) Construct an appropriate tree diagram
b) Suppose the management of KAM has estimated that if they
enter the market there is a 60% chance of their
stakeholders approving the installation of the new forge.
(this means that there is a 40% chance of using overtime) a
random sample of the current market structure reveals that
KAM has a 40% chance of achieving high sales, a 30%
chance of achieving medium sales, a 20% chance of
achieving low sales and a 10% chance of achieving no sales.
Construct the appropriate probability tree and determine
the joint probabilities for various branches
c) Market analysts of KAM have indicated that a high level of
sales will yield shs 1,000,000 profit; a medium level of sales
will result in a shs 600000 profit a low level of sales will
result in a shs 200000 profit and a no sales level will case
KAM Act
a loss of shsAct/even
500000 apart from the cost of any
t
equipment. Entering the market will require a cash outlay
of
5 High
either shs 300000 to Install
purchase and install a forge
or
shs
sales
10000 for overtime expenses
should the second option be
forge
selected.
6 Medium
Draw the appropriate decision tree diagram
3
sales
Solution
7
a) The tree diagram for this problem is illustrated as follows Low
salesand
The 1st stage of drawing a tree diagram is to show all decision points
1 to right, concentrate first on the logic
outcome done from left
ofsales
the
8 No
problem and on probabilities or values involved. This is called forward
pass.
0
Use
The resultant is the figure below:
9 High
overtime
Outcome/event
sales
sto
p
1
0
Medium
sales
1
1
Low
sales
1
2
No sales
280
Lesson Seven
281
tree diagram
The entire sample space of act event choices is available to KAM are
summarized in the table shown below
Path
01
01
01
01
01
01
01
01
02
3
3
3
3
4
4
4
4
5
6
7
8
9
10
11
12
1,000,000
Install
b) The appropriate probability forge
tree is(300,00
shown in the
below.
The
0.3 figure
MS
= 0.18
=
alternatives available to the management
of
KAM
ad
events
are
0)
3 are the result 600,000
identified. The joint probabilities
of the path
0.2
sequenceEnter
that is followed.
For example, the sequence enter
0.6
0.12 ==
market install
(0.2)LS== 0.12
Marketforge, low sales yields (0.6)0.1
200,000
probability to install forge and get low sales.
0.4
NS = 0.06 = 500,000
Use
overtime
(10,000)
4
Dont enter
Q
UANTITATIVE TECHNIQUES
market
0.4
0.3
0.2
0.1
HS = 0.16 =
1,000,000
MS = 0.12 =
600,000
LS = 0.08 =
200,000
NS = 0.04 = -
282
Decision Theory
(c)
- 10,000
E.V. = 615,000 10,000 = 605,000
Node 1 = (0.6 315,000) + (0.4 605,000)
E.V. = 431,000
Node 0 = The highest of (0;431,000)
Since not entering the market has a 0 expected
value
= 431,000 = thus the decision should be to
enter the market.
This is represented as below in a tree diagram.
282
Lesson Seven
283
Install
forge
3
Enter
Market
EV =
315,000
0.4
1,000,0
00
0.3
600,00
0
0.2
0.1
1
0
EV =
431,000
Dont enter
market
200,00
0
500,000
Use
overtime
4
EV =
605,000
0.4
0.3
0.2
0.1
1,000,0
00
600,00
0
200,000
500,000
0
QUANTITATIVE TECHNIQUES
284
Decision Theory
High
0.8*
0.2
Good
Bad
Low
0.1
0.9
*When actual sales were high the market research company had
predicted good sales level 80% of the time.
Required:
Use a time horizon of 6 years to indicate to the management of the
company which option theory should adopt (Ignore the time value of
money).
Solution
(a)
First draw the decision tree diagram
Ruy
Lopez
(option 1)
High 0.7
GUIOC
O
(option
2)
90,000
Low 0.3
P(H/G)
Market
Researc
h
(option
3)
Extra
35,000
Good
E
Ba
d
60,000
(declining)
B
No
extra
0.9
5
P(L/G)
0.0
5
P(H/G)
0.9
5
P(L/G)
0.0
P(H/B)
5
0.3
4
P(L/B
)
0.6
6
30,000
100,00
0
25,0
00
90,0
00
30,000
70,0
00
50,0
00
284
Lesson Seven
285
For market
research
QUANTITATIVE TECHNIQUES
286
Decision Theory
P(H/G)
P(L/G)
P(H/B)
P(L/B)
For sales
outcome;
P(G/H) = 0.8
P(B/H) = 0.2
P(G/L) = 0.1
P(B/L) = 0.9
P(H)
= 0.7
P(L)
= 0.3
Good
Bad
Given
P(G&H) = P(H)
P(G/H)
0.7 0.8 = 0.56
B&H = P(H) P(B/H)
0.7 0.2 = 0.14
High 0.7
P(G&L) = P(L)
P(G/L)
0.3 0.1 = 0.03
P(B&L) = P(L)
P(B/L)
0.3 0.9 = 0.27
Low 0.3
0.95
P G
0.59
P G/L P L 0.03
0.05
P(L/G) =
P G
0.59
P B/H P H 0.14
0.34
P(H/B) =
P B
0.41
P B/L P L 0.27
0.66
P(L/B) =
P B
0.41
P(H/G) =
Shs.
54,000.
0
48,000.
0
43,740.
286
Lesson Seven
287
=
4 = 60,000 0.94
=
5 = 60,000 0.95
=
6 = 60,000 0.96
=
0
39,366.
0
35,429.
5
31,88
6.5
253,02
2.0
Option 2
Expected value of Giuoco
Node (A): 0.7(90,000 6) + 0.3(30,000 6)
= 378,000 + 54,000 = Shs. 432,000
Note that the figures a multiplied by 6 to account for the 6 years.
Option 3
Expected value of market research
Node (B): 0.95(100,000 6) + 0.05(25,000 6)
= 570,000 + 7,500 = Shs. 577,500
Deduct Shs. 35,000 for extensions
= 542,500.
Node (C): 0.95(90,000 6) + 0.05(30,000 6)
= 513,000 + 9,000 = Shs. 522,000
Node 1:
Compare B and C
B is higher, thus = 542,000.
Node (D):
0.34(70,000 6) + 0.66(50,000 6)
142,800 + 198,000 = Shs. 340,800
Node 2:
Node (E):
Node 2:
288
Decision Theory
1. it clearly brings out implicit assumptions and calculations for all to
see question and revise
2. it is easy to understand
Disadvantages
1. it assumes that the utility of money is linear with money
2. it is complicated by introduction of more variables and decision
alternatives
3. it is complicated by presence of interdependent alternatives and
dependent variables
7.3
Game Theory
Game theory is used to determine the optimum strategy in a competitive
situation
When two or more competitors are engaged in making decisions, it may
involve conflict of interest. In such a case the outcome depends not only
upon an individuals action but also upon the action of others. Both
competing sides face a similar problem. Hence game theory is a science
of conflict
Game theory does not concern itself with finding an optimum strategy
but it helps to improve the decision process.
Game theory has been used in business and industry to develop bidding
tactics, pricing policies, advertising strategies, timing of the introduction
of new models in the market e.t.c.
RULES OF GAME THEORY
i.
The number of competitors is finite
ii.
There is conflict of interests between the participants
iii.
Each of these participants has available to him a finite set of
available courses of action i.e. choices
iv.
The rules governing these choices are specified and known to all
players
While playing each player chooses a course of action from a list
of choices available to him
v.
the outcome of the game is affected by choices made by all of the
players. The choices are to be made simultaneously so that no
competitor knows his opponents choice until he is already
committed to his own
vi.
the outcome for all specific choices by all the players is known in
advance and numerically defined
When a competitive situation meets all these criteria above we call
it a game
NOTE: only in a few real life competitive situation can game theory be
applied because all the rules are difficult to apply at the same time to a
given situation.
Example
Two players X and Y have two alternatives. They show their choices by
pressing two types of buttons in front of them but they cannot se the
STRATHMORE UNIVERSITY STUDY PACK
288
Lesson Seven
289
opponents move. It is assumed that both players have equal intelligence
and both intend to win the game.
This sort of simple game can be illustrated in tabular form as follows:
Player X
Button m
Button n
Player Y
Button R
X wins 2 points
Y wins 2 points
Button t
X wins 3 points
X wins 1 point
Button m
Button n
Player Y
Button R
X wins 3 points
Y wins 2 points
Button t
Y wins 4 points
X wins 1 point
In this case X will not be able to press button m all the time in order to
win(or button n). similarly Y will not be able to press button r or button t
all the time in order to win. In such a situation each player will exercise
his choice for part of the time based on the probability
QUANTITATIVE TECHNIQUES
290
Decision Theory
Standard conventions in game theory
Consider the following table
Y
3
-4
X
-2
1
X
X
X
X
plays
plays
plays
plays
row
row
row
row
3, -4, -2, 1 are the known pay offs to X(X takes precedence over Y)
here the game has been represented in the form of a matrix. When the
games are expressed in this fashion the resulting matrix is commonly
known as PAYOFF MATRIX
STRATEGY
It refers to a total pattern of choices employed by any player. Strategy
could be pure or a mixed one
In a pure strategy, player X will play one row all of the time or player Y
will also play one of this columns all the time.
In a mixed strategy, player X will play each of his rows a certain portion
of the time and player Y will play each of his columns a certain portion of
the time.
VALUE OF THE GAME
The value of the game refers to the average pay off per play of the game
over an extended period of time
Example
Player Y
Player X
[3
4]
[-6
2]
in this game player X will play his first row on each play of the game.
Player y will have to play first column on each play of the game in order
to minimize his looses
so this games in favour of X and he wins 3 points on each play of the
game
this game is a game of pure strategy and the value of the game is 3
points in favour of X
Example
Determine the optimum strategies for the two players X and Y and find
the value of the game from the following pay off matrix
Player Y
[3
-1
4
2]
Player X
[-1
-3
-7
0]
[4
-7
3
-9]
290
Lesson Seven
291
strategy assume the worst and act accordingly
if X plays firs
if x plays first with is row then Y will pay with his 2 nd column to win 1
point similarly if X plays with his 2nd row then Y will play his 3rd column to
win 7 points and if x plays with his 3 rd row then Y will play his fourth
column to win 9 points
In this game X cannot win so he should adopt first row strategy in order
to minimize losses
This decision rule is known as maximum strategy i.e. X chooses the
highest of these minimum pay offs
Using the same reasoning from the point of view of y
If Y plays with his 1st column, then X will play his 3rd row to win 4 points
If Y plays with his 2nd column, then X will play his 1st row to lose 1 point
If Y plays with his 3rd column, then X will play his 1st row to win 4 points
If Y plays with his 4th column, then X will play his 1st row to win 2 points
Thus player Y will make the best of the situation by playing his 2 nd
column which is a Minimax strategy
This game is also a game of pure strategy and the value of the game is
1(win of 1 point per game to y) using matrix notation, the solution is
shown below
Player Y
Row minimum
[3
-1
4
2]
-1
player X
[-1
-3
-7
0]
-7
[4
-7
3
-9]
-9
column maximum 4
-1
4
2
In this case value of the game is 1
Minimum of the column maximums is 1
Maximum of the row is also 1
i.e.
Xs strategy is maximum strategy
Ys strategy is Minimax strategy
Saddle Point
The saddle point in a pay off matrix is one which is the smallest value in
its row and the larges value in its column. It is also known as equilibrium
point in the theory of games
Saddle point also gives the value of such a game. In a game having a
saddle point, the optimum strategy for both players is to pay the row or
column containing the saddle point
Note: if in a game there is no saddle point the players will resort to what
is known as mixed strategies.
Mixed Strategies
Example
Find the optimum strategies and the value of the game from the
following pay off matrix concerning two person game
Player Y
[1
4]
QUANTITATIVE TECHNIQUES
292
Decision Theory
player X
[5
3]
In this game there is no saddle point
Let Q be the proportion of time player X spends playing his 1 st row and 1Q be the proportion of time player X spends playing his 2 nd row
Similarly
Let R be the proportion of time player Y spends playing his 1 st column
and 1-R be the proportion of time player Y spends playing his second row
The following matrix shows this strategy
Player Y
[R
1-R]
Q
[1
4
]
Player X 1-Q
[5
3
]
Xs strategy
X will like to divide his play between his rows in such a way that his
expected winning or looses when Y plays the 1 st column will be equal to
his expected winning or losses when y plays the second column
Column 1
Proportion played
Q
1-Q
Points
1
5
Expected winnings
Q
5(1-Q)
Total = Q + 5(1 Q)
Column 2
Proportion played
Q
1-Q
Points
4
3
Total = 4Q + 3(1 Q)
Therefore Q + (1-Q)5
4Q +3(1-Q)
Giving Q = 2
and
(1-Q) = 3
Expected winnings
4Q
3(1-Q)
th
th
of the time
(1-R) = 4
and
This means that player Y should divide hiss time between his first row
and second column in the ration 1:4
Player Y
[1
4 ]
5
[1
[5
2
5
Player X 3/5
]
]
292
Lesson Seven
293
Short cut method of determining mixed matrices
Player Y
[1
4
]
Player X
[5
3
]
Step I
Subtract the smaller pay off in each row from the larger one and smaller
pay off in each column from the larger one
[1
4]
41=3
[5
3]
53=2
51=4
43=1
QUANTITATIVE TECHNIQUES
294
Decision Theory
Step II
Interchange each of these pairs of subtracted numbers found in step I
Y
[1
4]
2
X
[5
3]
3
1
4
Thus player X plays his two rows in the ratio 2: 3
And player Y plays his columns in the ratio 1:4
This is the same result as calculated before
To determine the value of the game in mixed strategies
In a simple 2 x 2 game without a saddle point, each players strategy
consists of two probabilities denoting the portion of the time he spends
on each of his rows or columns. Since each player plays a random
pattern the probabilities are listed under
Pay off
1
Row I column II
Row II column I
Row II column II
2
25
8
25
3
25
12
25
x p(x) = 85/25
= 17/5
3.4 is the value of the game
Joint
probability
2 1 2
5 5 25
2 4 8
5 5 25
3 1 3
5 5 25
3 4 12
5 5 25
Expected value x
(p(x)
25
32
25
15
25
36
25
= 3.4
Dominance
Dominated strategy is useful for reducing the size of the payoff table
STRATHMORE UNIVERSITY STUDY PACK
294
Lesson Seven
295
Rule of dominance
i.
If all the element sin a column are greater than or equal to the
corresponding elements in another column, then the column is
dominated
ii.
Similarly if all the elements in a row are less than or equal to
the corresponding elements in another row, then the row is
dominated
Dominated rows and columns may be deleted which reduces
the size of the game
NB always look for dominance and saddle points when solving
a game
QUANTITATIVE TECHNIQUES
296
Decision Theory
Example
Determine the optimum strategies and the value of the game from the
following 2xm pay off matrix game for X and Y
Y
[6
3
-1
0
-3]
X
[3
2
-4
2
-1]
In this columns I, II, and IV are dominated by columns III and V hence Y
will not play these columns
So the game is reduce to 2 x 2 matrix hence this game can be solved
using methods already discussed
Y
[-1 -3]
X
[-4 -1]
GRAPHICAL METHOD
Graphical methods can be used in games with no saddle points and
having pay off m 2 or 2 n matrix
The aim is to substitute a much simpler 2 2 matrix for the original m
2 or 2 m matrix
Example I
Determine the optimum strategies and the value of the game from the
following pay off matrix game.
[6
[3
Y
3
2
-1
-4
0
2
-3]
1]
Draw two vertical axes and plot two pay offs corresponding to each of
the five columns. The pay off numbers in the first row are plotted on axis
I and those in second row on axis II
296
Lesson Seven
297
Axis I
Axis II
2K
6A
-1
L -1
-2
-2
-3
-3
-4
-4
-5
-5
-1
-1
-6
-6
-2
-7
-7
-3
-8
-8
L -4
-9
-9
-2
-3 K
-4
Example I
Example II
Thus the two pay off number 6 and 3 in the first column are shown
respectively by point A on axis I and point B on axis II
On the two intersecting lines at the very bottom thickens them from
below to the point of intersection i.e. highest point on the boundary.
The thick lines on the graph KT and LT meet at T
The two lines passing through T identify the two critical moves of Y
which combined with X yield the following 2 2 matrix
Y
[-1
-3]
X
[-4
-1]
The value of the game and the optimum strategies can be calculated
using the methods described earlier
Example II
Determine the optimum strategies and the value of the game from the
following pay off matrix concerning two person 4 2 game
Y
[-6
-2]
[-3
-4]
X
[2
-9]
[-7
-1]
QUANTITATIVE TECHNIQUES
298
Decision Theory
The method is similar to the previous example, except we thicken the
line segments which binds the figure from the top and taken the lowest
point the boundary
The segments KP, PM and ML drawn in thick lines bind the figure from
the top to and their lowest intersection M through which the two lines
pass defines the following 2 2 matrix relevant to our purpose
Y
[-3
-4]
X
[-7
-1]
The optimal strategies and the value of the game can now be calculated
Non Zero Sum Games
Until recently there was no satisfactory theory either to explain how
people should play non zero games or to describe how they actually play
such games
Nigel Howard (1966) developed a method which describes how most
people play non zero sum games involving any number of persons
Example
Each individual farmer can maximize his own income by maximizing the
amount of crops that he produces. When all farmers follow this policy the
supply exceeds demand and the prices fall. On the other hand they can
agree to reduce the production and keep the prices high
This creates a dilemma to the farmer
This is an example of a non zero sum game
Similarly marketing problems are non zero sum games as elements of
advertising come in. in such cases the market may be split in proportion
to the money spent on advertising multiplied by an effectieness factor
Prisoners Dilemma
It is a type of non zero sum game and derives its name from the following
story
The district attorney has two bank robbers in separate cells and offers
each a chance of confession. If one confesses and the other does not then
the confessor gets two years and the other one ten years. If both confess
they will get eight years each. If both refuse to confess there is only
evidence to ensure convictions on a lesser charge and each will receive 5
years
Another example
The table below is a pay off matrix for two large companies A and B.
initially they both have the same prices. Each consider cutting their
prices to gain market share and hence improve profit
Corporation B
maintain prices
Maintain prices
3,3 status quo
Decrease prices
1 , 4 B gets market
share and profit
(2,2) Both retain market
share but loose profit
Decrease
4, 1, A gains
prices
market share
profit STUDY PACK
STRATHMORE and
UNIVERSITY
298
Lesson Seven
299
Corporation A
The entries in the pay off matrix indicate the order of preference of the
players i.e. first A then B.
We may suppose that if both player study the situation, they will both
decide to play row I column I(3,3).
However
Suppose As reasoning is as follows
If B plays column I then I should play row 2 because I will increase my
gain to 4
In the same way Bs reasoning may be as follows
If A plays row I then I should play column 2 to get pay off 4 per play
If both play 2(row 2 column 2) each two receives a pay off of 2 only
In the long run pay off forms a new equilibrium point because if either
party departs from it without the other doing so he will be worse off
before he departed from it
Game theory seems to indicate that they should play (2,2) because it is
an equilibrium point but this is not intuitively satisfying. On the other
hand (3,3) is satisfying but does not appear to provide stability. Hence
the dilemma.
Theory of Metagames
This theory appears to describe how most people play non zero games
involving a number of persons
Prisoners dilemma is an example of this. The aim is to identify points at
which players actually tend to stabilize their play in non zero sum games.
This theory not only identifies equilibrium point missed by traditional
game theory in games that have one or more such points but also does so
in games in which traditional theory finds no such point
Its main aim is that each player is trying to maximize the minimum gain
of his opponent
ADVANTAGES AND LIMITATIONS OF GAME THEORY
Advantage
Game theory helps us to learn how to approach and understand a conflict
situation and to improve the decision making process
LIMITATIONS
1. Businessmen do not have all the knowledge required by the theory of
games. Most often they do not know all the strategies available to
them nor do they know all the strategies available to their rivals
2. there is a great deal of uncertainty. Hence we usually restrict
ourselves to those games with known outcomes
3. The implications of the Minimax strategy is that the businessman
minimizes the chance of maximum loss. For an ambitious business
man, this strategy is very conservative
QUANTITATIVE TECHNIQUES
300
Decision Theory
4. the techniques of solving games involving mixed strategies where pay
off matrices are rather large is very complicated
5. in non zero sum games, mathematical solutions are not always
possible. For example a reduction in the price of a commodity may
increase overall demand. It is also not necessary that demand units
will shift from one firm to another
300
Lesson Seven
301
REINFORCING QUESTIONS
QUESTION ONE
A company with an ageing product range is investigating the launch of a
new range. Their business analyst has mapped out several possible
scenarios which are given below.
Scenario 1
Continue with old range producing profits declining at 10% per annum
on a compounding basis. Last years profits were 60000 from this
range.
Scenario 2
Introduce a new range without any prior market research. If sales are
high, annual profit is put at 90000 with a probability, which from past
data is put at 0.7. If sales are low, annual profit is put at 30000, with a
probability of 0.3.
Scenario 3
Introduce a new range with prior market research costing 30000. The
market research will indicate whether future sales are likely to be good
or bad. If the research indicates good, then the management will
spend 35000 more on capital equipment and this will increase annual
profits to 100000 if sales are actually high. If however sales are actually
low, annual profits will drop to 25000. Should market research indicate
good and should management not spend more on promotion then profit
levels will be as for scenario 2.
If the research indicates bad then the management will scale down
their expectations to give annual profits of 50000 when sales are
actually low. However, if sales do turn out to be high, profits can only rise
to 70000because of capacity constraints. Past history of the market
research company indicates the following results.
Actual sales
Predict
ed
Sales
levels
High
Low
Good
*0.8
0.1
Bad
0.2
0.9
*When Actual sales were high the market research company had
predicted good sales levels 80% and so on.
Use a time Horizon of 6 years to indicate to the management of the
company which scenario they should adopt.
QUANTITATIVE TECHNIQUES
302
Decision Theory
Ignore the time value of money.
QUESTION TWO
1.
c)
QUESTION THREE
Define minimax and maximax decision rules
QUESTION FOUR
A has two ammunition stores, one of which is twice as valuable as the
other. B is an attacker who can destroy an undefended store but he can
only attack one of them. A can only successfully defend one of them.
What would A do so as to maximize his return from the situation no
matter what B may do?
QUESTION FIVE
Determine the optimum strategies and the value of the game for the
following pay off matrix.
X
1
-2
Y
2
1
-1
1
302
Lesson Seven
303
2
QUANTITATIVE TECHNIQUES
304
Operation Research
LESSON EIGHT
8. Operation Research
-
Linear programming
Transport and Assignments
Network Analysis
8.1
Linear programming
Linear programming is a technique of decision making used by managers
to allocate limited resources eg machinery, raw materials and labor in
order to minimize costs or maximize production. Decision variable are
the amounts of each pot to be made in a given time period. Linear
programming assumes that the variable has a linear relationship.
Application of linear programming
Production department to decide the quantity of pots to be produced
subject to limited resources (constraints) eg labour, power, machine
hours, raw materials etc.
Marketing department: Allocation of salesmen to different sales regions
subject to their expected performance.
Human Resource: Scheduling personnels work hours and job description
to either maximize production or minimize cost.
Steps
in
solving
linear
programming
problems(problem
formulation)
1. Identify variables (eg product x and product y)
2. Identify the objective (To maximize contribution or to minimize cost),
and write down its mathematical presentation in terms of variables.
3. Identify the constraints (ie the limited resources shared among the
variables), and write down its mathematical representation in terms
of variables.
4. write down the objectives and the constraints in terms of the
variables.
These steps apply regardless of the number of the variables.
NOTE: If only two variables are involved, a graphical solution can be
used otherwise for multivariable problems, an algebraic method is
applied to find the solution.
Example:
Long castling breweries manufactures two brands of beer, Benko lager
and Benoni lager. Benko has a contribution of Sh.4 per unit and Benoni
has a contribution of Sh.3 per unit. Benko requires 30 machine minutes
and 30 labor minutes to manufacture a unit. Total available machine
hours per day are 12hrs whereas total available labor hours per day are
14hrs.
304
Lesson Eight
305
Required:
1. Formulate linear programming model.
2. How much of each brand should long castling produce if it wishes to
maximize its daily contribution assuming that all the lager produced
is sold.
Solution:
1.
Formulating a linear programming model
QUANTITATIVE TECHNIQUES
306
Operation Research
Step 1: Identifying variables:
The variables here are the number of units of Benko and Benoni lager
produced by Long castling breweries per day; we can represent them as:
X1= a unit of Benko lager.
X2= a unit of Benoni lager.
Step 2: Identify the objective:
Definition: An objective is the desired result i.e. optimization of a
function dependent on decision variable and subject to some
constraints.
The objective of Long castling breweries is to maximize daily
contribution. Objective function is the formula that will give us the total
contribution in a day for both Benko lager and Benoni lager.
The information above can thus be represented in a tabular form as:
PRODUCT
(PER DAY)
Machine hours
Labor hours
Contribution
X1
0.5
0.5
4
X2
0.33
0.5
3
Maximum
available
hours/day
12
14
306
Lesson Eight
307
Maximize 4X1 + 3X2
Subject to the constraints;
0.5X1 + 0.33X2 12
0.5X1 + 0.5X2 14
X1, X2 0
Solving linear programming problems
The question requires us to optimize (in our case, maximize) the
objective (the contribution function), or in simple terms we are required
to solve the linear programming model.
Solving linear programming model entails finding the values of variables
that satisfy all inequalities simultaneously and optimize the objective.
Graphical solution
This method is used to solve LP models in case where only two variables
are involved. For more than two variables (multivariable) then the
simplex technique (algebraic method may be used).
Now in solving the problem above we first draw the axis, taking X 1 to be
the y axis and X2 to be the X axis.
X1
0
X2
Next we plot the scales on each axis to approximate the scales to use
then, we consider each constraint equation. We get the value of one of
variables putting the other variable to be zero and by substituting the
inequality or with equality sign (=).
For:
When
0.5X1 + 0.33X2 12
X1 = 0
0.5(0) + 0.33X2 = 12
0.33X2 = 12
X2 = 12/0.33 = 36
Therefore point to plot is (36, 0) >>Implying that when X2 = 36 then X1
=0
QUANTITATIVE TECHNIQUES
308
Operation Research
When X2 = 0
0.5X1 + 0.33(0) = 12
0.5X1 = 12
X1 = 12/0.5 = 24
Therefore the point is (0, 24)
For
0.5X1 + 0.5X2 14
When X1 = 0
0.5(0) + 0.5X2 = 14
0.5X2 = 14
X2 = 14/0.5 = 28
Therefore the point is (28, 0)
When X2 = 0
0.5X1 + 0.5(0) = 14
0.5X1 = 14
X1 = 14/0.5 = 28
Therefore the point is (0, 28)
Comparing these values we see that X 2 ranges between 0-24-28,
therefore we can have the graph plotted as:
308
Lesson Eight
309
QUANTITATIVE TECHNIQUES
310
Operation Research
We must now consider how to choose the production which will maximize
contribution. This we do by plotting a line representing the objective
function (4x1 + 3x2).
First choose a convenient point inside the feasible region
eg X2(10) +3X1(20) = 40 +60
= Sh 100
All of the other product mixes that give a contribution of Sh.100 lies on
the line:
100 = 4X1 + 3X2 ......................................................(i)
<<This line is called a contribution line>>
Picking another point, say X2 =10 ad X1 = 20
Its contribution value is SH 110, thus give a contribution line of
110 = 4X1 + 3X2.........................................................(ii)
Plotting these two contribution lines to our graph we get two parallel
lines.
Until we reach the last feasible solution(s) before the line moves entirely
out of the feasible region.
310
Lesson Eight
311
QUANTITATIVE TECHNIQUES
312
Operation Research
Contribution = 4(16.24) + 3(11.76) = 100.24
Assumption made in linear programming
Assumptions that are made to solve these types of problems are
that:
Certainly the parameters, decision variables and constraints are
known with certainty and but change.
Proportionality: all activities in linear programming problems are
proportional to the level of decision variables.
Divisibility: the solution to a linear programming problem does not
have to be an integer but for strictly whole number solutions, use
integer programming.
Non-negativity: no decision variable can be negative.
Additivity: the total of all activities in linear programming
problems are assumed to equal the sum of individual activities.
Special cases in linear programming
Infeasibility: This is when all constraints dont satisfy a particular
point thus there is no feasible solution.
Redundancy: A constraint is considered redundant if it does not
affect the feasible region. This happens in cases of excess
resources since it does not limit attainment of the objective.
Multiple optimal solutions: This occurs when the objective function
has the same slope as a binding constraint.
Minimizing problem
Example
A manufacturing company has acquired new machine for producing
product p at a rate of 25 units per hour with a 98% rate of efficiency. The
company requires to produce atleast 1800 units of p per day. The 10 old
machines that the company has, produce 15 units of p with a 95%
efficiency.
The cost of operating the new machine is Sh. 4 per hour and Sh. 3 per
hour for the old ones. The cost incurred due to inefficiency is Sh. 2 per
unit; Its government policy that at least 2 of the new machines must be
indulged into production.
The company wishes to optimally allocate the machines in order to
minimize the total manufacturing cost if the total available hours for
production in a day are 8 hours.
Solution
In minimizing problems we use (greater or equal to) type inequality.
Step 1: Identifying variables.
Since the problem requires us to appropriately allocate the machines in
order to minimize the costs thus our variables are the new machines and
the old machines, we can let;
X1 =new machines
STRATHMORE UNIVERSITY STUDY PACK
312
Lesson Eight
313
X2=old machines
Step 2: Identify objectives:
The objective is to minimize manufacturing costs.
Total manufacturing cost per machine=Operating cost + (inefficiency
rate number of units cost of loss)
Therefore cost for new machines
Cost = 4+(0.02 25 2) = Sh. 5 per hour
=5 8= Sh. 40 per day]
Similarly for old machines
Cost = 3+(0.05152) = Sh. 4.5 per hour
=4.58=Sh. 36 per day
Therefore the objective function is to minimize 40X1 + 36X2
Step 3: Identifying constraint functions.
X1 8
X2 10
(25 8) X1 +(8 15) X2 1800 (This can be simplified further as)
200 X1 +120 X2 1800
(dividing through by 40)
5X1 +3 X2 45
X1 2
X1, X2 0
Thus the LP model is:
Minimize
40X1 + 36X2
Subject to:
X1 8
X2 10
5X1 +3 X2 45
X1 2
X1, X2 0
Plotting this on a graph we get:
QUANTITATIVE TECHNIQUES
314
Operation Research
The line X1 2 does not affect the feasible region (doesnt cause
reduction of the feasible region), this constraint doesnt limit attainment
of the objective, thus its known as a redundant constraint.
Now picking a convenient point inside the feasible region, say (6, 10)
We get a total cost of
600 = (6(40)+10(36))
Thus the objective function line of
40X1 + 36X2 = 600
Moving this line parallel toward the origin to locate the last apex before
the line completely fall off the feasible region, we get:
314
Lesson Eight
315
Definition: A shadow price or a dual price is the amount increase or
decrease of the objective function when one more (or one less) of the
binding constraints is made available.
Consider example 1.
Maximize 4X1 + 3 X2
Subject to
0.5X1 + 0.33X2 12 (Machine hours)
0.5X1 + 0.5X2 14 (labor hours)
Starting with machine hours; lets assume that one more machine hour is
available (with labor hours remaining constant)
We get:
0.5X1 + 0.33X2 = 13
0.5X1 + 0.5X2 = 14
Solving this simultaneously we get the values of X 1 and X2 as
0.17 X2 = 1
X2 = 5.88
X1 = 22.12
Thus the contribution is
4(22.12) + 3(5.88) = Sh.106.12
Comparing this with its original contribution of Sh.100.24 (see example
1) we see increasing machine hours by one unit has increased
contribution by Sh.5.88, which is the shadow price per machine hour.
Note: This figure is also arrived at if we assume that machine hours are
reduced by 1 unit ie 12-1.
Similarly assuming that one more labor hour is made available, then
contribution change is:
0.5X1 + 0.33X2 = 12
0.5X1 + 0.5X2 = 15
Solving this simultaneously gives:
0.17 X2 =3
X2 = 17.65
X1 = 12.35
Which give a contribution of:
4(12.35) + 3(17.65) = Sh.102.35
The contribution change is Sh.2.11 which is the shadow price per labor
hour.
Note:
The shadow prices apply in so far as the constraint is binding for
example if more and more labor hours are available it will reach a point
where labor hours are no longer scarce thus labor hours cease to be a
binding constraint and its shadow price becomes a zero.(All non-binding
constraints have zero shadow price). Logically its senseless to pay more
to increase a resource, which is already abundant.
Interpretation of shadow prices
A shadow price of a binding constraint indicates to management how
much extra contribution will be gained by increasing a unit of the scarce
resource.
QUANTITATIVE TECHNIQUES
316
Operation Research
In the example above Sh.2.11 is the shadow price for labor hours. This
implies that management is ready to pay up to Sh.2.11 extra per hour for
the extra hours ie say an employee is paid sh.5 per hour and one day he
works for two hours extra (overtime), the management is prepared to
pay up to sh.7.11 per hour for the two hours overtime worked.
Sensitivity Analysis
Definition: Sensitivity analysis is the test of how certain changes
in resources affect the optimal solution.
In sensitivity analysis we consider the effect of additional limiting or nonlimiting constraints.
We already know that adding more non-limiting constraints does not
change the optimal solution.
We also know that adding more binding constraints affects the objective
function.
Its very important for the management to know how much of a limit
resource can be made available until it has no effect on the objective
function (ie ceases to be a binding resource)
Considering example 1 with two assumptions:
i)
More labor hours become available
Therefore the binding constraints now are:
ii)
More labor hours become available
Therefore the binding constraints now are:
316
Lesson Eight
317
Plotting these two resulting graphs we see clearly that the labor hours
become available
TRANSPORTATION
A transportation problem deals with a number of sources of supply (e.g a
manufacturing company, warehouse) and a number of destinations (e,g
shops, houses). The usual objective is minimizing transportation costs of
supplying items from a set of source points to a set of destinations.
A major characteristic of this problem is the linearity requirement, i.e.
transport cost fom one point to another must be clearly defined, if it will
cost sh.50 to transport a bag from a warehouse to shop A then it will cost
sh.250 to transport 5 bags.
Assumptions
The model assumes a homogeneous
commodity
Total supply is equal to total demand
commodity,
one
type
of
Example 1
64 chambers, computer support firm has three branches at different
parts of the city, it receives orders for a total of 15 desktop computers
from four customers. In total in the three branches there are 15
machines available. the management wish to minimise delivery costs by
dispatching the computers from the appropriate branch for each
customer.
Details of the availabilities, 'requirements, and transport costs per filing
computer are given in the following table.
QUANTITATIVE TECHNIQUES
318
Operation Research
Table 1
Custome Custome Custome Custome
Total
r
r
r
r
A
B
C
D
Computers
3
3
4
5
15
Branch X.
2
Sh.13
11
15
20
transportatio
n cost
Available Branch Y
6
Sh.17
14
12
13
per
unit
Branch Z
7
Sh.18
18
15
12
Total
15
Solution
Step 1 Make an initial feasible allocation of deliveries by selecting the
cheapest route first, and allocate as many as possible then the next
cheapest and so on. The result of such an allocation is as follows.
Table 2
Requirement
A
B
C
D
3
3
4
5
X
2 Units
2(1)
Available
Y
6 Units
1(4)
1(3)
4(2)
Z
7 Units
2(5)
5(2)
Note: the number in the table represent deliveries of cabinets and the
number in the brackets (1), (2), etc represent the sequence in which they
are inserted, lowest cost first i.e.
Sh.
1. 2 units X B sh.11/unit
Total cost 22
2. 4 units Y C sh.12/unit
Total cost 48
5 units Z D sh.12/unit
Totals cost 60
3. The next lowest cost move which is feasible i.e. doesnt exceed row
or column totals is 1 unit Y B sh.14/unit
14
4. similarly the next lowest feasible allocation 1
unit Y A sh.17/unit
5. finally to fulfill the row /column totals 2 units Z
A sh.18/unit
197
Step 2. Check solution obtained to see if it represents the minimum cost
possible. This is done by calculating shadow costs (i.e. an
imputed cost of not using a particular route) and comparing these
with the real transport costs to see whether a change of allocation
is desirable.
This is done as follows:
Calculate a nominal 'dispatch' and 'reception' cost for each occupied cell
by making an assumption that the transport cost per unit is capable of
being split between dispatch and reception costs thus:
318
Lesson Eight
319
D(X) + R(B) = 11
D(Y) + R(A) = 17
D(y) + R(B) = 14
D(Y) + R(C) = 12
DZ) + R(A) = 18
D(Z) + R(D) = 12
Where D(X), D(Y) and D(Z) represent Dispatch cost from depots X, Y and
Z, and R(A) R(B), R(C) and R(D) represent Reception costs at customers
A, B, C, D.
By convention the first depot is assigned the value of zero i.e. D(X) = 0
and this value is substituted in the first equation and then all the other
values can be obtained thus
R(A)
R(B)
R(C)
R(D)
= 14
= 11
= 9
=
8
D(X) = 0
D(Y) = 3
D(Z) = 4
Using these values the shadow costs of the unoccupied cells can be
calculated. The unoccupied cells are X : A, X : C, X : D, Y : D, Z : B, Z : C.
Shadow
costs
:. D(X) +
R(A)
D(X) + R(C)
D(X) + R(D)
=
D(Y) + R(D)
=
D(Z) + R(B)
D(Z) + R(C)
= 0 +
14 =
14
= 0 +
9 =
0 +
8 =
3 +
8 =
11
= 4 +
= 4 +
11 =
9 =
15
13
These computed 'shadow costs' are compared with the actual transport
costs (from Tab- I), Where the actual costs are less than shadow costs,
overall costs can be reduced by allocating units into that cell.
CellX:A
X:C
X:D
Y: D
Z:B
Z:C
Actual
cost
13
15
20
13
18
15
The meaning of this is that total costs could be reduced by sh.1 for
every unit that can be transferred into cell X : A. As there is a cost
reduction that can be made the solution , Table 2 is not optimum.
QUANTITATIVE TECHNIQUES
320
Operation Research
Step 3: Make the maximum possible allocation of deliveries into the cell
where actual costs are less than shadow costs using occupied cells
i.e.
Cell X : A from Step 2, The number that can be allocated is governed by
the need to keep within the row and column totals. This is done as
follows:
320
Lesson Eight
321
Table 3
X
Y
Z
Available
A
3
+
12
2 Units
6 Units
7 Units
Requirement
B
C
3
4
21+
4
D
5
5
Available
X
Y
Z
2 Units
6 Units
7 Units
A
3
1
Requirement
B
C
3
4
1
2
4
D
5
5
X:A
X:B
Y:B
Y:C
Z:A
Z:D
1
1
2
4
2
5
unit @ sh.13
Unit @ sh.11
Units @ sh.14
Units @ sh.12
Units @ sh.18
Units @ sh.12
Sh.
= 13
= 11
= 28
= 48
= 36
= 60
196
The new total cost is sh.1 less than the total cost established in Step 1.
This is the result expected because it was calculated in Step 2 that sh.1
would be saved for every unit we were able to transfer to Cell X : A and
we were able to" transfer 1 unit only.
Notes: Always commence the + and - sequence with a + in the cell
QUANTITATIVE TECHNIQUES
322
Operation Research
indicated by the (actual cost - shadow cost) calculation. Then put a - in
the occupied cell in the same row which has an occupied cell in its
column. Proceed until a - appears in the same column as the original +.
Step 4. Repeat Step 2 i.e. check that solution represents minimum cost.
Each of the processes in Step 2 are repeated using the latest
solution (Table 4) as a basis, thus: Nominal dispatch and reception
costs for each occupied cell.
D(X) + R(A) = 13
D(X) + R(B) = 11
D(y) + R(B) = 14
D(Y) + R(C) = 12
DZ) + R(A) = 18
D(Z) + R(D) = 12
On setting D(X) to be 0, the rest of the values are
found to be
R(A) = 13
D(X) = 0
R(B) = 11
D(Y) = 3
R(C) = 9
D(Z) = 5
R(D) = 7
Using these values the shadow costs of the unoccupied cells are
calculated. The unoccupied cells are X:C , X:D, Y:A, Y:D, Z:B, and Z:C
Therefore;
D(X) + R(C) = 9
D(X) + R(D) = 7
D(Y) + R(A) = 16
D(Y) + R(D) = 10
D(Z) + R(B) = 16
D(Z) + R(C) = 14
The computed shadow costs are compared with actual costs to see if any
reduction in cost is possible.
Actual
Cell
X :C
X:D
Y:A
Y:D
Z:B
Z:C
Shadow
cost
+ Cost
increase
- Cost
reduction
cost
15
9=
+6
20
17
13
18
15
7=
16 =
10 =
16 =
14 =
+13
+1
+3
+2
+1
322
Lesson Eight
323
It will be seen that all the answers are positive, therefore no further cost
reduction is possible and optimum has been reached.
thus the optimal solution is represented by table 4
UNEQUAL SUPPLY AND DEMAND QUANTITIES
Consider the following example.
Example 2
Wanjiru books supplies is a firm dealing with import of books and it has
three stores strategically situated around the country. Yesterday the
company received orders to supply 100 books from 4 schools, of the
books ordered the firm has 110 books in stock. The firm wishes to
minimize cost and its seeking your advice, advise.
Below is a table of availability and requirement;
Store I
Store II
Available Store III
Total
Required
Sch. A Sch. B Sch. C Sch. D
Total
Books
25
25
42
8
100
40
Sh.3
16
9
transport
costs per
20
Sh.1
9
3
8
Book
50
Sh.4
5
2
5
110
Solution
Step 1: add a dummy destination to table 5 with zero transport costs
and requirements equal to the surplus availability.
Store I
Store II
Available Store III
Total
Sch. A
Books
25
40
Sh.3
20
Sh.1
50
Sh.4
110
Require
d
Sch. B Sch. C Sch. D Dummy
Total
25
42
8
10
100
0
16
9
transport
costs per
9
3
8
0
Book
5
2
5
0
Step 2. Now that the quantity available equals the quantity required
(because of insertion of the dummy) the solution can proceed in
exactly the same manner described in the first example. First set
up an initial feasible solution
Available
I
II
III
40
20
50
A
25
5(4)
20(1)
Requirement
B
C
D
25
42
8
17(6)
8(3)
8(5)
42(2)
QUANTITATIVE TECHNIQUES
Dummy
10
10(7)
324
Operation Research
The numbers in the table represent the allocations made and the
numbers in brackets represent the sequence they were inserted based on
lowest cost and the necessity to maintain row/column totals. The residue
of 10 was allocated to the dummy. The cost of this allocation is
Sh.
Sh.
IA
5 units @ 3
15
IB
17 units @ 16
272
ID
8units @ 2
16
IDummy
10 units @ zero cost
IIA
20 units @ 1
20
IIIB
8 units @ 5
40
IIIC
42 units @ 2
84
447
Step 3. Check solution to see if it represents the minimum cost possible
in the same manner as previously described i.e.
Dispatch & Reception Costs of used routes:
D(I) + R(A)
=3
D(I) + R(B)
= 16
D(I) + R(D)
=2
D(I) + R(Dummy) =
12
D(II) + R(A)
=1
D(III) + R(B)
=5
D(III) + R(C)
=2
Setting D(I) at zero the following values are be obtained
R(A)
=3
R(B)
=16
R(C)
=13
R(D)
=2
R(Dummy) =0
D(I) =0
D(I) =-2
D(III) =-11
Using these values the shadow costs of the unused routes can be
calculated .The unused routes are I:C,II:B,II:C,II:D,II:Dummy,III:D,and
Dummy
D (I) +
D (II). +
D (II). +
D (II) +
R(C)
R (B)
R(C)
R (D)
=
=
=
=
Shadow
Costs
0+13
-2+16
-2+13
-2+ 2
=13
=14
=11
=0
324
Lesson Eight
325
D (II) +
D (III) +
D (III) +
D (III) +
R (Dummy)
R (A)
R (D)
R (Dummy)
=
=
=
=
-2+0
-11+3
-11+2
-11+0
=-2
=-8
=-9
=-11
QUANTITATIVE TECHNIQUES
326
Operation Research
Availab
le
I
II
40
20
III
50
Requirements
A
B
25
255+
17208+
C
42
D
8
8
Dummy
10
10
42-
Availab
le
I
II
40
20
III
50
A
25
22
3
B
250
C
42
D
8
8
Dummy
10
10
17
25
25
326
Lesson Eight
327
customers premises. Four requests for services have been received and
the company finds that four engineers are available. The distances each
of the engineers is from the various customers in the following table and
the company wishes to assign engineers to customers to minimise the
total distances to be travelled.
Customers
Alf
W
25
X
18
Y
23
Bill
38
15
53
Charlie
15
17
41
Dave
26
28
36
Z
1
4
2
3
3
0
2
9
Step 1. Reduce each column by the smallest figure in that column. The
smallest figures are 15, 15, 23 and 14 and deducting these values from
each element in the columns produces the following table.
Table 2
W
A
B
C
D
X
10
23
0
11
Y
3
0
2
13
Z
0
30
18
13
0
9
16
15
A
B
C
D
Table 3
X
Y
3
0
0
30
2
18
2
2
Z
0
9
16
4
Note: Where the smallest value in a row is zero (i.e. as in rows A, B and
C above) the rows is, of course, unchanged.
Step 3 Cover all the zero in the table 3 by the minimum possible number
of lines. The lines may be horizontal or vertical.
Table 4
W
A
X
10
Y
3
Z
0
QUANTITATIVE TECHNIQUES
328
Operation Research
B
C
D
23
0
0
0
2
2
30
18
2
9
16
4
Note: Line 3, covering Row B, could equally well have been drawn
covering column X.
Step 4.Compare the number of lines with the number of assignments to
be made (in this example there are 3 lines and 4 assignments).If the
number of line equals the number of assignments to be made go to step
6.
If the number of lines is less than the number of assignments to be made
(i.e. as in this example which has three lines and four assignments) then
a) Find the smallest uncovered element from step 3, called X (in
Table 4 this value is 2).
b) Subtract X to every element in the matrix.
c) Add back to every element covered by a line. If an element is
covered by two lines, for example, cell A: W in Table 4, X is added
twice.
Note: The effect of these steps is that X is subtracted from all
uncovered by one line remain unchanged, and elements covered by
two lines are increased by X.
Note: The effect of these steps is that X is subtracted from all
uncovered elements, elements covered but one line remains
unchanged, and elements covered by two lines are increased by X.
Carrying out this procedure on Table 4 produces the following results:
In Table 4 the smallest elements is 2. New table is
Table
A
B
C
D
12
25
0
0
3
0
0
0
0
30
16
0
0
9
14
2
328
Lesson Eight
329
A
B
C
D
12
25
0
0
3
0
0
0
0
30
16
0
0
9
14
2
Line
Line
Line
Line
1
2
3
4
Satisfied
Column
Satisfied
Column
Column Satisfied 16
Column Satisfied 0
Column Satisfied
Column Satisfied
330
Operation Research
differs-the columns are reduced by the largest number in each column.
From then on the same rules apply that are used for minimising.
Maximising example
Example 2
The previous example No.1 will be used with the changed
assumptions that the figures relate to contribution and not mileage
and that it is required to maximise contribution .The solution would
be reached as follows.(In each case the step number corresponds to
the solution given for Example No 1.)
Original data
Table 8
A
B
C
D
W
25
38
15
26
X
18
15
17
28
Y
23
53
41
36
Z
14
23
30
29
Contributions
to be gained
Step 1:
Reduce each column by the largest figure in that column
and ignore the resulting signs.
Table 9
A
B
C
D
W
X
13 10
0
13
23
11
12
0
Y
30
0
12
17
Z
16
7
0
1
330
Lesson Eight
331
Step 2. Reduce each row by smallest figures in that row.
Table 10
A
B
C
D
W
3
0
23
12
X
0
13
11
0
Y
20
0
12
17
Z
6
7
0
1
W
3
0
23
12
X
0
13
11
0
Y
20
0
12
17
Z
6
7
0
1
W
0
0
20
9
X
0
16
11
0
Y
17
0
9
14
Z
6
10
0
1
Table 13
A
B
C
D
W
0
0
20
9
X
0
16
11
0
Y
17
0
9
14
Z
6
10
0
1
QUANTITATIVE TECHNIQUES
332
Operation Research
Step 7.Calculate contribution to gained from the assignments.
C to Z
D to X
A to W
B to Y
30
28
25
53
136
Notes:
a) It will be apparent that maximising assignment problems can be
solved in virtually the same manner as minimising problems.
b) The solution methods given are suitable for any size of matrix. If a
problem is as small as the illustration used in this chapter, it can
probably be solved merely by inspection.
Unequal sources and destinations
5. To solve assignments problems in the manner described the matrix
must be square, i.e. the supply must equal the requirements. Where the
supply and requirements are not equal, an artificial source or
destinations
must
be
created
to
square
the
matrix.
The
cost/mileage/contributions etc for the fictitious column or row be zero
throughout.
Solution method
Having made the sources equal the destinations, the solutions method
will be as normal, treating the fictitious elements as though they were
real. The solution method will automatically assign a source or
destination to the fictitious row or column and the resulting assignment
will incur zero cost or gain zero contribution.
Points to note
a) The assignment technique can be used for repairing type of
problems, e.g. taxis to customers, jobs to personnel.
b) Most practical problems of size illustrated could be solved
fairly readily using nothing more than commonsense. However,
the technique illustrated can be used to solve much larger
problems.
Exercises with answers
1. A foreman has four fitters and has been asked to deal with five jobs.
The times for each job are estimated as follows:
Fitters
Alf
Job 1
Job 2
Job 3
6
22
12
Bill
Charlie
12
18
16
20
15
18
Dave
12
20
15
332
Lesson Eight
333
Job 4
Job 5
16
18
8
14
12
10
20
17
Allocate the men to the jobs so as to minimise the total time taken and
identify the job which will not be dealt with.
2.
A company has four salesmen who have to visit four clients. The
profits records from previous visits are shown in the table and it is
required to maximise profits by the best assignments.
A
6
22
12
16
12
18
16
8
20
15
18
12
12
20
15
20
C
20
D
12
Customer 1
Answers to exercises
1. Dummy fitter inserted to square matrix
A
B
1
6
12
2
22
18
3
12
16
4
16
8
5
18
14
DUMMY
0
20
0
15
0
15
0
17
0
15
18
12
10
10
16
6
10
12
10
8
0
6
0
5
8
2
0
0
8
3
8
5
0
0
0
0
4
7
5
0
6
10
2
5
2
0
0
5
0
8
5
3
0
0
3
3
5 Lines so optimum.
Assignments
B to 4
QUANTITATIVE TECHNIQUES
334
Operation Research
C to 5
A to 1
Dummy to 2
8.3
Network Analysis
This is a system of interrelationship between jobs and tasks for planning
and control of resources of a project by identifying critical part of the
project.
334
Lesson Eight
335
Terminology
Activity. Task or job of work, which takes time and resource e.g building
a bridge. Its represented by an arrow which indicates where the
task begins and ends
Event (node). This is a point in time and it indicates the start or finish of
an activity e.g in building a bridge, rails installed. Its represented
by a circle.
Dummy activity. An activity that doesnt consume time or resources, its
merely to show logical dependencies between activities so as
abide by rules of drawing a network, its represented by dotted
arrow
Network. This is a combination of activities and events (including dummy
activities)
Loop
Dangling activity
Dummy Events
This is an event that does not consume time or resources, its represented
by dotted arrow. Dummies are applied when two or more events occur
QUANTITATIVE TECHNIQUES
336
Operation Research
concurrently and they share the same head and tail events e.g. when a
car goes to a garage tires are changed and break pads as well, instead of
representing this as;
A- Tires Changed
B
CA
CR
A
Example of a network.
Activities
1-2
- where 1 is the preceding event where as 2 is the succeeding
event of the activity
1-3
2-4
2-5
3-5
4-5
4-6
5-6
6-7
4
2
6
1
3
8.4
Network Analysis-Time Analysis
Assessing the time
a) After drawing the outline of the network time durations of the
activities are then inserted.
a) Time estimates. The analysis of the projects time can be
achieved by using :
i.
Single time estimates for each activity. These
estimates would be based on the judgment of the
336
Lesson Eight
337
ii.
O P 4ML
6
11 18 4 15
6
= 14.8 days
b) Use of time estimates. as three time estimates are converted
to a single time estimate there is no fundamental difference
between the two methods as regards the basic time analysis
of a network. However, on completion of the basic time
analysis, projects with multiple time estimates can be
further analyzed to give an estimate of the probability of
completing the project by a scheduled date.
c) Time units. Time estimates may be given in any unit, i.e.
minutes , hours, days depending on the project. All times
estimates within a project must be in the same units
otherwise confusion is bound to occur.
Basic time analysis critical path
b) The critical path of a network gives the shortest time in which
the whole project can be completed. It is the chain of activities
with the longest duration times. There may be more than one
critical path which may run through a dummy.
Earliest start times (EST) Forward pass, Once the activities have
been timed we can assess the total project time by calculating
the ESTs for each activity. The EST is the earliest possible time
at which a succeeding activity can start.
Assume the following network has been drawn and the activity
times estimated in days.
2
B
D
4
2
0
QUANTITATIVE TECHNIQUES
338
Operation Research
A
1
C
3
E
1
F
2
EST
2
3
D
4
2
0
0
A
1
C
3
1
1
3
4
E
1
F
2
4
7
5
9
The method used to insert the ESTs is also known as the forward
pass, this is obtained by;
EST = The greater of [EST (tail event) + Activity
duration]
a) Start from the start event giving it 0 values,
b) For the rest of the events EST is obtained by summing the EST of
the tail event and the activity duration
c) Where two or more routes converge into an activity, calculate
individual EST per route and the select the longest route (time)
d) The EST of the finish event is the shortest time the whole project
can be completed.
Latest Start Times (LST) Backward pass. this is the latest possible
time with which a preceding activity can finish without increasing
the project duration. After this operation the critical path will be
clearly defined.
From our example this is done as follows;
2
3 3
B
2
0
0 0
A
1
1
1 1
C
3
3
4 6
LST
D
4
E
1
4
7 7
F
2
5
9
338
Lesson Eight
339
a) Starting at the finish event, insert the LST (i.e. 9 for our
example) ,and work backwards through the network.
b) deduct each activity duration from the previously calculated LST
(i.e. head LST).
c) Where the tails of activities join an event, the lowest number is
taken as the LST for that event
Critical Path. . This is the chain of activities in a network with the
longest duration Assessment of the resultant network shows
that one path through the network (A, B, D, F) has EST's and
LST's which are identical this is the critical path.
The critical path can be indicated on the network either by a
different colour or by two small transverse lines across the
arrows along the path thus in our example we have;
2
3 3
D
4
2
0
0 0
A
1
1
1 1
C
3
E
1
3
4 6
4
7 7
F
2
5
9
Activities along the critical path are vital activities which must
be completed by their EST's/LST's otherwise the project will be
delayed.
Non critical activities (in the example above, C and E) have
spare time or float available. C and/ or E could take up to an
additional 2 days in total without delaying the project duration.
If it is required to reduce the overall project duration then the
time of one or more of the activities on the critical path must be
reduced perhaps by using more labour, or better equipment to
reducing job times.
FLOAT
Float or spare time can only be associated with activities which are noncritical. By definition, activities on the critical path cannot have float.
There are three types of float, Total Float, Free Float and
Independent Float. To illustrate these types of float we use the
following example.
5
10 20
B
10
6
40 50
QUANTITATIVE TECHNIQUES
340
Operation Research
Preceding Activity
A
Duration Days
4
7
340
Lesson Eight
341
C
D
E
F
G
H
I
J
K
L
A
A
B
C
E
B,F
G,H
C
D
I,J,K
5
6
2
3
5
11
7
4
3
4
Required:
a) Draw the network diagram and find the critical path
b) Calculate the floats of the network in question
QUANTITATIVE TECHNIQUES
342
Operation Research
Solution. (a)
E
2
G
5
13
23
H
11
12
B 7
F
A
4
C
5
J
4
30
L
4
34
10
First we draw the network structure ensuring it fits the data above
We then label all activities from 1 to 12 and indicate activity
duration
Conduct a forward pass operation (to obtain the diagram above)
Operate backward pass to establish the critical path, thus we
have
342
Lesson Eight
343
E
2
G
5
13
18
11 15
12
12
B
7
0 0
A
4
23 23
F
3
C
5
J
4
9
K
D
6
10 27
Therefore we get the critical path to be, A-C-F-H-I-L
QUANTITATIVE TECHNIQUES
30
30
L
4
34 34
344
Operation Research
b)
The floats of the network,
Activity EST
*A
B
*C
D
E
*F
G
*H
*I
J
K
*L
0
4
4
4
11
9
13
12
23
9
10
30
LST
EFT
0
4
4
4
15
9
21
12
23
9
22
30
4
11
9
10
13
15
23
23
30
30
30
34
Activit
y
Durati
on
LFT
D
4
15
9
22
21
15
23
23
30
30
30
34
Total Float
LFT -ESTD
4
7
5
6
2
3
5
11
7
4
3
4
Free
Float
Independ
ent Float
EFT-EST-D EFT-LST-D
4
12
8
5
17
17
-
5
17
17
-
17
5
-
Time required
(sum of
duration)
14
7
9
4
Time available
Total Float over
st
(LFT of last activity-EST of 1
chain
activity)
19
5
8
1
26
17
21
17
Slack
This is the difference between the EST and LST for each event. Strictly it
does not apply to activities but on occasions the terms are confused in
examination questions and unless the context makes it abundantly clear
that event slack is required, it is likely that some form of activity float is
required. Events on the critical path have zero slack.
8.5
Cost Scheduling
This is done by calculating the cost of various project durations, cost
analysis seeks to find the cheapest way of reducing the overall cost
duration of a project by increasing labour hours, equipment e.t.c.
Terminologies
Normal cost. The costs associated with a normal time estimate for an
activity. Often the normal time estimate is set at the point
where resources (labour, equipment, etc.) are used in the most
efficient manner.
STRATHMORE UNIVERSITY STUDY PACK
344
Lesson Eight
345
Crash cost. The costs associated with the minimum possible time for an
activity. Crash costs, because of extra wages, overtime
premiums, extra facility costs are always higher than normal
costs.
Crash time. The minimum possible time that an activity is planned to
take. . The minimum time is invariably brought about by the
application of extra resources, e.g. more labour or machinery.
Cost slope. This is the average cost of shortening an activity by one time
unit (day, week, month as appropriate). The cost slope is
generally assumed to be linear and is calculated as follows:
Cost slope = Crash cost Normal cost
Normal time Crash cost
Example
A project has the following activities and costs
Activity
Precedi
ng
Activity
A
A
B,C
A
B
C
D
E
Duratio
n
days
4
8
5
9
5
Crash
time
Cost
(Shs).
Crash
cost
Cost
slope
3
5
3
7
3
360
300
170
220
200
420
510
270
300
360
60
70
50
40
80
1
4
D
9
C
4
0
0
3
14 14
B
4
2
9
QUANTITATIVE TECHNIQUES
346
Operation Research
(b)
Reduce by 1 day the activity on the critical path with the lowest
cost slope. Thus we reduce C at extra cost of Shs. 50.
Now
Project duration = 13 days
Project cost = Shs. 1,300
Note: that all activities are now critical.
(c)
Further reducing the critical path by 1 day will require that more
than one activity is affected because there exist several critical
paths.
Reduce by 1
day
A and B
D and E
B, C and D
Extra cost
Activities
critical
All
All
All
60 + 70 = 130
40 + 80 = 120
70 + 50 + 40 =
160
60 + 80 = 140
E and E
A, D, B, E
1
3
D
3
3
(crash)
1
2
1
2
5
C
E
4
0
0
(d)
B
0
2
7
346
Lesson Eight
347
Project duration = 11 days
Project cost = 1,510
Critical activities = All
(e)
QUANTITATIVE TECHNIQUES
348
Operation Research
1
3
A
D
3
3
(crash)
7
(Crash
)
1
0
C
0
0
B
0
3
(crash)
1
0
Duration = 10 days
Cost = Shs. 1,670
Critical activities = All.
Note: only critical activities affect project duration.
: Always look for a possibility of increasing the duration of a
previously
crashed activity.
SCHEDULING RESOURCES AND GANTT CHART
Apart from time, cost network analysis also help in controlling and
planning of resources.
Example
A project has the following activity durations and resource requirements.
Activit
y
A
B
C
D
E
F
Preceding
activity
C
B
D
Duration
(days)
6
3
2
2
1
1
Resource requirement
(man power)
3
2
2
1
2
1
Required
i)
What is the networks critical path
ii)
Draw a gantt chart diagram indicating activity times, using their
estimate.
iii)
Show resource requirement on a day to day basis assuming all
events commence at their estimates.
348
Lesson Eight
349
iv)
Assuming that only six employees are available, how will the
activities be planned for?
QUANTITATIVE TECHNIQUES
350
Operation Research
Solution
i)
Activities
A
B
C
D
E
F
ii)
Duration
6
3
2
2
1
1
EST
0
0
0
2
3
4
LST
0
0
0
3
5
5
Man power
3
2
2
1
2
1
350
Lesson Eight
351
iii)
iv)
QUANTITATIVE TECHNIQUES
352
Operation Research
352
Lesson Eight
353
Node Networks
This network also known as a procedure diagram is represented with the
same information as a network diagram.
Its characteristics are;
i)
Activities are shown in boxes instead of arrows
ii)
Events are not represented.
iii)
The arrows linking boxes indicate the sequence precedence
of activities.
iv)
Dummies arent necessary.
E.g.
Would appear as
QUANTITATIVE TECHNIQUES
354
Operation Research
Note:
i)
EST and LST are calculated by the same process we learnt earlier.
ii)
EFT and LFT are calculated by adding the activity time duration to
EST and LST respectively.
iii)
Critical path is similarly identified by identifying equal EST and
LST throughout the path.
354
Lesson Eight
355
REINFORCING QUESTIONS
QUESTION ONE
a) M & K Contractor pays his subcontractors a fixed fee plus mileage or
travelling expenses for work per formed. On a given day, the
contractor is faced with three electrical jobs associated with various
projects (A, B and C).
M & K contractor has four electrical
subcontractors (Wesside, Federal, National and Universal) who are
located at various places throughout the area. Given below are the
distances in kilometres) between the subcontractors and the projects.
Wesside
Subcontractors Federal
Naitonal
Universal
A
km
50
28
35
25
Projects
B
km
36
30
32
25
C
km
16
18
20
14
Required:
i) Represent the above problem in a network.
ii) Determine how subcontractors should be assigned in order to
minimise the total costs.
b) Explain the assumptions of the quantitative techniques you have used
to
solve
part
(a)
above.
(Q6 Dec. 1999)
QUESTION TWO
Regal Investments has just received instructions from a client to invest in
two shares; one an airline sha re, the other an insurance share. The total
maximum appreciation in share value over the next year is to be
maximized subject to the following restrictions:
the total investment shall not exceed Sh.100,000
at most Sh.40,000 is to be invested in the insurance shares
quarterly dividends must total at least Sh.2,600
The airline share is currently selling for Sh.40 per share and its quarterly
dividend is Sh.1per share. The insurance share is currently selling for
Sh.50 per share and the quarterly dividend is Sh.1.50 per share. Regals
analysts predict that over the next year, the value of the airline share will
increase by Sh.2 per share and the value of the insurance share will
increase by Sh.3 per share.
A computer software provided the following part solution output:
Objective Function Value = 5,400
Variable
Number
Reduced cost
Airline shares
1,500
0.000
QUANTITATIVE TECHNIQUES
356
Operation Research
Insurance shares
800
Constraint
Slack/Surplus
Total investment
0.000
Investment in insurance
0.000
Dividends
100.000
0.000
Dual prices
0.050
0.010
0.000
356
Lesson Eight
357
Objective Coefficient Ranges
Variable
Lower limit
Airline share
2.500
Insurance share
0.000
Current value
3.000
2.000
Upper limit
No upper limit
2.400
358
Operation Research
supplier delivers 100 kilogrammes of the aluminium alloy and 80
kilogrammes of the steel alloy weekly.
Deluxe
Professional
Aluminium alloy
2
4
Steel alloy
3
2
Required:
i) Determine the optimal weekly production schedule.
ii) Within what limits must the unit profits lie for each of the frames
for this solution to remain optimal?
b) Explain the limitations of the technique you have used to solve part (a) above.
(Q 6 Dec 2000)
QUESTION FIVE
a) Define the following terms as used in linear programming:
i) Feasible solution
ii) Transportation problem
iii) Assignment problem
b) The TamuTamu products company ltd is considering an expansion
into five new sales districts. The company has been able to hire four
new experienced salespersons. Upon analysing the new salespersons
past experience in combination with a personality test which was
given to them, the company assigned a rating to each of the
salespersons for each of the districts .These ratings are as follows:
c)
Salespersons
A
B
C
D
Districts
1
2
92
90
84
88
90
90
78
94
3
94
96
93
89
4
91
82
86
84
5
83
81
93
88
The company knows that with four salespersons, only four of the five
potential districts can be covered.
Required:
i) The four districts that the salespersons should be assigned to in
order to maximize the total of the ratings
ii) Maximum total rating.
(Q 6 June
2002)
QUESTION SIX
358
Lesson Eight
359
a) Explain the value of sensitivity analysis in linear programming
problems and show how dual values are useful in identifying the
price worth paying to relax constraints.
b) J.A Computers is a small manufacturer of personal computers. It
concentrates on production of three models- a Desktop 386, a
Desktop 286, and a Laptop 486, each containing one CPU Chip. Due
to its limited assembly facilities JA Computers are unable to produce
more than 500 desktop models or more than 250 Laptop models per
month. It has one hundred and twenty 80386 chips (these are used in
Desktop-386) and four hundred 80286 chips (used in desktop 286
and Laptop 486) for the month. The Desktop 386 model requires five
hours of production time, the Desktop 286 model requires four hours
of production time, and the Laptop 486 requires three hours of
production time. J.A Computers have 2000 hours of production time
available for the coming month. The company estimates that the
profit on Desktop 386 is Sh. 5,000. for a desktop 286 the profit is
Sh.3,400 and Sh.3,000 profit for a laptop 486.
QUANTITATIVE TECHNIQUES
360
Operation Research
Required:
Formulate this problem as a profit maximization problem and
mention the basic assumptions that are inherent in such models.
c) An extract of the output from a computer package for this problem is
given below:
Output solution
X1=120, X2=200, X3=200
Dual values
Constraints 3
150
Constraints 4
90
Constraints 5
20
Sensitivity analysis of objective function coefficients:
Variabl
e
X1
X2
X3
Lower
limit
100
150
127.5
Origina
l value
250
170
150
Upper
limit
No limit
200
170
Original
value
500
250
120
400
2000
Upper
limit
No limit
No limit
130
412.5
2180
Lower
limit
320
200
80
350
1950
360
Lesson Eight
361
Terminals for each of its many stores will be networked for fast,
dependable service. The specific activities that Preface will need to
accomplish before the system is up and running are listed below. The
table also includes the necessary increased staffing to undertake the
project.
QUANTITATIVE TECHNIQUES
362
Operation Research
Activity
Preceding
Activities
A
B
A
D, E
B
C, F
G, H
Duratio
n
(Days)
4
1
3
2
4
2
5
2
3
Increas
ed
Staff
1
3
2
1
2
2
1
1
1
Required:
a) Draw a network diagram for the project and determine the critical
path and its duration.
b) Assuming that all activities start as soon as possible, draw a
progress chart for the project, showing the times at which
each activity takes place and the manpower requirements.
c) The union has decided that any staff employed on the project must
be paid for the duration of the project whether they work or
not, at a rate of 500 per day.
Assuming that the same staff is employed on the different
activities, determine the work schedule that will minimise
labour costs through not necessarily the project time. What is
the cost associated with this schedule?
Comment on the validity of the assumption.
QUESTION EIGHT
A particular project comprises 12 activities which have the following
durations and precedences:
Activity
A
B
C
D
E
F
G
H
I
J
Duration
(days)
3
5
7
2
9
6
5
6
3
4
Immediately preceding
activities
A
L
L
B, C
E
B, C
A
I
362
Lesson Eight
363
K
L
4
4
D, F
-
Required:
a)
i.
Represent the project by means of a network diagram
ii.
Show the earliest and latest times of each activity
iii.
Determine the critical path and minimum completion time of
the project
b)
Calculate the total floats for each activity and explain how
they can be of use when allocating resources.
c)
G
A
H
B
I
A
J
B
K
B
QUANTITATIVE TECHNIQUES
364
Operation Research
COMPREHENSIVE ASSIGNMENT FOUR
QUESTION ONE
a) Define the following terms used in game theory:
i) Dominance.
marks)
ii) Saddle point.
marks)
iii) Mixed strategy.
marks)
iv) Value of the game
marks)
(2
(2
(2
(2
b) Consider the two person zero sum game between players A and B
given the following pay-off table:
Player
Strategies
Player B Strategies
1
2
A 1
-1
Required:
i) Using the maximin and minimax values, is it possible to determine the
value of the game?
Give reasons.
(3
marks)
ii) Use graphical methods to determine optimal mixed strategy for
player A and determine
the value of the game.
(9
marks)
(Total:
20
marks)
QUESTION TWO
Central and Eastern Industries is planning to introduce a new mobile
phone service. To do so, the following activities are necessary:
Preceding
Expected
Standard
Activity
Activity
Time
Deviation
(weeks)
(weeks)
A
6
1.0
B
3
0.5
C
A
5
1.0
D
A
4
1.0
E
A
3
0.5
F
C
3
0.5
G
D
5
1.0
STRATHMORE UNIVERSITY STUDY PACK
364
Lesson Eight
365
H
I
J
B.D.E
H
F.G.I
5
2
3
1.0
0.5
1.0
The costs of the project are estimated to be Sh.10 million. If the projects
is completed within 24 weeks the expected net revenue will be about
Sh.100 million but if the deadline of 24 weeks is not met, the service will
fail to penetrate the market and a net revenue of Sh.2 million is
expected.
Required:
a) Determine how long the project would take.
(8 marks)
b) If the start of activities B, E and G are respectively delayed b 3,2 and
2 weeks,
how would this affect the total project time?
(6 marks)
c) Determine a 95% confidence interval for the expected time of the
project
and explain your answer. Ignore the delays referred to in (b) above.
(3 marks)
d) Determine the expected profit on this project. Again ignore the
delays referred
in (b) above
(3
marks)
(Total:
20
marks)
QUESTION THREE
a) Explain the value of sensitivity analysis in linear programming
problems and show how dual values are useful in identifying the price
worth paying to relax constrains. (4marks)
b) J.A Computers is a small manufacturer of personal computers. It
concentrates production on three models, a Desktop 286,and a laptop
486,each containing one CPU Chip. Due to its limited assembly
facilities J.A Computers are unable to produce more than 500 desktop
model or more than 250 Laptop models per month. It has one
hundred and twenty 80386 chips (these are used in Desktop 386)
and four hundred 80286 chips(used in desktop 286 model requires
four hours of production time, and the laptop 486 requires three
hours of production time.
J.A Computers have 2000hours of
production time available for the coming month. The company
estimates that the profit on a desktop 386 is Sh.5000, for a desktop
286 the profit is Sh.3400 and Sh.3000 profit for a Laptop 486.
Required:
Formulate this problem as a profit maximization problem and mention
the basic
QUANTITATIVE TECHNIQUES
366
Operation Research
assumptions that are inherent in such models.
(7 marks)
a) An extract of the output from a computer package for this problem is
given below:
Output solution
X1 = 120, X2 = 200, X3 = 200
Dual values Constraints 3
150
Constraints 4
90
Constraints 5
20
=
=
=
on R. H. S ranges
Lower limit
320
200
80
350
1950
Upper limit
No limit
200
170
Original value
500
250
120
400
2000
Upper limit
No limit
No limit
130
412.5
2180
366
Lesson Eight
367
Required:
i) Interpret the output clearly, including optimum product mix, monthly
profit,
unused resources and dual values.
(3
marks)
ii) Explain the purpose of upper limits for the variables X 1, X2 ,X3 and
constraints 1 to 5.
(3
marks)
iii) Calculate the increase in profit if the company is able to produce a
further
10 CPU 80836 chips.
(3
marks)
(Total:
20
marks)
QUESTION FOUR
a) Give two applications of simulation in business.
marks)
(2
of Net
income
(Sh.)
500,000
100,000
(200,000)
From past experience, there is a 10 per cent probability that the harvest
will be low, a 30 pr cent probability that the harvest will be medium and
a 60 per cent probability that the harvest will be high. Collins Simiyu
can engage an agricultural expert to carry out a survey on the
productivity of the land, which will cost him Sh.30,000. The agricultural
expert gives the following information as to the reliability of such surveys
(prior probabilities).
Results
survey
of State of harvest
Accurate
Not accurate
High
0.35
0.25
0.60
Medium
0.10
0.10
0.20
Low
0.05
0.15
0.20
Total
0.5
0.5
1.0
QUANTITATIVE TECHNIQUES
368
Operation Research
Required:
i) Construct a decision tree for the above problem.
(6 marks)
ii) The expected monetary value for each decision
(10 marks)
iii) The decision that you would recommend
marks)
(2
(Total:
marks)
20
QUESTION FIVE
a) Explain the difference between
problems.
(4 marks)
1
37.0
57.0
22.0
39.0
2
27.0
22.0
25.0
42.0
Client
3
34.0
79.0
61.0
54.0
4
21.0
34.0
45.0
43.0
Required:
i) The assignments to be made in order to minimize the total cost of the
engineers.
(10 marks)
ii) The minimum cost of using engineers.
(12 marks)
(Total:
20
marks)
368
Lesson Eight
369
QUESTION SIX
a) Define the following terms as used in the network analysis:
i) Crash time
marks)
ii) Optimistic time
marks)
iii) Forward pass
marks)
iv) Dummy activity
marks)
v) Slack
marks)
(2
(2
(2
(2
(2
Duration
(Weeks)
3
1
3
2
2
4
2
2
2
Required
number
technicians
2
4
4
2
4
4
2
2
2
of
Required:
i) Draw a gantt chart for the project.
(6
marks)
ii) Mr. Mutiso would like to reschedule activities so that not more than 6
technicians
are required each week.
Determine if this is possible and how it can be achieved by
rescheduling
the activities.
(4
marks)
(Total:
20
marks)
QUESTION SEVEN
QUANTITATIVE TECHNIQUES
370
Operation Research
Regal investments has just received instructions from a client to invest
in two shares; one an airline share, the other an insurance share. The
total maximum appreciation is share value over the next year is to be
maximized subject to the following restrictions:
The total investment shall not exceed Sh.100,000
At most Sh.40,000 is to be invested in the insurance shares
Quarterly dividends must total at least Sh.2,600
The airline share is currently selling for Sh.40 per share and its quarterly
dividend is Sh.1 per share. The insurance share is currently selling for
Sh.50 per share and the quarterly dividend is Sh.1.50 per share. Regals
analysts predict that over the next year, the value o f the airline share
will increase by Sh.2 per share and the value of the insurance share will
increase by Sh.3 per share.
A computer software provided the following part solution output:
Objective Function Value = 5,400
Variable
Number
Airline shares
Insurance shares
1,500
800
Reduced
cost
0.000
0.000
Constraint
Total investment
Investment in insurance
Dividends
Slack/Surplu
s
0.000
0.000
100,000
Dual
prices
0.050
0.010
0.000
Objective
Ranges
Variable
Lower limit
coefficient
Airline share
2.5000
Current
value
3.000
Insurance share
0.000
2.000
Lower limit
Total investment
96,000.00
Current
value
100,000
Investment in insurance
Dividends
20,000.00
No lower limit
40,000
2,600
Required:
i) Formulate the above problem.
marks)
Upper limit
No
limit
2.400
upper
Upper limit
No
upper
limit
100,000.00
2,700.00
(7
370
Lesson Eight
371
ii) Explain what reduced cost and dual prices columns above mean.
(5 marks)
iii) How should the clients money be invested to satisfy the restrictions?
(4 marks)
iv) Suppose Regals estimate of the airline shares appreciation is in error,
within
what limits must the actual appreciation lie for the answer in (c)
above to
remain optimal?
(4
marks)
(Total:
20
marks)
QUESTION EIGHT
The linear programming model and output model below represent a
problem whose solution will tell a road side kiosk owner how many of the
four different types of household goods to stock in order to maximize
profits. It is assumed that every item stocked will be sold. The variables
measure the packets of Unga, Spaghetti, Rice and Sugar to stock
respectively. The constraints measure storage space in units, special
display racks, demand and a marketing restriction, respectively.
Maximize Z = 4X1+ 6X2+ 5X3+ 3.5X4
Subject to :
2X1 + 3X2+ 3X3+ X1 120
1.5X1 + 2X2
54
2X2 + X3 + X4
X2 + X3
12
Where X1
X2
X3
X4
Optimal
solution
Variable
X1
X2
X3
X4
Constraint
1
2
3
=
=
=
=
packets
packets
packets
packets
120 (1)
(2)
72 (3)
(4)
of
of
of
of
Unga
Spaghetti
Rice
Sugar
Value
12.00
0.00
12.00
60.00
Reduced cost
0.50
-
Stack/surp
lus
-
Dual/shadow
price
2.00
1.50
QUANTITATIVE TECHNIQUES
372
Operation Research
4
-2.50
1.50
No limit
4.50
3.00
Current
value
-
Upper
limit
5.00
6.50
7.50
No limit
Current value
Upper limit
168
No limit
96
24
Required:
a) Determine the retailers optimal profit level.
(2 marks)
b) Determine and interpret the missing values under:
i)
372
Lesson Eight
373
(Total:
marks)
QUANTITATIVE TECHNIQUES
20
374
Lesson Nine
LESSON NINE
9. Revision Aid
SOLUTIONS
LESSON ONE
QUESTION ONE
1. 3, 12
2. 12, 0
3. 10, 4
8,
4.
QUESTION TWO
a) x 0, y 4; b) x 3, y 3; c) x 10.5, y 36
QUESTION THREE
60
1. The vector for final demand = 60
60
The input/output coefficient matrix (also called the matrix for
technical coefficients). Call it A
80
320
80
320
80
320
100
400
200
400
100
400
100
300
60
300
100
300
4
2
4
1
1
1
5
3
X = AX + Y
X = (I A )-1Y
1 0 0
I A 0 1 0
0 0 1
1
1
1
4
4
4
1
1
1
1
4
1 3
14
5
14 13
1
1
2
5
1 4 2 3
Revision Aid
375
Inverse (I - A)-1=
240
23
17
60
13
60
3
16
1
4
5
12
1
4
68 60 52
1
52 100 56
23
45 60 75
13
60
7
30
5
16
10,800
68 60 52 60
1
1
52 100 56 60
17, 480
Therefore X =
23
23
45 60 75 60
10,800
469.57
= 542.60
469.57
QUESTION FOUR
i)
0.4 0.6
0.5 0.25
ii)
t1
t2
b1
b
2
Put t1= 400 and t2= 700 and the matrix equation becomes.
b
0.4 0.6 400
1
0.5 0.25 700
b2
That is
iii)
which is
0.4 0.6
0.5 0.25
1.25 3.0
2.5 2.0
QUANTITATIVE TECHNIQUES
376
Lesson Nine
t1
1.25 3.0
t 2.5 2.0
600
450
Thus;
t1 = - 1.25600 + 3.0 450
= 600 kilos
and
t2= - 2.5600 - 2 .0 450
= 600 kilos
QUESTION FIVE
i)
A3 =
A2 =
ii)
F(A)
10
-2
-3
-3
-3
15
20
-2
14
26
-3
-3
15
39
-51
A3 3A2 2A + 41
14
26
10
-2
-3
-2
+4
39
-51
-3
15
-3
14
26
30
39
-51
-9
45
-6
-16
28
42
-86
iii)
-3
1_
A-1 = -12
-2
=
-3
1
4
1
4
1
6
-1
6
Revision Aid
377
QUESTION SIX
i)
12
10
15
15
20
18
16
24
22
348
=
536
660
=
348 pence
536 pence =
660 pence =
15
3,000
=
3.48
5.36
6.60
ii)
10
15
16
20
24
100
10
4,300
80
1,480
50
or (100 80
15
50)1520
16
620
24
NP =
Cost
Cost
Cost
Cost
of
of
of
of
10
60
12
0
50
20
storage maintenance
2
3
2
storing in warehouse Y
storing in warehouse W
maintaining warehouse Y
maintaining warehouse W
0.5
1.5
0.5
156
160
= 156p
=160p
= 48p
= 40p
QUANTITATIVE TECHNIQUES
48
40
=
=
=
1.56
=
1.60
0.48
0.40
378
Lesson Nine
b)
A
storage
10
10
50
20
3
2
1.5
0.5
maintenance
Day I
cost in
W
40
A
10
10
60
0.5
20
3
2
1.5
0.5
0.5
=
120
150
45
30
pence
storage
maintenance
Day II
191
60.5
cost
165
52.5
pence
in
40
15
150
45
C
191
60.5
165
52.5
+3 X
120
30
Cost in pence
Revision Aid
379
LESSON TWO
QUESTION ONE
a) 6
b)
c)
2
x3
1
1 2x
1
y
2x x
y
d)
QUESTION TWO
dc
2Q 30
dQ
Therefore Q = 15 at minimum
d 2c
2 Note: which is positive indicating a minimum value
dQ 2
QUESTION THREE
n() = 250
P + 12 + 59 = 147 giving P = 76
Q + 59 + 37 = 102 giving Q = 6
i)
ii)
QUANTITATIVE TECHNIQUES
380
Lesson Nine
x = 12 + 59 + 6 = 77
z = 37 + 14 + 6 = 57
iii)
i)
R 14 81x
x3
12
dR
3x 2
81
dx
12
d 2R
6x
x
0
2
dx
12 2
t 81
i.e.
x2
0 hus
4
81 x = 0
x =18 or 18
d2R
=
dx2
when x = 18,
-9
which is negative
iii)
= 45.78
i.e.
Ksh.54.78
QUESTION FIVE
Revision Aid
381
i)
Note: Profit
=
=
Revenue Cost
RC
grad of
=
Grad of R grad of C
(marginal Revenue marginal Cost)
=
Grad of =
Marginal cost
PRODUCTION DEPARTMENT
Marginal Revenue
20,000
Giving Q
=
ii)
=
6 + 6 0.8
Shs.10.8 per unit
20,000
Q
+ 6.0002 =
=
10.8
20,000
4.7998
4,166.84
4,167 units
SALES DEPARTMENT
Profit =
Revenue =
2,000p)
Revenue Cost
Sales price x Quantity
=
Cost
=
=
=
=
p(40,000
40,000p 2,000p
2 X q + 6,000 + 6q + 80% of 6q
2q + 6p + 4.8q + 6,000
12.8q + 6,000
12.8 (40,000 2,000p) + 6,000
Profit =
2,000p)]
-4,000p + 65,600
d
dp
QUANTITATIVE TECHNIQUES
382
Lesson Nine
d 2
dp 2
65,600
Selling price
iii)
-4,000p + 65,600
400
When
d
dp
= 0
16.4
Shs.16.4
Shs.68,338.8
Cost of production
Production Department
Sales Department
Total
Profit
iv)
59,336.83
Shs.59,336.85
68,338.8 59,336.85
Shs.9,002
Cost
Profit
26,000]
=0
and
d 2
dp 2
is ve
-4,000p + 56,000.4
Revision Aid
383
Therefore
d 2
dp 2
-4,000p + 56,000.4 = 0
-4,000
Quantity
which is ve
=
47,998
=
=
40,000 2,000 14
12,000 units.
QUESTION SIX
a) Quadratic functions in decision making.
Due to economies of scale, the cost of production is usuall dependent
upon volume of sales.
Total revenue = sale price per unit quantity sold (say x)
Sales price is usually a function of x; f(x).
Hence total revenue = f(x) x
; which may be a
quadratic function
Using calculus techniques (i.e. maxima and minima) we can
calculate the optimum value of x, which might give maximum
profits or minimum costs.
b) Demand function p = 400 q
Average
quantity
total
=
Hence total
cost
of
the
100
100 5q q 2
q
1000
1000
Fixed cost
ii.
QUANTITATIVE TECHNIQUES
384
Lesson Nine
300q 4q 2 q 3 1000
d
d
300 8q 3q 2 (puting
=0 )
dq
dq
8 60.53
we get q
11.422 Kg (note that the negative part of q is invalid)
6
d 2
8 6q
dq 2
for q 11.422 ;
d 2
is negative, it gives the mximumvalue of
dq 2
iii.
(13 x 13 y 2 x 2 2 y 2 2 xy ) ( x y )
12 x 12 y 2 x 2 2 y 2 2 xy
Revision Aid
385
px 13 2 x y 0 (Product
Using partial differentiation and standard calculus techniques for maxima and minima
12 4 x 2 y ,
12 2 x 4 y
x
y
2
4 x (-ve),
x 2
2
4 (-ve)
y 2
2
2
xy
Rules :
For maximum or minimum values
0 ,
0
x
y
2 2
2
For maximum value
2
y 2
xy
x
In this case, 12 2 x 4 y 0 ; 12 4 x 2 y 0
which gives; x 2units, y 2units
other conditions are also certified.
Price Px 13 4 2 7
Price Py 13 2 4 7
QUESTION SEVEN
i.
4 12
y
820
Note that 640, 000 has been written as 640 (in thousands)
5
multiplying both sides with an inverse matrix of
4
12
1
8
1 12 8 5 8 x
60 32 4 5 4 12
60 32 4 5
y
1 28 0 x 1 1120
28 0 28 y 28 1540
x 40
y 55
thus x 40, y 55
ii.
1. Marginal productivity
QUANTITATIVE TECHNIQUES
8
we get;
12
640
820
386
Lesson Nine
60
10 (this is the rate of change)
x2
total productivity P is given by the function
60
10 dx
2
x
60
10 x C where C is a constant
x
For the values; x 5 and P 62
60
we have; 62
10(5) C
5
thus C 24
60
Hence P
10 x 24
x
when x 10
60
P
10(10) 24 118 furnaces
10
P
Revision Aid
387
LESSON THREE
QUESTION ONE
a) Discrete data have distinct values with no intermediate points, whereas
continuous data can have any values over a range either a whole number
or any fraction.
b) Dispersion is the variation or scatter of a set of values.
Standard deviation is represented by;
x x
n 1
x x
coefficient of variation
100%
x
.
d) See Text
QUESTION TWO
a)
Payment in daysMid-point
59
10 14
5 19
20 24
25 29
30 -34
35 39
40 44
Arithmetic Mean
x
7
12
17
22
27
32
37
42
Number of
customers
f
4
10
17
20
22
16
8
3
100
fx 2, 405 24.05days
f 100
QUANTITATIVE TECHNIQUES
f
28
120
289
440
594
512
296
123
2,405
fx2
196
1,440
4,913
9,680
16,038
16,384
10,952
5,292
64,895
388
Lesson Nine
b)
fx
f
Standard deviation
64,895 2, 405
100
100
fx
f
8.4
c) Histogram to show payment record of 100 customers
Number of
Customers
25
22
20
20
17
15
16
10
10
8
4
3
4.5
9.5
14.5
19.5
24.5
29.5
34.
39.5
44.5
Days taken to
settle debt
d) Out of 100, 16 i.e. in the class 30 to 34 days and 8 lie in the class 35 to
39 days. Therefore, the best estimate that an unpaid invoice chosen at
random will be between 30 and 39 days old is
2,478
64
0.24
QUESTION THREE
a) The smallest value in the distribution is 105, the largest in the
distribution is 142. The range to be spanned is 142 105, i.e. 37. The
following grouping is a suggestion.
The classes should be of equal
Group
105 but less than 110
110
115
115
120
120
125
width.
Tally
II
IIII
IIII
IIII III
Frequency
2
5
4
8
Revision Aid
389
125
130
135
140
130
135
140
145
IIII
IIII
IIII
II
IIII
10
5
4
2
40
FrequencyCumulative
Frequency
2
2
5
7
4
11
8
19
10
29
5
34
4
38
2
40
GRAPH MISSING
SummaryMedian value
First quartile
Third quartile
=
=
=
125 p
119 p
131 p
(third quartile
=
(131 119)
12
6p
c)
Group
105 but less than 110
110
115
115
120
120
125
125
130
130
135
Mid-point
107.5
112.5
117.5
122.5
127.5
132.5
QUANTITATIVE TECHNIQUES
f
2
5
4
8
10
5
fx
215.0
562.5
470.0
980.0
1,275.0
662.5
390
Lesson Nine
135
140
140
145
137.5
142.5
4
2
40
550.0
285.0
5,000
***
fx
f
Thus
***
5,000 40
**
125p
Continuing now with *** = 125 we can calculate the standard deviation
Group
105 but less than
110
115
120
125
130
135
140
110
115
120
125
130
135
140
145
x
107.5
112.5
117.5
122.5
127.5
132.5
137.5
1425
(x x)
-17.5
-12
.-7.55
-2.5
2.5
7.5
12.5
17.5
f
2
5
4
8
10
5
4
2
40
f (x-x)2
612.50
781.25
225.00
50.000
62.50
281.25
625.00
612.50
3,250.00
ii)
fx
f
formula
Revision Aid
391
Supermarket A
Mean
Standard Dev
599
12
=
=
49.92
30.49
30.5
Supermarket B
Mean
=
=
Standard Dev
613
12
51.08
51.1
=
34.25
30.5
100
49.92
61.1%
34.25 100
51.1
67.02
QUESTION FIVE
The objective of this question is to test the candidates knowledge of:
Use of base and current weighting index numbers and contrast their
construction.
a) To establish the base weighted indices, the weights are the quantities
used in 1981. the following tabulation leads to the solution.
For 1981
Competent
A
B
C
D
Weight
Price ()
3
4
1
7
3.63
2.11
10.03
4.01
QUANTITATIVE TECHNIQUES
Price X weight
()
10.89
8.44
10.03
28.07
57.4
392
Lesson Nine
For 1982
Competent
Weight
Price ()
3
4
1
7
4.00
3.10
10.36
5.23
Weight
Price ()
3
4
1
7
4.49
3.26
12.05
5.21
A
B
C
D
For 1983
Competent
A
B
C
D
Price X weight
()
12.00
12.40
10.36
36.61
71.37
Price X weight
()
13.47
13.04
12.05
36.47
75.03
100
71.37
100
57.43
75.03
1983
100
57.43
124.27
130.65
Weight
1981
Price ()
A
B
C
D
2
5
1
6
3.63
2.11
10.03
4.01
1981
Price X
Weight
()
7.26
10.55
10.03
24.06
51.90
1982
Price ()
4.00
3.10
10.36
5.23
1982
Price X
Weight
()
8.00
15.50
10.36
31.38
65.24
Revision Aid
393
65.24
51.90
Compon
ent
Weight
1981
Price ()
A
B
C
D
2
6
1
5
3.63
2.11
10.03
4.01
1981
Price X
Weight
()
7.26
12.66
10.03
20.05
50.00
1982
Price ()
4.49
3.26
12.05
5.21
1982
Price X
Weight
()
8.98
19.56
12.05
26.05
66.64
50.00
Quantit
y
Price
Quantity
Price
Quantity1
(1982)
1982
1983
982
QUANTITATIVE TECHNIQUES
394
Lesson Nine
X Price1982
A
B
C
D
E
10
6
5
9
50
3.12
11.49
1.40
2.15
0.32
31.20
68.94
7.00
19.35
16.00
142.49
X
Price1982
3.17
11.58
1.35
2.14
0.32
31.70
69.48
6.75
19.26
16.00
143.19
143.19 100
142.49
100.49
For 1984
Compone
nt
Quantity
Price
1982
10
6
5
9
50
1984
3.2
11.67
1.31
2.63
0.32
A
B
C
D
E
Quantity
1982
X Price 1984
32.00
70.20
6.55
23.67
16.00
148.24
148.24
100
142.49
104.04
Quantit
y
Price
(1982)
Quantity
Price
1982
1983
X Price1982
STRATHMORE UNIVERSITY STUDY PACK
Quantity19
82
X Price1982
Revision Aid
395
A
B
C
D
E
12
7
8
9
53
3.12
11.49
1.40
2.15
0.32
37.44
80.43
11.20
19.35
16.96
165.38
3.17
11.58
1.35
2.14
0.32
38.04
81.06
10.80
19.26
16.96
166.12
100.45
For 1984
Compone
nt
Quantit
y
A
B
C
D
E
14
5
9
10
57
Price
Quantity
(1982)
1982
82
X Price1982
X Price1982
3.12
11.49
1.40
2.15
0.32
43.68
57.45
12.60
21.50
18.24
153.47
Price
1983
3.20
11.67
1.31
2.63
0.32
Quantity19
44.80
58.35
11.79
26.30
18.24
159.48
159.48
100
153.47
103.92
Laspeyre
s
100.49
104.03
Paasch
e
100.45
103.92
QUANTITATIVE TECHNIQUES
396
Lesson Nine
either grown or declined over the previous month or year. The full
index would be made up from components which apply to particular
sectors and so it is possible for an employer to measure increase or
decrease in production in that sector and increase in production may
thus be rewarded and a decrease would be looked upon with less
favour.
An index of retail prices would also probably be calculated on a month
by month basis by central government, and is an indication in
percentage terms of the increase or decrease in retail prices. This
measure is often used to quantify inflation. A trade union may
therefore argue its case for an increase in pay to be greater than or
equal to the rate of inflation to keep up with the cost of living and not
decrease the living standard s of its members. An index of wages may
also be published by central government, and may be available for
different industrial sectors.
QUESTION SEVEN
Note: The production for 1980 and 1990 is given in 1,000 boxes. As
long as units are kept the same throughout the problem, the rates will
not change.
Produc
e
Cabbag
es
Tomato
es
Onions
Spinach
Production
1,000 boxes
1980(
%)
48,600
1990(
%)
62,000
22,000
Price per
box
Po(Shs)Pn
1980
1990
Pn
Po
100
150
1.5
37,440
220
310
1.4091
47,040
61,430
180
200
1.1111
43,110
55,720
130
170
1.3077
5.3279
Po Qo
po q o
4,860,00
0
4,840,00
0
8467,200
7,290,00
0
6,820,00
0
9,408,00
0
7,328,70
0
30,846,7
00
5,604,30
0
23,71,50
0
5.3279
133.20
30,846,700
100
23,771,500
% increase 29.76%
129.76
Revision Aid
397
c) Paasches Price Index
pnqn 100
pOqn
And
d) Marshall Hedge-worth index =
Pn(qn + qn) 100
PO (qn + q n )
Cabbages
Tomatoes
Onions
Spinach
pnqn
9,300,000
poqn
6,200
pn + qn
110,600
11,606,40
0
12,286,00
0
9,472,400
8,236,800
59,400
11,057,40
0
7,43,600
108,470
42,664,80
0
32,737,80
0
e) Paasches index =
pn (qn + pn)
16,590,00
0
18,426,40
0
21,694,00
0
16,801,10
0
73,511,50
0
98,830
42,664,800
100
32,737,800
pn(pn + qn)
11,060,00
0
13,076,80
0
19,524,60
0
12,847,90
0
56,509,30
0
130.32
% increase 30.32%
f) Marshall Hedge-worth Index =
% increase
g) Fishers Price Index
130.4
=
=
73,511,500
100
56,509,300
130.09
30%
(129.76 130.32)1/2
QUANTITATIVE TECHNIQUES
=
= 30%
398
Lesson Nine
LESSON FOUR
QUESTION THREE
r2x1 = 0.78
This is the coefficient of determination of miles traveled to cost and
means that 78% of total cost is attributable to mileage
r2x1 = 0.16 i.e. 1% of cost is accounted for by the type of journey
R = 0.88 is the overall coefficient of determination and indicates that the
multiple regression equation accounts for 88% of the total variation in
costs.
The coefficient in the equation are:
a = 86
b1 = 0.37
b2 = 0.08
= fixed costs
= amount per mile
= influence of the type of journey
QUESTION SIX
A.
a)
Year
1990/9
1
Qtr
Sum in
qtrs
Sum of
two qtrs
Trend
Actua
l
minus
trend
Actu
al/
trend
5.125
13.875
-3.375
15.625
5.125
13.75
-3.625
-15
4.875
14.75
-5.625
1.097
1.261
0.937
0.709
49
2
3
4
1
2
37
58
67
50
38
211
212
213
214
215
423
425
427
429
52.875
53.125
53.375
53.625
3
4
1
2
3
4
1
2
3
59
68
51
40
60
70
50
42
61
216
218
219
221
220
222
223
431
434
437
440
441
442
445
53.875
54.25
54.625
55
55.125
55.25
55.625
1.095
1.253
-.934
0.727
1.088
1.267
0.899
Revision Aid
399
b) Either
Year
1990/91
1991/1992
1992/93
1993/94
Total
Average
Seasonal
variation
Q1
-3.375
-3.625
-5.625
-12.625
-4.208
Additive model
Quarter
Q2
Q3
5.125
-15.625 5.125
-15 4.875
______ _____
-30.625 15.125
-15.313 5.042
-4
-15 5
Q4
13.875
13.75
14.75
______
42.375
14.125
14
=
-0.354
=0
Or
Multiplicative model
Quarter
Q1
Q2
Q3
1.097
0.937
0.709
1.095
0.934
0.727
1.088
0.899
2.770
0.718
3.280
0.923
0.718
1.093
1.0015 1.0015
1.0015
Year
1990/91
1991/1992
1992/93
1993/94
Total
Average
Adjustment
factor*
Seasonal
0.924
0.719
variation
* adjustment factor = 4/(3.994) =
1.0015
1.095
Q4
1.261
1.253
1.267
3.781
1.260
1.0015
= 3.994
1.262
= 4.000
QUANTITATIVE TECHNIQUES
400
Lesson Nine
B.
a) A = y bx
b=
x x y y
2
x x
Revision Aid
401
A
x - x
2
8
6
8
10
4
4
2
6
10
60
6
6
6
6
6
6
6
6
6
6
-4
2
0
2
4
-2
-2
-4
0
4
B
y - y
60
132
100
120
150
84
90
68
104
140
1,048
104.8
104.8
104.8
104.8
104.8
104.8
104.8
104.8
104.8
104.8
-44.8
27.2
-4.8
15.2
45.2
-20.8
-14.8
-36.8
-0.8
35.2
60
AxB
179.2
54.4
0
30.4
180.8
41.6
29.6
147.2
0
140.8
804.0
(x x)2
16
4
0
4
16
4
4
0
16
16
80
1,048
104.8
10
10
Therefore b =
804
80
= 10.05
Cost
( = 10)
54.55
64.60
74.65
84.70
94.75
104.80
114.85
124.90
134.95
145.00
402
Lesson Nine
QUESTION SEVEN
a) Two possible reasons for the large variation in output each month
are:
Seasonal variation
Production problems in some months
400
350
300
250
200
150
0
5
10
15
20
25
30
a=
y
170
240
260
200
280
230
200
160
240
290
350
200
2,920
xy
2,720
4,800
5,980
7,500
7,000
4,370
3,200
1,920
4,560
7,250
9,800
2,400
61,500
12 61,500
- 240 2,920
=
2
12 5.110
- 240
2,920
12
10
x2
256
400
529
625
625
361
256
144
361
625
784
144
5,110
37,200
3,720
240
= 43.333
12
y2
28,900
57,600
67,600
90,000
78,400
52,900
40,000
25,600
57,600
84,100
122,500
40,000
745,200
=
10
Revision Aid
403
y = 43.333 = 10x
This means that when output is zero, costs are zero 43.333, and that for
every one unit increase in output, costs will rise by 10. This assumes
linearity.
QUESTION EIGHT
i.
Quarter
Sales
1983
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
000
360
530
354
304
430
750
395
340
500
660
509
374
590
710
521
440
1984
1985
1986
1987
ii.
Seasonal
deviation
000
Trend
-42
-128
-37
276
-93
-145
12
153
-15
-165
43
153
396
432
467
474
488
485
488
507
524
539
547
557
000
Quarter
3
-128
-145
-165
-438
-146
-147
-37
12
43
18
6
5
276
153
153
582
194
193
4
-42
-93
-15
-150
-50
-51
Total 4
Total 0
404
Lesson Nine
Quarter
iii.
1
2
193
-51
-147
iv.
v.
QUESTION NINE
The object of this question was to test the candidates knowledge of the
time series and the ability to present data on a labeled diagram
Year
1980
1981
Quart
er
Costs
IV
1560
I
1730
II
1554
III
1504
IV
1630
1982
I
1950
II
1595
III
1540
IV
1700
1983
I
1860
II
1709
III
1574
IV
1790
1984
I
1910
II
1721
III
1640
a) The calculations for
Four
quarter
total
6348
6418
6638
6679
6715
6785
6695
6809
6843
6933
6983
6995
7061
Four quarter
total in pairs
Trend
Deviation
12766
13056
13317
13394
13500
13480
13504
13652
13776
13916
13978
14056
1595.77
1632.00
1664.63
1674.25
1687.50
1685.00
1688.00
1706.50
1722.00
1739.50
1747.25
1757.00
-41.75
-128.00
-34.63
275.75
-92.50
-145.00
12.00
153.50
-13.00
-165.50
42.75
153.00
Revision Aid
405
finally dividing by eight and centering the trend figure at the middle
point
Deviation is the difference between the costs and the corresponding
trend figure
b) The histogram is shown in figure 1
c) The seasonal deviation is another calculation produced from a table
Year
I
1983
1984
275.75
1985
153.50
1986
153.00
Total
582.25
Average
194.08
Adjusted
192.70
average
Seasonal
193.00
deviation
The adjustment is obtained by
Deviations
I
-41.75
-92.50
-13.00
Seasonal
Quarter
III
-128.00
-145.00
-165.50
-147.25
-49.08
-50.46
-438.50
-146.17
-147.55
20.12
6.71
5.33
-50.00
-148.00
IV
-34.63
12.00
42.75
Total = 5.54
Total = 0.02
4)
d) From the figure 1 the forecast trend value of Quarter IV of 1984 is
1790. the seasonal deviation is 5, hence the forecast heating costs
for quarter IV for 1984 are 1795
It can be seen that the trend is a little variable and the seasonal
deviations are not very regular, possibly due to the weather.
Another possible reason for the irregular fluctuation in the heating
cost trend line is an uneven increase in the price of the heating
medium (for example, oil or gas or electricity.)
QUANTITATIVE TECHNIQUES
406
Lesson Nine
LESSON FIVE
QUESTION ONE
a) The Poisson distribution is appropriate because there is a small
probability of an event occurring there are discrete values and the
average of these events (i.e. m = np) is below
10 (50 0.1 = 5)
b) The Poisson formula is
P( x)
xe
!
e e 2e
0! 1!
2!
1
1
2 1
0.3679 0.3679 0.1840 0.92
c) Similarly , the following can be drawn up
P
0
0.02
0.05
0.10
0.15
Pa
1.000
0.920
0.544
0.125
0.020
These values are shown on the graph below. The graph is used to
determine two areas of interest
QUESTION TWO
(a)
(i)
(ii)
(iii)
Revision Aid
407
This is because either A or B could be detected, A and C, or B and C.
Each of these situations is equally probable, with the probability given in
part (i).
(b) (i) The probability that the defect is undetected by the
inspection procedure is 0.3.
The probability that it is undetected by the secondary check
is 0.4.
The probability that it is undetected by both is 0.3 0.4 =
0.12
(ii)
+
(0.30.70.4)
(0.30.30.40.6)
(0.30.30.60.4)
0.7
0.18
and
0.7 0.18
0.7 0.18
that is
70
18
and
88
88
QUESTION THREE
Let F represent a unit which has been found to be faulty.
QUANTITATIVE TECHNIQUES
408
Lesson Nine
Let P(S1) = probability that a unit chosen at random comes from S 1
Let P(S2) = probability that a unit chosen at random comes from S 2
Let P(S3) = probability that a unit chosen at random comes from S 3
P(S1) = 0.40
P(S2) = 0.35
P(S3) =
0.25
1.00
P( F S1 ) 0.02
P( F S2 ) 0.03
P( F S3 ) 0.04
The required probability may be expressed as;
P(S1 F)
the unknown probability is P(F) to be slotted into the formula
Note that
P(S1 F)
P(S1 ) P( F S1 )
P(F)
P(S2 F)
P(S2 ) P( F S2 )
P(F)
P(S3 F)
P(S3 ) P( F S3 )
P(F)
= 0.0285
Substitution into P(S1 F)
Gives
P(S1 ) P( F S1 )
P(F)
P(S1 F)
0.4 0.02
0.0285
= 0.2807
Revision Aid
409
QUESTION FOUR
QUESTION FIVE
P=0.6 q=1-p=1-.06=0.4
pq
n
0.6 0.4
200
0.035
0.65 0.60
1.43
0.035
Which gives 0.4236 (42.36%)
Probability
density
42.36%
7.64%
0.60
0.65
X
proportions
QUESTION SIX
a) The left-hand tail of the distribution below 900 hours represents the
number of lamps that will fail before 900 hours. Accordingly, if the
probability of the distribution above 900 hours is found and deducted
from 0.5, the required number can be found thus:
1000 900
1.33
75
QUANTITATIVE TECHNIQUES
410
Lesson Nine
1000 950
0.67
75
The probability of which is 0.2486
1000 925
1
75
The probability of which is 0.3413
z=
1000-916
84
=1 s.d.=
=100
s.d.
0.84
Revision Aid
411
LESSON SIX
QUESTION ONE
The sample mean is 150 grams so that the estimate of the population
mean is 150 grams.
150 grams
i.e. x 150 grams
Where means best estimate
of .
When n= 625
Standard error of the mean
s
30
=
=1.2grams
n 625
When n =1225
sx =
30
=0.857 grams
1225
QUESTION TWO
Correction
factor =
N-n
800 80
0.9493
N-1
800 1
n
80
1
0.9486
N
800
It will be seen that to three significant figures, accurate enough for all
practical purposes, the two formulae give the same result, i.e. 0.949.
Standard deviation error of the means
x =
n
1
N
n
6
0.949
80
0.637 grams
Note: The standard error without correction is
6
0.671 grams
80
QUANTITATIVE TECHNIQUES
412
Lesson Nine
Thus the precision of the sample estimate, measured by the standard
error, is determined not only by the absolute size of the sample but also
to some extend by the proportion of the population sampled.
Revision Aid
413
QUESTION THREE
The Central Limit Theorem states that the means of samples (and the
medians and standard deviations) tend to be normally distributed almost
regardless of the shape of the original population.
QUESTION FOUR
QUESTION FIVE
QUESTION SIX
H0 : 2 = 1
H1 : 2 1 (one-tail test)
P1 =
200
0.2
1000
p2 =
240
=0.22
1091
p=
200+240
0.21
1000+1091
and q=1-p=1-0.21=0.79
S P1 P2
0.21
0.79 0.21
0.79
0.0178
1000
1091
z=
0.20-0.22
=1.12
0.0178
H 0 :1 - 2 =0
H1:1 - 2 =0
It will be seen that this is a two-tailed test.
The common standard deviation is calculated first.
sp=
QUANTITATIVE TECHNIQUES
414
Lesson Nine
s x1 =
SP
68.77
19.85
n1
12
s x2 =
sp
68.77
22.92
n2
9
t=
x1 -x 2
1060 970
2.97
s(x1 -x 2 )
30.32
Revision Aid
415
Defectives
0
1
2
3
4
5
No. of boxes
Observed
40
37
17
5
1
0
Binomial
Probabiliti
es
0.3711
0.4069
0.1786
0.0392
0.0040
0.0002
Expected
Frequenc
y
37.11
40.69
17.86
3.92
0.4
0.02
(O - E)
(O - E)
2
8.35
13.62
0.74
2.76
E
0.22
0.33
0.04
0.64
1.23
Note: Because of the very small values of the expected frequencies for 3,
4 and 5 defectives they have been combined onto one but it makes little
difference to the results if they are not combined.
The calculated X2 value is compared with an X2 value for the appropriate
degrees of freedom. Because the last three classes have been combined
there are four classes remaining, i.e. for 1, 2 and the combined class for
3-5 rejects thus
V =n 2 = 4 - 2=2.
The X2 value for two degrees of freedom at the 5% level is 5.991 and, as
the calculated value of 1.23 is well below this, we accept the null
hypothesis and conclude that the observed values fit a binomial
distribution to the power 5 when p = 0.18.
Note: If the last three classes had not been combined, the calculated X2
score would have been 1.8 and there would have been 4 degrees of
freedom. At 4 degrees of freedom the score is 9.488, so the conclusion
would be the same, i.e. we accept the Null Hypothesis.
QUESTION NINE
QUESTION TEN
1.
a)
S.e. =
pq
n
0.1 0.9
80
0.033
6
80
= 0.075
0.1 0.075
0.75 standard errors
0.033
QUANTITATIVE TECHNIQUES
416
Lesson Nine
This is less than the standard errors at the 5% level 1.96 so we
conclude there is no significant improvement in deliveries.
b) 0.75 standard errors from the mean would cover 0.2734 i.e.
54.68%, say 55% of the population, so the MDs claim could be
accepted at any level of confidence
2.
n
10
1.986
2.093
n-1
9
2.093
0.66
10
There are 10-1 =9 d.f and it is a one-tailed test. The 5%value for a
one-tailed test is 1.833.
The sample mean should be within 1.833*0.66 gms = 1.21 gms.
The actual difference is 4.68-3.8 gms= 0.88 gms so the figures do
not support the Purchasing Managers assertion.
QUESTION ELEVEN
Revision Aid
417
LESSON SEVEN
QUESTION ONE
QUESTION TWO
QUESTION THREE
QUESTION FOUR
Let the value of the small store be = 1
And let the value of the large store be = 2
If both survive, A loses nothing, if only larger store survives, A loses 1
and if smaller store survives, A will lose 2.
DEFENDER
Minimum
I
-2
-2
II
-1
-1
Column
Maximum
QUANTITATIVE TECHNIQUES
418
Lesson Nine
I
0
II
-2
0-(-2)=2
II
-1
0-(-1)=1
0-(-1)=10-(-2)=2
The final strategy is given by the matrix
I
0
II
-2
1/3
II
-1
2/3
A
2/3
plays
first row 1/3 rd of the time (randomly)
1/3
X
Column
Maximum
Y
1
-2
2
2
2
1
2
2
-1
-2
1
1
Row
Minimum
-1
-2
0
his
Revision Aid
419
Then the three payoffs to y corresponding to each of the three counter
moves of his opponent x must all be equal to the optimal value v of the
game.
Ys payoffs against the three moves of x are
1p+2q+(-1r)
-2p+1q+1r
2p+0q+1r
1p+2q-1r =
-2p+1q+1r =
2p+0q+1r =
-2p+1q+1r.. (1)
2p+0q+1r(2)
1
..(3)
q=8/17,
and
r=7/17
= 2p+1q+0r
= -1p+1q+1r
q=5/17,
and
r= 9/17
8 3
7 3
2 3
2
(1)
17 17
17 17
17 17
i.e. 1
QUANTITATIVE TECHNIQUES
420
Lesson Nine
Value of the game is
1 3+(-2) 5+2 9 11
3+5+9
17
Revision Aid
421
LESSON EIGHT
QUESTION ONE
a) Degeneracy in linear programming is a case where one or more basic
variables have values of zero in the optimal solution. It is dealt with
by selecting another of the tied variables for removal resolving the
cycling problem of degeneracy.
b)
-50
-60
100
75
500
500
400
800
700
75
300
Demand
Supply
i)
400
800
400
Trans-shipment
7
-40
QUANTITATIVE TECHNIQUES
422
Lesson Nine
xij0
QUESTION TWO
a) Let x1 and x2 be the number of shares invested in airline and
insurance shares respectively. Then the objective function will be as
follows:
Objective function (maximize)
z = 2x1 + 3x2
Share appreciation.
Profit
Constraints.
STRATHMORE UNIVERSITY STUDY PACK
Revision Aid
423
Line
loaves.
Line
loaves.
Line
Line
x1 280
x2 400
3
4
Space (1000-3) m3
Hours (1000-3)
Non-negativity.
QUANTITATIVE TECHNIQUES
424
Lesson Nine
Using graphical method.
x2
400
300
200
100
D
E
0
F
-100
100
200
300
400
x1
3
500
Revision Aid
425
(10x1 + 8x2 = 4000) 25
(25x1 + 12.5x2 = 8000) 10
250x1 + 200x2 = 100,000
(3)
250x1 + 125x2 = 80,000
(4)
Deducting equation (4) from Equation (3) gives:
75x2 =20,000
x2 =266.7
4000 - 8 266.7
186.7
x1 =
10
Putting these values in the objective function gives the
following
z = 5x1 + 3x2=5 186.7 + 3 266.7=1733
ProfitC
At point D, Line 1 and Line 4 intersect.
x1 = 280
8000 280 25
80
x2 =
12.5
The profit at this point is then equal to:
z = 5x1 + 3x2=5280 + 380=1640
At point E, Line 1 and x2 = 0 intersect
x2 = 0
x1 = 280
z = 5x1 + 3x2=5280 + 30=1400
ProfitD
ProfitE
426
Lesson Nine
maximization it is the outer ones to the right and up. For
minimization it is the lower side.
-
Profit sh.
Constraints:
2x1 + 4x2 100
3x1 + 2x2 80
x1 , x 2 0
Aluminum alloy
Steel alloy
In standard form:
0 = z 1000x1 1500x2 + 0s1 + 0s2
100 = 2x1 + 4x2 + s1 + 0s2
80 = 3x1 + 2x2 + 0s1 + s2
Table
1
s1
s2
z
Table
2
x2
s2
z
x1
2
3
-1000
x2
4
2
-1500
s1
1
0
0
s2
0
1
0
Solution
100
80
0
Ratio
25
40
1/4
2
-250
1
0
0
1/4
-1/2
375
0
1
0
25
30
37,500
50
15
Table
3
x2
0
1
3/8
-1/4
17.5
x1
1
0
-1/4
1/2
15
z
0
0
312.5
125
41,250
Stop here
The optimal weekly production schedule is as follows:
Revision Aid
427
Deluxe bicycle Frame = 17.5 17
Professional bicycle Frame = 15
ii) Let 1 be the change in profit from Deluxe bicycle frame.
2 be the change in profit from Professional bicycle frame. So
C1 = 1000 + 1
and C2 = 1500 + 2
limit of profit.
From the final table:
To avoid entry of
s1
312.5 1/41 > 0
1 < 1250
s2
125 + 1/21 > 0
1 > -250
From the two conditions:
-250 < 1 < 1250 and
750 < C1 < 2250
To avoid entry of
s1
312.5 + 3/82 > 0
s2
125 1/42 > 0
2 > -833.33
-2 > -500 2 < 500
QUANTITATIVE TECHNIQUES
428
Lesson Nine
Assignment problems usually require that the number of sources
equal the number of supply. Here there are 5 districts and only 4
salespersons. A dummy salesperson E is introduced with zero
ratings.
Sales persons
A
B
C
D
E
Districts
1
2
92
90
84
88
90
90
78
94
0
0
3
94
96
93
89
0
4
91
82
86
84
0
5
83
81
93
88
0
Revision Aid
429
A
B
C
D
E
1
9
3
4
0
0
2
7
7
4
16
0
3
11
15
7
11
0
4
8
1
0
6
0
5
0
0
7
10
0
Secondly, for each column, the lowest rating is reduced from every
rating in the particular column. In this case the table will remain the
same since the dummy salesperson has ratings of zero for every
district.
Thirdly a revision of the opportunity-rating table is done.
The smallest rating in the table not covered by the lines is taken (in
this case it is one). This is reduced from all the uncrossed ratings and
added to the ratings at the intersection of the crossings. Then all the
zeroes are to be crossed by the least number of vertical and
horizontal lines. If the number of lines equal the number of rows (or
columns = 5 in this case) then the final assignment has been
determined.
Otherwise the following steps are followed.
1
2
3
4
5
A
8
6
10
8
0
B
2
6
14
0
0
C
4
4
7
0
8
D
0
16
11
6
11
E
0
0
0
0
1
Third step is repeated as follows:
1
2
A
6
4
B
0
4
C
2
2
D
0
16
E
0
0
3
8
12
5
11
0
4
8
0
0
8
2
5
0
0
8
13
3
Still the optimal solution has not been reached. Third step is again
repeated to give the following table:
1
2
3
4
5
A
6
2
6
8
0
B
0
2
10
0
0
C
2
0
3
0
8
D
0
14
9
8
13
E
0
0
0
4
5
An optimal assignment can now be determined since the number of
lines crossing the ratings is equal to 5.
Lastly, the assignment procedure is that a row or column with only
one zero is identified and assigned. This row or column is now
eliminated. The other zeroes are then assigned until the last zero is
QUANTITATIVE TECHNIQUES
430
Lesson Nine
assigned. This step-by-step assignment is shown on the following
table from the first one to the fifth one.
Revision Aid
431
District
Sales person
10
13
0
1
14
0
4
5
District
Rating
5
4
2
1
83
82
90
78
333
QUANTITATIVE TECHNIQUES
432
Lesson Nine
x2+x3400
limit of 80286 chips
5x1+4x2+3x22000
hours available
Assumptions x1, x2, x3 0
Linearity/proportionality
Divisibility
Deterministic
Additive
c)
i)
ii) The range for the variables x 1, x2 and x3 are to indicate where the
number of units can change without affecting the basic solution
The range for the constraints indicate the extent the resources
can be changed without altering the basic solution of the linear
programming problem
iii) The dual value of 80386 chip is Sh 150. That is the addition
increase in profit due to increase of one chip. So if the company
increases the number of chips by 10, the additional profit will be
10150=Sh1,500.
QUESTION SEVEN
a) Network
Missing diagram
The critical path is A, E, F, H, I.
The duration of the critical path is 15 days.
b) Assuming all the activities start as soon as possible, the following
chart shows when activities will start and finish.
Revision Aid
433
Missing diagram
Consequently the following resource allocation is required on a day to
day basis.
QUANTITATIVE TECHNIQUES
434
Lesson Nine
Day
Activities
1
2, 3
4
5, 6
7
8
9, 10
11, 12
13, 14, 15
A,
A,
A,
C,
C,
E
F
H
I
B
D, G
G
E, G
E
Number of increased
staff
1+3
=4
1+1+1
=3
1+1
=2
2+2+1
=5
2+2
=4
2
=2
2
=2
1
=1
1
=1
Revision Aid
435
MOCK EXAMINATION
QUESTION ONE
a) Explain the importance of set theory in business
(4marks)
b) By use of matrix algebra, develop the leontief inverse matrix.
(8marks)
c) Digital ltd manufactures and sells floppy disks at Nairobi industrial
area. The average revenue (AR)(in thousands of shillings )of
producing x floppy disks are given by the following functions
ATC=1/2X2 -5/2X+50+50/X
And
AR=800-2X2
Where: x is the number of floppy disks produced
Required:
i.
The profit function
(3marks)
ii.
The number of floppy disks required to maximize profit
(3marks)
iii.
The maximum profit
(2marks)
(Total:
20marks)
QUESTION TWO
a) State any five problems encountered in the construction of the
consumer price index
(5marks)
b) An investment analyst gathered the following data on the 91-day
Treasury bill rates for the years 2003and 2004
Month
Treasury bill rates (%)
2003
2004
January
3.2
5.5
February
3.0
5.2
March
2.8
4.3
April
2.5
3.6
May
2.9
3.3
June
3.4
2.7
July
3.7
2.4
August
4.0
2.0
September
3.8
2.3
October
4.2
2.8
November
4.5
3.1
December
5.1
3.7
The analyst would like to determine if on average there was a
significant change in the Treasury bill rates over the two years.
Required:
QUANTITATIVE TECHNIQUES
436
Lesson Nine
i.
ii.
The mean and variance of the Treasury bill rates for each year
(10marks)
Determine if there is a significant difference in the average
Treasury bill rates (use a significant level of 1%).
(5marks)
Note: S2=
n1 1 S12 n2 1 S 22
n1 n 2 2
Revision Aid
437
QUESTION THREE
a) Describe the characteristics of the following statistical distributions
i.
Binomial distribution
(3marks)
ii.
Poisson distribution
(3marks)
b) High Grade Meat Ltd produces beef sausages And sells them to
various supermarkets .In order to satisfy the industrys
requirements ,the firm may only produce 0.2percent of sausages
below a weight of 80 grammes .The sausage producing machine
operates with a standard deviation of 0.5 grammes .The weights of
the sausages are normally distributed
The firms weekly output is 300,000sausages and the sausage
ingredients cost shs5.00 per 100 grammes ,sausages with weights
in excess of 82 grammes require additional ingredients costing sh
2.50 per sausage
Required
i.
The mean weight at which the machine should be set
(4marks)
ii.
The firms weekly cost of production
(10marks)
(Total:
20marks)
QUESTION FOUR
a) A survey of undergraduate students at High Fliers University
(HFU)showed the following results regarding gender and the fields of
specialization in their studies
Gende
r
Male
Femal
e
Total
Field of specialization
Busine Scienc
Arts
ss
e
100
250
100
200
50
100
300
300
200
Total
450
350
800
Required
i.
Determine if the field of specialization in the studies is dependent
on gender (use significance level of 5%)
(10marks)
ii.
An earlier survey showed that the proportion of female students
taking science was only 10%of the total student population taking
science .Does the data above show any significant improvement in
the proportion of female students taking science (use a
significance level of 5%)
(6marks)
QUANTITATIVE TECHNIQUES
438
Lesson Nine
b) Charles Nzioka who is a barber has found out that he can shave on
average 4 customers per hour .The arrival rate of customers averages
3customers per hour
Required
i.
The proportion of time that Charles Nzioka is idle
(1 mark)
ii.
The probability that a customer receives immediate service
upon arrival (1mark)
iii.
Average number of customers in the queuing system
(1 mark)
iv.
Average time a customer spends in the queuing system
(1 mark)
(Total:
20marks)
QUESTION FIVE
a. Differentiate between the additive model and the multiplicative model
as
used
in
time
series
analysis
(4marks)
b. The sales data of XYZ Ltd (in millions of shillings) for the year 2001 to
2004 inclusive are given below.
Year
2001
2002
2003
2004
1
40
42
46
54
2
64
84
78
78
Quarter
3
124
150
154
184
4
58
62
96
106
Required
i.
The trend in the data using the least square method
(8marks)
ii.
The estimated sales for each quarter of the year 2004
(4marks)
iii.
The percentage variation of each quarters actual sales for the
year 2004
(4marks)
(Total:
20marks)
SECTION II
QUESTION SIX
a. Give two applications of simulation in business
(2marks)
b. Collins Simiyu recently acquired a piece of land Kitale .A property
development company has offered him 300,000 for the piece of
land .He has to make a decision on whether to cultivate the piece of
land or to sell it to the property development company If he decides
STRATHMORE UNIVERSITY STUDY PACK
Revision Aid
439
to cultivate the land ,there is a probability of getting a high
,medium ,or low harvest .The expected net income for each of the
above states of harvest is shown below:
State of
Net income
harvest
(sh)
High
500000
Medium
100000
Low
(20000)
From past experience there is a 10percent probability that the
harvest will be low, a 30 per cent probability that the harvest will be
medium and a 60percent probability that the harvest will be high
.Colins Simiyu can engage an agricultural expert to carry out a survey
on the productivity of the land which will cost him sh30, 000. The
agricultural expert gives the following information as to the reliability
of such surveys (prior probabilities)
Results of survey
Accurate
Not accurate
High
0.35
0.25
0.60
state of harvest
Medium
Low
0.10
0.05
0.10
0.15
0.20
0.20
Total
0.5
0.5
1.0
Required
i.
Construct a decision tree for the above problem
(6marks)
ii.
The expected monetary value for each decision
(10marks)
iii.
The decision that you would recommend
(2marks)
(Total:
20marks)
QUESTION SEVEN
QUANTITATIVE TECHNIQUES
440
Lesson Nine
and according to the client the engineer has been assigned to
work for.
The table below shows the costs (in thousand of shillings)
associated with each engineer
Engine
er
A
B
C
D
1
37.0
57.0
22.0
39.0
Client
2
27.0
22.0
25.0
42.0
34.0
79.0
61.0
54.0
21.0
34.0
45.0
43.0
Required
i.
The assignments to be made in order to minimise the
total cost of engineers
(10marks)
ii.
The minimum cost of using the engineers
(2marks)
(Total 20marks)
QUESTION EIGHT
a. Define the following terms as used in network analysis:
i.
Crash time
(2marks)
ii.
Optimistic time
iii.
Forward pass
iv.
Dummy activity
v.
Slack
b.
(2marks)
(2marks)
(2marks)
(2marks)
Duration(weeks)
1-2
1-3
2-4
2-5
3-4
3-6
4-5
5-6
6-7
3
1
3
2
2
4
2
2
2
Required number of
technicians
2
4
4
2
4
4
2
2
2
Revision Aid
441
Required:
Draw a gantt chart for the project
(6
marks)
ii.
Mr. Mutiso would like to reschedule the activities so that not more
than 6 technicians are required each week
Determine if this is possible and how it can be achieved by
rescheduling the activities.
(4marks)
(Total
20marks)
i.
QUANTITATIVE TECHNIQUES