Markov Chains
Markov Chains
Loosely put, a Markov Chain is a mathematical process involving transitions, governed by certain probabilistic rules, between different states. Markov chains are a special type of stochastic process that satisfy the Markov property, which states that the future state of the system depends only on its present state, and not on its history of past states. These types of systems appear frequently in math competitions, and are even more prevalent in various real-world applications.
Formulation
When a Markov chain "jumps" from one state to another, we call it a step. The number of steps a chain has undergone is conventionally denoted by a nonnegative index known as the time of the system. We use to denote all the possible states of the system,
to denote the time index of the system, and
to denote the state of the system at time
. Notice that the state of the system at time
is random, so
is a random variable. Here, we assume that we are dealing with a discrete-time Markov chain, which is equivalent to assuming
is an integer. To describe the probabilities for our process we need to calculate
for every and sequence of states
. Conditional probability tells us that the above is equal to
Define
We typically use instead of
to simplify our notation. In reality,
is the initial probability distribution usually given by the context.
Since our process satisfies the Markov property, we know that
Now we make the additional assumption that depends only on
, but not
. This assumption is called time homogeneity, and it just means that the "transition" probability from one state to another is invariant with respect to time. As a result, we can write
for some function
that from now on we will call the transition probability.
Using our new notation, it's not hard to see:
Notice that used to be our first term, but now it's our last term. Although we could have preserved the original order by using
instead of
(as seen in some textbooks), we choose to use
over
to avoid complications with matrix calculations that may arise later on.
Now consider the problem of calculating the probability distribution of for a given time
and initial probability transition
. There are several ways to approach this problem, all essentially the same, but different in form.
Approach 1 (Pure Matrix Multiplication)
Our goal is to calculate for any given time
and state
. By using the law of total probability, or just intuition, it's easy to see:
People well-versed in matrix multiplication will notice that the above summand is just the th term of the matrix product
, where
is the initial probability distribution vector given by
\begin{equation} \phi = \begin{bmatrix} \phi(1) \\ \phi(2) \\ \vdots \\ \phi(N) \end{bmatrix} \end{equation}
and is the transition matrix given by
\begin{equation} \textbf{P} = \begin{bmatrix} p(1, 1) & p(1, 2) & \cdots & p(1, N) \\ p(2, 1) & p(2, 2) & \cdots & p(2, N) \\ \vdots \\ p(N, 1) & p(N, 2) & \cdots & p(N, N) \end{bmatrix} \end{equation}
is a column vector, and we know from above that
for any value of
. Define
, and
\begin{equation} \phi_t = \begin{bmatrix} \phi_t(1) \\ \phi_t(2) \\ \vdots \\ \phi_t(N) \end{bmatrix} \end{equation}
denotes the probability distribution of
, and our results above can be rewritten as
~tsun26
Absorbing Markov Chains
This article is a stub. Help us out by expanding it.
Problems
Introductory
Problem 1
In the land of Markovia, there are three cities: ,
, and
. There are 100 people who live in
, 120 who live in
, and 160 who live in
. Everyone works in one of the three cities, and a person may work in the same city where they live. In the figure below, an arrow pointing from one city to another is labeled with the fraction of people living in the first city who work in the second city. (For example,
of the people who live in
work in
.) How many people work in
?
(Source)
Problem 2
A cricket randomly hops between leaves, on each turn hopping to one of the other
leaves with equal probability. After
hops what is the probability that the cricket has returned to the leaf where it started?
(Source)
Intermediate
Problem 1
Raashan, Sylvia, and Ted play the following game. Each starts with . A bell rings every
seconds, at which time each of the players who currently have money simultaneously chooses one of the other two players independently and at random and gives
to that player. What is the probability that after the bell has rung
times, each player will have
? (For example, Raashan and Ted may each decide to give
to Sylvia, and Sylvia may decide to give her dollar to Ted, at which point Raashan will have
, Sylvia will have
, and Ted will have
, and that is the end of the first round of play. In the second round Rashaan has no money to give, but Sylvia and Ted might choose each other to give their
to, and the holdings will be the same at the end of the second round.)
(Source)
Problem 2
Frieda the frog begins a sequence of hops on a grid of squares, moving one square on each hop and choosing at random the direction of each hop-up, down, left, or right. She does not hop diagonally. When the direction of a hop would take Frieda off the grid, she "wraps around" and jumps to the opposite edge. For example if Frieda begins in the center square and makes two hops "up", the first hop would place her in the top row middle square, and the second hop would cause Frieda to jump to the opposite edge, landing in the bottom row middle square. Suppose Frieda starts from the center square, makes at most four hops at random, and stops hopping if she lands on a corner square. What is the probability that she reaches a corner square on one of the four hops?
(Source)
Problem 3
In a small pond there are eleven lily pads in a row labeled 0 through 10. A frog is sitting on pad 1. When the frog is on pad ,
, it will jump to pad
with probability
and to pad
with probability
. Each jump is independent of the previous jumps. If the frog reaches pad 0 it will be eaten by a patiently waiting snake. If the frog reaches pad 10 it will exit the pond, never to return. What is the probability that the frog will escape without being eaten by the snake?
(Source)
Problem 4
A bug starts at a vertex of a grid made of equilateral triangles of side length . At each step the bug moves in one of the
possible directions along the grid lines randomly and independently with equal probability. What is the probability that after
moves the bug never will have been more than
unit away from the starting position?
(Source)
Problem 5
A square is drawn in the Cartesian coordinate plane with vertices at ,
,
,
. A particle starts at
. Every second it moves with equal probability to one of the eight lattice points (points with integer coordinates) closest to its current position, independently of its previous moves. In other words, the probability is
that the particle will move from
to each of
,
,
,
,
,
,
, or
. The particle will eventually hit the square for the first time, either at one of the 4 corners of the square or at one of the 12 lattice points in the interior of one of the sides of the square. The probability that it will hit at a corner rather than at an interior point of a side is
, where
and
are relatively prime positive integers. What is
?
(Source)
Problem 6
Call a set of integers spacy if it contains no more than one out of any three consecutive integers. How many subsets of including the empty set, are spacy?
(Source)
Problem 7
Let ,
,
and
be the vertices of a regular tetrahedron, each of whose edges measures
meter. A bug, starting from vertex
, observes the following rule: at each vertex it chooses one of the three edges meeting at that vertex, each edge being equally likely to be chosen, and crawls along that edge to the vertex at its opposite end. Let
be the probability that the bug is at vertex
when it has crawled exactly
meters. Find the value of
.
(Source)
Problem 8
Let be a dodecagon (
-gon). Three frogs initially sit at
and
. At the end of each minute, simultaneously, each of the three frogs jumps to one of the two vertices adjacent to its current position, chosen randomly and independently with both choices being equally likely. All three frogs stop jumping as soon as two frogs arrive at the same vertex at the same time. The expected number of minutes until the frogs stop jumping is
, where
and
are relatively prime positive integers. Find
.
(Source)
Problem 9
A bug starts at a vertex of an equilateral triangle. On each move, it randomly selects one of the two vertices where it is not currently located, and crawls along a side of the triangle to that vertex. Given that the probability that the bug moves to its starting vertex on its tenth move is where
and
are relatively prime positive integers, find
(Source)
Problem 10
Misha rolls a standard, fair six-sided die until she rolls in that order on three consecutive rolls. The probability that she will roll the die an odd number of times is
where
and
are relatively prime positive integers. Find
.
(Source)
This article is a stub. Help us out by expanding it.