In this lesson we will look at applications of Transition matrices to solve various problems.
We can write the transition matrix down as T= \begin{bmatrix} 0.60 & 0.20 & 0.15 \\ 0.10 & 0.50 & 0.15 \\ 0.30 & 0.30 & 0.70 \end{bmatrix} and the initial state matrix as S_0 = \begin{pmatrix} 400\\ 400\\ 400 \end{pmatrix} .
We can determine a future state, say week 3 as S_3=T^3\times S_0, given by:
\begin{bmatrix} 0.60 & 0.20 & 0.15 \\ 0.10 & 0.50 & 0.15 \\ 0.30 & 0.30 & 0.70 \end{bmatrix}^3 \begin{pmatrix} 400\\ 400\\ 400 \end{pmatrix} = \begin{bmatrix} 0.349 & 0.285 & 0.261 \\ 0.183 & 0.247 & 0.207 \\ 0.468 & 0.468 & 0.532 \end{bmatrix} \begin{pmatrix} 400\\ 400\\ 400 \end{pmatrix} = \begin{pmatrix} 358\\ 254.8\\ 587.2 \end{pmatrix}
The calculations were made using technology.
Here is the state matrix determined for week 6:
S_6 = T_6 S_0 = \begin{bmatrix} 0.60 & 0.20 & 0.15 \\ 0.10 & 0.50 & 0.15 \\ 0.30 & 0.30 & 0.70 \end{bmatrix}^6 \begin{pmatrix} 400\\ 400\\ 400 \end{pmatrix} = \begin{pmatrix} 350.819\\ 250\\ 599.181 \end{pmatrix}
There is some evidence of convergence here between week 3 and week 6.
We might think about trying a much larger power in an attempt to find the steady state matrix a little quicker. Technology or CAS are indispensable in this regard.
If we arbitrarily try week 20 we see that:
S_{20} = T^{20} S_0 = \begin{bmatrix} 0.60 & 0.20 & 0.15 \\ 0.10 & 0.50 & 0.15 \\ 0.30 & 0.30 & 0.70 \end{bmatrix}^{20} \begin{pmatrix} 400\\ 400\\ 400 \end{pmatrix} = \begin{pmatrix} 350\\ 250\\ 600 \end{pmatrix}
Week 21 shows the same state matrix as week 20, so the numbers 350,250, and 600 represent the long term customer base for each of stores A,B, and C respectively.
In a town with three supermarkets, the information below was gathered from a survey. The survey was conducted in October 2013.
Assume that those customers that did not shop at a different store the following month, continued to shop at the same store.
42\% of Store 1 customers will shop at Store 2 the following month.
45\% of Store 1 customers will shop at Store 3 the following month.
39\% of Store 2 customers will shop at Store 1 the following month.
45\% of Store 2 customers will shop at Store 3 the following month.
39\% of Store 3 customers will shop at Store 1 the following month.
6\% of Store 3 customers will shop at Store 2 the following month.
Construct a transition matrix below which stores the given information.
The market share at the time of the survey showed that 1200 customers shopped at Store 1, 800 customers shopped at Store 2, and 1000 customers shopped at Store 3. Write the matrix which represents this information.
Find the number of customers expected to be shopping at each store in March 2014. Round your answers to the nearest two decimal places.
Calculate the long-term expected share of the customers shopping at each store as a percentage (correct to one decimal place).
The following are the steps of calculating the long-term expected shares or the steady state.
Construct the transition matrix and initial matrix using the given information.
Raise the transition matrix to the number of months when the prediction started and will end. Then, multiply the result by the initial matrix.
Use the formula S_\infty=\dfrac{1}{\text{sum of initial matrix}}T^nS_0 to calculate the long-term expected shares.
Restocking means to add items as we go. Culling means we take away items as we go.
The following recurrence relation can be used to extend modelling to populations that include culling and restocking:
If we are restocking, B will be positive, and if we are culling, B will be negative.
In a physical rehabilitation clinic, certain residents can choose out of 2 weekend activities each week, bowls (B) and golf (G). On the first weekend 70 people played bowls and 40 people played golf.
It has been found that 70\% of residents who select bowls on one weekend will select bowls again the following weekend. It has also been found that 60\% of residents who select golf will select it again the following weekend.
Set up a transition matrix to represent this situation.
Write down the initial state matrix for the first weekend, S_1.
The participant numbers are also affected by residents who recover enough to move onto more physically demanding activities. 3 more people attend bowls each week and 5 more people attend golf each week. Set up a matrix B to represent the number of people being added to the activities each week.
Construct the matrix recurrence relation which represents the expected number of residents selecting each activity on the second weekend, S_2=TS_1+B.
Find S_2.
Construct the matrix recurrence relation which represents the expected number of residents selecting each activity on the third weekend, S_3=TS_2+B.
Use the recurrence relation to determine the expected number of people playing golf on the third weekend. Round your answer to the nearest person.
The following recurrence relation can be used to extend modelling to populations that include culling and restocking:
If we are restocking, B will be positive, and if we are culling, B will be negative.
Leslie matrices are used to calculate populations over time, particularly animal populations. There are two events that affect animal populations:
An animal dies, which decreases the population.
We will use these events to calculate populations over time.
Leslie matrices have the form: L=\begin{bmatrix} f_1 & f_2 & f_3 & f_4 & ... &f_{n-1} &f_n \\ s_1 & 0 & 0 & 0 &... & 0 &0 \\ 0 & s_2 & 0 & 0 &... & 0& 0\\ 0 & 0 &s_3 & 0 & ... & 0& 0 \\ ... & & & & && \\ ... & & & & && \\ 0 & 0 & 0 & 0 & ... & s_{n-1} &0 \end{bmatrix} where f_n is the fecundity rate (birth rate) of the animals in the nth age group, and s_n is the survival rate of the animals in the nth age group.
You might notice that s_n is not in the matrix. The last age group in questions involving Leslie matrices, will usually have a 0\% survival rate, so it will not need to be included.
To predict the population we use the recurrence formula: S_{n+1}=LS_n, where S_n is the column state matrix, and S_0 is the initial state column matrix.
A farmer has a number of cows on his farm. The age, initial population and average yearly birth rate and survival rate of the cows is shown in the table below:
Age | Initial population | Birth rate | Survival rate |
---|---|---|---|
2 | 6 | 0.5 | 0.8 |
3 | 8 | 0.7 | 0.9 |
4 | 10 | 0.9 | 0 |
Write the Leslie matrix, L, for this scenario.
Write the matrix for the initial population, S_0.
Write the recurrence formula that can be used to predict the number of cows in the form S_{n+1}=LS_n .
Find S_1.
Find the total number of cows the farmer will have in 1 year time.
Leslie matrices have the form: L=\begin{bmatrix} f_1 & f_2 & f_3 & f_4 & ... &f_{n-1} &f_n \\ s_1 & 0 & 0 & 0 &... & 0 &0 \\ 0 & s_2 & 0 & 0 &... & 0& 0\\ 0 & 0 &s_3 & 0 & ... & 0& 0 \\ ... & & & & && \\ ... & & & & && \\ 0 & 0 & 0 & 0 & ... & s_{n-1} &0 \end{bmatrix} where f_n is the fecundity rate (birth rate) of the animals in the nth age group, and s_n is the survival rate of the animals in the nth age group.
To predict the population we use the recurrence formula: