5.1.10 · D5Reinforcement Learning Foundations
Question bank — Monte Carlo methods


The distribution of the sampled returns — and why MC is unbiased but high-variance — is worth a picture too:

True or false — justify
TF1. Monte Carlo methods need a model of the environment's transition dynamics.
False — MC is model-free; it averages actual observed returns and never touches or .
TF2. Every-visit MC estimates of are biased at finite sample sizes because the repeat-visit returns within an episode are correlated.
False — correlation inflates variance, not bias; every-visit is a mean of returns each with expectation , so it is unbiased at every finite sample size (first-visit is unbiased too, with cleaner independence).
TF3. MC can be applied to a continuing (non-terminating) task as-is.
False — MC requires complete episodes that terminate, because the return can't be computed until an episode ends; continuing tasks have no .
TF4. MC bootstraps: it updates using estimates of successor states.
False — MC uses the whole actual return , never the estimate . Updating from another estimate is bootstrapping (that's TD, not MC).
TF5. With and per-step reward , the return from a state equals minus the number of steps left to termination.
True — , so the return literally counts remaining steps, which is why it measures "distance to goal".
TF6. First-visit and every-visit MC always give the same value estimate for a state.
False — they agree only when returns from repeat visits happen to match; in general every-visit folds in extra (correlated) samples from one episode and a different average.
TF7. The incremental-mean update stores a running mean without keeping all past returns.
True — as figure s02 shows, , so it is memory-efficient and exactly equal to recomputing the full average.
TF8. An -greedy policy with can still be optimal.
In general no — it always keeps probability on random actions, so it's the best policy within the -soft class, not the true greedy optimum unless every non-greedy action happens to be tied.
TF9. In MC control we prefer learning over .
True — greedy improvement needs no model, whereas improving from requires and to look one step ahead, which model-free MC doesn't have.
TF10. Increasing toward 1 lowers the variance of MC returns.
False — a larger weights more distant, more stochastic future rewards, which typically increases return variance; discounting closer to 0 shrinks it.
Spot the error
SE1. "MC updates after each step."
That's a TD(0) update, not MC. MC uses the full return and updates only after the episode ends, never mid-episode from a successor's estimate.
SE2. "First-visit MC averages the return of the first state seen in each episode."
Wrong scope — it's per-state: for each state , use only 's first occurrence in that episode, not just the episode's very first state.
SE3. "We can run pure greedy () MC control and still guarantee convergence to ."
No — with some pairs may never be visited, so their never updates; convergence proofs need every action tried infinitely often (exploration).
SE4. "Since MC is unbiased, it will converge faster than biased TD methods."
Unbiased ≠ fast. MC has high variance, so it often converges slower in practice; bias and variance trade off, and TD's low variance frequently wins.
SE5. "The step-size weights recent returns more heavily."
Backwards — gives equal weight to all past returns (a true mean); a constant is what weights recent returns more, tracking non-stationary values.
SE6. "The return includes reward received on arriving at time ."
No — starts at ; it's the reward from time onwards, excluding what already happened before arriving.
SE7. "Every-visit MC gives independent samples, so it's easier to analyze theoretically."
Reversed — repeat visits within one episode are correlated, which is why first-visit (one independent sample per episode) is the theoretically cleaner one.
Why questions
WHY1. Why must an MC episode terminate before we can update any value?
Because the return is a sum running to the terminal step ; without termination there's no final value to sum to, so no complete sample return exists to average.
WHY2. Why does MC have higher variance than one-step TD?
Each MC return is a single sampled path through many stochastic transitions and rewards, so noise compounds along the whole trajectory; TD only samples one step then trusts an estimate.
WHY3. Why is the recursive form useful even though MC doesn't bootstrap?
It lets us compute returns backwards through an episode in one pass — a pure arithmetic convenience — using the already-computed , not a learned estimate.
WHY4. Why does improve the policy without any model?
already bakes in the expected discounted future of taking then following , so choosing the best needs no or — the model information is implicit in the samples.
WHY5. Why does MC converge to as visits grow?
By the law of large numbers the sample mean of returns approaches the expected return, and is the definition of .
WHY6. Why does discounting () keep returns bounded even for long episodes?
The weights form a geometric series; bounded rewards times give a finite bound regardless of how many steps occur.
WHY7. Why do we need exploration in MC control but not in MC evaluation?
Evaluation just measures a fixed policy , following it is enough; control must discover better actions, so it needs to sometimes try non-greedy actions to gather data on them.
Edge cases
EC1. What happens to the first-visit estimate of a state that is never visited in any episode?
It stays at its initial value with ; MC provides no information about states experience never reaches, a real coverage limitation.
EC2. If , what does the return reduce to, and what does learn?
only — MC then estimates just the expected immediate reward (a myopic value), ignoring everything downstream.
EC3. In a one-step episode with reward , what does first-visit MC record for ?
, so moves toward ; first- and every-visit coincide trivially because appears once.
EC4. If a state is visited twice in an episode with returns and , what does each MC flavor contribute?
First-visit adds one sample (earliest occurrence); every-visit adds two samples and from the single episode.
EC5. What return does the terminal state have, and should we update it?
The return from a terminal state is (no future rewards) and its value is fixed at by definition — we don't estimate it.
EC6. In a deterministic environment following a deterministic policy, how many episodes does first-visit MC need to nail each visited state's value exactly?
One — with no randomness every episode gives the identical exact return, so a single sample equals the true value (variance is zero).
EC7. What breaks if a policy assigns zero probability to some action but MC control tries to evaluate for it?
That pair is never sampled, so its never updates — exactly why on-policy control uses -soft policies that keep every action's probability strictly positive.
EC8. With constant step-size instead of , does MC still converge to the true value in a stationary environment?
Not to a fixed point exactly — a constant keeps chasing new returns and leaves residual variance; it's used deliberately for non-stationary problems where old data should fade.