IFN Lab: Capacity to Stochastic Matrix

qrCapacity2Stochastic

By Kardi Teknomo, PhD

< Previous | Index | Next >

Brief Description

A capacity matrix \( \mathbf{C} \) is a nonnegative weighted adjacency matrix. A stochastic matrix \( \mathbf{S} \) is a matrix whose all of its row sums are one, to represent the outflow probability in each node of the network developed based on the capacity matrix. An irreducible capacity matrix would produce irreducible stochastic matrix \( \mathbf{S} \). An ideal flow matrix \( \mathbf{F} \) is a nonnegative matrix that is premagic and irreducible. Premagic matrix is a square matrix where the sum of rows is equal to the transpose of the sum of columns.

Learning Objectives

Prerequisite

Read: Graph Theory and Linear Algebra

Instruction

You can use the program below to convert capacity matrix into a Markov stochastic matrix.

  1. Click to generate random capacity matrix.
  2. You can modify the input capacity matrix. It must be a non-negative square matrix and irreducible. End each row separated by a semicolon. Separate each data in one row by comma or a space. Your network must not contain any sink node.
  3. Click the arrow to Convert Capacity to Stocastic Matrix.

Experiment and Discussion

The function below is a generalized model to convert capacity matrix to stochastic matrix. Each element of the capacity matrix is raised to the power of α and then multiplied by the exponential of β times the same element. The sum in the denominator is over all such transformed elements in the same row. In matrix form, this can be represented as follows: Let \( \mathbf{C} = [c_{ij}] \) be the capacity matrix, \( \alpha \) and \( \beta \) be the parameters, and \( \mathbf{S} = [s_{ij}] \) be the stochastic matrix. Then, each element \( s_{ij} \) of \( \mathbf{S} \) is given by $$ s_{ij} = \frac{c_{ij}^\alpha e^{\beta c_{ij}}}{\sum_{k=1}^{n} c_{ik}^\alpha e^{\beta c_{ik}}} $$ where \( n \) is the number of columns (or rows, since it's a square matrix) in \( \mathbf{C} \).

Lab Tool: Capacity to Stochastic

size

Capacity matrix




Pattern of Stochastic Matrix





Stochastic matrix




Pattern of Stochastic Matrix

Network of Capacity Matrix

IFN Lab: Capacity to Stochastic Matrix

Index