Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

Markov Matrices

Age 14 to 18
Challenge Level Yellow star
  • Problem
  • Submit a Solution
  • Teachers' Resources

Each day for a mid-morning snack I either have an apple or a banana. If I have an apple on one day then the probability that I have an apple on the next day is $\frac 7 {10}$, otherwise I have a banana.  If I have a banana on one day then the probablity that I have a banana on the next day is $\frac 4 {10}$.

This information could be displayed as a diagram:

Work out the probability that, if I have an apple on Monday, I have:

  1. An apple on Wednesday
  2. A banana on Wednesday

Hint: There are two different ways you can go from an apple on Monday to an apple on Wednesday, and similarly for going from an apple on Monday to a banana on Wednesday.

The information could also be displayed as a matrix (sometimes called a Transition matrix).

$${\bf M} = \begin{pmatrix} 0.7 & 0.6 \\ 0.3 & 0.4 \end{pmatrix}$$

You can use the transition matrix to find probabilities.  If you start on an apple you can say that your initial state is $\begin{pmatrix} 1 \\ 0\end{pmatrix}$.  You can then find the probability of having an apple or banana next time by calculating:

$$\begin{pmatrix} 0.7 & 0.6 \\ 0.3 & 0.4 \end{pmatrix}\begin{pmatrix} 1 \\ 0\end{pmatrix} = \begin{pmatrix} 0.7 \\ 0.3\end{pmatrix}$$

Calculate ${\bf M}^2$.  What do you notice about the first column of your matrix?

Calculate ${\bf M}^3$ and ${\bf M}^4$.  What do you think will happen to ${\bf M}^n$ as $n \to \infty$?

On average, what proportion of the days will I choose an apple?

 

You may find these Matrix Power calculators useful:

  • Matrix Power Calculator (decimal version)
  • Matrix Power Calculator (fraction version)

 

Now, instead of just apples and bananas I can choose a cake (or clementine if you want to be healthy!).  The diagram below shows the new probabilities.

 

Write down a transition matrix for this situation.

Use your matrix to work out the probabilities that I have an apple, banana or cake on Friday given that I had an apple on Monday.

On average, what proportion of the days will I eat cake?

 

There are more matrix problems in this feature.

 

NOTES AND BACKGROUND


A Markov Chain is a model showing a sequence of events where the probability of an event happening depends only on the current state (this is sometimes called the memorylessness property).

Markov chains have many applications, including Quantum Mechanics, Population Dynamics, Data Compression, Stock Price modelling and ranking the relevance of web pages.

You may also like

8 Methods for Three by One

This problem in geometry has been solved in no less than EIGHT ways by a pair of students. How would you solve it? How many of their solutions can you follow? How are they the same or different? Which do you like best?

Rots and Refs

Follow hints using a little coordinate geometry, plane geometry and trig to see how matrices are used to work on transformations of the plane.

Reflect Again

Follow hints to investigate the matrix which gives a reflection of the plane in the line y=tanx. Show that the combination of two reflections in intersecting lines is a rotation.

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo