Skip to main content

04 - AI Underwriting: Features, GLM and Risk Scoring

Frequency times severity with a GLM against gradient boosting, decision explanation, proxy checks and drift, with the AI Act and GDPR rules that apply.

What do you think about this article?

At a Glance

Frequency times severity with a GLM against gradient boosting, decision explanation, proxy checks and drift, with the AI Act and GDPR rules that apply.

AI underwriting: feature engineering and risk scoring you can defend

Underwriting decides whether to accept a risk, on what terms and at what price. Putting a machine learning model at this point is easy; the hard part is being able to say, in front of a customer or an inspector, why that price and not another. The method that holds up is almost always the same: separate the frequency of claims from their cost, start from a generalised linear model (GLM) as a baseline, compare more flexible models over the same test period and with the same metric, and keep explainability, fairness and data drift under control.

In this article we do it on a synthetic motor portfolio of 120,000 policies, whose truth we know, with listings that were actually run. The results show how the method works, not how much you earn in production: no market figure is reported, because I have no primary source for the ones in circulation. The series arrives here from the driving score and from the policy system; the starting concepts (premium, exposure, claim) are in article 1.

The four phases, and where automation really bites

The traditional process has four phases, and AI mostly changes their speed and consistency, not their order:

  1. Information gathering: the applicant provides the risk data; some sources can be acquired automatically
  2. Risk analysis: the probability and cost of future claims are estimated
  3. Pricing: from risk to premium, taking into account expenses, margin and portfolio targets
  4. Decision: accept, decline, or accept on different terms

Here the order matters: the decision depends on the price, which depends on the analysis, which depends on the data. An error in the first two phases propagates and is no longer visible at the end. The point where a model can replace a person is risk analysis (phase 2), which is also the most measurable; the decision on borderline cases is a judgement, and it is worth leaving a referral path to a human underwriter.

What the rules really say

Two simplifications are in circulation that are worth correcting against the official text (English version, consulted today): not all insurance is "high risk" for the AI Act, and sex cannot be used to differentiate premiums. The rest of the table concerns automated processing.

RuleWhat it says (verified)What it implies for a motor model
Regulation (EU) 2024/1689 (AI Act), Annex III, point 5, letter (c)AI systems intended to be used for risk assessment and pricing in relation to natural persons in the case of life and health insurance are high-riskMotor third-party liability is not listed in that point. It does not mean it is outside every obligation: the same annex has other entries, and other rules apply anyway
AI Act, Article 113The regulation applies in general from 2 August 2026; Annex III high-risk from 2 December 2027 and Article 6(1) (Annex I) high-risk from 2 August 2028, under Regulation (EU) 2026/1744 (OJ L, 24.7.2026, in force from 27.7.2026), which moved the 2 August 2026 and 2 August 2027 of the 2024 textDates read on EUR-Lex on 2026-11-13: check the consolidated version before setting a project deadline
GDPR, Article 22(1) and (3)The data subject has the right not to be subject to a decision based solely on automated processing that produces legal effects or similarly significantly affects them; in the cases provided for, the controller implements at least the right to obtain human intervention, to express their point of view and to contest the decisionA refusal decided by the model alone must come with a path for human intervention
Court of Justice, Case C-236/09 (Test-Achats), judgment of 1 March 2011Article 5(2) of Directive 2004/113/EC (the exemption that allowed sex to be used as an actuarial factor) is invalid with effect from 21 December 2012Sex does not enter as a pricing factor; neighbouring variables must be checked (see the section on fairness)

The operational lesson is twofold. Before writing "our system is high-risk" or "it is not", read the annex for your line of business: in the text life and health are named, motor is not. And recital 71 of the GDPR lists, among the suitable safeguards, the right to obtain an explanation of the decision: it is a recital, not an article, but the explainability you build in the rest of the article answers exactly that expectation. For any legal conclusion on your case you need an opinion from the compliance officer.

Data and features: the truth first, then the model

To judge a model you have to know how things stand. The synthetic generator fixes the truth: claim frequency rises below age 25 and above 70, falls with years of licence, and grows with kilometres, with prior claims and with area risk; the cost of a claim grows with the value of the vehicle. The features turn the raw variables into shapes the linear model can use: two "hinges" for age (age_young is zero after age 25, age_senior is zero before 70), the logarithm of kilometres and of value, and years of licence capped at 15.

A detail that costs days in real projects: area_risk does not use Python's hash() function to turn a postcode into a number, because for strings its value changes at every start of the interpreter (it is randomised on purpose), and a model trained today would give different results tomorrow with the same data. Here sha256 is used, which is stable (the Python documentation describes the randomisation of the hash of str and bytes, active by default).

Python: synthetic portfolio with known truth and deterministic features
import hashlib

import numpy as np
import pandas as pd

def area_risk(zip_code: str) -> float:
    """DETERMINISTIC area risk 0..1: sha256, not hash(), which changes at every start."""
    h = hashlib.sha256(zip_code.encode()).digest()[0]
    return (h % 101) / 100

def make_portfolio(n: int, seed: int, year: int, vehicle_shift: float = 0.0) -> pd.DataFrame:
    """SYNTHETIC motor portfolio: the truth (frequency and severity) is known."""
    rng = np.random.default_rng(seed)
    age = rng.integers(18, 85, n)
    years_licensed = np.clip(age - 18 - rng.integers(0, 6, n), 0, None)
    vehicle_age = rng.integers(0, 16, n)
    vehicle_value = rng.lognormal(9.6 + vehicle_shift, 0.4, n)          # euro
    annual_km = rng.gamma(4.0, 3500, n)
    prior_claims = rng.poisson(0.15, n)
    zips = rng.choice([f"{c:05d}" for c in range(10000, 10120)], n)
    area = np.array([area_risk(z) for z in zips])
    group = (rng.random(n) < 0.25 + 0.5 * area).astype(int)             # attribute NOT used by the model
    exposure = rng.uniform(0.25, 1.0, n)

    log_lam = (np.log(0.07)
               + 0.04 * np.maximum(0, 25 - age) + 0.015 * np.maximum(0, age - 70)
               - 0.02 * np.minimum(years_licensed, 15)
               + 0.18 * np.log(annual_km / 12000)
               + 0.35 * prior_claims + 0.5 * (area - 0.5))
    claims = rng.poisson(np.exp(log_lam) * exposure)
    sev_mean = 900 + 0.08 * vehicle_value
    amount = np.array([rng.gamma(2.0, sev_mean[i] / 2.0, c).sum() if c else 0.0
                       for i, c in enumerate(claims)])
    return pd.DataFrame({
        "year": year, "age": age, "years_licensed": years_licensed, "vehicle_age": vehicle_age,
        "vehicle_value": vehicle_value, "annual_km": annual_km, "prior_claims": prior_claims,
        "area_risk": area, "group": group, "exposure": exposure,
        "claims": claims, "amount": amount})

def add_features(df: pd.DataFrame) -> pd.DataFrame:
    out = pd.DataFrame(index=df.index)
    out["age_young"] = np.maximum(0, 25 - df["age"])        # penalty only below 25
    out["age_senior"] = np.maximum(0, df["age"] - 70)       # and only above 70
    out["years_licensed"] = np.minimum(df["years_licensed"], 15)
    out["log_km"] = np.log(df["annual_km"])
    out["vehicle_age"] = df["vehicle_age"]
    out["log_value"] = np.log(df["vehicle_value"])
    out["prior_claims"] = df["prior_claims"]
    out["area_risk"] = df["area_risk"]
    return out

if __name__ == "__main__":
    df = pd.concat([make_portfolio(30_000, 100 + y, y) for y in (2022, 2023, 2024, 2025)],
                   ignore_index=True)
    print(f"policies {len(df)}, policy-years {df.exposure.sum():.0f}, claims {df.claims.sum()}")
    print(f"frequency {df.claims.sum() / df.exposure.sum():.4f} per policy-year")
    print(f"average cost per claim {df.amount.sum() / df.claims.sum():.0f} EUR")
    print(f"average pure premium {df.amount.sum() / df.exposure.sum():.1f} EUR per policy-year")
    print("same ZIP code, same area risk:", area_risk("10001") == area_risk("10001"), round(area_risk("10001"), 2))
    print("feature columns:", list(add_features(df).columns))

# Output:
# policies 120000, policy-years 75064, claims 4468
# frequency 0.0595 per policy-year
# average cost per claim 2166 EUR
# average pure premium 128.9 EUR per policy-year
# same ZIP code, same area risk: True 0.26
# feature columns: ['age_young', 'age_senior', 'years_licensed', 'log_km', 'vehicle_age', 'log_value', 'prior_claims', 'area_risk']

The output describes the portfolio: 120,000 policies (4 years of 30,000), 75,064 policy-years, 4,468 claims, frequency 0.0595 per policy-year, average cost 2,166 euros and average pure premium 128.9 euros per policy-year. The second-to-last line checks that the same postcode gives the same area risk. The group column is an attribute the model does not use, generated in a way correlated with the area: it will be needed in the fairness section. The parameter values are my choices for the example, not estimates of a market.

Frequency: GLM against gradient boosting, on the same yardstick

The pure premium is frequency times claim cost. We start with frequency. The baseline model is the Poisson GLM with a log link; the flexible alternative is a gradient boosting with the same loss function (loss="poisson" in scikit-learn). Two choices matter more than the algorithm. The first is how exposure is treated: a policy observed for a quarter of a year has a quarter of the probability of having a claim, so the target is claims divided by exposure and the weight is the exposure. The second is the test period: you train on 2022-2024 and evaluate on 2025, because the portfolio changes over time and a random split mixes past and future.

The listing evaluates with two measures. The average Poisson deviance, weighted by exposure, says how close the predicted frequencies come to the observed ones (lower is better). The Gini measures the ability to rank risks: it sorts policies by predicted risk and compares cumulative shares of exposure and of claims (higher is better, zero means no ability to rank). Both are compared with a constant mean, which is the minimum a model has to beat.

Python: GLM and gradient boosting compared with a temporal split
import numpy as np
import pandas as pd
from sklearn.ensemble import HistGradientBoostingRegressor
from sklearn.linear_model import PoissonRegressor
from sklearn.metrics import mean_poisson_deviance
from sklearn.preprocessing import StandardScaler

from synth import add_features, make_portfolio

df = pd.concat([make_portfolio(30_000, 100 + y, y) for y in (2022, 2023, 2024, 2025)],
               ignore_index=True)
train, test = df[df.year <= 2024], df[df.year == 2025]      # TEMPORAL split, not random
X_tr, X_te = add_features(train), add_features(test)
y_tr = train.claims / train.exposure                        # observed annual frequency
y_te = test.claims / test.exposure

scaler = StandardScaler().fit(X_tr)
glm = PoissonRegressor(alpha=1e-4, max_iter=1000)
glm.fit(scaler.transform(X_tr), y_tr, sample_weight=train.exposure)
gbm = HistGradientBoostingRegressor(loss="poisson", max_depth=3, learning_rate=0.05,
                                    max_iter=150, min_samples_leaf=200, random_state=0)
gbm.fit(X_tr, y_tr, sample_weight=train.exposure)

def gini(y, pred, w):
    """Exposure-weighted Gini: area between the Lorenz curve and the diagonal."""
    order = np.argsort(pred)
    cw = np.cumsum(w[order]) / w.sum()                     # cumulative share of exposure
    cy = np.cumsum((y * w)[order]) / (y * w).sum()         # cumulative share of claims
    area = np.trapezoid(np.r_[0, cy], np.r_[0, cw])
    return 1 - 2 * area

w = test.exposure.to_numpy()
print(f"{'model':22s} {'Poisson deviance':>17s} {'Gini':>7s}")
for name, pred in [("constant mean", np.full(len(test), np.average(y_tr, weights=train.exposure))),
                   ("Poisson GLM", glm.predict(scaler.transform(X_te))),
                   ("Gradient boosting", gbm.predict(X_te))]:
    dev = mean_poisson_deviance(y_te, pred, sample_weight=w)
    print(f"{name:22s} {dev:17.4f} {gini(y_te.to_numpy(), np.asarray(pred), w):7.3f}")

# Output:
# model                   Poisson deviance    Gini
# constant mean                     0.3837  -0.016
# Poisson GLM                       0.3799   0.132
# Gradient boosting                 0.3807   0.125

On 2025 the constant mean has deviance 0.3837 and an almost null Gini (-0.016); the GLM improves to 0.3799 and Gini 0.132; the gradient boosting reaches 0.3807 and 0.125. The flexible model does not beat the linear one, and that is not an anomaly: the data are generated with a linear structure on the logarithm, and with 3,363 claims in training a tree has little more to learn. On real data the ranking may be the opposite, but the method to find out is this one: same temporal split, same metric, a simple baseline to beat. The GLM has an advantage independent of the score: its coefficients are relativities that an actuary can read and a regulator can check.

From risk to price: frequency times severity

The cost of a claim has a very different distribution from the number of claims, so it is modelled separately with a Gamma regression (which requires strictly positive amounts, hence it is trained only on policies with at least one claim). Each policy weighs by the number of claims it had, because an average over four claims is more reliable than one over a single claim. The annual pure premium is the product of the two predictions. The same scheme is illustrated by the scikit-learn example on Tweedie regression for insurance claims, which describes it as frequency times severity.

The check that matters is calibration by deciles: you sort the 2025 policies by predicted premium, split them into ten groups and compare the predicted loss with the actual one. A model that ranks well but gets the level wrong in a group underprices (or overprices) entire segments.

Python: two-stage model and calibration by deciles
import numpy as np
import pandas as pd
from sklearn.linear_model import GammaRegressor, PoissonRegressor
from sklearn.preprocessing import StandardScaler

from synth import add_features, make_portfolio

df = pd.concat([make_portfolio(30_000, 100 + y, y) for y in (2022, 2023, 2024, 2025)],
               ignore_index=True)
train, test = df[df.year <= 2024], df[df.year == 2025]
sc = StandardScaler().fit(add_features(train))
Xtr, Xte = sc.transform(add_features(train)), sc.transform(add_features(test))

# Stage 1: frequency (claims per policy-year), weighted by exposure.
freq = PoissonRegressor(alpha=1e-4, max_iter=1000).fit(
    Xtr, train.claims / train.exposure, sample_weight=train.exposure)

# Stage 2: severity = average cost per claim, ONLY on policies with claims,
# weighted by the number of claims (more claims = more reliable average).
has = train.claims > 0
sev = GammaRegressor(alpha=1e-4, max_iter=1000).fit(
    Xtr[has.to_numpy()], train.amount[has] / train.claims[has], sample_weight=train.claims[has])

# Annual pure premium = predicted frequency x predicted severity.
pure = freq.predict(Xte) * sev.predict(Xte)
t = test.assign(pure=pure, expected_loss=pure * test.exposure)
t["decile"] = pd.qcut(t.pure, 10, labels=False)
by = t.groupby("decile").agg(exposure=("exposure", "sum"),
                             expected=("expected_loss", "sum"), actual=("amount", "sum"))
by["expected/actual"] = by.expected / by.actual
print(by.round({"exposure": 0, "expected": 0, "actual": 0, "expected/actual": 2}).to_string())
print(f"\ntotal expected {by.expected.sum():.0f} EUR, actual {by.actual.sum():.0f} EUR, "
      f"ratio {by.expected.sum() / by.actual.sum():.3f}")

# Output:
#         exposure  expected    actual  expected/actual
# decile                                               
# 0         1882.0  125328.0  132936.0             0.94
# 1         1912.0  158702.0  176149.0             0.90
# 2         1878.0  176219.0  201362.0             0.88
# 3         1884.0  194845.0  202285.0             0.96
# 4         1880.0  212925.0  193839.0             1.10
# 5         1875.0  232349.0  229421.0             1.01
# 6         1857.0  254092.0  255894.0             0.99
# 7         1881.0  287847.0  246080.0             1.17
# 8         1849.0  329969.0  305142.0             1.08
# 9         1868.0  466319.0  406365.0             1.15
#
# total expected 2438595 EUR, actual 2349473 EUR, ratio 1.038

The overall expected/actual ratio is 1.038: the model predicts 3.8% more loss than observed. Across the deciles it goes from 0.88 to 1.17: the riskiest decile has 1.15, the fifth 1.10, the third 0.88. With 1,105 claims in 2025, deviations of this size can be noise, but the pattern (underestimation in the low deciles, overestimation in the high ones) is exactly the kind of deviation that calibration by deciles exists to bring out before going into production. An operational reference: if a decile stays outside the band for several periods in a row, the model has to be reviewed; you set the band, there is no legal threshold that applies here.

Explaining a decision and checking fairness

In a GLM, explaining is easy and exact: for an applicant, the contribution of each variable is its coefficient times the standardised value, and the exponential is a multiplier on frequency relative to the average profile. For more complex models you need an attribution method such as SHAP (Lundberg and Lee, 2017), which I do not run here because the library is not in the test environment: choosing it has computation and interpretation costs to be assessed case by case.

The second check concerns the variables you do not use but that the model can reach through others. The listing measures the average predicted frequency for the two values of group, with and without the area variable. If the difference disappears when you remove the area, the area is the channel (a proxy).

Python: an applicant's contributions and the proxy test
import numpy as np
import pandas as pd
from sklearn.linear_model import PoissonRegressor
from sklearn.preprocessing import StandardScaler

from synth import add_features, make_portfolio

df = pd.concat([make_portfolio(30_000, 100 + y, y) for y in (2022, 2023, 2024, 2025)],
               ignore_index=True)
train, test = df[df.year <= 2024], df[df.year == 2025].reset_index(drop=True)

def fit(columns):
    X = add_features(train)[columns]
    sc = StandardScaler().fit(X)
    m = PoissonRegressor(alpha=1e-4, max_iter=1000).fit(
        sc.transform(X), train.claims / train.exposure, sample_weight=train.exposure)
    return m, sc

ALL = list(add_features(train).columns)
model, sc = fit(ALL)

# --- 1. Explanation of ONE decision: in a GLM the contributions are exact. ---
applicant = add_features(test).iloc[[7]]
z = sc.transform(applicant[ALL])[0]
contrib = pd.Series(model.coef_ * z, index=ALL)               # on the log scale
rel = np.exp(contrib).sort_values(ascending=False)
print("applicant:", applicant.round(2).iloc[0].to_dict())
print("contributions to frequency relative to the average profile (multipliers):")
print(rel.round(3).to_string())
print(f"product of the multipliers: {np.exp(contrib.sum()):.3f}\n")

# --- 2. An attribute the model does NOT see can come in through the window: the proxy. ---
Xte = add_features(test)
for label, cols in [("with area risk", ALL), ("without area risk", [c for c in ALL if c != "area_risk"])]:
    m, s = fit(cols)
    pred = m.predict(s.transform(Xte[cols]))
    by = pd.Series(pred).groupby(test.group).mean()
    print(f"{label:22s} predicted frequency group 0 {by[0]:.4f}, group 1 {by[1]:.4f}, "
          f"ratio {by[1] / by[0]:.3f}")
real = (test.claims.groupby(test.group).sum() / test.exposure.groupby(test.group).sum())
print(f"{'observed (2025)':22s} actual frequency    group 0 {real[0]:.4f}, group 1 {real[1]:.4f}, "
      f"ratio {real[1] / real[0]:.3f}")

# Output:
# applicant: {'age_young': 0.0, 'age_senior': 0.0, 'years_licensed': 15.0, 'log_km': 8.37, 'vehicle_age': 12.0, 'log_value': 9.78, 'prior_claims': 0.0, 'area_risk': 0.57}
# contributions to frequency relative to the average profile (multipliers):
# area_risk         1.057
# log_value         1.009
# vehicle_age       0.993
# age_senior        0.984
# age_young         0.983
# years_licensed    0.943
# prior_claims      0.941
# log_km            0.840
# product of the multipliers: 0.763
#
# with area risk         predicted frequency group 0 0.0576, group 1 0.0622, ratio 1.080
# without area risk      predicted frequency group 0 0.0596, group 1 0.0600, ratio 1.006
# observed (2025)        actual frequency    group 0 0.0535, group 1 0.0647, ratio 1.210

For the chosen applicant, the largest multiplier is the area (1.057), the smallest the kilometres (0.840: they drive little); the product is 0.763, that is a predicted frequency equal to 76.3% of that of an average profile. This is the text you can turn into an explanation for the customer. In the second block, with the area the ratio between the two groups is 1.080, without the area 1.006. The group is not in the model: the whole difference passes through the area. It does not follow that the area should be removed. The ratio observed in 2025 is 1.21: the area is informative about real risk, and removing it worsens the ability to rank customers. The choice between accuracy and equal treatment is a business and legal decision, and the code serves to show it with numbers. The "ratio between groups" parameter has no European threshold that I have verified: do not copy a "four-fifths" rule without knowing which legal system it comes from.

When the model stops being valid: drift

Pricing models age because what feeds them changes: different vehicles, repair costs, customers. A simple indicator is the Population Stability Index (PSI): you split the reference values into bins at the deciles and compare the share of new data in each bin.

The listing computes the PSI for each variable in two scenarios: a new period with the same rules and a period in which vehicle value has grown (the mean logarithm rises by 0.35, that is values are about 1.42 times higher). The limits 0.10 and 0.25 for "warning" and "alarm" are a convention widespread in practice, not a rule: in the listing they are set as example thresholds.

Python: PSI per variable with and without a change in vehicle value
import numpy as np

from synth import add_features, make_portfolio

def psi(reference, current, bins=10):
    """Population Stability Index with bins at the deciles of the reference."""
    edges = np.unique(np.quantile(reference, np.linspace(0, 1, bins + 1)))
    edges[0], edges[-1] = -np.inf, np.inf                      # the tails must not escape
    ref = np.histogram(reference, edges)[0] / len(reference)
    cur = np.histogram(current, edges)[0] / len(current)
    ref, cur = np.clip(ref, 1e-4, None), np.clip(cur, 1e-4, None)  # avoids log(0)
    return float(np.sum((cur - ref) * np.log(cur / ref)))

reference = add_features(make_portfolio(30_000, 101, 2022))
same_world = add_features(make_portfolio(30_000, 999, 2025))
shifted = add_features(make_portfolio(30_000, 999, 2025, vehicle_shift=0.35))  # more expensive vehicles

print(f"{'variable':16s} {'PSI same world':>17s} {'PSI vehicle value x1.42':>30s}")
for col in reference.columns:
    a = psi(reference[col].to_numpy(), same_world[col].to_numpy())
    b = psi(reference[col].to_numpy(), shifted[col].to_numpy())
    flag = "  <-- above 0.25" if b > 0.25 else ("  <-- between 0.10 and 0.25" if b > 0.10 else "")
    print(f"{col:16s} {a:17.4f} {b:30.4f}{flag}")

# Output:
# variable            PSI same world        PSI vehicle value x1.42
# age_young                   0.0000                         0.0000
# age_senior                  0.0001                         0.0001
# years_licensed              0.0000                         0.0000
# log_km                      0.0003                         0.0003
# vehicle_age                 0.0012                         0.0012
# log_value                   0.0004                         0.7087  <-- above 0.25
# prior_claims                0.0004                         0.0004
# area_risk                   0.0006                         0.0006

In the unchanged scenario all the PSIs are below 0.002; in the scenario with more expensive vehicles only log_value moves (0.7087, above the alarm threshold) and the others stay the same, so the monitoring shows which variable has changed. A high PSI says the data have changed, not that the model has got worse: the check on the model remains calibration on real claims, which however arrive months late. That is why the PSI is useful as an early signal.

Before go-live

A set of practices reduces the risk of putting into production a model that looks good in testing:

  • keep a GLM as a baseline, even if you use a more complex model
  • always evaluate on a period after the training one
  • run the model in parallel with human decisions before automating, and compare the differences
  • check calibration by groups and the PSI at regular intervals
  • store with every decision the model version and the variable contributions

The first two items protect against a wrong judgement, the third and fourth against degradation over time, the last lets you answer a dispute months later. How long to run the parallel and at what intervals to check are choices that depend on the claim volume of your portfolio: with few claims you need long periods before you can say anything.

What you can do now

You can set up a two-stage model with exposure and the right weight; you can compare a GLM and a flexible model on a later period with deviance and Gini, and read a result like the one above without concluding that the flexible one is always better; you can check calibration by deciles, explain a decision with the contributions of a GLM, measure a proxy and detect drift with the PSI. And you can cite the rules precisely: AI Act, Annex III, point 5(c) for life and health; GDPR Article 22; the Test-Achats judgment. The next step, claims handling with computer vision and NLP, is in the article Claims automation.

Frequently asked questions

Does the AI Act classify all insurance as high-risk?

No. Annex III, point 5, letter (c), names the systems for risk assessment and pricing in relation to natural persons in life and health insurance. Motor third-party liability is not listed in that point, but other rules, such as Article 22 of the GDPR, remain applicable. The application dates must be checked in the text in force.

Does a more complex model price better than a GLM?

Not necessarily. In the article's synthetic experiment the GLM gets deviance 0.3799 and Gini 0.132 against 0.3807 and 0.125 for the gradient boosting. It depends on the data: the comparison has to be made on your portfolio with a temporal split, the same metric and a simple baseline to beat.

Can sex be used to calculate the motor premium?

In the European Union not as a pricing factor: with judgment C-236/09 of 1 March 2011 the Court of Justice declared Article 5(2) of Directive 2004/113/EC invalid with effect from 21 December 2012. Variables that can act as a proxy still have to be checked, as the fairness listing shows.

Sources

The listings were run twice with the same output (Python 3, NumPy 2.3.5, pandas 3.0.3, scikit-learn 1.8.0). The portfolio is synthetic with fixed seeds: the figures describe no real market.

Try These Tools

Free developer tools related to this topic.

Commenti

Caricamento commenti...

Sign in to comment

New articles and tools on Telegram too

The Telegram channel flags the site's new articles and tools.

Did you like this article?

Explore other content on the blog or discover my projects