VKVlad KulikovPublic / lectures
RL for LLM2 / 13

Module 2. State, Value, and Bellman Equations

Choose your answers and select “Check”. Numbers accept a decimal point, comma, or simple fraction. Answers and drafts are saved in this browser and shared between RU/EN.

Use the author’s worked answers to review open questions and code tasks yourself. Code does not run on this site.

Checked: 0 / 8 · Correct: 0

Question P01 · State sufficiency as a testable claim

Two visible state records are identical and the action is the same, yet a tool's next response depends on a hidden authorization token. What follows?

One correct option

Question P02 · Reward on a terminal transition

An agent enters the goal and receives +5+5. The terminal-state value is zero. What target should the predecessor receive for any γ\gamma?

Question P03 · The numerical cost of a wrong mask

Let r=1r=1, γ=0.9\gamma=0.9, and V(s′)=2V(s')=2. Compute the target for a true terminal and for external truncation. How much does the wrong terminal mask understate the truncated target?

Only your selection or numeric part is checked automatically. Compare your reasoning with the author’s worked answer.

Question P04 · Policy-weighted zero advantage

A policy has probabilities [0.2,0.3,0.5][0.2,0.3,0.5] and advantages [−2,1,x][-2,1,x]. Find xx if the advantages are correctly centered under the policy.

Question P05 · Bellman residual versus value error

For a fixed policy, γ=0.95\gamma=0.95 and ∥TπV^−V^∥∞=0.02\|T_\pi\widehat V-\widehat V\|_\infty=0.02. What upper bound follows for the value error? Is it the exact error?

Question P06 · What changes at gamma = 1

Choose the most accurate statement.

One correct option

Question P07 · Reading FrozenLake value

Reward +1+1 is paid on entry to the goal, all other rewards are zero, and γ=0.9\gamma=0.9. What is the contribution to G0G_0 of success after 4 transitions? After 7 transitions?

Question P08 · Where bootstrapping begins

A target contains three observed rewards followed by γ3V(St+3)\gamma^3V(S_{t+3}). Which part is bootstrapped, and why?

Question P09 · Another multi-step target

Rewards are [2,0,−1][2,0,-1], γ=0.9\gamma=0.9, and V(St+3)=3V(S_{t+3})=3. Compute the three-step target for a non-terminal end of the window and for a true terminal on the third transition.

Question P10 · On-policy without defining it by a replay buffer

Behavior is ε\varepsilon-greedy. The update target represents the same ε\varepsilon-greedy policy, while transitions are kept for one training epoch. Is the method on-policy or off-policy in the module's conceptual sense?

Question P11 · Interpreting CliffWalking without a contradiction

In one run, Q-learning has a greedy return of −13-13 and SARSA has −17-17, yet SARSA obtains better average return during ε\varepsilon-greedy training. Is this contradictory?

Question P12 · Best-of-many under a noisy evaluator

Ten equally good responses receive independent zero-mean noisy scores, and the maximum-scoring response is selected. Is the expected maximum score equal to true quality?