Reinforcement Learning Overview
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the third paradigm of machine learning introduced in the lecture?
What is the third paradigm of machine learning introduced in the lecture?
20 questions
- 1
What is the third paradigm of machine learning introduced in the lecture?
- A
Deep learning
- B
Supervised learning
- C
Reinforcement learning
- D
Unsupervised learning
Correct answer
CReinforcement learning
Explanation
The lecture explicitly introduces reinforcement learning as the third paradigm, after supervised and unsupervised learning.
- A
- 2
Which psychological concept is reinforcement learning inspired by?
- A
Observational learning
- B
Cognitive dissonance
- C
Classical conditioning
- D
Operant conditioning
Correct answer
DOperant conditioning
Explanation
The lecture states that reinforcement learning is inspired by operant conditioning in psychology.
- A
- 3
How does reinforcement learning primarily differ from supervised learning?
- A
Reinforcement learning uses labeled data for every input
- B
Reinforcement learning requires a neural network
- C
Reinforcement learning only works with discrete environments
- D
Reinforcement learning uses sparse reward signals and sequences of actions
Correct answer
DReinforcement learning uses sparse reward signals and sequences of actions
Explanation
The lecture emphasizes that reinforcement learning learns through sparse reward signals and sequences of actions, unlike supervised learning which has labels for each data point and learns by error.
- A
- 4
In the 4x4 grid example, what is an episode?
- A
A round of execution from start to one of the terminal states, after which the environment resets
- B
A graphical representation of the policy
- C
A single action taken by the agent
- D
The entire training process of the Q-learning algorithm
Correct answer
AA round of execution from start to one of the terminal states, after which the environment resets
Explanation
The lecture defines an episode as a round of execution in the environment with a beginning and an end, after which the agent resets to the initial state.
- A
- 5
What makes the grid environment discrete?
- A
The actions are limited to four directions
- B
The agent can only move in integer steps
- C
The rewards are only integers
- D
The state space consists of a finite, countable set of positions (16 squares)
Correct answer
DThe state space consists of a finite, countable set of positions (16 squares)
Explanation
The lecture states that the problem is discrete because the agent will always be in one of 16 possible states, which are finite and countable.
- A
- 6
What does it mean for an environment to be fully observable?
- A
The agent has access to the entire state of the environment without hidden information
- B
The rewards are visible to the agent before acting
- C
The agent can see all future states
- D
The environment has no randomness
Correct answer
AThe agent has access to the entire state of the environment without hidden information
Explanation
The lecture explains that fully observable means the agent knows exactly where it is and has no hidden information.
- A
- 7
In the deterministic grid environment, what happens when the agent tries to move upward from the top row?
- A
It stays in the same square
- B
It moves to a random adjacent square
- C
It falls into the trap
- D
It wraps around to the bottom row
Correct answer
AIt stays in the same square
Explanation
The lecture explicitly states that if the agent is at the top and tries to move upward, it stays in the same place because of a wall.
- A
- 8
What do Q-values represent?
- A
The expected cumulative reward from taking that action in that state and then following the optimal policy
- B
The number of times an action has been taken in a state
- C
The probability of success for a given action
- D
The immediate reward received for taking an action
Correct answer
AThe expected cumulative reward from taking that action in that state and then following the optimal policy
Explanation
The lecture defines Q-values as 'how much reward the algorithm expects to accumulate from then on if it chooses that action and continues to always choose the best action.'
- A
- 9
How are Q-values initialized in the first example?
- A
All zeros
- B
Random values between -100 and 100
- C
Optimistic values like 100
- D
Based on the distance to the goal
Correct answer
AAll zeros
Explanation
The lecture initializes all Q-values to zero in the initial example.
- A
- 10
Why is it important to randomly select among actions with tied Q-values?
- A
To guarantee optimal policy
- B
To speed up convergence of the algorithm
- C
To ensure the agent always moves left
- D
To prevent the agent from getting stuck in a loop or wall due to deterministic tie-breaking
Correct answer
DTo prevent the agent from getting stuck in a loop or wall due to deterministic tie-breaking
Explanation
The lecture warns that if the agent always chooses the first action when tied (e.g., left), it will get stuck hitting a wall and never learn. Random selection avoids this.
- A
- 11
What is the epsilon-greedy exploration strategy?
- A
Gradually decrease epsilon over time
- B
With probability epsilon, choose a random action; otherwise, choose the best action
- C
Always choose the best action after epsilon episodes
- D
With probability epsilon, choose the best action; otherwise, choose a random action
Correct answer
BWith probability epsilon, choose a random action; otherwise, choose the best action
Explanation
The lecture defines epsilon-greedy as: 'with an epsilon probability ... we can choose a random action' instead of the best one. So random with probability epsilon, else best.
- A
- 12
What is the exploration-exploitation dilemma?
- A
The balance between learning rate and discount factor
- B
The conflict between immediate and delayed rewards
- C
The choice between supervised and unsupervised learning
- D
The trade-off between exploring new actions to discover better rewards and exploiting known actions to maximize reward
Correct answer
DThe trade-off between exploring new actions to discover better rewards and exploiting known actions to maximize reward
Explanation
The lecture describes exploration as trying new actions (random) and exploitation as choosing the best known action, and the dilemma is balancing them.
- A
- 13
What problem does the discount factor gamma solve?
- A
It prevents the agent from overestimating Q-values
- B
It eliminates the need for exploration
- C
It ensures that rewards further away are valued less, so the agent learns to prefer shorter paths
- D
It makes the environment deterministic
Correct answer
CIt ensures that rewards further away are valued less, so the agent learns to prefer shorter paths
Explanation
The lecture explains that gamma makes rewards further away worth less, so the agent prefers closer rewards and learns more direct paths.
- A
- 14
If gamma = 0.9, what is the Q-value of a state that leads to a state with max future Q = 100, after one step with no immediate reward?
- A
10
- B
90
- C
100
- D
0
Correct answer
B90
Explanation
The lecture shows that when copying, the value is multiplied by gamma. So 100 * 0.9 = 90.
- A
- 15
What is the purpose of the learning rate alpha?
- A
It determines how often the agent explores randomly
- B
It controls how much the Q-value is updated towards the target; a lower alpha makes learning slower but more stable
- C
It sets the initial Q-values
- D
It discounts future rewards
Correct answer
BIt controls how much the Q-value is updated towards the target; a lower alpha makes learning slower but more stable
Explanation
The lecture explains that alpha determines how much the old value moves toward the new target, and a low alpha (0.2) prevents drastic changes.
- A
- 16
In the Q-learning update formula, what is the target value that the old Q-value moves toward?
- A
immediate reward only
- B
reward * gamma
- C
max(Q(s', a'))
- D
reward + gamma * max(Q(s', a'))
Correct answer
Dreward + gamma * max(Q(s', a'))
Explanation
The formula is new_q = old_q + alpha * (reward + gamma * max(next_q) - old_q). The term in parentheses is the target minus old_q.
- A
- 17
How does the update rule change for a terminal state?
- A
alpha is set to 1
- B
gamma is set to 0
- C
The reward is multiplied by gamma
- D
The term gamma * max(next_q) is omitted because there is no future expectation
Correct answer
DThe term gamma * max(next_q) is omitted because there is no future expectation
Explanation
The lecture explains that for terminal states, there is no future, so the formula is modified to remove the expected future term: only the immediate reward is used.
- A
- 18
What is a policy in reinforcement learning?
- A
The environment's transition probabilities
- B
A table of all Q-values
- C
A function that maps a state to an action to be taken
- D
The sequence of rewards obtained in an episode
Correct answer
CA function that maps a state to an action to be taken
Explanation
The lecture defines policy as 'a function that, given a state, returns the action that should be taken.'
- A
- 19
What is optimistic initialization?
- A
Using a high learning rate
- B
Setting initial Q-values to high positive numbers to encourage exploration
- C
Exploiting only the best actions
- D
Starting the agent from a random state
Correct answer
BSetting initial Q-values to high positive numbers to encourage exploration
Explanation
The lecture describes optimistic initialization as putting higher initial values so the agent is curious and tries actions that seem good, thus exploring implicitly.
- A
- 20
Why did the instructor implement a 'copy of the state' in the reset function?
- A
To allow multiple agents to share the same state
- B
To track the history of states
- C
To improve performance by reusing memory
- D
To avoid bugs where state changes unexpectedly due to mutable object references
Correct answer
DTo avoid bugs where state changes unexpectedly due to mutable object references
Explanation
The lecture mentions that forgetting to return a copy caused the state to be altered in other parts of the code, leading to bugs. A copy prevents this.
- A

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