Row- and Column-stochastic matrices #
A square matrix M is row-stochastic if all its entries are non-negative and M *ᵥ 1 = 1.
Likewise, M is column-stochastic if all its entries are non-negative and 1 ᵥ* M = 1. This
file defines these concepts and provides basic API for them.
Note that doubly stochastic matrices (i.e. matrices that are both row- and column-stochastic)
are defined in Analysis.Convex.DoublyStochasticMatrix.
Main definitions #
rowStochastic: row-stochastic matrices indexed bynwith entries inR, as a submonoid ofMatrix n n R.colStochastic R n: column-stochastic matrices indexed bynwith entries inR, as a submonoid ofMatrix n n R.
A square matrix is row stochastic iff all entries are nonnegative, and right multiplication by the vector of all 1s gives the vector of all 1s.
Equations
Instances For
A square matrix is row stochastic if each element is non-negative and row sums to one.
Every entry of a row stochastic matrix is nonnegative.
Each row sum of a row stochastic matrix is 1.
The all-ones column vector multiplied with a row stochastic matrix is 1.
Every entry of a row stochastic matrix is less than or equal to 1.
Left multiplication of a row stochastic matrix by a non-negative vector gives a non-negative vector
Right multiplication of a row stochastic matrix by a non-negative vector gives a non-negative vector
Left left-multiplication by row stochastic preserves ℓ₁ norm
The set of row stochastic matrices is convex.
Any permutation matrix is row stochastic.
A square matrix is column stochastic iff all entries are nonnegative, and left multiplication by the vector of all 1s gives the vector of all 1s.
Equations
Instances For
A matrix is column stochastic if each column sums to one.
Every entry of a column stochastic matrix is nonnegative.
Each column sum of a column stochastic matrix is 1.
The all-ones column vector multiplied with a column stochastic matrix is 1.
Every entry of a column stochastic matrix is less than or equal to 1.
Right multiplication of a column stochastic matrix by a non-negative vector gives a non-negative vector.
Left multiplication of a column stochastic matrix by a non-negative vector gives a non-negative vector.
Left left-multiplication by column stochastic preserves ℓ₁ norm
The set of column stochastic matrices is convex.
Any permutation matrix is column stochastic.
The transpose of a matrix is row stochastic matrix if it is column stochastic.
The transpose of a matrix is column stochastic matrix if it is row stochastic.