Motor Third-Party Liability — Get a quote in seconds

Live on AWS

Your motor insurance quote, in under a minute

Real-time motor insurance pricing powered by frequency–severity machine learning models deployed on AWS Lambda and API Gateway. This demonstration system mirrors production-style pricing architecture used in regulated insurance markets.

Try live pricing demo

Why this project matters

This demo shows how real-world motor insurance pricing can be implemented as a production-style ML system.

  • Real-time motor insurance quote generation from a browser UI
  • Frequency–severity pricing approach (Negative Binomial + Gamma GLM)
  • Serverless deployment on AWS Lambda + API Gateway

Quote request

All fields are required. Your quote is computed in real time by the pricing engine.

Driver & policy
Vehicle
Location

How it works

End-to-end flow from your input to the quote.

User input
Web demo
API Gateway
AWS Lambda
Frequency model
Severity model
Pricing engine
Quote response
Real-time Motor Insurance Pricing Architecture

Tech stack

Backend

Python, FastAPI, AWS Lambda, API Gateway

Models

statsmodels (NB GLM, Gamma GLM), patsy, scipy

Deployment

Docker, AWS Lambda, API Gateway

Frontend

HTML, CSS, JavaScript (vanilla)

Engineering highlights

  • Versioned model artifacts and pricing config
  • Structured Lambda response with audit metadata
  • Real-time inference via API Gateway
  • Containerized deployment with Docker
  • Explainable pricing (GLM term contributions)

About this project

What this demonstrates

  • Frequency–severity pricing workflow
  • Pure premium and gross premium calculation
  • AWS Lambda + API Gateway deployment
  • Explainable pricing outputs

Business relevance

  • Production-style insurance pricing demo
  • Real-time quote delivery
  • Risk-based premium calculation
  • Transparent pricing breakdown

This page is part of a portfolio project. The engine uses the freMTPL2 dataset (France) and is for demonstration only — no contract is formed.

Explore repository on GitHub

Built by

Iman Badrooh — Applied Data Scientist / ML Engineer focused on pricing analytics and production ML systems.

  • Insurance pricing and frequency–severity modelling
  • End-to-end ML deployment on AWS Lambda + API Gateway
  • Production-oriented data and model governance

GitHub · LinkedIn