Definition · A finite-horizon Markov decision processA set of states, a set of actions, a transition P(a, i, j) giving the probability of moving to state j when action a is taken in state i, a reward r(a, i) earned immediately, and a horizon of T periods. Every row of every transition table sums to 1 exactly.
A policy assigns an action to each state in each period. The value Vₜ(i) is the largest expected total reward obtainable from state i with T − t periods left, and satisfies Vₜ(i) = max over a of [ r(a,i) + Σⱼ P(a,i,j) · Vₜ₊₁(j) ] with V_T(i) = 0.
The lab refuses a transition row that does not sum to exactly 1, rather than normalising it. A distribution that does not add up is a modelling error and not a typing one: silently rescaling it would answer a question the reader did not ask, and every number on the page would be exactly right about it.
states small large actions grow harvest T = 4
grow from small -> small 1/4, large 3/4 pays small 0 large 1
from large -> large 1
harvest from small -> small 1 pays small 3 large 9
from large -> small 3/4, large 1/4
filled from the end, V with 0 periods left is 0 in both states:
1 left small grow 0 + 0 = 0 harvest 3 + 0 = 3 -> harvest 3
large grow 1 + 0 = 1 harvest 9 + 0 = 9 -> harvest 9
2 left small grow 0 + (1/4)(3) + (3/4)(9) = 15/2
harvest 3 + (1)(3) = 6 -> grow 15/2
large grow 1 + (1)(9) = 10
harvest 9 + (3/4)(3) + (1/4)(9) = 27/2 -> harvest 27/2
3 left small grow 0 + (1/4)(15/2) + (3/4)(27/2) = 12 -> grow 12
harvest 3 + 15/2 = 21/2
large grow 1 + 27/2 = 29/2
harvest 9 + (3/4)(15/2) + (1/4)(27/2) = 18 -> harvest 18
4 left small grow 0 + (1/4)(12) + (3/4)(18) = 33/2 -> grow 33/2
harvest 3 + 12 = 15
large grow 1 + 18 = 19
harvest 9 + (3/4)(12) + (1/4)(18) = 45/2 -> harvest 45/2
Read the small state down the table: harvest, grow, grow, grow. With one period left there is nothing to grow into, so the 3 that harvesting pays immediately wins; with two or more, growing pays 0 now and puts three quarters of the probability into the large state, which is worth 9 and then 27/2 and then 18. The large state harvests throughout, because harvesting there pays 9 and only knocks you back three times in four.
What the table does not say on its own
V₀(small) = 33/2 is a claim about a number. “The policy this table describes is worth 33/2 starting from the small state” is a different claim, and it is the one a reader can act on. The lab makes it separately: it takes the argmax in each cell, treats that as a fixed policy, and evaluates it by pushing a probability distribution forward from each starting state through four periods. Both come to 33/2 and 45/2.
Then it does the harder thing. There are two actions, two states and four periods, so a deterministic policy is eight independent choices and there are 256 of them. Every one is evaluated the same forward way, and the best starting from each state is recorded. The best from the small state is 33/2 and from the large state 45/2, which is what the table said. Three routes to the same pair of numbers, and only two of them involve a value function.
Example · An action that ends the gameSwitch to the example with an owned machine: keeping pays 3 a period and leaves it owned four times in five, selling pays 7 once and the sold state pays nothing ever again. With one period left the table sells, because 7 beats 3 and there is no future to protect. With two left it keeps, because keeping is worth 43/5; with three left it keeps again, at 247/25.
Same shape as the growing instance and a different story: here the action that pays best now is the one that destroys every future period, so it becomes correct only at the very end. An absorbing state is worth meeting because it is the cleanest case where a stationary policy is simply wrong.
What the state left out
The transition depends on the current state and the chosen action, and on nothing else. That is the Markov assumption, and it is doing a great deal of work: it says that how you arrived in the small state cannot matter, that the probabilities do not drift over the four periods, and that nothing outside the two named states influences anything. Each of those can be false, and each of them, if false, leaves every number in the table exactly right about a process that is not the one in front of you.
There is a second assumption hiding in the objective. Maximising expected total reward treats a certain 10 and a fifty-fifty gamble between 0 and 20 as the same thing. That is a choice about what the decision-maker cares about, it is not implied by anything in the model, and no amount of exact arithmetic on the expectation will reveal it. Say it out loud before quoting a policy.