Reinforcement Learning interview question

Machine LearningReinforcement Learningbasic

In reinforcement learning vocabulary, what is the reward?

  1. AThe full description of the environment's current situation that the agent observes before it acts.
  2. BThe rule the agent follows to map each observed state to the action it will choose next.
  3. CA scalar signal the environment returns after each action, whose cumulative sum the agent tries to maximize.
  4. DA labelled correct action supplied for every state, so that the agent learns by copying the right choice.
Show the answer and explanation

Correct answer: C, A scalar signal the environment returns after each action, whose cumulative sum the agent tries to maximize.

Explanation Reinforcement Learning

In RL an agent interacts with an environment in a loop: it observes a state Sₜ, takes an action Aₜ, and the environment returns a reward Rₜ₊₁ (a single number) and the next state. The agent's goal is to maximize the expected cumulative (usually discounted) reward, called the return.

Why the other descriptions are wrong:

  • The description of the current situation is the state (or the observation, if the agent sees only part of it).
  • The rule mapping states to actions is the policy π.
  • A correct action given for every state is a supervised label. RL gets only evaluative feedback: the reward says how good an outcome was, not which action would have been best.
TermMeaning
Statethe agent's situation
Actionwhat the agent does
Rewardscalar feedback after an action
Policystate → action rule

Interview tip: draw the agent–environment loop and say that the agent maximizes the long-run return, not the next reward alone.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Machine Learning questions

  1. Both series below rise at a similar average rate. Series A was generated as a linear trend plus stationary noise; Series B is a random walk with drift. Which…
  2. A churn model produced this confusion matrix on 10,000 customers, and a manager celebrates its 98.8% accuracy. What is the model's balanced accuracy, and what…
  3. For the query "waterproof hiking boots", assessors graded four products as relevant: Boot-X (3), Boot-Y (3), Boot-Z (2) and Sock-K (1); every other product is…
  4. A gradient-boosted tree model was trained on months 1–36 of demand, using month_index as a feature. Its forecast for months 37–48 is the flat line in the…
  5. A telecom churn model (3% churners) is evaluated with the code below and reports a mean CV recall of 0.99. On customers that were set aside before any…