DP Computer Science · HL · A4 Machine learning

A4.3 Machine learning approaches (HL only)

Get started
Notes Quiz
Free preview 2/15
  1. Question 1

    A delivery robot in a warehouse uses reinforcement learning to navigate from a storage area to a dispatch zone. Which of the following best describes the role of the policy in this system?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    CThe learned mapping from the robot's current situation to the action it should take

    Step-by-step walkthrough

    Choose a solution method

    Method #1Direct approach

    Step 1: Identify the concept being tested

    The question asks about the policy component in a reinforcement learning system. We need to recall the precise definition of policy from the RL framework.

    Step 2: Apply the definition of policy

    In reinforcement learning, a policy is defined as the strategy that maps states to actions. It tells the agent what action to take given the current state of the environment.

    Step 3: Apply to the warehouse context

    For the warehouse robot, the policy would encode decisions such as: given that the robot is at grid position (3,5) with a clear path ahead, move forward. This is exactly 'the learned mapping from the robot's current situation to the action it should take'.

    Step 4: Select the correct answer

    The correct answer is 'The learned mapping from the robot's current situation to the action it should take', which precisely matches the definition of policy as a state-to-action mapping.

    Method #2Process of Elimination

    Step 1: Identify what is being asked

    We need to identify which option correctly defines the policy in reinforcement learning, applied to a warehouse robot scenario.

    Step 2: Eliminate 'numerical score after each delivery'

    'The numerical score assigned to the robot after each successful delivery' describes the reward, not the policy. Rewards are feedback signals from the environment, not decision-making strategies.

    Step 3: Eliminate 'physical layout of the warehouse'

    'The physical layout of the warehouse including shelves and corridors' describes the environment (or aspects of the state space). The environment is the context in which the agent operates, not the agent's decision strategy.

    Step 4: Eliminate 'total accumulated reward'

    'The total accumulated reward the robot has earned since training began' describes the cumulative reward, which is the objective the agent tries to maximise — not the strategy it uses to make decisions.

    Step 5: Select the correct answer

    By elimination, 'The learned mapping from the robot's current situation to the action it should take' is correct. This matches the definition of policy as a mapping from states to actions.

  2. Question 2

    A city traffic management system uses a linear regression model to predict average vehicle journey time (in minutes) from the number of active traffic signals at peak hour. The fitted model is: JourneyTime=4.2+0.35×Signals What is the predicted journey time when there are 20 active signals?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    C11.2 minutes

    Step-by-step walkthrough

    Choose a solution method

    Method #1Direct approach

    Step 1: Identify the regression equation components

    The model is JourneyTime=4.2+0.35×Signals, where β0​=4.2 (intercept) and β1​=0.35 (slope). We need to predict the value when Signals =20.

    Step 2: Substitute the value into the equation

    JourneyTime=4.2+0.35×20

    Step 3: Calculate the result

    JourneyTime=4.2+7.0=11.2 minutes

    Step 4: Select the correct answer

    The predicted journey time with 20 active signals is 11.2 minutes.

    Method #2Process of Elimination

    Step 1: Identify what is being asked

    We must substitute Signals =20 into the regression equation and compute the result. We can verify each option by checking if it matches the correct calculation.

    Step 2: Eliminate 7.0 minutes

    7.0 minutes would result from computing 0.35×20=7.0 but forgetting to add the intercept β0​=4.2. This is a common error — the intercept must always be included.

    Step 3: Eliminate 9.7 minutes

    9.7 minutes might arise from an arithmetic error, such as computing 4.2+0.35×16=9.8 or a similar miscalculation. It does not result from correctly applying the given equation with Signals =20.

    Step 4: Eliminate 8.4 minutes

    8.4 minutes could result from incorrectly using 0.35×12+4.2=8.4 or confusing the coefficient. It does not match 4.2+0.35×20.

    Step 5: Select the correct answer

    The correct calculation gives 4.2+7.0=11.2 minutes, confirming this is the correct answer.

Free preview

13 more questions in this topic

← Previous topicA4.2 Data preprocessing (HL only)Next topic →A4.4 Ethical considerations
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.