AD-802-B Reinforcement Learning

Reinforcement Learning (AD-802-B) Important Questions

RGPV · B.Tech · AI & Data Science · Semester 8 · Current scheme · 1 papers (2025 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Reinforcement Learning important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Reinforcement Learning important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. What is reinforcement learning, with a real life example

Asked 1 time in 2025 · Unit 1

From the papers

  • “What is Reinforcement learning? State one appropriate real-life example.” (June 2025)

The short answer

Reinforcement learning (RL) is learning by trial and error. An agent takes actions in an environment, gets a reward after each action and learns to choose actions that give the largest total reward over time.

Write these points

Main parts

  • Agent: the learner and decision maker.
  • Environment: everything the agent interacts with.
  • State s: what the agent sees now. Action a: what it does. Reward r: a number that says how good the result was.
  • Policy: the rule that picks an action in each state.
  • Return G: the discounted sum of future rewards, G = r1 + gamma r2 + gamma^2 r3 + ...

How it learns

  1. The agent sees a state.
  2. It picks an action by its policy. Sometimes it explores a new action.
  3. The environment gives a new state and a reward.
  4. The agent updates its policy or its value estimates.
  5. Repeat for many episodes.
  • There is no teacher with correct answers, only rewards. A reward may come late, so the agent must learn which earlier action earned it (the credit assignment problem).

Return of one episode.

A delivery robot gets rewards 1, 0 and 2 in three steps. Discount gamma = 0.9.

G = 1 + 0.9 x 0 + 0.9^2 x 2 = 1 + 0 + 1.62 = 2.62.

A reward now is worth more than the same reward later, because gamma is below 1.

Real-life example

A child learns to ride a bicycle. Nobody gives the exact steering angle. The child tries, falls (negative reward) or stays up (positive reward) and slowly learns which moves keep the balance. Self driving cars, game players and warehouse robots learn in the same way.

Figure: the reinforcement learning loop
Figure: the reinforcement learning loop

Same or opposite: agent and environment

PointAgentEnvironmentSame or opposite
RoleChooses actionsGives states and rewardsOpposite
Is learningYesNoOpposite
Part of the RL loopYesYesSame
ExampleBicycle riderRoad and bicycleOpposite

Exam tip. Define RL in the first line using the words agent, environment and reward. Draw the loop. Name one example such as the bicycle or a game player and map each part to it.

Back to the topic list

Q2. Approaches to implement reinforcement learning

Asked 1 time in 2025 · Unit 1

From the papers

  • “Explain various approaches to implement reinforcement learning.” (June 2025)

The short answer

RL can be implemented by learning values, by learning the policy directly, by doing both (actor critic) or by learning a model of the environment.

Write these points

The approaches

ApproachWhat is learnedExample algorithms
Value basedQ(s,a) or V(s). Act greedily on it.Q-learning, SARSA, DQN
Policy basedPolicy pi(a | s) directlyREINFORCE, policy gradient
Actor criticPolicy (actor) and value (critic)A2C, A3C
Model basedTransition and reward model, then planDyna, dynamic programming
Model freeOnly from experience, no modelQ-learning, MC, TD

Other ways to split the methods

  • On policy learns the value of the policy it follows (SARSA). Off policy learns about another policy than the one it follows (Q-learning).
  • Tabular keeps a table, good for small problems. Function approximation uses a model such as a neural network for large state spaces.
  • Imitation learning copies an expert. Inverse RL learns the reward from an expert.

Choosing

  1. Few states and actions: a table with Q-learning.
  2. Continuous actions such as a robot arm: policy gradient or actor critic.
  3. Costly real world trials: model based, because it needs fewer samples.
  4. Images as states: deep value or deep actor critic methods.

Memory needed by a table.

A grid world has 100 states and 4 actions. The Q table has 100 x 4 = 400 numbers.

A game screen of 84 x 84 pixels cannot be tabulated, so a neural network approximates Q.

Real-life example

To reach a hill station you can score each road (value based). You can memorise the turn at each junction (policy based). You can draw a map and plan on it (model based).

Figure: approaches to RL
Figure: approaches to RL

Same or opposite: value based and policy based

PointValue basedPolicy basedSame or opposite
LearnsAction values QThe policyOpposite
Action choiceGreedy on QSample from the policyOpposite
Learns from rewardsYesYesSame
Handles continuous actionsPoorlyWellOpposite

Exam tip. A table of approaches is the best answer. Add one line on on policy against off policy and one line on when to choose each.

Back to the topic list

Q3. Reinforcement learning against supervised learning

Asked 1 time in 2025 · Unit 1

From the papers

  • “Differentiate between Reinforcement Learning and Supervised Learning.” (June 2025)

The short answer

Supervised learning learns from labelled examples that give the correct answer for each input. Reinforcement learning learns from rewards for the actions it chose, with no correct action given.

Write these points

Differences

PointSupervised learningReinforcement learning
FeedbackThe correct label for each inputA reward, often late and rare
DataFixed data setCollected by the agent as it acts
DecisionsEach prediction is separateActions change the next state
ExplorationNot neededEssential
GoalMinimise prediction errorMaximise total reward
ExampleSpam filterGame playing agent

Key points

  • In supervised learning the examples are assumed independent. In RL one action affects all later states.
  • In RL the agent must balance exploration and exploitation.
  • Rewards can be delayed, so credit assignment is needed.
  • RL can discover answers no human wrote down, since it needs no labels.

Same task, two views.

Teach a robot to reach a door in 10 steps.

Supervised: record an expert doing it and copy the 10 actions. If the robot drifts off the expert path, it has no example to fix it.

RL: give +10 at the door and -1 per step. After many trials the robot finds the shortest route by itself. The best total reward is 10 - 9 = 1 for a 10 step path.

Real-life example

A student learns maths in two ways. In a class the teacher marks each answer right or wrong (supervised). By playing a quiz game the student only sees a final score and must work out which choices helped (reinforcement).

Figure: feedback in the two settings
Figure: feedback in the two settings

Same or opposite: supervised and reinforcement learning

PointSupervised learningReinforcement learningSame or opposite
FeedbackCorrect answerRewardOpposite
ExplorationNot neededNeededOpposite
Learns a mapping from experienceYesYesSame
Decisions affect later dataNoYesOpposite

Exam tip. Use a table with at least five rows. Include delayed reward and exploration, since these are the two points examiners look for.

Back to the topic list

Q4. Objective of bandit algorithms

Asked 1 time in 2025 · Unit 2

From the papers

  • “What is the key objective of bandit algorithms with reference to reinforcement learning?” (June 2025)

The short answer

A multi armed bandit is a one state RL problem: you pick one of K arms each round and see only that arm's reward. The key objective is to maximise the total reward, which is the same as minimising regret, by balancing exploration and exploitation.

Write these points

The problem

  • K arms, each with an unknown average reward.
  • At each round pick one arm and get a random reward. No state changes.
  • You must try arms to learn their values (exploration) and also pull the best known arm to earn (exploitation).

Regret

  • Let mu* be the best arm's average reward. Regret after n rounds = n x mu* - total reward earned (in expectation).
  • A good algorithm has regret that grows slowly. UCB has regret growing like log n.

Common strategies

  1. Greedy: always the best estimate. It can lock onto a poor arm.
  2. Epsilon greedy: with probability epsilon pick a random arm.
  3. UCB: pick the arm with the highest optimistic estimate.
  4. Thompson sampling: sample from a belief about each arm and play the best sample.

Regret of a poor arm.

Three ads have true click rates 0.5, 0.6 and 0.8.

Showing ad 1 for 100 rounds earns 100 x 0.5 = 50 on average. The best ad would earn 80.

Regret = 80 - 50 = 30 clicks.

Real-life example

You visit three tea stalls. Going only to the first good one may miss a better stall. Trying all the stalls forever wastes cups of bad tea. The best plan tries each stall a few times and then mostly returns to the best one.

Figure: bandit strategies
Figure: bandit strategies

Same or opposite: exploration and exploitation

PointExplorationExploitationSame or opposite
ActionTry less known armsPull the best known armOpposite
Short term rewardOften lowerHigherOpposite
Needed for a good long run resultYesYesSame
Too much of itWastes pullsMisses a better armOpposite

Exam tip. Say "maximise reward by minimising regret" in the first line. Write the regret formula and one numeric example. Name the four strategies.

Back to the topic list

Q5. UCB algorithm and the 12 iteration problem

Asked 1 time in 2025 · Unit 2

From the papers

  • “After 12 iterations of the UCB 1 algorithm applied on a 4-arm bandit problem, we have n1 = 3, n2 = 4, n3 = 3, n4 = 2 and Q12(1) = 0.55, Q12(2) = 0.63, Q12(3) = 0.61, Q12(4) = 0.40. Which arm should be played next.” (June 2025)
  • “Explain the following term with respect to Bandit algorithm: ii) Upper Confidence Bound (UCB) algorithm” (June 2025)

The short answer

UCB1 (Upper Confidence Bound) plays the arm with the highest value of Q + sqrt(2 ln t / n), the estimate plus an exploration bonus. An arm that was pulled rarely has a large bonus, so it gets tried.

Write these points

The UCB1 algorithm

  1. Pull each arm once.
  2. At round t compute for each arm j: index = Q(j) + sqrt(2 ln t / n(j)).
  3. Pull the arm with the largest index.
  4. Update n(j) and the average Q(j). Repeat.
  • The first term favours arms that look good. The second favours arms that are uncertain.
  • As n(j) grows, the bonus shrinks, so a well known arm is not pulled for the bonus.
  • Regret grows only like log t.

The question

Total pulls t = 3 + 4 + 3 + 2 = 12 and ln 12 = 2.485, so 2 ln 12 = 4.970.

ArmnQBonus sqrt(4.970 / n)Index
130.551.2871.837
240.631.1151.745
330.611.2871.897
420.401.5761.976

Answer.

The largest index is arm 4 with 1.976, even though its estimate 0.40 is the lowest.

It has been pulled only twice, so its bonus is the biggest. Pull arm 4 next.

Check with t = 13 for the next round: arm 4 gives 0.40 + 1.602 = 2.002 and arm 3 gives 1.918. Arm 4 still leads.

Remember. Some books write the bonus as sqrt(ln t / n) or with a constant c. With sqrt(ln t / n) arm 3 gets 1.520 and arm 4 gets 1.515, so the answer would change to arm 3. The standard UCB1 formula with the factor 2 is used here. Use the formula your teacher gave.

Real-life example

A selector gives a bowler who has played only twice another chance, because two matches say little. UCB does the same with a number.

Figure: UCB1 index of the four arms
Figure: UCB1 index of the four arms

Same or opposite: UCB and epsilon greedy

PointUCBEpsilon greedySame or opposite
ExplorationTargeted at uncertain armsRandomOpposite
Needs a random numberNoYesOpposite
Balances exploration and exploitationYesYesSame
Regret growthlog tGrows linearly for fixed epsilonOpposite

Exam tip. Write the formula and a four row table of indexes. State the answer in one bold line.

Back to the topic list

Q6. Passive and active reinforcement learning

Asked 1 time in 2025 · Unit 2

From the papers

  • “What is meant by passive and active reinforcement learning and how do we compare the two?” (June 2025)

The short answer

In passive RL the policy is fixed and the agent only learns how good that policy is, that is its state values. In active RL the agent also decides what to do, so it must learn the best policy and must explore.

Write these points

Passive RL

  • The agent follows a given policy pi and observes the states and rewards.
  • Task: estimate the utility U(s) of each state under pi. This is policy evaluation.
  • Methods: direct utility estimation, adaptive dynamic programming (learn a model then solve), TD learning.

Active RL

  • The agent chooses actions. It must learn the best policy.
  • It needs exploration, otherwise it may never find a better action.
  • Methods: active ADP, Q-learning, SARSA.
PointPassiveActive
PolicyFixedLearned
GoalEvaluate the policyFind the best policy
ExplorationNot neededNeeded
Example methodsTD(0), direct estimationQ-learning, SARSA

TD update in passive RL.

Policy fixed. Current V(A) = 0, V(B) = 0.5. The agent moves A to B with reward 0. gamma = 1, alpha = 0.5.

V(A) = 0 + 0.5 x (0 + 1 x 0.5 - 0) = 0.25.

No action was chosen by the learner, so this is passive evaluation. In active RL the next step would also have to choose the action to try.

Real-life example

A passenger in a taxi notes how good the driver's route is. That is passive learning. When the passenger takes the wheel and tries other routes, that is active learning. A few slow roads come with the exploring.

Figure: passive and active learning
Figure: passive and active learning

Same or opposite: passive and active RL

PointPassive RLActive RLSame or opposite
Who picks the actionsA fixed policyThe learnerOpposite
OutputValues of statesBest policyOpposite
Learns from rewardsYesYesSame
Exploration issueNoneCentralOpposite

Exam tip. A two column table with policy, goal and exploration is the core. Mention TD or ADP for passive and Q-learning for active.

Back to the topic list

Q7. Median elimination and PAC bandits

Asked 1 time in 2025 · Unit 2

From the papers

  • “Explain the following term with respect to Bandit algorithm: i) Median Elimination” (June 2025)
  • “Explain the following term with respect to Bandit algorithm: iii) Probably Approximately Correct (PAC)” (June 2025)

The short answer

A bandit algorithm is PAC (epsilon, delta) if, with probability at least 1 - delta, it returns an arm whose mean is within epsilon of the best arm. Median elimination is a PAC algorithm that repeatedly samples all arms and drops the worse half.

Write these points

PAC for bandits

  • Epsilon is the allowed gap to the best arm. Delta is the allowed chance of failure.
  • The cost is the number of pulls needed. Fewer pulls for the same epsilon and delta is better.
  • Simple method: pull every arm n times and return the best average. With rewards in [0,1], Hoeffding and a union bound need n >= (2 / epsilon^2) ln (2K / delta) pulls per arm.

Median elimination

  1. Start with all K arms. Set epsilon1 = epsilon / 4 and delta1 = delta / 2.
  2. Pull every arm enough times for the current epsilon and delta.
  3. Find the median of the estimates and remove every arm below it. Half the arms go.
  4. Reduce epsilon and delta (epsilon times 3/4, delta halved) and repeat on the arms left.
  5. Stop when one arm is left and return it.
  • It needs about log2 K rounds. The total pulls grow like K / epsilon^2 x log (1 / delta), without the log K factor of the simple method.

Simple method for 10 arms.

K = 10, epsilon = 0.1, delta = 0.05.

n >= (2 / 0.01) x ln (2 x 10 / 0.05) = 200 x ln 400 = 200 x 5.99 = 1,199 pulls per arm.

Total = 10 x 1,199 = 11,990 pulls.

Median elimination with 8 arms halves them 8, 4, 2, 1, so it takes 3 rounds.

Real-life example

A talent show has 8 singers. Each gets a short try, then the weaker half goes home. The rest get longer tries and again half go. After 3 rounds one singer remains. Few trials were wasted on weak singers.

Figure: median elimination with 8 arms
Figure: median elimination with 8 arms

Same or opposite: median elimination and UCB

PointMedian eliminationUCBSame or opposite
GoalFind a near best arm (PAC)Keep regret lowOpposite
StyleRounds that drop half the armsOne arm per stepOpposite
Needs reward samples from armsYesYesSame
OutputOne chosen armA sequence of pullsOpposite

Exam tip. Define epsilon and delta first. List the median elimination steps. Write the Hoeffding sample size and the 10 arm number.

Back to the topic list

Q8. Q-function and the Q-learning algorithm

Asked 1 time in 2025 · Unit 3

From the papers

  • “Explain the Q-Function and Q-Learning Algorithm.” (June 2025)

The short answer

The Q-function Q(s,a) is the expected total discounted reward when the agent takes action a in state s and then follows the best policy. Q-learning learns Q from experience with the update Q(s,a) = Q(s,a) + alpha x [r + gamma max Q(s',a') - Q(s,a)].

Write these points

The Q-function

  • Q*(s,a) = E[r + gamma max over a' of Q*(s',a')]. This is the Bellman optimality equation for Q.
  • Once Q* is known the best action in state s is the one with the largest Q*(s,a). No model of the environment is needed.

Q-learning algorithm

  1. Start with Q(s,a) = 0 for all pairs.
  2. In state s pick an action by epsilon greedy (mostly the best Q, sometimes random).
  3. Take it. Observe the reward r and the next state s'.
  4. Update Q(s,a) = Q(s,a) + alpha x [r + gamma max Q(s',a') - Q(s,a)].
  5. Set s = s' and repeat until the episode ends.
  • alpha is the learning rate. gamma is the discount.
  • It is off policy: the update uses the max over next actions, not the action actually taken next.
  • With every pair visited often enough and a suitable alpha, Q converges to Q*.

One update.

Q(s,a) = 0.5. The agent gets r = 1 and reaches s' where Q(s',.) = (1.0, 2.0). alpha = 0.1, gamma = 0.9.

Target = 1 + 0.9 x 2.0 = 2.8. Error = 2.8 - 0.5 = 2.3.

New Q(s,a) = 0.5 + 0.1 x 2.3 = 0.73.

Real-life example

A traveller keeps a notebook that scores each road choice at each junction. After every trip the traveller corrects the score using what was earned and the best score at the next junction. After many trips the notebook shows the best road at every junction.

Figure: one Q-learning update
Figure: one Q-learning update

Same or opposite: Q-learning and SARSA

PointQ-learningSARSASame or opposite
Update target usesmax Q(s',a')Q(s',a') of the action takenOpposite
TypeOff policyOn policyOpposite
Learns action values QYesYesSame
Risk taking near dangerMoreSaferOpposite

Exam tip. Write the Bellman form of Q and the update rule. Show the 0.5 to 0.73 example. State that it is off policy and model free.

Back to the topic list

Q9. Maximum likelihood and least squared error hypothesis

Asked 1 time in 2025 · Unit 3

From the papers

  • “Discuss Maximum Likelihood and Least Square Error Hypothesis.” (June 2025)

The short answer

The maximum likelihood (ML) hypothesis is the hypothesis h that makes the observed data most probable. If the noise in the data is Gaussian, the ML hypothesis is exactly the one that minimises the sum of squared errors, the least squared error hypothesis.

Write these points

Maximum likelihood

  • Given data D and a set H of hypotheses, h_ML = the h that maximises P(D | h).
  • If all hypotheses are equally likely at first, h_ML is also the most probable one (the MAP hypothesis with a flat prior).

Why least squares appears

  1. Assume each target is d_i = h(x_i) + noise, with noise Gaussian of mean 0 and variance sigma^2.
  2. Then P(d_i | h) is a Gaussian centred at h(x_i).
  3. Maximising the product over all examples is the same as maximising the sum of log terms.
  4. That reduces to minimising the sum over i of (d_i - h(x_i))^2.
  • So fitting a line by least squares is maximum likelihood under Gaussian noise.
  • Other noise (for example heavy tailed) gives other losses.

Two lines on five points.

Data (1,2), (2,4), (3,5), (4,4), (5,6). Hypothesis h1: y = 1.8 + 0.8 x. Hypothesis h2: y = 1 + x.

Squared errors for h1 sum to 2.4. For h2 the errors are 0, 1, 1, 1, 0 so the sum is 3.

With sigma = 1, log likelihood is minus half the sum of squares plus a constant: -1.2 for h1 and -1.5 for h2. h1 is more likely, so h1 is the ML hypothesis.

Real-life example

A weighing scale shows slightly different readings each time. The best estimate of the true weight is the value closest to all readings in the squared sense. That is the average. It is also the most likely true weight.

Figure: from likelihood to least squares
Figure: from likelihood to least squares

Same or opposite: maximum likelihood and MAP

PointMaximum likelihoodMAPSame or opposite
MaximisesP(D given h)P(D given h) x P(h)Opposite
Uses a priorNoYesOpposite
Chooses one best hypothesisYesYesSame
Same result when the prior is flatYesYesSame

Exam tip. State the three links: Gaussian noise, log likelihood, sum of squares. A short numeric comparison of two lines makes it clear.

Back to the topic list

Q10. Fitted Q iteration and the problems of deep Q-learning

Asked 1 time in 2025 · Unit 4

From the papers

  • “Explain Fitted-Q and Deep Q-Learning Problems.” (June 2025)

The short answer

Fitted Q iteration is a batch method that repeatedly fits a regression model to targets r + gamma max Q(s',a') built from a stored set of transitions. Deep Q-learning does the same with a neural network but meets several problems that come from combining bootstrapping, off policy data and function approximation.

Write these points

Fitted Q iteration

  1. Collect a data set of transitions (s, a, r, s').
  2. Start with Q0 = 0.
  3. Build a target for each transition: y = r + gamma max Q_k(s', a').
  4. Fit a regressor (trees, a neural network) so that Q_{k+1}(s,a) is close to y.
  5. Repeat for K rounds.
  • It reuses data well, so it needs fewer samples than online Q-learning. Fitted Q needs no table.

Problems of deep Q-learning

  • Correlated samples: steps in a row are alike, which breaks the independent data assumption.
  • Moving target: the target uses the same network that is being changed.
  • Overestimation: taking the max of noisy estimates is biased upward.
  • Instability and divergence: bootstrapping plus off policy data plus a function approximator can diverge.
  • Sparse rewards and big state spaces make exploration slow.
  • Forgetting: new data can erase what was learned about old states.

Overestimation by the max.

Three actions have true value 0 but noisy estimates +0.4, -0.1 and -0.3.

The max over the estimates is +0.4, though the true max is 0.

Each update then bootstraps from this inflated number, so errors build up.

Real-life example

A student who corrects his own homework using his own answer key, while that key keeps changing, will never be sure what is right. A fixed answer key kept for some time (a target network) gives a steadier signal.

Figure: fitted Q iteration
Figure: fitted Q iteration

Same or opposite: fitted Q iteration and online Q-learning

PointFitted Q iterationOnline Q-learningSame or opposite
Data useWhole stored batch each roundOne transition at a timeOpposite
Sample efficiencyHigherLowerOpposite
Target is r + gamma max QYesYesSame
Compute per roundHeavy (a full fit)LightOpposite

Exam tip. Write the fitting loop as steps. Then list at least four problems. The overestimation example makes the answer special.

Back to the topic list

Start with the latest papers

Reinforcement Learning - Jun 2025

See all 1 papers →

Reinforcement Learning (AD-802-B) FAQs

What are the most important topics in Reinforcement Learning?

By how often they were asked in the papers on this site: What is reinforcement learning, with a real life example (1 times); Approaches to implement reinforcement learning (1 times); Reinforcement learning against supervised learning (1 times); Objective of bandit algorithms (1 times); UCB algorithm and the 12 iteration problem (1 times).

How were these Reinforcement Learning important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Reinforcement Learning important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Reinforcement Learning is free to download from this page.

The 10 most repeated topics of Reinforcement Learning (AD-802-B) for RGPV B.Tech AI & Data Science semester 8, counted from the previous year papers on this site.