How should you frame a supervised target that is a rate, such as claims per policy-year, rather than a raw count?

Quick Overview

Asks how to set up a supervised model when the target is a rate over varying exposure, such as insurance claims per policy-year. Tests knowledge of offsets and sample weights in count models, the choice between Poisson, negative binomial and Tweedie losses, and exposure-aware evaluation.

How should you frame a supervised target that is a rate, such as claims per policy-year, rather than a raw count?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

In insurance and many other settings, each row is observed for a different amount of time or volume: one policy was active for a month, another for five years. How should you frame a supervised target that is a rate, such as claims per policy-year, rather than a raw count? ```hint Compare the evidence Think about how much information a rate observed over 0.1 policy-years carries compared with one observed over 10 policy-years. ``` ```hint Write the expected count Express the expected number of claims as a function of exposure and the features, then take logs and see which term has no parameter in front of it. ``` ### What a Strong Answer Covers - Why an unweighted regression on the raw rate goes wrong. - How to put exposure into a count model, and how the fitted function relates to the rate. - The equivalent rate-with-weights formulation and when it matches the count formulation. - The choice of distribution for counts, overdispersed counts and claim cost. - How to evaluate the model. ### Follow-up Questions - Why does a Poisson model with an offset match the exposure-weighted rate model exactly? Does that hold for other distributions? - What changes if risk is not proportional to exposure, for example because claims cluster early in a policy term? - How do you pass the offset to a gradient-boosted tree model at training and at prediction time? - How would you check whether the Poisson assumption is adequate for your data?

Overview: Asks how to set up a supervised model when the target is a rate over varying exposure, such as insurance claims per policy-year. Tests knowledge of offsets and sample weights in count models, the choice between Poisson, negative binomial and Tweedie losses, and exposure-aware evaluation.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

In insurance and many other settings, each row is observed for a different amount of time or volume: one policy was active for a month, another for five years. How should you frame a supervised target that is a rate, such as claims per policy-year, rather than a raw count?

What a Strong Answer Covers Guidance

  • Why an unweighted regression on the raw rate goes wrong.
  • How to put exposure into a count model, and how the fitted function relates to the rate.
  • The equivalent rate-with-weights formulation and when it matches the count formulation.
  • The choice of distribution for counts, overdispersed counts and claim cost.
  • How to evaluate the model.

Follow-up Questions Guidance

  • Why does a Poisson model with an offset match the exposure-weighted rate model exactly? Does that hold for other distributions?
  • What changes if risk is not proportional to exposure, for example because claims cluster early in a policy term?
  • How do you pass the offset to a gradient-boosted tree model at training and at prediction time?
  • How would you check whether the Poisson assumption is adequate for your data?