This question evaluates understanding of discrete-time Markov chains, computation of multi-step transition probabilities from a one-step transition matrix, and empirical estimation of transition matrices from observed state-pair data including handling states with zero outgoing transitions.
Assume a discrete-time Markov chain over a finite set of states .
You are given a 1-step transition probability matrix , where .
Answer queries of the form:
You may use matrix multiplication (e.g., matmul) in your solution.
You are given a list of observed consecutive transitions (state pairs), e.g.:
[(s1, s2), (s2, s3), (s1, s3), (s1, s2), ...]
Construct an estimated transition matrix using transition frequencies:
Login required