Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the primary goal of an agent in Reinforcement Learning?
Not quite. Try another option.
Answer: To maximize the cumulative reward over time
In Reinforcement Learning, the agent interacts with an environment and aims to learn a policy that maximizes the total amount of reward it receives over the long run.
Question 2 of 50
Which of the following elements is NOT a core component of a Reinforcement Learning system?
Not quite. Try another option.
Answer: Supervisor Labels
Reinforcement Learning is distinct from Supervised Learning because it relies on a reward signal from the environment rather than labeled input/output pairs provided by a supervisor.
Question 3 of 50
In the context of RL, what does the 'Markov Property' imply about the state?
Not quite. Try another option.
Answer: The future depends only on the current state and action, not the history.
A state signal has the Markov property if the current state captures all relevant information from the history, making the future independent of the past given the present.
Question 4 of 50
What does a 'Policy' represent in Reinforcement Learning?
Not quite. Try another option.
Answer: A mapping from perceived states to actions to be taken
A policy defines the agent's behavior. It maps states of the environment to the actions the agent should take when in those states.
Question 5 of 50
In an MDP, what does the discount factor (gamma, γ) determine?
Not quite. Try another option.
Answer: The importance of future rewards relative to immediate rewards
The discount factor (0 <= γ <= 1) determines the present value of future rewards. A value close to 0 makes the agent shortsighted, while a value close to 1 makes it farsighted.
Question 6 of 50
Which tuple represents a finite Markov Decision Process (MDP)?
Not quite. Try another option.
Answer: (S, A, P, R, γ)
An MDP is typically defined by a tuple containing States (S), Actions (A), Transition Probabilities (P), Reward Function (R), and a Discount Factor (γ).
Question 7 of 50
What is the difference between a Value Function V(s) and an Action-Value Function Q(s, a)?
Not quite. Try another option.
Answer: V(s) estimates the return of a state, while Q(s, a) estimates the return of taking an action in a state.
V(s) (State-Value) predicts the expected return starting from state s. Q(s, a) (Action-Value) predicts the expected return starting from state s, taking action a.
Question 8 of 50
The Bellman Equation expresses the relationship between:
Not quite. Try another option.
Answer: The value of a state and the values of its successor states
The Bellman Equation is a recursive definition that decomposes the value function into the immediate reward plus the discounted value of the next state.
Question 9 of 50
Which method requires the completion of an entire episode before updating the value estimates?
Not quite. Try another option.
Answer: Monte Carlo Learning
Monte Carlo methods wait until the end of an episode to calculate the actual return (sum of rewards) and then update the value estimates based on that return.
Question 10 of 50
What is 'Bootstrapping' in the context of Temporal Difference (TD) learning?
Not quite. Try another option.
Answer: Updating an estimate based on another estimate
TD learning bootstraps because it updates its guess for the value of a state based on its guess for the value of the next state, rather than waiting for the final actual return.
Question 11 of 50
In the Exploration vs. Exploitation trade-off, what does 'Exploitation' refer to?
Not quite. Try another option.
Answer: Choosing the action currently believed to be the best
Exploitation involves maximizing current expected reward by selecting the action that the agent already knows yields the highest value.
Question 12 of 50
What is the Epsilon-Greedy strategy?
Not quite. Try another option.
Answer: Choosing the best action most of the time, but a random action with probability epsilon
Epsilon-Greedy balances exploration and exploitation. With probability 1-epsilon it exploits (greedy), and with probability epsilon it explores (random action).
Question 13 of 50
Which equation represents the Bellman Optimality Equation for V*(s)?
Not quite. Try another option.
Answer: V(s) = max_a Σ P(s'|s,a) [R + γV(s')]
The Bellman Optimality Equation states that the value of a state under an optimal policy must equal the expected return for the best action from that state.
Question 14 of 50
In Monte Carlo learning, what is the difference between 'First-visit' and 'Every-visit' MC?
Not quite. Try another option.
Answer: First-visit updates only the first time a state is visited in an episode; Every-visit updates for all visits.
In an episode, a state might be visited multiple times. First-visit MC averages returns only from the first occurrence, while Every-visit MC averages returns following all visits to that state.
Question 15 of 50
What is the TD(0) update rule for V(s)?
Not quite. Try another option.
Answer: V(s) ← V(s) + α [R + γV(s') - V(s)]
The TD(0) update moves the current value estimate V(s) toward the TD target (R + γV(s')), where alpha is the learning rate.
Question 16 of 50
Which of the following describes a 'Model-Free' RL approach?
Not quite. Try another option.
Answer: The agent learns a policy or value function directly from experience without knowing the environment's dynamics.
Model-free methods (like MC and TD) do not require a model of the environment (transition probabilities P and rewards R) to learn; they rely on trial-and-error experience.
Question 17 of 50
What is the return (Gt) in Reinforcement Learning?
Not quite. Try another option.
Answer: The total discounted sum of future rewards
The return Gt is the goal of the agent, calculated as the sum of discounted rewards from time step t until the end of the episode.
Question 18 of 50
If the discount factor γ is 0, the agent is:
Not quite. Try another option.
Answer: Myopic (cares only about immediate reward)
If γ=0, the return Gt equals the immediate reward Rt, meaning the agent ignores all future consequences and focuses solely on the current step.
Question 19 of 50
What is an 'Episodic Task'?
Not quite. Try another option.
Answer: A task that breaks interaction into subsequences called episodes which end in a terminal state
Episodic tasks have a defined starting point and a terminal state (like a game of chess). Once the terminal state is reached, the episode ends and the system resets.
Question 20 of 50
Comparing MC and TD methods, which statement is true regarding variance and bias?
Not quite. Try another option.
Answer: MC has high variance, zero bias; TD has low variance, some bias.
MC is unbiased because it uses actual returns, but has high variance due to stochasticity over a full episode. TD introduces bias via bootstrapping but has lower variance.
Question 21 of 50
In the context of the Bellman Equation, what is p(s', r | s, a)?
Not quite. Try another option.
Answer: The dynamics function (probability of next state and reward)
This term represents the joint probability of transitioning to state s' and receiving reward r, given that the agent takes action a in state s.
Question 22 of 50
What is a 'Deterministic Policy'?
Not quite. Try another option.
Answer: A policy that maps a state to a specific, single action
A deterministic policy denotes that for every state s, there is exactly one action a = π(s) that the agent will take.
Question 23 of 50
Which learning method performs updates step-by-step without waiting for the episode to end?
Not quite. Try another option.
Answer: Temporal Difference
Temporal Difference (TD) learning updates estimates after every time step (or n steps) using the immediate reward and the estimate of the next state.
Question 24 of 50
The term 'Greedy Action' implies:
Not quite. Try another option.
Answer: Selecting the action with the highest estimated value
A greedy action is one that exploits current knowledge by choosing the action associated with the maximum Q-value for the current state.
Question 25 of 50
What is the role of the Value Function?
Not quite. Try another option.
Answer: To predict how good it is to be in a specific state
Value functions quantify the 'goodness' of a state (or state-action pair) defined as the expected future reward achievable from that state.
Question 26 of 50
Which of the following is NOT a challenge in Reinforcement Learning?
Not quite. Try another option.
Answer: Availability of labeled training data
Labeled training data is a requirement for Supervised Learning, not RL. RL agents learn from scalar reward signals, not correct answer labels.
Question 27 of 50
In the equation Gt = R{t+1} + γR{t+2} + γ^2R{t+3} + ... , what is G_t?
Not quite. Try another option.
Answer: The discounted return
G_t represents the sum of discounted future rewards starting from time t, known as the return.
Question 28 of 50
Why is exploration necessary in Reinforcement Learning?
Not quite. Try another option.
Answer: To discover states and actions that might yield higher rewards than the current best known options
If an agent only exploits, it may get stuck in a suboptimal solution. Exploration ensures the agent gathers enough information about the environment to find the global optimum.
Question 29 of 50
Which of the following is an Off-Policy control method?
Not quite. Try another option.
Answer: Q-Learning
Q-Learning is off-policy because it learns the value of the optimal policy (using max over actions) independently of the agent's actual actions (which might be epsilon-greedy).
Question 30 of 50
What is the 'Credit Assignment Problem' in RL?
Not quite. Try another option.
Answer: Determining which past action is responsible for a current reward
Because rewards are often delayed, it is difficult to determine exactly which action in a long sequence caused the positive or negative outcome.
Question 31 of 50
An optimal policy π* is defined as:
Not quite. Try another option.
Answer: A policy that is better than or equal to all other policies
A policy π is optimal if its expected return Vπ(s) is greater than or equal to Vπ(s) for all states s and all other policies π.
Question 32 of 50
In Q-Learning, the target value for the update is:
Not quite. Try another option.
Answer: R + γ max_a' Q(s', a')
Q-Learning updates the Q-value towards the immediate reward plus the discounted value of the best possible action in the next state (greedy target).
Question 33 of 50
Monte Carlo methods are applicable only to:
Not quite. Try another option.
Answer: Episodic tasks
Monte Carlo methods require the episode to terminate so that the final return can be calculated and used for updates.
Question 34 of 50
What does SARSA stand for?
Not quite. Try another option.
Answer: State-Action-Reward-State-Action
SARSA represents the quintuple (S_t, At, R{t+1}, S{t+1}, A{t+1}) used in the update rule for this on-policy TD control method.
Question 35 of 50
When does the 'Optimistic Initial Values' technique encourage exploration?
Not quite. Try another option.
Answer: When initial value estimates are set higher than the expected maximum reward
If values start high, the agent is 'disappointed' by actual rewards (which are lower) and tries other actions to find the supposed high rewards, thus exploring.
Question 36 of 50
Which Bellman equation is linear?
Not quite. Try another option.
Answer: Bellman Expectation Equation
The Bellman Expectation Equation for a fixed policy is a system of linear equations. The Optimality Equation contains a 'max' operator, making it non-linear.
Question 37 of 50
What is the main advantage of TD learning over Monte Carlo?
Not quite. Try another option.
Answer: It can learn online during an episode
TD learning can update values after every step, making it suitable for continuous tasks or very long episodes, whereas MC must wait for the episode to end.
Question 38 of 50
The sequence of states and actions S0, A0, R1, S1, A1, R2... is called:
Not quite. Try another option.
Answer: A Trajectory
A trajectory (or history) is the sequence of states, actions, and rewards encountered by the agent as it interacts with the environment.
Question 39 of 50
In a stochastic environment:
Not quite. Try another option.
Answer: Taking an action leads to a next state based on a probability distribution
Stochasticity means there is randomness in the transitions; doing action A in state S does not guarantee arriving at state S'.
Question 40 of 50
Which algorithm is considered 'On-Policy'?
Not quite. Try another option.
Answer: SARSA
SARSA is on-policy because it updates the Q-values based on the action actually taken by the current policy (including exploratory steps).
Question 41 of 50
The quantity R + γV(s') is often called the:
Not quite. Try another option.
Answer: TD Target
In TD learning, the estimate is updated towards this value, which acts as the target for the prediction.
Question 42 of 50
If an agent uses a pure Greedy strategy (epsilon=0), it:
Not quite. Try another option.
Answer: Never explores
A pure greedy strategy always picks the current best-known action, never trying new actions to see if they are better (zero exploration).
Question 43 of 50
The State-Value function V_π(s) is the expected return starting from state s and then following:
Not quite. Try another option.
Answer: Policy π
V_π(s) specifically evaluates the expected return if the agent behaves according to the specific policy π.
Question 44 of 50
Dynamic Programming (DP) methods in RL assume:
Not quite. Try another option.
Answer: A perfect model of the environment is available
DP algorithms (like Policy Iteration and Value Iteration) require knowledge of the transition probabilities and reward functions (the model) to compute values.
Question 45 of 50
What is 'Policy Improvement'?
Not quite. Try another option.
Answer: Making a new policy that is greedy with respect to the current value function
Policy Improvement generates a better policy π' by acting greedily with respect to the value function of the current policy π.
Question 46 of 50
Upper Confidence Bound (UCB) is an algorithm used to handle:
Not quite. Try another option.
Answer: The Exploration-Exploitation Dilemma
UCB selects actions based on their estimated value plus a confidence interval term, encouraging exploration of actions with uncertain values.
Question 47 of 50
In the TD error equation δ = R + γV(s') - V(s), what does δ represent?
Not quite. Try another option.
Answer: The difference between the target and the current estimate
The TD error (delta) measures the surprise or difference between the improved estimate (target) and the current estimate.
Question 48 of 50
A key distinction between Reinforcement Learning and Unsupervised Learning is:
Nearly through. Did unit 4 of INT423 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of INT423 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.