Skip to main content
Relativities is Effective’s Python library for comparative rating. Run the same risks through your rating program and competing programs, then analyze the premiums in pandas. Use the results to investigate competitive position, explain pricing gaps, and assess proposed changes by segment. Start with a market basket or a book of business represented in pandas tables. Each program maps those shared facts to its carrier’s inputs and calculates premiums locally through the rslc engine. Results retain submission IDs, rating statuses, and each rater’s outcomes for analysis in your own notebook.

Start with a pricing question

The examples use personal auto. The data model lets you retain your own columns, tables, and analysis dimensions.

Rate one risk

Install Relativities and download the example data before running this page.
For a reusable comparison, rate your first book, then compare carriers on a common basis.

How the pieces fit

For carrier-specific inputs, Rater.rate returns a RatingResult; call to_pandas() for analysis. Program.rate and Market.rate return DataFrames directly. Each layer adds its key columns to the result:

Make the comparison defensible

Each carrier defines its premium term, coverages, and outcome columns. Choose a common basis before comparing premiums. Retain unrated submissions and their reasons in your exhibit, and distinguish underwriting eligibility from rating status. Compare carriers walks through these checks. Use Prepare a book to preserve reported facts and your own segment dimensions. Use Validate a program to check the filing version, mapping assumptions, and independent rating examples. Premium comparisons measure price position. Claims, expenses, and customer response require their own evidence for profitability or conversion analysis.

Build and inspect raters

RSL expresses rating calculations, input constraints, tables, rounding, and source citations. Its compiler checks the implemented algorithm; source review and independent examples establish fidelity to the filing. Package a program to distribute that rater with its prepare, schema and examples. The Python reference, PPA book schema, and result reference describe the API contracts. The examples use synthetic households and rating algorithms. They illustrate analytical methods and package behavior rather than market premium levels.