Unit Two Maths
Unit Two Maths
Definition 2.1 A matrix is a rectangular array of real numbers arranged in m-rows and n-
columns.
It is symbolized by a bold face capital letter with its elements enclosed within a parentheses or
bracket as shown below.
a11 a12 a1n a11 a12 a1n
a
a 21 a 22 a 2 n a 22 a 2 n
A or A 21
in which aij are real numbers
a
m1 a m 2 a mn a m1 a m 2 a mn
Each number appearing in the array is said to be an element or component of the matrix.
Element of a matrix are designated using a lower case form of the same letter used to symbolize
the matrix itself. These letters are subscripted as aij, to give the row and column location of the
element within the array. The first subscript always refers to the row location of the element; the
second subscript always refers to its column location. Thus, component aij is the component
located at the intersection of the ith raw and jth column of the arrangements of the matrix A .
The number of rows (m) and the number of columns (n) of the array give its order or its
dimension and denoted by “m x n” and read as “m by n”.
The following are examples of matrices
1 7
a) A 5 3 This is 3 x 2 matrix where element a12 7, a21 5, a32 2, etc.
4
2 32
Row poison
Column poison
Indicator
indicator x 44 45
1 5 9 15
x 30
b) X 2 6 10 20 This is 4 4matrix where some elements are: 34
3 7 11 30 x 42 8
4 8 12 45 44 x32 7
Row poison Column poison
Indicator indicator
1
2.2 Types of Matrices
There are deferent types of matrices. These are
1.Vector matrices – are matrices which consist of just one row or just one column. The
dimension of the former is m x 1 matrix and the latter is 1 x n matrix.
1.1 Row vector or matrix is a row matrix with dimension 1 x n.
2
1 0 0 0
1 0 0
1 0 0 1 0 0
For example I 2 , I3 0 1 0 , I4 are identity matrices of
0 1 0 0 1 0 0 1 0
0 1
0 0
order 2, 3, and 4, respectively
5. Scalar matrix is a square matrix where elements on the primary diagonal are the same.
2 1 0
For example 0 2 1 is a scalar matrix.
2 1 2
33
“An identity matrix is a scalar matrix but a scalar matrix may not be an identity matrix”.
1 3 7 9
Example 2.1 a) If A , B , then
2 4 8 10
1 3 7 9 1 7 39 8 12
A B
2 4 8 10 2 8 4 (10) 10 6
2 7 2 8 7
b) C , D , then
4 6 9 6 4
2 7 2 8 7
C D is not defined.
4 6 9 6 4
Since the two matrices C and D aren’t conformable for addition because they aren’t of the same
dimension since the former is 2 3 and the later is 2 2 matrix.
3
1. A + B = B + A (Commutative law of matrix addition)
2. (A + B) + C = A + (B + C) (Associative law of matrix addition)
1. xA Ax
2. ( x y ) A xA yA
3. x( A B) xA xB
4. x( yA) ( xy) A
Subtraction of matrices
You can also find the difference between two matrices of the same dimension as given in the
following definition.
Definition 2.4 If A and B are two matrices, of dimension m x n, then the difference of A and B
is the m x n matrix whose elements are obtained by subtracting the corresponding
elements:
4
a11 a12 a1n b11 b12 b1n a11 b11 a12 b12 a1n b1n
a 21 a 22 a 2 n b21 b22 b2 n a 21 b21 a 22 b22 a 2 n b2 n
A B
a
m1 a m 2 a mn bm1 bm 2 bmn a m1 bm1 a m 2 bm 2 a mn bmn
The subtraction of two matrices can be defined in terms of addition of matrices and scalar
multiplication. If two matrices A and B each of dimension m x n, then the difference of A and
B is the m x n matrix such that
A B A (1) B .
1 2 0 1
Example2.3If A and B , then find A B and B A ?
3 4 2 5
1 2 0 1 1 0 2 1 1 1
A B , whereas
3 4 2 5 3 2 4 5 1 1
0 1 1 2 0 1 1 2 1 1
B A ( A B )
2 5 3 4 2 3 5 4 1 1
Note that: A – B B – A
Exercise: Perform matrix addition, and scalar multiplication
In Each question compute the given operations
4 1 3 8 12 22
1) Let D and E , then find
6 7 9 7 9 15
2
a) D E b) D
3
2 1 1 5
2) Let A and B , then find
3 4 7 2
1 4
a) 2 A 3B b) B A
5 3
5
n x m m x p
iii) If i) and ii) are satisfied in multiplying two matrices A and B , to obtain the element of the
resulting matrix in the ith row and jth column of C AB , we take the sum of the product of the
corresponding elements of the ith row of matrix A and jthcolumn of matrix B as shown below:
In order to define a product matrix i.e. matrix C the corresponding elements of A and B as per
the requirement will be defined, and the element for matrix C will be defined in the following
manner:
a11 a12 a1n c11 c12 c1 j c1 p
21
a a a
2n
b b b b c c c c
22 11 12 1j 1p
21 22 2j 2p
b21 b22 b2 j b2 p
AB
ai1 ai 2 ain c c c c
i1 i2 ij ip
bn1 bn 2 bnj bnp
a
m1 a m 2 a mn c m1 c m 2 c mj c mp
Where
cij ai1b1 j ai 2 b2 j aik bkj with i 1, 2, 3,, m , k 1, 2, 3,, n and j 1, 2, 3,, p .
You can observe that the element in the first row and first column c11 is obtained by adding the
product of the corresponding elements of the first row of A and the first column of B resulting:
c11 a11b11 a12b21 a1n bn1
1 7
2 3 4
Example 2.4 If A and B 0 8 , then find AB and BA ?
6 9 7 23 5 1
32
Solution Now to find AB , the product is defined as the number of columns of A and number of
rows of B are equal to 3. Furthermore, you can observe that the resulting matrix is 2 2 matrix,
which is the number of rows of A and the number of columns of B . Therefore, the product is
performed as follows.
1 7
2 3 4 2(1) 3(0) 4(5) 2(7) 3(8) 4(1) 18 42
AB 0 8
6 9 7 5 1 6(1) 9(0) 7(5) 6(7) 9(8) 7(1) 29 121
Similarly, BA is defined and the resulting matrix has dimension 3 3.
1 7
2 3 4
AB 0 8
5 1 6 9 7
6
1(2) 7(6) 1(3) 7(9) 1(4) 7(7) 40 60 45
0(2) 8(6) 0(3) 8(9) 0(4) 8(7) 48 72 56
5(2) 1(6) 5(3) 1(9) 5(4) 1(7) 16 24 27
Note that from the above example AB BA
2. On the other hand, the commutative law of multiplication doesn’t apply to matrix
multiplication. That is, for two matrices A and B , it is not generally true that AB equals BA .
3. In many instances for two matrices, A and B , the product AB may be defined while the
product BA is not and vice versa.
In some cases, AB BA . In such cases A and B are said to be commute. For example if
1 1 2 2
A and B , then
1 1 2 2
1 1 2 2 4 4 2 2 1 1 4 4
AB and BA
1 1 2 2 4 4 2 2 1 1 4 4
1. Another unusual property of matrix multiplication is that the product of two matrices can be
zero even though neither of the two matrices themselves is zero. For example if
3 0 0 0 0 0
A 3 0 0 and B 7 10 4 , then
1 0 0 8 3 2
3 0 0 0 0 0 0 0 0
AB 3 0 0 7 10 4 0 0 0 .
1 0 0 8 3 2 0 0 0
You can’t conclude from the result AB 0 that at least one of the matrices A or B is a zero
matrix.
2. Also you cannot in matrix multiplication, necessarily conclude from the result AB = AC
imply that B= C even if A 0. Thus the cancellation law doesn’t hold, in general, in matrix
multiplication.
1 3 4 3 1 0
For example if A , B and C , then
2 6 2 5 3 6
10 18
AB AC . However, B C .
20 36
7
Exercise: Computation of matrix multiplication
In computation of matrix multiplication take care on the dimensions
1 1
2 1
1) Let A and B 2 4 , then find
3 2 0 1
a) BA b) AB , whenever possible.
Let’s begin by considering a tabular format where the square matrix A of order n is augmented
with an identity matrix of the same order n as A | I n , where the two matrices are separated by a
vertical line.
Now if the inverse matrix A-1 were known, we could multiply the matrices on each side of the
vertical line by A-1 as
AA1 | A 1 I n
Then because AA1 = I and A1 I n A1 then, we would have I n | A 1 . We don’t follow this
procedure, because the inverse is not known at this point; we are trying to determine the inverse.
We instead employ a set of permissible elementary row operations on the augmented matrix
A | I n , to transform A on the left of the vertical line in to an identity matrix ( I n ). As the
identity matrix is formed on the left of the vertical line, the inverse of A is formed on the right
side whenever A has an inverse.
8
3 2
Example 2.7 Find the inverse of the following matrix A .
1 1
Solution: First augment the given matrix A with the same dimensional unit matrix of order two.
3 2 1 0 R2
A | I 2
1 1 0 1 R1
Interchange the first row with the second row:
1 1 0 1 R1
3 2 1 0 R2 3R1
Do not change row one but change the second row by multiplying the first row by –3 and add to
R2 i.e. R2 3R1 .
1 1 0 1 R1 R2
0 1 1 3 R2
Change the second row by multiplying it row by –1 (i.e. R2 ) and change the first row by
adding to it the second row (i.e. R1 R2 ).
1 0 1 2
( I 2 | A 1 )
0 1 1 3
1 2
Therefore inverse of A is A 1
1 3
Ones first method: try to set ones first in a column and then zeros of the same column goes
from left to right
9
Zeros first method: try to set zeros first in a column and then zeros of the same column goes
from left to right.
Exercise: Finding the inverse of a matrix
Try to find the inverse for the following matrices.
In this section you will consider how to represent system of linear equations using the matrix
notation. Let’s consider a general linear system of m-linear equations with n-unknowns, given
by:
a11 x1 a12 x 2 a1n x n b1
a x a x a x b
21 1 22 2 2n n 2
……… (2.1)
a m1 x1 a m 2 x 2 a mn x n bm
where aij , bi are given real numbers and x j are the unknowns or variables for i 1,2,3,, m and
j 1,2,3,, n .
A solution of the system of linear equation (2.1) is an n-tuple of real numbers ( x1 , x2 ,, xn ) ,
which satisfies each of the m-equations.
The above system of linear equation can be described using the matrix method, as matrices are a
compact and convenient way of writing down system of linear equations. Let
a11 a12 a1n
a 21 a 22 a 2 n
A called the coefficient matrix,
a
m1 a m 2 a mn
x1
x
X 2 called the variable matrix and
x
n
10
b1
b
B 2 called the constant term matrix, then (2.1) can be written using these matrices as:
b
n
AX B ………(2.2)
Equation (2.2) is called the matrix representation of the system of linear equation (2.1).
Example: Express the following system of linear equation using matrix notation.
3x 2 y z 5
4x 2 y 1
x z 4
Solution First we need to attach zero as a coefficient of the missing variable in each equations in
the system.
3x 2 y z 5
4x 2 y 0z 1
x 0y z 4
Then the matrix representation will be
3 2 1 x 5
4 2 0 y 1
1 0 1 z 4
Exercise: Matrix representation of system of linear equation
Please represent the following system of linear equation using matrix notion
2 x 4 z 27
1. Find the matrix representation of 3z 4 x y 2 0
3 y 6 3 z
2.6. Solving System of Linear Equation Systems using Matrix
From your high school knowledge, you know how to solve a system of linear equations with two
or three variables, which have the form of
a1 x a 2 y a3 z d1
a1 x a 2 y d1
and b1 x b2 y b3 z d 2 , respectively using either the substitution
b1 x b2 y d 2 c x c y c z d
1 2 3 3
method or elimination (or addition) method. Obviously as the number of variables (or unknowns)
increases, these methods are not applicable. In this section you will deal with ways of solving
system of linear equations using the matrix method: inverse method and Gaussian elimination
method.
Inverse method
The inverse method is one of the methods used to solve a system of linear equation if the number
of equations and numbers of variables are equal (m n) and the inverse of the coefficient matrix
exists. Therefore for n n system of linear equations
11
a11 x1 a12 x 2 a1n x n b1
a x a x a x b
21 1 22 2 2n n 2
……… (2.3)
a n1 x1 a n 2 x 2 a nn x n bn
Their matrix representation will be:
AX B ……… (2.4)
Where A the coefficient matrix is square matrix of order n , X is the variable matrix and B is
the constant term matrix.
The procedure in finding the solution of (2.3) or (2.4) using the inverse method is:
Step-1 Change the system of linear equation into matrix form (i.e. AX B ).
Step-2 Find the inverse of the coefficient matrix (i.e. A 1 ) , and finally
Step-3 Multiply the inverse of coefficient matrix with the constant term matrix, and the resulting
values are the values of the unknown matrix (i.e. X A 1 B ).
These three steps are handled as follows.
Given AX B (You can multiply both sides of the equation from the left-
hand side by A 1 )
A1 AX A1 B (Using associative property)
1
A AX A B 1
(Since A 1 A I n )
I n X A 1 B (Since I n X X )
X A 1 B
Example: Given this system of linear equation applying inverse method we can find the
unknown values.
2 x 3 y 4
x 2y 2
Solution
Step-1 Change it into matrix form
2 3 x 4
the coefficient matrix, the variable matrix and the constant term matrix. Hence
1 2 y 2
the matrix form is:
2 3 x 4
1 2 y 2
Step 2 Find inverse of the coefficient matrix, augment identity matrix order of two on the right
hand side of the coefficient matrix and apply elementary row operation on it to get the inverse.
2 3 1 0 (1 2) R1 1 3 2 1 2 0 R1 3R2 1 0 2 3
1 2 0 1 R2 (1 2) R1 0 1 2 1 2 1 2 R2 0 1 1 2
2 3
Hence the inverse is A 1 .
1 2
12
Step 3 Multiply the inverse of the coefficient matrix with the constant term matrix to obtain the
solution.
x 2 3 4 2
X
y 1 2 2 0
The value for the unknown variables is x 2 and y 0 .
a) If the number of equations is equal to the number of variables (“n” by “n” systems)
In solving a system of linear equation the Gaussian elimination method involves the following
steps.
Step-1 Write the system of linear equation into a matrix form ( AX B )
Step-2 Augments the coefficient matrix with the constant term matrix. ( A | B )
Step-3 Apply elementary row operation on the augmented matrix and transform it to row-
echelon form.
Step-4 Write the equivalent system of the equation and use back substitution to solve for the
unknowns.
13
2 3 4 (1 2) R1 1 3 2 2 R1 1 3 2 2
1 2 2 R (1 2) R 0 1 2 0 2R
0
0
2 1 2 1
Step -4The equivalent system of equation is
3
x y 2
2
y0
From the last equation y 0 .
3
Put y 0 in the first equation, and then you have x (0) 2 . Hence, x 2 .
2
Therefore, you have a unique solution x 2 and y 0 .
Summarizing our results for solving an “n” by “n” system, we start with the augmented matrix (
A | B ), and attempt to transform it into the row-echelon form of the matrix of one of the
following will result:
1. If the row-echelon form of the augmented matrix is of the type shown below then the system
has a unique solution.
1 0 0 10
For example the row echelon form matrix 0 1 0 5 has unique solution
0 0 1 3
2. If the row-echelon form of the augmented matrix is of the type shown below (all elements in a
given row are zero except the constant term column) then, the system has no solution.
1 0 0 3
For example the row echelon form matrix 0 1 0 5 has no solution.
0 0 0 1
3. A matrix in a form different from (1) and (2), indicates that there are infinite number of
solutions. Note that for an “n” by “n” system, this case occurs when there is a row with all
zeros, including the constant column.
1 0 2 5
For example the row echelon form matrix 0 1 3 3 has infinitely many solutions.
0 0 0 0
Exercise: Using the inverse method and Gaussian elimination method.
Solve the following system of linear equations applying the method specified.
15
x 2 y 3z 11
1. Solve 3x 2 y z 1 , using inverse method.
2 x y 5 z 11
x y z 4
2. Solve 5 x y 7 z 25 , using the Gaussian elimination method.
2 x y 3 z 8
x y z 4
3. Solve 5 x y 7 z 20 , using The Gaussian elimination method.
x y 3z 8
16
3x1 2 x 2 x3 6 1 0 1 3 2
6 x 5 x 3x 12
1 2 3 0 1 1 0
, its row –echelon form of the matrix is .
9 x1 6 x 2 3x3 18 0 0 0 0
15 x1 10 x 2 5 x3 30 0 0 0
0
The equivalent system of linear equation is:
1
x1 x3 2
3
x 2 x3 0
where the number of unknowns is greater than the number of equation, hence you have
infinitely many solution given by:
1
( x1 , x2 , x3 ) | x1 2 x3 , x2 x3 for any real number x3
3
In each of the above cases the number of equations is greater than the number of variables. You
will observe how the augmented method is stronger and you have either unique, infinitely many,
or no solution.
1 0 1 7 17 7 R1 (1 5) R3 1 0 0 3
0 1 5 7 55 7 R2 (3 11) R3 0 1 0 5
0 0 11 7 44 7 (7 11) R 0 0 1 4 .
3
0 0
0 0 R4 0 0 0 0
Therefore, you have a unique solution given by x1 3, x2 5, and x3 4 .
17
The equivalent system of linear equation is:
2 1
x1 x2 x3 2
3 3
x3 0
Therefore, you have two equations with three variables and have infinitely many solutions
2
given by ( x1 , x2 , x3 ) | x3 0, x1 2 x 2 for any real number x2 .
3
1. A row which is all zeros except in the constant columns, indicating that there are no solutions,
or
2. A matrix in a form different from number one above indicating that there are an unlimited
number of solutions.
“Every system of linear equations has exactly one solution, no solution, or infinitely many
solutions.”
4 6 3 12 1 4 R1 1 3 2 3 4 3
6 9 9 2 20 R (3 2) R 0 0 2
2 1
0
Therefore, from the last row of the row-echelon form of the matrix you observe that the system
has no solution.
18
Therefore, you have two equations with three variables and have infinitely many solutions given
1 1
by ( x1 , x 2 , x3 ) | x2 2 x3 , x1 x3 for any real number x3 .
2 2
Word problems
In order to solve word problems the following four procedures are important to observe
1. Represent the unknown quantities using the English alphabet letters usually x, y, z, or you
can choose the same letters with subscripts like x1 , x2 , x3 , and so on.
2. Translate the quantities from the statement of the problem in to algebraic form and set up a
system of equations.
3. Solve the system of linear equations for the unknown represented by the letter.
4. Check the findings according to the statement in the problem
Example 2.14
1) A firm manufacturing office furniture finds that it has the following variable costs per unit in
dollar. Cabinets
Tables
Chairs
Desks
Mat er ia l 50 20 15 25
Lab o r 30 15 12 15
O ver he ad 30 15 8 20
Assume that an order for 5 desks, 6 chairs, 4 tables and 12 cabinets has just been received. What
is the total material, labor, and overhead cost associated with the production of the ordered
items?
Answer: Material cost = $ 730, Labor cost = $ 468, and Overhead cost = $ 512
2. Kebede Carpet Company has an inventory of 1,500 square yards of wool and 1,800 square
yards of nylon to manufacture carpets. Two grades of carpeting are produced. Each roll of
superior-grade carpeting requires 20 square yards of wool and 40 square yards of nylon. Each
roll of quality-grade carpeting requires 30 square yards of wool and 30 square yard of nylon.
If the company wants to use all the material in inventory, how many rolls of superior and
how may rolls of quality carpeting should it manufacture?
Answer: 15 superior-grade and 40 quality-grade rolls.
3. Getahun invested a total of Birr 10000 in three different saving accounts. The accounts paid
simple interest at an annual rate of 8%, 9% and 7.5%. Total interest earned for the year was
Birr 845. The amount in the 9% account was twice the amount invested in the 7.5% account.
How much did Getahun invest in each account?
Answer: 1000, 6000, and 3000
19
50 20 15 25
Let the variable cost per unit be V 30 15 12 15 and the number of order made in each
30 15 8 20
5
Desks
6
item to be R Chairs
4
Tables
12
Cabinets
Therefore, the total cost (TC ) will be:
5
50 20 15 25 50(5) 20(6) 15(4) 25(12) 730
6
TC V .R 30 15 12 15 30(5) 15(6) 12(4) 15(12) 468
30 15 8 20 4 30(5) 15(6) 8(4) 20(12) 512
12
Hence, the material cost is $730, the labour cost is $468, and the overhead cost is $512.
2. Let x the number of rolls of superior grade carpeting manufactured, and
y the number of rolls of quality grade carpeting manufactured.
20
amount in the 7.5%, we have x2 2x3 , that is x2 2 x3 0 . Hence the system of linear
equations will be:
x1 x2 x3 10,000
0.08 x1 0.09 x 2 0.075 x3 845
x 2 2 x3 0
x1 x 2 x3 10,000
Equivalently, 80 x1 90 x 2 75 x3 845,000
x 2 2 x3 0
The matrix representation is:
1 1 1 x1 10,000
80 90 75 x2 845,000
0 1 2 x 0
3
To solve the system using the Gaussian method, the augmented matrix is:
1 1 1 10,000 R1 1 1 1 10,000 R1 (1 10) R2
80 90 75 845,000 R2 80 R1 0 10 5 45,000 (1 10) R2
0 1 2 0 1 2 0 R3 (1 10) R2
0 R3
1 0 32 5,500 R1 R3 1 0 0 1,000
0 1 1 2 4,500 R2 (1 3) R3 0 1 0 6,000
0 0 3 2 4500 0 0 1 3,000
(2 3) R3
Therefore, you have a solution x1 1000, x2 6000, and x3 3000 , which shows that Birr
1,000 is invested at 8%, Birr 6,000 is invested at 9%, and Birr 3,000 is invested at 7.5%.
2. Aster bought a can of milk and a pack of cigarettes for a total of Birr 4.65 excluding tax.
Including the tax the bill was Birr 4.95. If there is 5% sales tax on milk and 8% sales tax on
cigarette, then what was the price of each item?
3. A special food for patients is to be developed from two foods: “Food M” and “Food N”. The
new food is designed so that it contains exactly 31mg of vitamin, 33 mg of vitamin B, and 29
mg of vitamin C. Each kg of food M contains 3 mg of vitamin A, 5 mg of vitamin B and 1
mg of vitamin C. On the other hand, each kg of food N contains 2 mg of vitamin A, 1 mg of
vitamin B and 3 mg of vitamin C. How many kg of each food should be used in the mixture
in order to meet the above requirement?
21
2.7 Markov Chain Analyses(Reading Assignment)
One of the applications of system of linear equations is on the Markov chain, which is a
forecasting model developed by Russian Mathematician called Andrew Markov around 1907. It
is probabilistic model associated with a system that involves change from one state to another in
such a way that we are only able to assign probability other than 0 and 1 to the occurrence of
future state. Hence, the progression of the system through a sequence of states is called Markov
chain orstochastic process.
Markov chains are models which are useful in studying the evolution of certain systems over
repeated trials such as price movement, consumer’s behavior and many other processes in
business. These repeated trials are often successive time periods where the state (outcome
condition) of the systems in any particular time period can’t be determined with certainty.
Therefore, a set of transition probabilities is used to describe the manner in which the system
makes transition from one period to the next. Hence, we can predict the probabilities of the
system in a particular state at a given time period. We can also talk about the long run or
equilibrium or steady state.
Necessary assumptions of the chain:
1. The system condition (outcome) state in any given period depends on its state in the
preceding period and on the transition probabilities.
2. The transition probabilities are constant overtime.
3. Change in the system will occur once and only once each period. For example if it’s a
week, then it’s only once in a week.
4. The transition period occurs with regularities. For example if we start with days, we use
the day until we reach our end.
Information flow in the analysis
The Markov model is based on two sets of input data
The set of transition probabilities
The existing or initial or current conditions or states
The Markov process, therefore, describes the movement of a system from a certain state in the
current state/time period to one of n possible states in the next stage. The system makes in an
uncertain movement, all that is known is the probability associated with any possible move or
transition. This probability is known as transition probability, symbolized by P Pij . It is the
likelihood that the system, which is currently in, state i will move to state j in the next period.
From these inputs the model makes two predictions usually expressed as a row matrix.
1. The probabilities of the system being in any state at any given future time period.
2. The long run (or equilibrium) or steady state probabilities.
The set of transition probabilities is necessary for both prediction (time period n, and steady
state), but the initial state is needed for only the first prediction.
Input data prediction(outcome)
Currently / initial
About today
The probabilities of the
Solution There are two states in the problem. Let S1 be the proportion of customers who shop at
store 1, and S 2 be the proportion of customers who shop at store 2.
Since it is known that 80% of customers shop at store 1 and 20% shop at store 2, the initial state
or current state probability matrix (V1 ) for store one and two will be denoted and given by the
row matrix:
S1 S2
V1 (0.8 0.2)
To find the transition probability matrix (P ) from the information you have, the following
structure shows how it is developed.
Next week
Current week
0.9 0.1
Therefore, the transition probability matrix will be: P
0.2 0.8
Remark:
1) The transition probability matrix is always a square matrix.
2) The sum of the elements in each row in the transition matrix is always 1.
3) You have to be consistent in writing the elements; they are values between 0 and 1.
To find the next state probability matrix (V2 ) , you use the current state matrix multiplied with the
transition probability matrix (P ) given by:
Vn Vn1 P , for n 2,3,4, ………(2.5)
a) Hence, the second state probability matrix (that is the market share in the second week) will
be:
23
0.9 0.1
V2 V1 P 0.8 0.2 0.8(0.9) 0.2(0.2) 0.8(0.1) 0.2(0.8)
0.2 0.8
S1 S2
0.72 0.04 0.08 0.16 (0.76 0.24)
This shows that in the second week 76% of the customers shop at store 1 and 24% of the
customers shop at store 2.
Hence, the third state probability matrix (that is in the third week) will be:
0.9 0.1
V3 V2 P 0.76 0.24 0.76(0.9) 0.24(0.2) 0.76(0.1) 0.24(0.8)
0.2 0.8
S1 S2
0.684 0.048 0.076 0.192 (0.732 0.268)
This shows that in the third week 73.2% of the customers shop at store 1 and 26.8% of the
customers shop at store 2. In computing V3 you have used V 2 but not V1 , hence Markov process
has no memory.
Note that equation (1) and (2) are the same, hence you can choose one of them and solve with
equation (3) using any method.
0.1v1 0.2v2 0
v1 v2 1
From the last equation you have v 2 1 v1 and put it in the first equation, then
0.1v1 0.2(1 v1 ) 0
0.3v1 0.2
2 1
Hence, v1 , and v 2
3 3
Therefore, in the long run 66.7% of the customers will shop at store 1 and 33.3% of the
customers will shop at store 2.
24
At specified time: - the transition matrix and the initial state matrix are required. Hence, unless
the transition matrix is affected, the long run state will not be affected. Moreover, we cannot
know the number of years, months or weeks to attain the long run state / point but we can know
their share.
Activity Eleven: Application system of linear equation in the Markov Chain Process
1. A division of the Ministry of Public Health had conducted a simple survey on the public
attitude towards smoking. From the results of the survey the department concluded that
currently only 20% of the population smokes cigarette and every month 10% of non-smokers
start smoking whereas 5% of the smokers quit smoking.
Required
a) Write the current and transition matrices
b) What will be the proportion of the non-smokers and smokers in the long run?
2. Among the products of a company, brand A has 40% of the market share. A market
research firm finds that if a person uses brand A, the probability that he/she will be using it
again next year is 30%. On the other hand if a person is not using the product at present, the
probability that he/she will be using it next year is 60%.
Required:
a) Find the transition matrix.
b) Find the percentage of the market share that brand A gets after two years.
c) Want percentage of the market share will be handled by brand A on the long run,
if the transition matrix does not change?
25