Set up the book and the two carriers
Set up the book and the two carriers
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.input row is a value the program’s prepare built, in the carrier’s own terms. Each
calculation row is a value the rater calculated, in calculation order. The last row is the
premium: $825 for a six-month term.
To trace an input back to the book, compare json_in with book. explanation.json_in is the
exact input the rater received. explanation.book holds S2’s facts, with the columns of the
program’s schema:
explanation.row is S2’s row of program.rate.
Explain one rater input
To explain an input that you build by hand, such as a filing’s rating example, callrater.explain with that input:
Rater.explain rates that one input and returns its trace.
For several inputs, pass row_id to choose one.
Read two carriers’ steps side by side
Explain the same submission with carrier B’s program:- Carrier A applies a 1.25 young driver factor to liability, because driver D3 is 19.
- Carrier B applies a 1.4 experience factor to the account, because D3 has two years licensed.
- Carrier A adds $150 of collision on V2 for a six-month term, and carrier B’s only coverage input is a comprehensive flag.
Put both premiums on one term
Rate the book, and double carrier A’s six-month premium:Measure what one driver adds
Add a scenario that keeps only driver D2 on S2, and rate both scenarios:scenario_id to program.explain.