Reinforcement Learning Basics
- 60Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What does generalization error measure in machine learning?
What does generalization error measure in machine learning?
60 questions
- 1
What does generalization error measure in machine learning?
- A
How well a model performs on unseen data
- B
How accurately a model reproduces its training labels
- C
How quickly a model minimizes training loss
- D
How many parameters a model contains
Correct answer
AHow well a model performs on unseen data
Explanation
Generalization error measures performance on unseen or test data rather than only on the training examples.
- A
- 2
Which component of test error represents noise in the test examples that cannot be eliminated by changing the model?
- A
Model variance
- B
Optimization error
- C
Irreducible error
- D
Model bias
Correct answer
CIrreducible error
Explanation
Irreducible error is caused by noise in the test data and cannot be removed through modeling choices.
- A
- 3
What is bias most accurately described as in the bias-variance framework?
- A
Systematic error made by the model across possible training sets
- B
Random noise contained in the test labels
- C
Sensitivity of the model to noise in one training set
- D
Difference between two independently trained optimizers
Correct answer
ASystematic error made by the model across possible training sets
Explanation
Bias is the systematic error of a model, considered across the possible training sets that could have been sampled.
- A
- 4
What does variance measure in a machine learning model?
- A
The model's sensitivity to noise in the training data
- B
The unavoidable noise in the test examples
- C
The average distance of parameters from zero
- D
The number of classes in the output variable
Correct answer
AThe model's sensitivity to noise in the training data
Explanation
Variance reflects how much the learned model changes in response to noise or differences in the training data.
- A
- 5
Why can increasing model capacity reduce training error without necessarily improving test error?
- A
A more complex model prevents the use of cross-validation
- B
A more complex model can reduce bias while increasing variance
- C
A more complex model changes regression into classification
- D
A more complex model always increases irreducible error
Correct answer
BA more complex model can reduce bias while increasing variance
Explanation
Increasing capacity generally reduces bias, but it may make the model more sensitive to training noise and therefore increase variance.
- A
- 6
A model has high variance and performs much better on training data than on cross-validation data. Which intervention is most likely to help?
- A
Fit the model more closely to the training data
- B
Increase model complexity
- C
Increase regularization
- D
Remove the cross-validation set
Correct answer
CIncrease regularization
Explanation
Increasing regularization usually reduces variance, although it can increase bias. The training-to-cross-validation gap is a heuristic sign of high variance.
- A
- 7
What is the typical effect of increasing regularization on bias and variance?
- A
It reduces bias and increases variance
- B
It increases both bias and variance
- C
It reduces both bias and variance in every setting
- D
It increases bias and reduces variance
Correct answer
DIt increases bias and reduces variance
Explanation
Stronger regularization constrains the model, usually reducing variance while making systematic underfitting more likely and thereby increasing bias.
- A
- 8
Why should training error and cross-validation error be examined together during model development?
- A
Their relationship helps identify whether bias or variance is the larger problem
- B
Their average directly equals irreducible error
- C
Their difference determines the number of output classes
- D
Their values eliminate the need to choose a model
Correct answer
ATheir relationship helps identify whether bias or variance is the larger problem
Explanation
Training error and cross-validation error together provide a practical heuristic for diagnosing high bias or high variance and choosing a remedy.
- A
- 9
Which heuristic is used to estimate variance from observed model errors?
- A
The sum of training error and test-label noise
- B
The difference between bias and irreducible error
- C
The gap between cross-validation error and training error
- D
The number of parameters divided by the sample size
Correct answer
CThe gap between cross-validation error and training error
Explanation
The lecture describes the gap between cross-validation error and training error as a heuristic estimate of variance.
- A
- 10
Why are these bias and variance estimates considered heuristic rather than fully principled in practice?
- A
There is generally no direct practical decomposition that precisely estimates both contributions
- B
Cross-validation error is always identical to test error
- C
Irreducible error is known exactly for every dataset
- D
Training error cannot be computed for any model
Correct answer
AThere is generally no direct practical decomposition that precisely estimates both contributions
Explanation
Although the bias-variance decomposition is conceptually useful, directly obtaining the separate contributions in practice is generally difficult, so heuristics are used.
- A
- 11
What distinguishes supervised learning from reinforcement learning in the type of feedback provided?
- A
Supervised learning uses sequences, whereas reinforcement learning uses independent labels
- B
Supervised learning has no inputs, whereas reinforcement learning has only inputs
- C
Supervised learning receives target answers, whereas reinforcement learning receives rewards
- D
Supervised learning receives rewards, whereas reinforcement learning receives target labels
Correct answer
CSupervised learning receives target answers, whereas reinforcement learning receives rewards
Explanation
In supervised learning, the correct output for an input is provided. In reinforcement learning, the agent receives reward feedback instead of a prescribed action or answer.
- A
- 12
What is the defining objective of reinforcement learning?
- A
Maximize accumulated long-term reward over time
- B
Reproduce every action taken by an expert
- C
Maximize only the immediate reward after each action
- D
Minimize training error on independent examples
Correct answer
AMaximize accumulated long-term reward over time
Explanation
Reinforcement learning concerns sequential decision-making, with the goal of maximizing the accumulated reward over the future.
- A
- 13
Why is reinforcement learning different from the usual supervised-learning setting?
- A
Reinforcement learning cannot use probability distributions
- B
Actions in reinforcement learning never influence later decisions
- C
Reinforcement learning uses only continuous outputs
- D
Actions affect future states and rewards rather than each example being independent
Correct answer
DActions affect future states and rewards rather than each example being independent
Explanation
Reinforcement learning involves a sequence of interdependent decisions, whereas supervised examples are typically treated as independent and identically distributed.
- A
- 14
Which task is an example of reinforcement learning?
- A
Predicting a class label from a fixed labeled dataset
- B
Compressing data without receiving environmental feedback
- C
Training a robot to learn how to walk through repeated actions and feedback
- D
Estimating a regression target from independent input-output pairs
Correct answer
CTraining a robot to learn how to walk through repeated actions and feedback
Explanation
A walking robot repeatedly acts in an environment and receives feedback, making it a sequential reinforcement-learning problem.
- A
- 15
How is classification distinguished from regression in the discussed framework?
- A
Classification requires sequential decisions, whereas regression requires rewards
- B
Classification uses no loss function, whereas regression always uses one
- C
Classification predicts a continuous output, whereas regression predicts a binary output
- D
Classification predicts a discrete output, whereas regression predicts a continuous output
Correct answer
DClassification predicts a discrete output, whereas regression predicts a continuous output
Explanation
The distinction is based on the type of the output variable: discrete outputs indicate classification, while continuous outputs indicate regression.
- A
- 16
What does a supervised-learning hypothesis do?
- A
It maps an input x to a predicted output y
- B
It maps a reward directly to a future state
- C
It maps a policy to a transition probability
- D
It maps an action to every possible training set
Correct answer
AIt maps an input x to a predicted output y
Explanation
In supervised learning, the hypothesis is a function that maps inputs to outputs and is learned to generalize to unseen data.
- A
- 17
What generalization do generalized linear models provide over ordinary classification and regression?
- A
They restrict every input to be normally distributed
- B
They allow the conditional distribution of y given x to come from the exponential family
- C
They replace the conditional distribution with a deterministic action
- D
They require every output to be binary
Correct answer
BThey allow the conditional distribution of y given x to come from the exponential family
Explanation
Generalized linear models extend beyond ordinary regression and classification by allowing y given x to follow distributions in the exponential family, including discrete and continuous cases.
- A
- 18
What is the main difference between discriminative and generative modeling?
- A
Discriminative models model p(x) only, whereas generative models model labels only
- B
Discriminative models learn p(y∣x), whereas generative models learn how to generate joint x,y pairs
- C
Discriminative models learn rewards, whereas generative models learn only actions
- D
Discriminative models require kernels, whereas generative models cannot use probability
Correct answer
BDiscriminative models learn p(y∣x), whereas generative models learn how to generate joint x,y pairs
Explanation
Discriminative models directly focus on the conditional relationship between x and y. Generative models model the joint data-generating process, often using p(y)p(x∣y).
- A
- 19
Which pairing correctly matches a generative model with the type of input it was described as handling?
- A
Naive Bayes with discrete inputs and GDA with real-valued inputs
- B
Naive Bayes with continuous inputs and GDA with binary inputs only
- C
Naive Bayes with rewards and GDA with transition matrices
- D
Naive Bayes with actions and GDA with policies
Correct answer
ANaive Bayes with discrete inputs and GDA with real-valued inputs
Explanation
The discussed examples were Naive Bayes for discrete x and Gaussian discriminant analysis for real-valued x.
- A
- 20
What is a kernel in the discussed kernel-method framework?
- A
A regularization coefficient that directly sets model bias
- B
A probability distribution over actions in an MDP
- C
A symmetric positive-definite function with an implicit feature map
- D
A discrete label assigned to each training example
Correct answer
CA symmetric positive-definite function with an implicit feature map
Explanation
Kernels were described as symmetric positive-definite functions that implicitly represent a feature map.
- A
- 21
How does model complexity typically differ between ordinary feature-based models and kernel methods?
- A
Neither kind of model is affected by dataset size
- B
Ordinary models depend mainly on the number of examples, whereas kernel methods depend mainly on the number of labels
- C
Ordinary models depend mainly on the number of features, whereas kernel methods depend mainly on the number of examples
- D
Both kinds of models depend only on the number of output classes
Correct answer
COrdinary models depend mainly on the number of features, whereas kernel methods depend mainly on the number of examples
Explanation
In ordinary models, parameters are associated with features. In kernel methods, coefficients are associated with training examples, so computational cost often depends on the number of examples.
- A
- 22
Why can support vector machines scale relatively well in both feature dimension and number of examples when using kernels?
- A
Kernels eliminate the need for training data, while SVMs use no coefficients
- B
SVMs use only one feature, while kernels remove all examples
- C
Kernels can represent many features, while the learned example coefficients are sparse
- D
SVMs avoid optimization by directly copying the labels
Correct answer
CKernels can represent many features, while the learned example coefficients are sparse
Explanation
Kernel methods can provide an implicit, potentially very large feature space, and SVM solutions often have sparse coefficients over examples.
- A
- 23
How can a neural network be interpreted in terms of features and generalized linear models?
- A
Its earlier layers perform cross-validation and its final layer computes irreducible error
- B
Its earlier layers learn features and its final layer acts like a generalized linear model
- C
Its earlier layers define rewards and its final layer defines transition probabilities
- D
Its earlier layers are fixed kernels and its final layer is always unsupervised
Correct answer
BIts earlier layers learn features and its final layer acts like a generalized linear model
Explanation
The neural-network view presented treats the hidden layers as a learnable feature map and the last layer as a generalized linear model.
- A
- 24
An MDP is formally represented as which tuple?
- A
(S,A,P,γ,R)
- B
(A,P,Q,K,λ)
- C
(X,Y,L,θ,N)
- D
(S,R,V,π,T)
Correct answer
A(S,A,P,γ,R)
Explanation
An MDP consists of a state set S, action set A, transition probabilities P, discount factor γ, and reward function R.
- A
- 25
What does the state set S represent in an MDP?
- A
All possible states in which the agent can be
- B
All training examples used to estimate transitions
- C
All policies that the agent can follow
- D
All rewards that the agent can receive
Correct answer
AAll possible states in which the agent can be
Explanation
The state set S contains the possible configurations or situations occupied by the agent.
- A
- 26
What does the action set A represent in an MDP?
- A
The possible rewards assigned to states
- B
The possible values of the discount factor
- C
The possible actions available to the agent
- D
The possible states reached after an action
Correct answer
CThe possible actions available to the agent
Explanation
The action set contains the choices the agent can make while in a state.
- A
- 27
What does the transition probability P(s,a,s′) describe?
- A
The probability that a policy was selected during training
- B
The probability that state s has the highest long-term value
- C
The probability of reaching s′ after taking action a in state s
- D
The reward received before entering state s
Correct answer
CThe probability of reaching s′ after taking action a in state s
Explanation
The transition model gives the probability of each successor state s′ conditional on the current state s and action a.
- A
- 28
Why can an action lead to different successor states in an MDP?
- A
The agent is forbidden from choosing a fixed action
- B
The environment may be stochastic or contain uncertainty
- C
The discount factor randomly selects the next state
- D
The reward function changes the definition of the state set
Correct answer
BThe environment may be stochastic or contain uncertainty
Explanation
Transition probabilities model uncertainty in the environment, such as a robot moving a slightly different distance than intended.
- A
- 29
What is the usual role of the discount factor γ?
- A
It converts every negative reward into a positive reward
- B
It weights future rewards less heavily than earlier rewards
- C
It removes stochasticity from state transitions
- D
It determines which actions are legally available
Correct answer
BIt weights future rewards less heavily than earlier rewards
Explanation
The discount factor, with values from 0 to 1, multiplies future rewards by progressively smaller powers of γ.
- A
- 30
What behavior is encouraged by discounting future rewards?
- A
Obtaining positive rewards sooner and postponing negative rewards
- B
Choosing actions uniformly regardless of their consequences
- C
Making future rewards larger than immediate rewards
- D
Ignoring all immediate rewards in favor of distant rewards
Correct answer
AObtaining positive rewards sooner and postponing negative rewards
Explanation
Discounting makes an otherwise equal positive reward more valuable when received sooner and makes delayed negative rewards less costly.
- A
- 31
What is one financial interpretation of the discount factor?
- A
It represents the probability that a trade has no risk
- B
It represents the preference for receiving money sooner rather than later
- C
It represents the number of actions available to an investor
- D
It represents the variance of a financial dataset
Correct answer
BIt represents the preference for receiving money sooner rather than later
Explanation
In a financial setting, discounting reflects the time value of money: receiving money sooner is preferred to receiving the same amount later.
- A
- 32
How is a reward function commonly represented in the basic formulation?
- A
As a probability distribution over all policies
- B
As a real-valued function of the state, such as R(s)
- C
As a matrix that contains only transition probabilities
- D
As a binary function of the training example index
Correct answer
BAs a real-valued function of the state, such as R(s)
Explanation
The basic discussion represents reward as a real-valued function of the state. It may also be modeled as R(s,a) when action-specific costs matter.
- A
- 33
Why might a reward function depend on both state and action rather than state alone?
- A
Transition probabilities cannot be defined for individual actions
- B
The discount factor is defined only for action-state pairs
- C
Different actions taken in the same state may have different costs
- D
The state cannot be observed before an action is taken
Correct answer
CDifferent actions taken in the same state may have different costs
Explanation
An action-dependent reward R(s,a) can capture cases where two actions lead from the same state but incur different costs or benefits.
- A
- 34
What is a trajectory, episode, or trial in reinforcement learning?
- A
A list of all actions that are impossible in an environment
- B
A single reward value assigned to the initial state
- C
A fixed training set of independent input-output pairs
- D
A sequence of states and actions generated as the agent interacts with the environment
Correct answer
DA sequence of states and actions generated as the agent interacts with the environment
Explanation
These terms refer to the sequence formed as the agent takes actions and the environment produces successor states.
- A
- 35
What is a policy π?
- A
A function that specifies an action for a given state
- B
A function that assigns a reward to every training example
- C
A distribution that describes only the initial state
- D
A matrix that stores the value of every possible trajectory
Correct answer
AA function that specifies an action for a given state
Explanation
A policy maps states to actions, telling the agent what action to take when it is in each state.
- A
- 36
How does value differ from immediate reward?
- A
Value is observed directly, whereas reward must always be estimated
- B
Value is always binary, whereas reward is always continuous
- C
Value is the expected discounted sum of future rewards, whereas reward is immediate
- D
Value describes the current action, whereas reward describes the policy
Correct answer
CValue is the expected discounted sum of future rewards, whereas reward is immediate
Explanation
Reward is the immediate payoff from entering a state or taking an action, while value measures the long-term expected payoff from a state under a policy.
- A
- 37
What does Vπ(s) represent?
- A
The largest reward available from any state-action pair
- B
The immediate reward obtained in s regardless of future actions
- C
The probability of selecting state s under every possible policy
- D
The expected discounted sum of future rewards starting at s while following π
Correct answer
DThe expected discounted sum of future rewards starting at s while following π
Explanation
Vπ(s) is the expected long-term discounted return when the agent starts in state s and follows policy π thereafter.
- A
- 38
Why is an expectation needed in the definition of Vπ(s)?
- A
The reward function is never specified by the MDP
- B
The policy must select every action with equal probability
- C
The initial state is always chosen uniformly at random
- D
Future states and rewards are random because transitions can be stochastic
Correct answer
DFuture states and rewards are random because transitions can be stochastic
Explanation
Although the starting state is fixed when evaluating Vπ(s), future successor states can vary according to the transition probabilities.
- A
- 39
Which equation expresses the Bellman equation for a fixed policy?
- A
Vπ(s)=γR(s)+∑s′P(s,s′,π(s))
- B
Vπ(s)=R(s)+γ∑aVπ(a)
- C
Vπ(s)=maxaR(s,a)−γVπ(s)
- D
Vπ(s)=R(s)+γ∑s′P(s,π(s),s′)Vπ(s′)
Correct answer
DVπ(s)=R(s)+γ∑s′P(s,π(s),s′)Vπ(s′)
Explanation
The Bellman equation decomposes value into the immediate reward plus the discounted expected value of successor states under the action prescribed by the policy.
- A
- 40
In the Bellman equation, what does the summation over successor states calculate?
- A
The variance of the rewards across training datasets
- B
The total number of actions available in the current state
- C
The immediate reward accumulated before reaching the current state
- D
The expected future value after taking the policy-prescribed action
Correct answer
DThe expected future value after taking the policy-prescribed action
Explanation
The transition probabilities weight the values of possible successor states, producing the expected future value.
- A
- 41
How can the value function for a fixed policy be computed when the state space is finite?
- A
By ignoring the transition probabilities
- B
By maximizing over policies without evaluating any one policy
- C
By solving a system of linear equations
- D
By choosing the action with the largest immediate reward only
Correct answer
CBy solving a system of linear equations
Explanation
For a fixed policy, the Bellman equations are linear in the state values and can be solved as a linear system.
- A
- 42
What does the matrix Pπ contain?
- A
The transition probabilities obtained when each state follows the action prescribed by π
- B
The inverse of the state-value vector for the optimal policy
- C
The probabilities of observing each training label
- D
The rewards obtained from every possible policy and trajectory
Correct answer
AThe transition probabilities obtained when each state follows the action prescribed by π
Explanation
Each row of Pπ corresponds to a current state, and contains the transition distribution produced by taking the action π(s).
- A
- 43
Which matrix expression gives the value function for a fixed policy?
- A
Vπ=(I+γPπ)R
- B
Vπ=(I−γPπ)−1R
- C
Vπ=γ(I−Pπ)R−1
- D
Vπ=R−γ(Pπ)−1
Correct answer
BVπ=(I−γPπ)−1R
Explanation
Writing the Bellman equations as Vπ=R+γPπVπ and rearranging yields Vπ=(I−γPπ)−1R.
- A
- 44
What is the optimal value function V∗(s)?
- A
The immediate reward obtained at state s under the first policy tried
- B
The value obtained by always choosing the most frequent action
- C
The maximum value achievable at state s over all policies
- D
The average value of all states under a fixed policy
Correct answer
CThe maximum value achievable at state s over all policies
Explanation
The optimal value is defined by V∗(s)=maxπVπ(s), meaning the greatest long-term value attainable from state s.
- A
- 45
Which equation characterizes the optimal value function?
- A
V∗(s)=R(s)+∑πP(s,π(s),s′)Vπ(s′)
- B
V∗(s)=γR(s)+mina∑s′P(s,a,s′)
- C
V∗(s)=maxaR(s,a)−γV∗(s)
- D
V∗(s)=R(s)+maxaγ∑s′P(s,a,s′)V∗(s′)
Correct answer
DV∗(s)=R(s)+maxaγ∑s′P(s,a,s′)V∗(s′)
Explanation
The optimal Bellman equation chooses the action whose expected discounted successor value is greatest.
- A
- 46
Why can the optimal Bellman equation not generally be solved as the same simple linear system as the fixed-policy equation?
- A
The transition probabilities must all equal zero
- B
The reward function is not allowed to be known
- C
The state space disappears from the equation
- D
The maximization over actions makes the equation nonlinear
Correct answer
DThe maximization over actions makes the equation nonlinear
Explanation
The max operator over actions prevents the optimal Bellman equation from being a linear system in the same direct way as the fixed-policy equation.
- A
- 47
How is the optimal policy related to the optimal value function?
- A
It chooses a random action independently of the current state
- B
It chooses the action with the greatest expected successor value under V∗
- C
It chooses the action with the smallest immediate reward
- D
It chooses the action that minimizes the number of successor states
Correct answer
BIt chooses the action with the greatest expected successor value under V∗
Explanation
The optimal policy is given by the action maximizing the expected value of the next state, using the optimal value function.
- A
- 48
What is the main update performed by value iteration?
- A
For every state, permanently select the first available action
- B
For every transition, remove all stochastic outcomes
- C
For every state, replace its value with the optimal Bellman backup using the current values
- D
For every policy, solve only for its immediate rewards
Correct answer
CFor every state, replace its value with the optimal Bellman backup using the current values
Explanation
Value iteration initializes values and repeatedly applies the optimal Bellman update: V(s)←R(s)+maxaγ∑s′P(s,a,s′)V(s′).
- A
- 49
How is value iteration typically initialized in the described algorithm?
- A
Set every state value using the optimal policy
- B
Set every state value to its transition probability
- C
Set every state value to its maximum possible reward
- D
Set the value of every state to zero
Correct answer
DSet the value of every state to zero
Explanation
The described value-iteration procedure initializes V(s)=0 for every state before repeatedly applying Bellman updates.
- A
- 50
Why does value iteration converge to the optimal value function?
- A
Every policy produces exactly the same transition matrix
- B
The Bellman backup operator is a contraction mapping with a fixed point at V∗
- C
The reward function is always positive in every state
- D
The algorithm evaluates only one state and never changes it
Correct answer
BThe Bellman backup operator is a contraction mapping with a fixed point at V∗
Explanation
Repeated application of the Bellman optimality operator converges because it is a contraction mapping; its fixed point is the optimal value function.
- A
- 51
What does it mean for an operator to be a contraction mapping in this context?
- A
The operator maps every state to the same action in one step
- B
Every output is farther from the optimal value than its input
- C
Outputs produced from two inputs are closer together than the original inputs
- D
The operator always returns the immediate reward unchanged
Correct answer
COutputs produced from two inputs are closer together than the original inputs
Explanation
A contraction brings any two input value functions closer together after applying the operator, leading to convergence toward a unique fixed point.
- A
- 52
What is the fixed point of the optimal Bellman backup operator?
- A
The first randomly selected policy
- B
The optimal value function V∗
- C
The initial zero value function only
- D
The reward function R for every MDP
Correct answer
BThe optimal value function V∗
Explanation
At the fixed point, applying the optimal Bellman operator changes nothing; this fixed point is V∗.
- A
- 53
What is the key distinction between synchronous and asynchronous value iteration?
- A
Synchronous updates replace all state values together, whereas asynchronous updates can use newly updated values immediately
- B
Synchronous iteration maximizes rewards, whereas asynchronous iteration minimizes them
- C
Synchronous iteration uses policies, whereas asynchronous iteration uses no transition probabilities
- D
Synchronous iteration is stochastic, whereas asynchronous iteration is always deterministic
Correct answer
ASynchronous updates replace all state values together, whereas asynchronous updates can use newly updated values immediately
Explanation
Synchronous value iteration computes updates using the previous full value function and replaces them together. Asynchronous versions update states individually and may use updated values during the same sweep.
- A
- 54
What is the first major step in policy iteration?
- A
Initialize all values to infinity and remove the policy
- B
Initialize a policy and compute its corresponding value function
- C
Replace every transition probability with a deterministic transition
- D
Choose the optimal action without evaluating any values
Correct answer
BInitialize a policy and compute its corresponding value function
Explanation
Policy iteration begins with an initial policy, evaluates it by solving the fixed-policy Bellman equations, and then improves it.
- A
- 55
How does policy iteration improve a current policy?
- A
It changes actions randomly until the reward becomes positive
- B
It selects the action with the smallest transition probability
- C
It chooses, at each state, the action with the greatest expected successor value under the current value function
- D
It keeps the policy fixed and changes only the discount factor
Correct answer
CIt chooses, at each state, the action with the greatest expected successor value under the current value function
Explanation
After evaluating the current policy, policy iteration performs a policy-improvement step using the action that maximizes expected future value.
- A
- 56
When can policy iteration stop according to the described convergence test?
- A
When the value of the initial state becomes zero
- B
When a complete policy-improvement sweep leaves the policy unchanged
- C
When every action has been tried exactly once
- D
When the immediate reward at one state is positive
Correct answer
BWhen a complete policy-improvement sweep leaves the policy unchanged
Explanation
A stable policy that does not change during a full improvement step is the converged optimal policy under the stated finite-MDP setting.
- A
- 57
How do value iteration and policy iteration differ in their computational approach?
- A
Value iteration is supervised, whereas policy iteration is an unsupervised clustering method
- B
Value iteration searches only one policy, whereas policy iteration evaluates all policies simultaneously
- C
Value iteration repeatedly updates values, whereas policy iteration alternates policy evaluation and policy improvement
- D
Value iteration never uses rewards, whereas policy iteration never uses transition probabilities
Correct answer
CValue iteration repeatedly updates values, whereas policy iteration alternates policy evaluation and policy improvement
Explanation
Value iteration applies optimal Bellman backups directly. Policy iteration repeatedly evaluates a fixed policy and then improves that policy.
- A
- 58
Why can policy iteration be more expensive per iteration for a large state space?
- A
Policy improvement requires enumerating every possible trajectory to infinity
- B
Policy evaluation uses a separate model for every training example
- C
Policy iteration must remove all stochastic transitions before proceeding
- D
Policy evaluation requires solving or inverting a state-by-state linear system
Correct answer
DPolicy evaluation requires solving or inverting a state-by-state linear system
Explanation
For a finite state space, policy evaluation involves an inverse or equivalent solution involving an S×S matrix, which can be costly for large S.
- A
- 59
What is the important convergence distinction between the two algorithms?
- A
Policy iteration reaches the exact optimum after finite policy changes, while value iteration approaches the optimum to a chosen precision
- B
Value iteration always reaches the exact optimum in one step, while policy iteration never converges
- C
Both algorithms necessarily require infinitely many policy changes to reach any solution
- D
Neither algorithm can produce an optimal policy from its value estimates
Correct answer
APolicy iteration reaches the exact optimum after finite policy changes, while value iteration approaches the optimum to a chosen precision
Explanation
For the finite setting described, policy iteration converges after a finite number of policy improvements. Value iteration converges toward V∗ and can achieve arbitrary precision, though it may not attain the exact value in a finite number of updates.
- A
- 60
If value iteration has produced a value function that is close to V∗, how can a corresponding policy be obtained?
- A
Choose at each state the action maximizing expected successor value under that estimated value function
- B
Use the policy that was randomly initialized before value iteration
- C
Average all actions and ignore their transition probabilities
- D
Choose the action with the lowest immediate reward at each state
Correct answer
AChoose at each state the action maximizing expected successor value under that estimated value function
Explanation
A policy can be extracted from any value estimate by selecting the action that maximizes the expected successor value, using the same policy-improvement relationship.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.