Stochastic Matrix (original) (raw)

Last Updated : 23 Jul, 2025

**Stochastic matrix is a type of square matrix used in mathematics to describe transitions between different states in a system. Each entry in the matrix represents a probability and is a non-negative real number between 0 and 1. The rows (or sometimes columns) of a stochastic matrix must add up to 1, ensuring that the total probability remains constant. Stochastic matrices are essential for modeling systems that involve randomness, such as Markov chains and algorithms like Google’s PageRank.

In this article, we will discuss all about Stochastic Matrix in detail.

Table of Content

What is a Stochastic Matrix?

A stochastic matrix is a square matrix used in probability theory and statistics where each element represents a probability. In a stochastic matrix, the sum of each row is 1 and indicates that the elements in a row represent the probabilities of transitioning from one state to another in a Markov chain.

Example of Stochastic Matrix

Given the matrix

\begin{bmatrix} 0.2 & 0.5 & 0.3 \\ 0.4 & 0.1 & 0.5 \\ 0.4 & 0.4 & 0.2 \end{bmatrix}

In this matrix:

Each row sums to 1, confirming that this is a right stochastic matrix, where the rows represent probability distributions for state transitions.

Properties of Stochastic Matrix

Following are the properties of Stochastic Matrix

Types of Stochastic Matrices

Some common types of stochastic matrices are:

Let's discuss about these types in detail.

Left Stochastic Matrix

A **left stochastic matrix is one where each column sums to 1. This type is less common but is used in scenarios where the probabilities are organized vertically.

**For Example:

\begin{bmatrix} 0.2 & 0.5 & 0.3 \\ 0.4 & 0.1 & 0.5 \\ 0.4 & 0.4 & 0.2 \end{bmatrix}

In this matrix, each column sums to 1, satisfying the condition of a left stochastic matrix.

Right Stochastic Matrix

A **right stochastic matrix is one where each row sums to 1. This type is widely used, especially in Markov chains and other probabilistic models.

**For Example:

\begin{bmatrix} 0.3 & 0.2 & 0.5 \\ 0.3 & 0.5 & 0.2 \\ 0.4 & 0.3 & 0.3 \end{bmatrix}

Each row in this matrix sums to 1, making it a right stochastic matrix.

Doubly Stochastic Matrix

A **doubly stochastic matrix is a special type where both each row and each column sum to 1. It is used in more symmetric systems where the probability distribution is conserved in all directions.

**For Example:

\begin{bmatrix} 0.2 & 0.3 & 0.5 \\ 0.3 & 0.4 & 0.3 \\ 0.5 & 0.3 & 0.2 \end{bmatrix}

In this matrix, both the rows and columns sum to 1, which is the defining property of a doubly stochastic matrix.

How to Determine if a Matrix is Stochastic?

To determine if a matrix is stochastic, you need to follow these steps:

**Example: Check if the following matrix is stochastic:

\begin{bmatrix} 0.4 & 0.3 \\ 0.6 & 0.7 \end{bmatrix}

Since each row sums to 1, this matrix is a right stochastic matrix.

Applications of Stochastic Matrices

Some of the common applications of Stochastic Matrices are discussed below:

Markov Chains

Stochastic matrices are a cornerstone of Markov chains, which are mathematical systems that transition from one state to another with certain probabilities. The stochastic matrix represents these probabilities, where each row corresponds to a state, and the elements represent the probability of transitioning to other states

**Example:

\begin{bmatrix} 0.8 & 0.4 \\ 0.2 & 0.6 \end{bmatrix}

This matrix shows a two-state Markov chain where, for example, if the system is in state 1, it has an 80% chance of staying in state 1 and a 20% chance of moving to state 2.

Google's PageRank algorithm, which ranks web pages in search engine results, relies on a stochastic matrix to model the probability of moving from one webpage to another. This matrix helps determine the importance of each page by calculating the likelihood of navigating between pages, effectively ranking them based on their link structure.

**Example: Consider a simplified web of 3 pages:

\begin{bmatrix} 0.5 & 0.3 & 0.4 \\ 0.5 & 0.4 & 0.3 \\ 0.0 & 0.3 & 0.3 \end{bmatrix}

In this matrix, the probability values reflect the likelihood of moving from one page to another, with each row summing to 1.

Conclusion

In conclusion, a **stochastic matrix is a powerful tool in mathematics, especially for analyzing probabilities in various systems. Its rows or columns represent probabilities that always add up to 1, making it useful in areas like Markov chains, machine learning, and economics.

**Read More,