Skip to main content
Rate the example book with the current and the proposed program from Create a market:
market.rate returns one row per submission and program, keyed by submission_id and program.

Compare premiums policy by policy

Pivot the premiums to one row per submission, and compare the programs:
The 96,671 policies that both programs rate change by 0% to 3.55%, and by 1.63% on average. A policy with liability coverage alone keeps its premium.

Find the overall change

Sum the premiums of the submissions that both programs rate. The proposed program raises the total by 1.81%:

Count the unrated submissions by program

Report these submissions beside the comparison, with their reasons.

Explain one submission in each program

market.explain puts each program’s steps side by side, keyed by program:
The rows that differ trace S000001’s $58 increase to the collision base rate.