X = redistribute(mc,numSteps) returns data X on the evolution of a uniform distribution of states in the discrete-time Markov chain mc after it advances numSteps time steps.
Discrete-time Markov chain with NumStates states and transition matrix P, specified as a dtmc object. P must be fully specified (no NaN entries).
numSteps — Number of discrete time steps positive integer
Number of discrete time steps to compute, specified as a positive integer.
Data Types: double
Name-Value Pair Arguments
Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example: 'X0',[0.5 0.25 0.25] specifies an initial state distribution of [0.5 0.25 0.25].
'X0' — Initial distribution nonnegative numeric vector
Initial distribution, specified as the comma-separated pair consisting of 'X0' and a nonnegative numeric vector of NumStates length. redistribute normalizes X0 so that it sums to 1.
X — Evolution of state probabilities nonnegative numeric matrix
Evolution of state probabilities, returned as a (1 + numSteps)-by-NumStates nonnegative numeric matrix. The first row is X0. Subsequent rows are the redistributions at each step, which redistribute determines by the transition matrix P.
Note
If mc is ergodic, and numSteps is sufficiently large, X(end,:) approximates x = asymptotics(mc). See asymptotics.
Tips
To visualize the data created by redistribute, use distplot.