Load the current program
Create the proposed program
Define the helper below once, then choose the percentage increase.Helper: increase the collision rate
Helper: increase the collision rate
This helper uses ordinary Python and pandas to edit a rating table. It is defined on this page, rather than built into Relativities.The helper returns a new program. The current program stays unchanged.
Add a mileage scenario
Define the scenario helper below once, then choose the mileage increase.Helper: increase annual mileage
Helper: increase annual mileage
The function uses ordinary Python and pandas to change vehicle mileage. Relativities’ Reported missing mileage stays missing. The original book stays unchanged.
@scenario decorator gives the change a name and parameters.baseline uses the reported facts. Mileage +10% increases each vehicle’s annual mileage by 10%.
Rate the study
Rate both versions of the book with both programs:premium is the annual policy premium for this example.
Compare the rate change
baseline with Mileage +10% to assess how the mileage assumption changes the measured rate impact.
Check rating exceptions
Count statuses by program and scenario:Next steps
Changepercent=5 to test another collision rate increase. Change percent=10 to test another mileage assumption.
Books and studies explains scenarios and sampled draws.