From Weather Probabilities to a Chain
A weather model is useful only when its states and probabilities match the question being asked. If the states are “sunny,” “cloudy,” and “rainy,” the model treats those categories as the complete set of possibilities for each day. Its transition probabilities then describe the weather tomorrow conditional on the weather today. Once the conditional probabilities are organized consistently, a matrix calculation gives the forecast even when today’s weather is uncertain.
Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space, and let \((X_n)_{n\ge 0}\) be a discrete-time process whose value records the weather on day \(n\). Let \(S\) be a finite set of weather states, and let \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\) be the information available through day \(n\). In a homogeneous Markov weather model, the conditional law of tomorrow given the weather history depends only on today and does not change with \(n\). In particular, for a state \(i\) with \(\mathbb{P}(X_n=i)>0\), \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid X_n=i)\). More fully, the Markov assumption says \(\mathbb{P}(X_{n+1}=j\mid\mathcal{F}_n)=p_{X_nj}\) almost surely. Conditional probabilities given an event are defined here only when that event has positive probability; a model may nevertheless specify its transition probabilities for every state, including states that are not reached from its chosen initial law.
State definitions matter. The categories must be mutually exclusive, so a day cannot count as both “sunny” and “rainy” under the model’s coding. They must also cover the outcomes being modelled. If the categories omit a possible weather condition, the transition probabilities need an additional state or a clearly stated convention for assigning that condition. The numerical probabilities are conditional probabilities in a particular direction: the row describes tomorrow given today, not today given tomorrow.
Homogeneity means that the same transition probabilities are used on each day; it does not mean that the weather distribution is unchanged from day to day. In particular, we do not assume the initial distribution is stationary. The immediate task here is a one-step prediction: determine the distribution of \(X_{n+1}\) from the distribution of \(X_n\).
One-Step Prediction
Proof. Fix a state \(j\in S\). The events \(\{X_n=i\}\), for \(i\in S\), are disjoint and together cover the probability space. By the law of total probability and the Markov property,
If \(\mathbb{P}(X_n=i)=0\), its contribution is zero, so no conditional probability on that zero-probability event is needed for this calculation. The \(j\)-th entry of the row-vector product \(\mu_nP\) is precisely \(\sum_{i\in S}\mu_n(i)p_{ij}\). This holds for every \(j\), proving that \(\mu_{n+1}=\mu_nP\). \(\square\)
Proof. For each \(j\), \((\mu P)_j=\sum_i\mu_i p_{ij}\ge0\), because every factor is nonnegative. Summing over all destination states gives
The rearrangement is valid because the state space is finite. The penultimate equality uses the fact that each row of \(P\) sums to \(1\), and the final equality uses that \(\mu\) is a probability distribution. Thus \(\mu P\) has nonnegative entries summing to \(1\). \(\square\)
Worked Weather Models
Worked Example: Completing a Three-State Weather Row
Use the states \(S=\{\text{sunny},\text{cloudy},\text{rainy}\}\). Suppose the model says that, after a sunny day, tomorrow is sunny with probability \(\tfrac35\) and cloudy with probability \(\tfrac14\). Find the remaining probability in that row. Then suppose a cloudy day is followed by sunny weather with probability \(\tfrac13\), cloudy weather with probability \(\tfrac12\), and rainy weather with probability \(\tfrac16\). Give the transition matrix for these two rows.
The sunny-day probabilities must add to \(1\). The probability of rain after a sunny day is therefore \(1-\tfrac35-\tfrac14=\tfrac{20}{20}-\tfrac{12}{20}-\tfrac5{20}=\tfrac3{20}\). In the stated order of states, the sunny row is \((\tfrac35,\tfrac14,\tfrac3{20})\), and the cloudy row is \((\tfrac13,\tfrac12,\tfrac16)\). Check their sums: \(\tfrac35+\tfrac14+\tfrac3{20}=\tfrac{12}{20}+\tfrac5{20}+\tfrac3{20}=1\), and \(\tfrac13+\tfrac12+\tfrac16=\tfrac26+\tfrac36+\tfrac16=1\).
The model also needs a row for rainy weather to be a complete transition matrix. Suppose, as a further modelling assumption, that after a rainy day the probabilities of sunny, cloudy, and rainy weather are \(\tfrac14,\tfrac14,\tfrac12\), respectively. The row sum is \(\tfrac14+\tfrac14+\tfrac12=1\). Thus the complete matrix, in the order sunny, cloudy, rainy, is
If today is known to be sunny, the initial distribution is \(\mu=(1,0,0)\). Multiplying gives \(\mu P=(\tfrac35,\tfrac14,\tfrac3{20})\), the sunny row, as expected. Its entries sum to \(\tfrac35+\tfrac14+\tfrac3{20}=1\). This forecast describes tomorrow; it makes no claim that the same probabilities determine the weather several days later.
Worked Example: Forecasting from a Known Wet-or-Dry State
For a simpler model, let \(S=\{\text{dry},\text{wet}\}\). Suppose that after a dry day the probabilities of dry and wet weather tomorrow are \(\tfrac45\) and \(\tfrac15\), while after a wet day they are \(\tfrac25\) and \(\tfrac35\). If today is known to be wet, calculate tomorrow’s distribution.
With the order dry, wet, the transition matrix is \(P=\begin{bmatrix}\tfrac45&\tfrac15\\\tfrac25&\tfrac35\end{bmatrix}\). Check the rows: \(\tfrac45+\tfrac15=1\) and \(\tfrac25+\tfrac35=1\). Since today is wet with certainty, \(\mu=(0,1)\). Hence \(\mu P=(0\cdot\tfrac45+1\cdot\tfrac25,\ 0\cdot\tfrac15+1\cdot\tfrac35)=(\tfrac25,\tfrac35)\).
Thus tomorrow is dry with probability \(\tfrac25\) and wet with probability \(\tfrac35\). The forecast sums to \(\tfrac25+\tfrac35=1\). It agrees with the wet row of \(P\), which is a useful check when the current state is known with certainty.
Worked Example: Forecasting from an Uncertain Current Weather
Use the states sunny, cloudy, and rainy, in that order. Suppose the transition probabilities are: after sunny weather, \((\tfrac12,\tfrac13,\tfrac16)\); after cloudy weather, \((\tfrac14,\tfrac12,\tfrac14)\); and after rainy weather, \((\tfrac15,\tfrac25,\tfrac25)\). Today’s distribution is \(\mu=(\tfrac13,\tfrac12,\tfrac16)\). Find tomorrow’s distribution.
First check each row: \(\tfrac12+\tfrac13+\tfrac16=\tfrac36+\tfrac26+\tfrac16=1\); \(\tfrac14+\tfrac12+\tfrac14=1\); and \(\tfrac15+\tfrac25+\tfrac25=1\). The initial entries also sum to \(\tfrac13+\tfrac12+\tfrac16=\tfrac26+\tfrac36+\tfrac16=1\). Now apply \(\mu P\) one destination at a time. Tomorrow is sunny with probability
Tomorrow is cloudy with probability
Tomorrow is rainy with probability
Therefore \(\mu P=(\tfrac{13}{40},\tfrac{77}{180},\tfrac{89}{360})\). Check the forecast by putting the entries over denominator \(360\): \(\tfrac{13}{40}+\tfrac{77}{180}+\tfrac{89}{360}=\tfrac{117}{360}+\tfrac{154}{360}+\tfrac{89}{360}=\tfrac{360}{360}=1\). The result is a probability distribution, as required.
Reading the Calculation Correctly
Each forecast entry combines all possible weather states today. For example, the probability of sunny weather tomorrow is the sum, over today’s states \(i\), of “probability of \(i\) today” multiplied by “probability of sunny tomorrow given \(i\) today.” This is why a row-vector initial distribution multiplies \(P\) on the left: the \(j\)-th forecast entry collects the contributions \(\mu_i p_{ij}\) from all starting states \(i\).
Common mistake: multiplying in the wrong order. In the uncertain-weather example, treating \(\mu\) as a column vector and calculating \(P\mu\) gives the entries \(\tfrac{13}{36}\), \(\tfrac38\), and \(\tfrac13\). Their sum is \(\tfrac{13}{36}+\tfrac38+\tfrac13=\tfrac{26}{72}+\tfrac{27}{72}+\tfrac{24}{72}=\tfrac{77}{72}\), which is greater than \(1\). That cannot be a probability distribution. The correction is to use the stated row-vector convention: \(\mu P=(\tfrac{13}{40},\tfrac{77}{180},\tfrac{89}{360})\), whose entries sum to \(1\). The row sums of \(P\) are what ensure that multiplying a probability row vector on the left gives another probability row vector.
A second error is to reverse the conditioning. A matrix entry in the sunny row and rainy column means “probability of rain tomorrow given sun today.” It does not mean “probability of sun today given rain tomorrow.” Those are different conditional probabilities and generally have different values. For a one-day weather forecast, identify the state today first, then use that state’s row—or, if today is uncertain, weight each row by today’s probability of being in that state.
Check Your Understanding
For each question, keep the state order fixed and check that the resulting forecast is a probability distribution.
- In a sunny-cloudy-rainy model, the sunny row has probabilities \(\tfrac12\) for sunny and \(\tfrac13\) for cloudy tomorrow. What must the probability of rain be?
- For the two-state matrix in the known wet-or-dry example, suppose today’s distribution is \((\tfrac34,\tfrac14)\). Compute tomorrow’s dry and wet probabilities.
- Explain why a transition-matrix row represents probabilities of tomorrow’s states conditional on one particular state today.
- What does the \(j\)-th entry of \(\mu P\) add together when today’s state has distribution \(\mu\)?
- Give one reason that a collection of weather categories may fail to define a complete state space for a model.