Skip to main content
Find the annual mileages where the cheaper carrier changes, for households you define. Install Relativities and download the example data before running this page.
The book is the synthetic six-household book in relativities-examples/ppa/book. Carrier A rates liability and collision per vehicle for a six-month term. Carrier B rates an account for a twelve-month term and returns one premium. Compare carriers shows how to check what each carrier receives.

Define the households

Build a Book from a dict of DataFrames, one per table, with the PPA schema. These two households differ in one fact: when their driver was first licensed. Both ask for liability alone.
Supply the keys, submissions.household_id and submissions.effective_date. The book adds each other core column, typed and empty. Text dates become dates.

Price a grid of mileages

Make one scenario per mileage, from 0 to 32,000 miles a year in steps of 500. Put the scenarios in a Study, and rate the study with the market.
The study’s steps set each mileage to 0 first, so baseline is the first grid point. The market prices each household in all 65 scenarios.

Annualize the premiums

Put both premiums on a twelve-month term: double carrier A’s six-month premium. Then put the two programs side by side.
Between 8,000 and 8,500 miles a year, the cheaper carrier for the newly licensed driver changes from carrier A to carrier B.

Find the bands

Label each grid point with the cheaper carrier. Then join adjacent points with the same label and the same premiums into one band.

Read the bands

For the experienced driver, carrier B is cheaper at every mileage that both carriers rate. For the newly licensed driver, the cheaper carrier changes twice:
  • Carrier A is cheaper up to 8,000 miles a year.
  • Carrier B is cheaper from 8,500 to 10,000 miles a year, by $12 for a twelve-month term.
  • Carrier A is cheaper again from 10,500 to 25,000 miles a year.
Above 25,000 miles a year, carrier B refuses. Above 30,000, both carriers leave the household unrated. Report each of these bands as a result.

Place a change exactly

The grid brackets each change between adjacent mileage values. Refine that interval to the mileage precision your rating inputs accept. Report the grid resolution with the threshold.

Close the raters