# Friedland's basic reserving techniques, reproduced

Jacqueline Friedland's *Estimating Unpaid Claims Using Basic Techniques* (Casualty Actuarial Society, version 3, 2010) applies each technique to the same data sets, so each chapter feeds the next: the chapter 7 factors become the reporting pattern of chapters 9 and 10, and the chapter 8 expected claims become the prior of chapter 9. The tables put the book's figures next to prospicio's.

Exhibit numbers restart in every chapter. Money is in thousands of dollars. To choose a method for your own data, read [`reserving-methods.md`](reserving-methods.md).


# 1. The two data sets

- **U.S. Industry Auto**: reported and paid claims and earned premium of the whole U.S. private passenger auto industry, accident years 1998 to 2007, valued at December 31, 2007. The data is large and stable, so the methods should agree.
- **XYZ Insurer, Auto BI**: the bodily injury book of a small insurer, accident years 1998 to 2008, valued at December 31, 2008. Its case reserving, settlement speed and a tort reform all changed, so the methods disagree. The data has only calendar years 2000 to 2008, so the two oldest rows start at 36 and 24 months.

The triangles are from chapter 7, Exhibits I and II (sheets 1 and 2), the premiums from chapter 8, Exhibits II and III:


``` python
from prospicio.reserving import (
    Benktander, BornhuetterFerguson, CapeCod, ChainLadder, ExpectedLoss, TailCurve, Triangle,
)

US_YEARS = list(range(1998, 2008))
US_REPORTED = [
    [37017487, 43169009, 45568919, 46784558, 47337318, 47533264, 47634419, 47689655, 47724678, 47742304],
    [38954484, 46045718, 48882924, 50219672, 50729292, 50926779, 51069285, 51163540, 51185767],
    [41155776, 49371478, 52358476, 53780322, 54303086, 54582950, 54742188, 54837929],
    [42394069, 50584112, 53704296, 55150118, 55895583, 56156727, 56299562],
    [44755243, 52971643, 56102312, 57703851, 58363564, 58592712],
    [45163102, 52497731, 55468551, 57015411, 57565344],
    [45417309, 52640322, 55553673, 56976657],
    [46360869, 53790061, 56786410],
    [46582684, 54641339],
    [48853563],
]
US_PAID = [
    [18539254, 33231039, 40062008, 43892039, 45896535, 46765422, 47221322, 47446877, 47555456, 47644187],
    [20410193, 36090684, 43259402, 47159241, 49208532, 50162043, 50625757, 50878808, 51000534],
    [22120843, 38976014, 46389282, 50562385, 52735280, 53740101, 54284334, 54533225],
    [22992259, 40096198, 47767835, 52093916, 54363436, 55378801, 55878421],
    [24092782, 41795313, 49903803, 54352884, 56754376, 57807215],
    [24084451, 41399612, 49070332, 53584201, 55930654],
    [24369770, 41489863, 49236678, 53774672],
    [25100697, 42702229, 50644994],
    [25608776, 43606497],
    [27229969],
]
US_PREMIUM = [68574209, 68544981, 68907977, 72544955, 79228887,
              86643542, 91763523, 94115312, 95272279, 95176240]

XYZ_YEARS = list(range(1998, 2009))
XYZ_FIRST_AGE = [36, 24] + [12] * 9  # months at the first observed cell of each row
XYZ_REPORTED = [
    [11171, 12380, 13216, 14067, 14688, 16366, 16163, 15835, 15822],
    [13255, 16405, 19639, 22473, 23764, 25094, 24795, 25071, 25107],
    [15676, 18749, 21900, 27144, 29488, 34458, 36949, 37505, 37246],
    [11827, 16004, 21022, 26578, 34205, 37136, 38541, 38798],
    [12811, 20370, 26656, 37667, 44414, 48701, 48169],
    [9651, 16995, 30354, 40594, 44231, 44373],
    [16995, 40180, 58866, 71707, 70288],
    [28674, 47432, 70340, 70655],
    [27066, 46783, 48804],
    [19477, 31732],
    [18632],
]
XYZ_PAID = [
    [6309, 8521, 10082, 11620, 13242, 14419, 15311, 15764, 15822],
    [4666, 9861, 13971, 18127, 22032, 23511, 24146, 24592, 24817],
    [1302, 6513, 12139, 17828, 24030, 28853, 33222, 35902, 36782],
    [1539, 5952, 12319, 18609, 24387, 31090, 37070, 38519],
    [2318, 7932, 13822, 22095, 31945, 40629, 44437],
    [1743, 6240, 12683, 22892, 34505, 39320],
    [2221, 9898, 25950, 43439, 52811],
    [3043, 12219, 27073, 40026],
    [3531, 11778, 22819],
    [3529, 11865],
    [3409],
]
XYZ_PREMIUM = [20000, 31500, 45000, 50000, 61183, 69175, 99322, 138151, 107578, 62438, 47797]


def triangle(years, columns, exposures=None, first_age=None):
    """A Triangle from rows of cumulative values; exposures are repeated on every cell."""
    exposures = exposures or {}
    first_age = first_age or [12] * len(years)
    origin, age = [], []
    values = {name: [] for name in [*columns, *exposures]}
    rows = next(iter(columns.values()))
    for i, year in enumerate(years):
        for k in range(len(rows[i])):
            months = first_age[i] + 12 * k
            origin.append(year)
            age.append(months)
            for name, table in columns.items():
                values[name].append(float(table[i][k]))
            for name, column in exposures.items():
                values[name].append(float(column[i]))
    return Triangle.from_long(origin, age, values)


us = triangle(US_YEARS, {"reported": US_REPORTED, "paid": US_PAID}, {"premium": US_PREMIUM})
xyz = triangle(XYZ_YEARS, {"reported": XYZ_REPORTED, "paid": XYZ_PAID},
               {"premium": XYZ_PREMIUM}, first_age=XYZ_FIRST_AGE)
print(us)
print(xyz.view("reported").iloc[:3, :5])
```


    Triangle: 1 segment x 3 columns (cumulative, valuation 2007-12)
    column    n_origins  first_origin  last_origin  valuation       latest
    reported         10          1998         2007    2007-12  543,481,587
    paid             10          1998         2007    2007-12  498,050,368
    premium          10          1998         2007    2007-12  820,771,905
    development       12       24       36       48       60
    origin                                                  
    1998             NaN      NaN  11171.0  12380.0  13216.0
    1999             NaN  13255.0  16405.0  19639.0  22473.0
    2000         15676.0  18749.0  21900.0  27144.0  29488.0


The XYZ rows for 1998 and 1999 start with unobserved cells (`NaN`). They stay missing, not zero, so no factor uses them.


# 2. The development technique (chapter 7)


## Age-to-age factors and their averages

A link ratio is a cell divided by the cell before it in the same row. Friedland averages the **latest** few accident years of each column and selects one factor for each age: simple averages of the latest 5 and 3, a medial average of the latest 5 (without the highest and lowest), volume-weighted averages of the latest 5 and 3, and a geometric average of the latest 4.

[ChainLadder](../reference/reserving.ChainLadder.md#prospicio.reserving.ChainLadder) takes each as an option:

- `average=` selects the mean (`"volume"`, `"simple"`, `"regression"` or `"geometric"`).
- `n_periods=n` keeps only the link ratios that start in the latest n calendar diagonals (the latest n accident years at each age).
- `drop_high=` and `drop_low=` remove the highest and lowest of those. A medial average is a simple average with one of each removed.

[n_links](../reference/reserving.MackFit.md#prospicio.reserving.MackFit.n_links) counts the link ratios in each factor's average:


``` python
import pandas as pd
from great_tables import GT

AVERAGES = {
    "simple, latest 5": ChainLadder(average="simple", n_periods=5),
    "simple, latest 3": ChainLadder(average="simple", n_periods=3),
    "medial, latest 5x1": ChainLadder(average="simple", n_periods=5, drop_high=1, drop_low=1),
    "volume, latest 5": ChainLadder(n_periods=5),
    "volume, latest 3": ChainLadder(n_periods=3),
    "geometric, latest 4": ChainLadder(average="geometric", n_periods=4),
}
fits = {name: method.fit(us, "reported") for name, method in AVERAGES.items()}
LINKS = [f"{a}-{a + 12}" for a in us.development[:-1]]
rows = [[name, *fit.ldf] for name, fit in fits.items()]
rows.append(["links in the medial average", *fits["medial, latest 5x1"].n_links])
factors = pd.DataFrame(rows, columns=["average", *LINKS])
(GT(factors, rowname_col="average")
 .tab_header("U.S. Industry Auto, reported: age-to-age factors", "Months; the last row counts the link ratios in the medial average")
 .fmt_number(LINKS, rows=list(range(6)), decimals=3)
 .fmt_integer(LINKS, rows=[6]))
```


<style>
#hjvsdxsgzf table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#hjvsdxsgzf thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#hjvsdxsgzf p { margin: 0; padding: 0; }
 #hjvsdxsgzf .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #hjvsdxsgzf .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #hjvsdxsgzf .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #hjvsdxsgzf .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #hjvsdxsgzf .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #hjvsdxsgzf .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #hjvsdxsgzf .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #hjvsdxsgzf .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #hjvsdxsgzf .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #hjvsdxsgzf .gt_column_spanner_outer:first-child { padding-left: 0; }
 #hjvsdxsgzf .gt_column_spanner_outer:last-child { padding-right: 0; }
 #hjvsdxsgzf .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #hjvsdxsgzf .gt_spanner_row { border-bottom-style: hidden; }
 #hjvsdxsgzf .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #hjvsdxsgzf .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #hjvsdxsgzf .gt_from_md> :first-child { margin-top: 0; }
 #hjvsdxsgzf .gt_from_md> :last-child { margin-bottom: 0; }
 #hjvsdxsgzf .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #hjvsdxsgzf .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #hjvsdxsgzf .gt_indent_1 { text-indent: 5px; }
 #hjvsdxsgzf .gt_indent_2 { text-indent: calc(5px * 2); }
 #hjvsdxsgzf .gt_indent_3 { text-indent: calc(5px * 3); }
 #hjvsdxsgzf .gt_indent_4 { text-indent: calc(5px * 4); }
 #hjvsdxsgzf .gt_indent_5 { text-indent: calc(5px * 5); }
 #hjvsdxsgzf .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #hjvsdxsgzf .gt_row_group_first td { border-top-width: 2px; }
 #hjvsdxsgzf .gt_row_group_first th { border-top-width: 2px; }
 #hjvsdxsgzf .gt_striped { color: #333333; background-color: #F4F4F4; }
 #hjvsdxsgzf .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #hjvsdxsgzf .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #hjvsdxsgzf .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #hjvsdxsgzf .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #hjvsdxsgzf .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #hjvsdxsgzf .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #hjvsdxsgzf .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #hjvsdxsgzf .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #hjvsdxsgzf .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #hjvsdxsgzf .gt_left { text-align: left; }
 #hjvsdxsgzf .gt_center { text-align: center; }
 #hjvsdxsgzf .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #hjvsdxsgzf .gt_font_normal { font-weight: normal; }
 #hjvsdxsgzf .gt_font_bold { font-weight: bold; }
 #hjvsdxsgzf .gt_font_italic { font-style: italic; }
 #hjvsdxsgzf .gt_super { font-size: 65%; }
 #hjvsdxsgzf .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #hjvsdxsgzf .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #hjvsdxsgzf .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #hjvsdxsgzf .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #hjvsdxsgzf .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #hjvsdxsgzf .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="10" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto, reported: age-to-age factors</th>
</tr>
<tr class="gt_heading">
<th colspan="10" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Months; the last row counts the link ratios in the medial average</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="12-24" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">12-24</th>
<th id="24-36" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">24-36</th>
<th id="36-48" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">36-48</th>
<th id="48-60" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">48-60</th>
<th id="60-72" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">60-72</th>
<th id="72-84" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">72-84</th>
<th id="84-96" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">84-96</th>
<th id="96-108" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">96-108</th>
<th id="108-120" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">108-120</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">simple, latest 5</th>
<td class="gt_row gt_right" headers="stub-1 12-24">1.168</td>
<td class="gt_row gt_right" headers="stub-1 24-36">1.058</td>
<td class="gt_row gt_right" headers="stub-1 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-1 48-60">1.011</td>
<td class="gt_row gt_right" headers="stub-1 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-1 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-1 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-1 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-1 108-120">1.000</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">simple, latest 3</th>
<td class="gt_row gt_right" headers="stub-2 12-24">1.164</td>
<td class="gt_row gt_right" headers="stub-2 24-36">1.056</td>
<td class="gt_row gt_right" headers="stub-2 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-2 48-60">1.012</td>
<td class="gt_row gt_right" headers="stub-2 60-72">1.005</td>
<td class="gt_row gt_right" headers="stub-2 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-2 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-2 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-2 108-120">1.000</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">medial, latest 5x1</th>
<td class="gt_row gt_right" headers="stub-3 12-24">1.165</td>
<td class="gt_row gt_right" headers="stub-3 24-36">1.057</td>
<td class="gt_row gt_right" headers="stub-3 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-3 48-60">1.010</td>
<td class="gt_row gt_right" headers="stub-3 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-3 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-3 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-3 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-3 108-120">1.000</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">volume, latest 5</th>
<td class="gt_row gt_right" headers="stub-4 12-24">1.168</td>
<td class="gt_row gt_right" headers="stub-4 24-36">1.058</td>
<td class="gt_row gt_right" headers="stub-4 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-4 48-60">1.011</td>
<td class="gt_row gt_right" headers="stub-4 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-4 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-4 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-4 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-4 108-120">1.000</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">volume, latest 3</th>
<td class="gt_row gt_right" headers="stub-5 12-24">1.164</td>
<td class="gt_row gt_right" headers="stub-5 24-36">1.056</td>
<td class="gt_row gt_right" headers="stub-5 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-5 48-60">1.012</td>
<td class="gt_row gt_right" headers="stub-5 60-72">1.005</td>
<td class="gt_row gt_right" headers="stub-5 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-5 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-5 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-5 108-120">1.000</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">geometric, latest 4</th>
<td class="gt_row gt_right" headers="stub-6 12-24">1.164</td>
<td class="gt_row gt_right" headers="stub-6 24-36">1.057</td>
<td class="gt_row gt_right" headers="stub-6 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-6 48-60">1.011</td>
<td class="gt_row gt_right" headers="stub-6 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-6 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-6 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-6 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-6 108-120">1.000</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">links in the medial average</th>
<td class="gt_row gt_right" headers="stub-7 12-24">3</td>
<td class="gt_row gt_right" headers="stub-7 24-36">3</td>
<td class="gt_row gt_right" headers="stub-7 36-48">3</td>
<td class="gt_row gt_right" headers="stub-7 48-60">3</td>
<td class="gt_row gt_right" headers="stub-7 60-72">3</td>
<td class="gt_row gt_right" headers="stub-7 72-84">2</td>
<td class="gt_row gt_right" headers="stub-7 84-96">1</td>
<td class="gt_row gt_right" headers="stub-7 96-108">2</td>
<td class="gt_row gt_right" headers="stub-7 108-120">1</td>
</tr>
</tbody>
</table>


Each factor row equals the book's chapter 7, Exhibit I, sheet 1, part 3, to three decimals. The paid averages on sheet 2 agree.


``` python
import matplotlib.pyplot as plt

reported = us.view("reported")
link = reported.iloc[:, 1:].to_numpy() / reported.iloc[:, :-1].to_numpy()
ages = [int(a) for a in reported.columns[:-1]]
fig, ax = plt.subplots()
for row in link:
    ax.plot(ages, 100 * (row - 1), color="0.75", linewidth=1)
ax.plot([], [], color="0.75", label="one accident year")
ax.plot(ages, [100 * (f - 1) for f in fits["volume, latest 3"].ldf], marker="o", label="volume, latest 3")
ax.set_yscale("log")
ax.set_xticks(ages)
ax.set_xlabel("age at the start of the link, months")
ax.set_ylabel("link ratio minus 1, % (log scale)")
ax.set_title("U.S. Industry Auto, reported: link ratios and the latest-3 average")
ax.legend()
```


<figure class="p-figure figure">
<img src="data:image/svg+xml;base64,PHN2ZyB4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjQ1Mi44NTA4NTlwdCIgaGVpZ2h0PSIyNjIuMTAyOTg0cHQiIHZpZXdib3g9IjAgMCA0NTIuODUwODU5IDI2Mi4xMDI5ODQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIj4KIDxtZXRhZGF0YT4KICA8cmRmIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgPHdvcms+CiAgICA8dHlwZSByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIj48L3R5cGU+CiAgICA8ZGF0ZT4yMDI2LTExLTI5VDE3OjI0OjI0LjU1OTU5NTwvZGF0ZT4KICAgIDxmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZm9ybWF0PgogICAgPGNyZWF0b3I+CiAgICAgPGFnZW50PgogICAgICA8dGl0bGU+TWF0cGxvdGxpYiB2My4xMS4yLCBodHRwczovL21hdHBsb3RsaWIub3JnLzwvdGl0bGU+CiAgICAgPC9hZ2VudD4KICAgIDwvY3JlYXRvcj4KICAgPC93b3JrPgogIDwvcmRmPgogPC9tZXRhZGF0YT4KIDxkZWZzPgogIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+KntzdHJva2UtbGluZWpvaW46IHJvdW5kOyBzdHJva2UtbGluZWNhcDogYnV0dH08L3N0eWxlPgogPC9kZWZ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SIgeT0iMjIuMzE4MTI1IiB3aWR0aD0iMzkwLjYiIGhlaWdodD0iMTk5LjU4NCIgLz4KICA8L2NsaXBwYXRoPgogPC9kZWZzPgo8L3N2Zz4=" />
</figure>


prospicio follows the book's two conventions:

- When fewer years exist, "latest 5" uses all of them.
- The medial average of two values is their simple average, and of one value the value itself. prospicio skips a drop that leaves no link ratio.

In the last row of the first table, 3 of the five link ratios at 12-24 remain, 2 of the four at 72-84 and 1 of the three at 84-96. The two at 96-108 and the one at 108-120 all remain.

The book does not use all-year averages. This table compares them with the latest-3 average:


``` python
RECENT = {
    "volume, latest 3": ChainLadder(n_periods=3),
    "volume, all years": ChainLadder(),
    "simple, all years": ChainLadder(average="simple"),
}
recent = pd.DataFrame([[name, *m.fit(us, "reported").ldf] for name, m in RECENT.items()],
                      columns=["average", *LINKS])
(GT(recent, rowname_col="average")
 .tab_header("U.S. Industry Auto, reported: latest 3 against all years", "Age-to-age factors, months")
 .fmt_number(LINKS, decimals=3))
```


<style>
#yneitvgrtg table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#yneitvgrtg thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#yneitvgrtg p { margin: 0; padding: 0; }
 #yneitvgrtg .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #yneitvgrtg .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #yneitvgrtg .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #yneitvgrtg .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #yneitvgrtg .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #yneitvgrtg .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #yneitvgrtg .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #yneitvgrtg .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #yneitvgrtg .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #yneitvgrtg .gt_column_spanner_outer:first-child { padding-left: 0; }
 #yneitvgrtg .gt_column_spanner_outer:last-child { padding-right: 0; }
 #yneitvgrtg .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #yneitvgrtg .gt_spanner_row { border-bottom-style: hidden; }
 #yneitvgrtg .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #yneitvgrtg .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #yneitvgrtg .gt_from_md> :first-child { margin-top: 0; }
 #yneitvgrtg .gt_from_md> :last-child { margin-bottom: 0; }
 #yneitvgrtg .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #yneitvgrtg .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #yneitvgrtg .gt_indent_1 { text-indent: 5px; }
 #yneitvgrtg .gt_indent_2 { text-indent: calc(5px * 2); }
 #yneitvgrtg .gt_indent_3 { text-indent: calc(5px * 3); }
 #yneitvgrtg .gt_indent_4 { text-indent: calc(5px * 4); }
 #yneitvgrtg .gt_indent_5 { text-indent: calc(5px * 5); }
 #yneitvgrtg .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #yneitvgrtg .gt_row_group_first td { border-top-width: 2px; }
 #yneitvgrtg .gt_row_group_first th { border-top-width: 2px; }
 #yneitvgrtg .gt_striped { color: #333333; background-color: #F4F4F4; }
 #yneitvgrtg .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #yneitvgrtg .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #yneitvgrtg .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #yneitvgrtg .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #yneitvgrtg .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #yneitvgrtg .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #yneitvgrtg .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #yneitvgrtg .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #yneitvgrtg .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #yneitvgrtg .gt_left { text-align: left; }
 #yneitvgrtg .gt_center { text-align: center; }
 #yneitvgrtg .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #yneitvgrtg .gt_font_normal { font-weight: normal; }
 #yneitvgrtg .gt_font_bold { font-weight: bold; }
 #yneitvgrtg .gt_font_italic { font-style: italic; }
 #yneitvgrtg .gt_super { font-size: 65%; }
 #yneitvgrtg .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #yneitvgrtg .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #yneitvgrtg .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #yneitvgrtg .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #yneitvgrtg .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #yneitvgrtg .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="10" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto, reported: latest 3 against all years</th>
</tr>
<tr class="gt_heading">
<th colspan="10" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Age-to-age factors, months</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="12-24" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">12-24</th>
<th id="24-36" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">24-36</th>
<th id="36-48" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">36-48</th>
<th id="48-60" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">48-60</th>
<th id="60-72" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">60-72</th>
<th id="72-84" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">72-84</th>
<th id="84-96" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">84-96</th>
<th id="96-108" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">96-108</th>
<th id="108-120" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">108-120</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">volume, latest 3</th>
<td class="gt_row gt_right" headers="stub-1 12-24">1.164</td>
<td class="gt_row gt_right" headers="stub-1 24-36">1.056</td>
<td class="gt_row gt_right" headers="stub-1 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-1 48-60">1.012</td>
<td class="gt_row gt_right" headers="stub-1 60-72">1.005</td>
<td class="gt_row gt_right" headers="stub-1 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-1 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-1 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-1 108-120">1.000</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">volume, all years</th>
<td class="gt_row gt_right" headers="stub-2 12-24">1.175</td>
<td class="gt_row gt_right" headers="stub-2 24-36">1.058</td>
<td class="gt_row gt_right" headers="stub-2 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-2 48-60">1.011</td>
<td class="gt_row gt_right" headers="stub-2 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-2 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-2 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-2 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-2 108-120">1.000</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">simple, all years</th>
<td class="gt_row gt_right" headers="stub-3 12-24">1.175</td>
<td class="gt_row gt_right" headers="stub-3 24-36">1.058</td>
<td class="gt_row gt_right" headers="stub-3 36-48">1.027</td>
<td class="gt_row gt_right" headers="stub-3 48-60">1.011</td>
<td class="gt_row gt_right" headers="stub-3 60-72">1.004</td>
<td class="gt_row gt_right" headers="stub-3 72-84">1.003</td>
<td class="gt_row gt_right" headers="stub-3 84-96">1.002</td>
<td class="gt_row gt_right" headers="stub-3 96-108">1.001</td>
<td class="gt_row gt_right" headers="stub-3 108-120">1.000</td>
</tr>
</tbody>
</table>


The all-year factor at 12-24 (1.175) is higher than the book's 1.164 because the early accident years developed more in their first year.


## Selected factors, factors to ultimate, and rounding

Friedland selects the latest-3 averages rounded to three decimals, with no reported tail and a paid tail of 1.002. Their product is the factor to ultimate (CDF), which she rounds to three decimals before she applies it to the latest diagonal. Pass the factors as `ldf=` with `ldf_kind="ldf"`, and the tail as `tail=`:


``` python
AGES = us.development
SEL_REPORTED = [1.164, 1.056, 1.027, 1.012, 1.005, 1.003, 1.002, 1.001, 1.000]
SEL_PAID = [1.702, 1.186, 1.091, 1.044, 1.019, 1.009, 1.005, 1.002, 1.002]
dev_r = ChainLadder(ldf=dict(zip(AGES, SEL_REPORTED)), ldf_kind="ldf").fit(us, "reported")
dev_p = ChainLadder(ldf=dict(zip(AGES, SEL_PAID)), ldf_kind="ldf", tail=1.002).fit(us, "paid")
cdfs = pd.DataFrame([["reported", *dev_r.cdf], ["paid", *dev_p.cdf]], columns=["claims", *map(str, AGES)])
(GT(cdfs, rowname_col="claims")
 .tab_header("U.S. Industry Auto: factors to ultimate from the selected factors", "CDF by age in months")
 .fmt_number([str(a) for a in AGES], decimals=5))
```


<style>
#cyfooltzlo table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#cyfooltzlo thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#cyfooltzlo p { margin: 0; padding: 0; }
 #cyfooltzlo .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #cyfooltzlo .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #cyfooltzlo .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #cyfooltzlo .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #cyfooltzlo .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cyfooltzlo .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cyfooltzlo .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cyfooltzlo .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #cyfooltzlo .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #cyfooltzlo .gt_column_spanner_outer:first-child { padding-left: 0; }
 #cyfooltzlo .gt_column_spanner_outer:last-child { padding-right: 0; }
 #cyfooltzlo .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #cyfooltzlo .gt_spanner_row { border-bottom-style: hidden; }
 #cyfooltzlo .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #cyfooltzlo .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #cyfooltzlo .gt_from_md> :first-child { margin-top: 0; }
 #cyfooltzlo .gt_from_md> :last-child { margin-bottom: 0; }
 #cyfooltzlo .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #cyfooltzlo .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #cyfooltzlo .gt_indent_1 { text-indent: 5px; }
 #cyfooltzlo .gt_indent_2 { text-indent: calc(5px * 2); }
 #cyfooltzlo .gt_indent_3 { text-indent: calc(5px * 3); }
 #cyfooltzlo .gt_indent_4 { text-indent: calc(5px * 4); }
 #cyfooltzlo .gt_indent_5 { text-indent: calc(5px * 5); }
 #cyfooltzlo .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #cyfooltzlo .gt_row_group_first td { border-top-width: 2px; }
 #cyfooltzlo .gt_row_group_first th { border-top-width: 2px; }
 #cyfooltzlo .gt_striped { color: #333333; background-color: #F4F4F4; }
 #cyfooltzlo .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cyfooltzlo .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cyfooltzlo .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #cyfooltzlo .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cyfooltzlo .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cyfooltzlo .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #cyfooltzlo .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #cyfooltzlo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cyfooltzlo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cyfooltzlo .gt_left { text-align: left; }
 #cyfooltzlo .gt_center { text-align: center; }
 #cyfooltzlo .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #cyfooltzlo .gt_font_normal { font-weight: normal; }
 #cyfooltzlo .gt_font_bold { font-weight: bold; }
 #cyfooltzlo .gt_font_italic { font-style: italic; }
 #cyfooltzlo .gt_super { font-size: 65%; }
 #cyfooltzlo .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cyfooltzlo .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #cyfooltzlo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cyfooltzlo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cyfooltzlo .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #cyfooltzlo .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="11" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: factors to ultimate from the selected factors</th>
</tr>
<tr class="gt_heading">
<th colspan="11" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">CDF by age in months</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="12" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">12</th>
<th id="24" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">24</th>
<th id="36" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">36</th>
<th id="48" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">48</th>
<th id="60" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">60</th>
<th id="72" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">72</th>
<th id="84" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">84</th>
<th id="96" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">96</th>
<th id="108" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">108</th>
<th id="120" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">120</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">reported</th>
<td class="gt_row gt_right" headers="stub-1 12">1.29163</td>
<td class="gt_row gt_right" headers="stub-1 24">1.10964</td>
<td class="gt_row gt_right" headers="stub-1 36">1.05080</td>
<td class="gt_row gt_right" headers="stub-1 48">1.02317</td>
<td class="gt_row gt_right" headers="stub-1 60">1.01104</td>
<td class="gt_row gt_right" headers="stub-1 72">1.00601</td>
<td class="gt_row gt_right" headers="stub-1 84">1.00300</td>
<td class="gt_row gt_right" headers="stub-1 96">1.00100</td>
<td class="gt_row gt_right" headers="stub-1 108">1.00000</td>
<td class="gt_row gt_right" headers="stub-1 120">1.00000</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">paid</th>
<td class="gt_row gt_right" headers="stub-2 12">2.39003</td>
<td class="gt_row gt_right" headers="stub-2 24">1.40425</td>
<td class="gt_row gt_right" headers="stub-2 36">1.18402</td>
<td class="gt_row gt_right" headers="stub-2 48">1.08526</td>
<td class="gt_row gt_right" headers="stub-2 60">1.03952</td>
<td class="gt_row gt_right" headers="stub-2 72">1.02014</td>
<td class="gt_row gt_right" headers="stub-2 84">1.01104</td>
<td class="gt_row gt_right" headers="stub-2 96">1.00601</td>
<td class="gt_row gt_right" headers="stub-2 108">1.00400</td>
<td class="gt_row gt_right" headers="stub-2 120">1.00200</td>
</tr>
</tbody>
</table>


The totals differ from the book's:


``` python
def vs_book(items, title, subtitle=None):
    """prospicio against the book; items are (measure, prospicio, book or None, decimals)."""
    frame = pd.DataFrame({
        "measure": [i[0] for i in items],
        "prospicio": [i[1] for i in items],
        "book": [i[2] for i in items],
        "difference": [None if i[2] is None else i[1] - i[2] for i in items],
    })
    table = GT(frame, rowname_col="measure").tab_header(title, subtitle)
    for k, item in enumerate(items):
        table = table.fmt_number(["prospicio", "book", "difference"], rows=[k], decimals=item[3])
    return table.sub_missing(missing_text="")


vs_book([("reported", sum(dev_r.ultimate), 569172456, 0), ("paid", sum(dev_p.ultimate), 572041099, 0)],
        "U.S. Industry Auto: total ultimate from the unrounded CDFs", "Thousands of dollars")
```


<style>
#cpgrpfrbax table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#cpgrpfrbax thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#cpgrpfrbax p { margin: 0; padding: 0; }
 #cpgrpfrbax .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #cpgrpfrbax .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #cpgrpfrbax .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #cpgrpfrbax .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #cpgrpfrbax .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cpgrpfrbax .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cpgrpfrbax .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cpgrpfrbax .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #cpgrpfrbax .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #cpgrpfrbax .gt_column_spanner_outer:first-child { padding-left: 0; }
 #cpgrpfrbax .gt_column_spanner_outer:last-child { padding-right: 0; }
 #cpgrpfrbax .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #cpgrpfrbax .gt_spanner_row { border-bottom-style: hidden; }
 #cpgrpfrbax .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #cpgrpfrbax .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #cpgrpfrbax .gt_from_md> :first-child { margin-top: 0; }
 #cpgrpfrbax .gt_from_md> :last-child { margin-bottom: 0; }
 #cpgrpfrbax .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #cpgrpfrbax .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #cpgrpfrbax .gt_indent_1 { text-indent: 5px; }
 #cpgrpfrbax .gt_indent_2 { text-indent: calc(5px * 2); }
 #cpgrpfrbax .gt_indent_3 { text-indent: calc(5px * 3); }
 #cpgrpfrbax .gt_indent_4 { text-indent: calc(5px * 4); }
 #cpgrpfrbax .gt_indent_5 { text-indent: calc(5px * 5); }
 #cpgrpfrbax .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #cpgrpfrbax .gt_row_group_first td { border-top-width: 2px; }
 #cpgrpfrbax .gt_row_group_first th { border-top-width: 2px; }
 #cpgrpfrbax .gt_striped { color: #333333; background-color: #F4F4F4; }
 #cpgrpfrbax .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cpgrpfrbax .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cpgrpfrbax .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #cpgrpfrbax .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cpgrpfrbax .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cpgrpfrbax .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #cpgrpfrbax .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #cpgrpfrbax .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cpgrpfrbax .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cpgrpfrbax .gt_left { text-align: left; }
 #cpgrpfrbax .gt_center { text-align: center; }
 #cpgrpfrbax .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #cpgrpfrbax .gt_font_normal { font-weight: normal; }
 #cpgrpfrbax .gt_font_bold { font-weight: bold; }
 #cpgrpfrbax .gt_font_italic { font-style: italic; }
 #cpgrpfrbax .gt_super { font-size: 65%; }
 #cpgrpfrbax .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cpgrpfrbax .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #cpgrpfrbax .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cpgrpfrbax .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cpgrpfrbax .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #cpgrpfrbax .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: total ultimate from the unrounded CDFs</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">reported</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">569,136,323</td>
<td class="gt_row gt_right" headers="stub-1 book">569,172,456</td>
<td class="gt_row gt_right" headers="stub-1 difference">−36,133</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">paid</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">572,052,982</td>
<td class="gt_row gt_right" headers="stub-2 book">572,041,099</td>
<td class="gt_row gt_right" headers="stub-2 difference">11,883</td>
</tr>
</tbody>
</table>


The cause is the rounding of the CDF: the reported factors multiply to 1.29163 from 12 months, but the book uses 1.292. Pass the book's rounded CDFs with `ldf_kind="cdf"`. A pattern that reaches the oldest age with no `tail=` keeps its last value as the tail, so the paid CDF of 1.002 at 120 months is the tail:


``` python
CDF_REPORTED = [1.292, 1.110, 1.051, 1.023, 1.011, 1.006, 1.003, 1.001, 1.000, 1.000]
CDF_PAID = [2.390, 1.404, 1.184, 1.085, 1.040, 1.020, 1.011, 1.006, 1.004, 1.002]
US_CDF = {
    "reported": dict(zip(AGES, CDF_REPORTED)),
    "paid": dict(zip(AGES, CDF_PAID)),
}
dev_r = ChainLadder(ldf=US_CDF["reported"], ldf_kind="cdf").fit(us, "reported")
dev_p = ChainLadder(ldf=US_CDF["paid"], ldf_kind="cdf").fit(us, "paid")
print("paid tail", dev_p.pattern_tail)

BOOK_DEV = {  # chapter 7, Exhibit I, sheet 3, columns (7) and (8)
    "reported": [47742304, 51185767, 54892767, 56468461, 58944268,
                 58198563, 58287120, 59682517, 60651886, 63118803],
    "paid": [47739475, 51204536, 54860424, 56493084, 58963359,
             58167880, 58345519, 59963673, 61223522, 65079626],
}


def compare(years, columns, title, subtitle=None, ratio=None):
    """prospicio's ultimates beside the book's; columns: name -> (ultimates, book, book total)."""
    frame = pd.DataFrame({"year": [*map(str, years), "all"]})
    if ratio is not None:
        frame["ratio"] = [*ratio, None]
    pairs = {}
    for name, (ultimate, book, total) in columns.items():
        frame[name] = [*ultimate, sum(ultimate)]
        frame[f"{name} (book)"] = [*book, total]
        pairs[name] = [name, f"{name} (book)"]
    values = [c for p in pairs.values() for c in p]
    table = GT(frame, rowname_col="year").tab_header(title, subtitle).fmt_integer(values)
    if ratio is not None:
        table = table.fmt_number("ratio", decimals=3).cols_label(ratio="expected claim ratio")
    for name, cols in pairs.items():
        table = table.tab_spanner(name, cols)
    labels = {c: ("book" if c.endswith("(book)") else "prospicio") for c in values}
    return table.cols_label(**labels).sub_missing(missing_text="")


compare(US_YEARS, {"reported": (dev_r.ultimate, BOOK_DEV["reported"], 569172456),
                   "paid": (dev_p.ultimate, BOOK_DEV["paid"], 572041099)},
        "U.S. Industry Auto: ultimate by accident year", "Development technique, thousands of dollars")
```


    paid tail 1.002


<style>
#calxwsaaxx table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#calxwsaaxx thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#calxwsaaxx p { margin: 0; padding: 0; }
 #calxwsaaxx .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #calxwsaaxx .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #calxwsaaxx .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #calxwsaaxx .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #calxwsaaxx .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #calxwsaaxx .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #calxwsaaxx .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #calxwsaaxx .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #calxwsaaxx .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #calxwsaaxx .gt_column_spanner_outer:first-child { padding-left: 0; }
 #calxwsaaxx .gt_column_spanner_outer:last-child { padding-right: 0; }
 #calxwsaaxx .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #calxwsaaxx .gt_spanner_row { border-bottom-style: hidden; }
 #calxwsaaxx .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #calxwsaaxx .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #calxwsaaxx .gt_from_md> :first-child { margin-top: 0; }
 #calxwsaaxx .gt_from_md> :last-child { margin-bottom: 0; }
 #calxwsaaxx .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #calxwsaaxx .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #calxwsaaxx .gt_indent_1 { text-indent: 5px; }
 #calxwsaaxx .gt_indent_2 { text-indent: calc(5px * 2); }
 #calxwsaaxx .gt_indent_3 { text-indent: calc(5px * 3); }
 #calxwsaaxx .gt_indent_4 { text-indent: calc(5px * 4); }
 #calxwsaaxx .gt_indent_5 { text-indent: calc(5px * 5); }
 #calxwsaaxx .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #calxwsaaxx .gt_row_group_first td { border-top-width: 2px; }
 #calxwsaaxx .gt_row_group_first th { border-top-width: 2px; }
 #calxwsaaxx .gt_striped { color: #333333; background-color: #F4F4F4; }
 #calxwsaaxx .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #calxwsaaxx .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #calxwsaaxx .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #calxwsaaxx .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #calxwsaaxx .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #calxwsaaxx .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #calxwsaaxx .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #calxwsaaxx .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #calxwsaaxx .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #calxwsaaxx .gt_left { text-align: left; }
 #calxwsaaxx .gt_center { text-align: center; }
 #calxwsaaxx .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #calxwsaaxx .gt_font_normal { font-weight: normal; }
 #calxwsaaxx .gt_font_bold { font-weight: bold; }
 #calxwsaaxx .gt_font_italic { font-style: italic; }
 #calxwsaaxx .gt_super { font-size: 65%; }
 #calxwsaaxx .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #calxwsaaxx .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #calxwsaaxx .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #calxwsaaxx .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #calxwsaaxx .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #calxwsaaxx .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: ultimate by accident year</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Development technique, thousands of dollars</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="reported-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">reported</th>
<th colspan="2" id="paid-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">paid</th>
</tr>
<tr class="gt_col_headings">
<th id="reported" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="reported-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="paid-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported-book">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid">47,739,475</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid-book">47,739,475</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported-book">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid">51,204,536</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid-book">51,204,536</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported">54,892,767</td>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported-book">54,892,767</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid">54,860,424</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid-book">54,860,424</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported">56,468,461</td>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported-book">56,468,461</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid">56,493,084</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid-book">56,493,084</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported">58,944,268</td>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported-book">58,944,268</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid">58,963,359</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid-book">58,963,359</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported">58,198,563</td>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported-book">58,198,563</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid">58,167,880</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid-book">58,167,880</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported">58,287,120</td>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported-book">58,287,120</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid">58,345,519</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid-book">58,345,519</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported">59,682,517</td>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported-book">59,682,517</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid">59,963,673</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid-book">59,963,673</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported">60,651,886</td>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported-book">60,651,886</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid">61,223,522</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid-book">61,223,522</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported">63,118,803</td>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported-book">63,118,803</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid">65,079,626</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid-book">65,079,626</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">all</th>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported">569,172,456</td>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported-book">569,172,456</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid">572,041,099</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid-book">572,041,099</td>
</tr>
</tbody>
</table>


Each ultimate now equals sheet 3. On sheet 4, IBNR is ultimate less reported claims and total unpaid is ultimate less paid claims. prospicio's [reserve](../reference/reserving.MackFit.md#prospicio.reserving.MackFit.reserve) is ultimate less the latest value of the fitted column: IBNR on the reported triangle, total unpaid on the paid one:


``` python
def unpaid(ultimate, tri=us):
    reported = sum(tri.latest_diagonal()[0][tri.columns.index("reported")])
    paid = sum(tri.latest_diagonal()[0][tri.columns.index("paid")])
    return sum(ultimate) - reported, sum(ultimate) - paid


items = []
for name, fit, book in [("reported", dev_r, (25690869, 71122088)), ("paid", dev_p, (28559512, 73990731))]:
    ibnr, total = unpaid(fit.ultimate)
    items += [(f"{name}: IBNR", ibnr, book[0], 0), (f"{name}: total unpaid", total, book[1], 0)]
items.append(("paid: reserve", dev_p.total_reserve, 73990731, 0))
vs_book(items, "U.S. Industry Auto: unpaid claims, development technique", "Thousands of dollars")
```


<style>
#zhbsxfkniw table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#zhbsxfkniw thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#zhbsxfkniw p { margin: 0; padding: 0; }
 #zhbsxfkniw .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #zhbsxfkniw .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #zhbsxfkniw .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #zhbsxfkniw .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #zhbsxfkniw .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zhbsxfkniw .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zhbsxfkniw .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zhbsxfkniw .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #zhbsxfkniw .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #zhbsxfkniw .gt_column_spanner_outer:first-child { padding-left: 0; }
 #zhbsxfkniw .gt_column_spanner_outer:last-child { padding-right: 0; }
 #zhbsxfkniw .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #zhbsxfkniw .gt_spanner_row { border-bottom-style: hidden; }
 #zhbsxfkniw .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #zhbsxfkniw .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #zhbsxfkniw .gt_from_md> :first-child { margin-top: 0; }
 #zhbsxfkniw .gt_from_md> :last-child { margin-bottom: 0; }
 #zhbsxfkniw .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #zhbsxfkniw .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #zhbsxfkniw .gt_indent_1 { text-indent: 5px; }
 #zhbsxfkniw .gt_indent_2 { text-indent: calc(5px * 2); }
 #zhbsxfkniw .gt_indent_3 { text-indent: calc(5px * 3); }
 #zhbsxfkniw .gt_indent_4 { text-indent: calc(5px * 4); }
 #zhbsxfkniw .gt_indent_5 { text-indent: calc(5px * 5); }
 #zhbsxfkniw .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #zhbsxfkniw .gt_row_group_first td { border-top-width: 2px; }
 #zhbsxfkniw .gt_row_group_first th { border-top-width: 2px; }
 #zhbsxfkniw .gt_striped { color: #333333; background-color: #F4F4F4; }
 #zhbsxfkniw .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zhbsxfkniw .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zhbsxfkniw .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #zhbsxfkniw .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zhbsxfkniw .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zhbsxfkniw .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #zhbsxfkniw .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #zhbsxfkniw .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zhbsxfkniw .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zhbsxfkniw .gt_left { text-align: left; }
 #zhbsxfkniw .gt_center { text-align: center; }
 #zhbsxfkniw .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #zhbsxfkniw .gt_font_normal { font-weight: normal; }
 #zhbsxfkniw .gt_font_bold { font-weight: bold; }
 #zhbsxfkniw .gt_font_italic { font-style: italic; }
 #zhbsxfkniw .gt_super { font-size: 65%; }
 #zhbsxfkniw .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zhbsxfkniw .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #zhbsxfkniw .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zhbsxfkniw .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zhbsxfkniw .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #zhbsxfkniw .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: unpaid claims, development technique</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">reported: IBNR</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">25,690,869</td>
<td class="gt_row gt_right" headers="stub-1 book">25,690,869</td>
<td class="gt_row gt_right" headers="stub-1 difference">0</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">reported: total unpaid</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">71,122,088</td>
<td class="gt_row gt_right" headers="stub-2 book">71,122,088</td>
<td class="gt_row gt_right" headers="stub-2 difference">0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">paid: IBNR</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">28,559,512</td>
<td class="gt_row gt_right" headers="stub-3 book">28,559,512</td>
<td class="gt_row gt_right" headers="stub-3 difference">0</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">paid: total unpaid</th>
<td class="gt_row gt_right" headers="stub-4 prospicio">73,990,731</td>
<td class="gt_row gt_right" headers="stub-4 book">73,990,731</td>
<td class="gt_row gt_right" headers="stub-4 difference">0</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">paid: reserve</th>
<td class="gt_row gt_right" headers="stub-5 prospicio">73,990,731</td>
<td class="gt_row gt_right" headers="stub-5 book">73,990,731</td>
<td class="gt_row gt_right" headers="stub-5 difference">0</td>
</tr>
</tbody>
</table>


## The tail factor

Friedland's paid tail of 1.002 is a judgment: it sets the paid development after 120 months equal to the claims still open in the reported pattern (at 1.000). A fitted exponential curve gives a factor near hers:


``` python
curve = ChainLadder(tail=TailCurve()).fit(us, "paid")
print(f"fitted tail {curve.tail:.4f}, book's selection 1.002")
```


    fitted tail 1.0011, book's selection 1.002


The early factors pull a curve fitted to all ages. Use it as a second opinion beside a benchmark, as the book does, not as the answer.


## XYZ Insurer: unstable factors and a pattern below 1

For XYZ, Friedland selects the volume-weighted average of the latest 2 years at every age, with no reported tail and a paid tail of 1.010. `n_periods=2` gives her selected factors (chapter 7, Exhibit II, sheets 1 and 2, part 4):


``` python
XYZ_LINKS = [f"{a}-{a + 12}" for a in xyz.development[:-1]]
xfactors = pd.DataFrame([[column, *ChainLadder(n_periods=2).fit(xyz, column).ldf] for column in ("reported", "paid")],
                        columns=["claims", *XYZ_LINKS])
(GT(xfactors, rowname_col="claims")
 .tab_header("XYZ Insurer: volume-weighted factors, latest 2 years", "Age-to-age factors, months")
 .fmt_number(XYZ_LINKS, decimals=3))
```


<style>
#wpfsvrriwq table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#wpfsvrriwq thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#wpfsvrriwq p { margin: 0; padding: 0; }
 #wpfsvrriwq .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #wpfsvrriwq .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #wpfsvrriwq .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #wpfsvrriwq .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #wpfsvrriwq .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #wpfsvrriwq .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #wpfsvrriwq .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #wpfsvrriwq .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #wpfsvrriwq .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #wpfsvrriwq .gt_column_spanner_outer:first-child { padding-left: 0; }
 #wpfsvrriwq .gt_column_spanner_outer:last-child { padding-right: 0; }
 #wpfsvrriwq .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #wpfsvrriwq .gt_spanner_row { border-bottom-style: hidden; }
 #wpfsvrriwq .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #wpfsvrriwq .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #wpfsvrriwq .gt_from_md> :first-child { margin-top: 0; }
 #wpfsvrriwq .gt_from_md> :last-child { margin-bottom: 0; }
 #wpfsvrriwq .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #wpfsvrriwq .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #wpfsvrriwq .gt_indent_1 { text-indent: 5px; }
 #wpfsvrriwq .gt_indent_2 { text-indent: calc(5px * 2); }
 #wpfsvrriwq .gt_indent_3 { text-indent: calc(5px * 3); }
 #wpfsvrriwq .gt_indent_4 { text-indent: calc(5px * 4); }
 #wpfsvrriwq .gt_indent_5 { text-indent: calc(5px * 5); }
 #wpfsvrriwq .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #wpfsvrriwq .gt_row_group_first td { border-top-width: 2px; }
 #wpfsvrriwq .gt_row_group_first th { border-top-width: 2px; }
 #wpfsvrriwq .gt_striped { color: #333333; background-color: #F4F4F4; }
 #wpfsvrriwq .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #wpfsvrriwq .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #wpfsvrriwq .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #wpfsvrriwq .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #wpfsvrriwq .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #wpfsvrriwq .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #wpfsvrriwq .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #wpfsvrriwq .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #wpfsvrriwq .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #wpfsvrriwq .gt_left { text-align: left; }
 #wpfsvrriwq .gt_center { text-align: center; }
 #wpfsvrriwq .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #wpfsvrriwq .gt_font_normal { font-weight: normal; }
 #wpfsvrriwq .gt_font_bold { font-weight: bold; }
 #wpfsvrriwq .gt_font_italic { font-style: italic; }
 #wpfsvrriwq .gt_super { font-size: 65%; }
 #wpfsvrriwq .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #wpfsvrriwq .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #wpfsvrriwq .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #wpfsvrriwq .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #wpfsvrriwq .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #wpfsvrriwq .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="11" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: volume-weighted factors, latest 2 years</th>
</tr>
<tr class="gt_heading">
<th colspan="11" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Age-to-age factors, months</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="12-24" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">12-24</th>
<th id="24-36" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">24-36</th>
<th id="36-48" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">36-48</th>
<th id="48-60" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">48-60</th>
<th id="60-72" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">60-72</th>
<th id="72-84" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">72-84</th>
<th id="84-96" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">84-96</th>
<th id="96-108" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">96-108</th>
<th id="108-120" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">108-120</th>
<th id="120-132" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">120-132</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">reported</th>
<td class="gt_row gt_right" headers="stub-1 12-24">1.687</td>
<td class="gt_row gt_right" headers="stub-1 24-36">1.265</td>
<td class="gt_row gt_right" headers="stub-1 36-48">1.102</td>
<td class="gt_row gt_right" headers="stub-1 48-60">1.020</td>
<td class="gt_row gt_right" headers="stub-1 60-72">1.050</td>
<td class="gt_row gt_right" headers="stub-1 72-84">1.010</td>
<td class="gt_row gt_right" headers="stub-1 84-96">1.011</td>
<td class="gt_row gt_right" headers="stub-1 96-108">1.000</td>
<td class="gt_row gt_right" headers="stub-1 108-120">0.993</td>
<td class="gt_row gt_right" headers="stub-1 120-132">0.999</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">paid</th>
<td class="gt_row gt_right" headers="stub-2 12-24">3.349</td>
<td class="gt_row gt_right" headers="stub-2 24-36">2.079</td>
<td class="gt_row gt_right" headers="stub-2 36-48">1.574</td>
<td class="gt_row gt_right" headers="stub-2 48-60">1.316</td>
<td class="gt_row gt_right" headers="stub-2 60-72">1.203</td>
<td class="gt_row gt_right" headers="stub-2 72-84">1.136</td>
<td class="gt_row gt_right" headers="stub-2 84-96">1.059</td>
<td class="gt_row gt_right" headers="stub-2 96-108">1.022</td>
<td class="gt_row gt_right" headers="stub-2 108-120">1.017</td>
<td class="gt_row gt_right" headers="stub-2 120-132">1.004</td>
</tr>
</tbody>
</table>


The book prints the same factors. Reported claims fall after 96 months because the insurer set case reserves too high and then released them, so the reported CDFs at 96 and 108 months are 0.992, below 1. A pattern with `ldf_kind="cdf"` accepts any positive CDFs, so the book's rounded CDFs go in directly:


``` python
XYZ_AGES = xyz.development
CDF_XYZ_REPORTED = [2.551, 1.512, 1.196, 1.085, 1.064, 1.013, 1.003, 0.992, 0.992, 0.999, 1.000]
CDF_XYZ_PAID = [21.999, 6.569, 3.160, 2.007, 1.525, 1.268, 1.116, 1.054, 1.031, 1.014, 1.010]
xdev_r = ChainLadder(ldf=dict(zip(XYZ_AGES, CDF_XYZ_REPORTED)), ldf_kind="cdf").fit(xyz, "reported")
xdev_p = ChainLadder(ldf=dict(zip(XYZ_AGES, CDF_XYZ_PAID)), ldf_kind="cdf").fit(xyz, "paid")

BOOK_XDEV = {  # chapter 7, Exhibit II, sheet 3, columns (7) and (8)
    "reported": [15822, 25082, 36948, 38487, 48313, 44950, 74787, 76661, 58370, 47979, 47530],
    "paid": [15980, 25164, 37922, 40600, 49592, 49858, 80537, 80333, 72108, 77941, 74995],
}
compare(XYZ_YEARS, {"reported": (xdev_r.ultimate, BOOK_XDEV["reported"], 514929),
                    "paid": (xdev_p.ultimate, BOOK_XDEV["paid"], 605030)},
        "XYZ Insurer: ultimate by accident year", "Development technique, thousands of dollars")
```


<style>
#zeejdengbo table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#zeejdengbo thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#zeejdengbo p { margin: 0; padding: 0; }
 #zeejdengbo .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #zeejdengbo .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #zeejdengbo .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #zeejdengbo .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #zeejdengbo .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zeejdengbo .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zeejdengbo .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zeejdengbo .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #zeejdengbo .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #zeejdengbo .gt_column_spanner_outer:first-child { padding-left: 0; }
 #zeejdengbo .gt_column_spanner_outer:last-child { padding-right: 0; }
 #zeejdengbo .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #zeejdengbo .gt_spanner_row { border-bottom-style: hidden; }
 #zeejdengbo .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #zeejdengbo .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #zeejdengbo .gt_from_md> :first-child { margin-top: 0; }
 #zeejdengbo .gt_from_md> :last-child { margin-bottom: 0; }
 #zeejdengbo .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #zeejdengbo .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #zeejdengbo .gt_indent_1 { text-indent: 5px; }
 #zeejdengbo .gt_indent_2 { text-indent: calc(5px * 2); }
 #zeejdengbo .gt_indent_3 { text-indent: calc(5px * 3); }
 #zeejdengbo .gt_indent_4 { text-indent: calc(5px * 4); }
 #zeejdengbo .gt_indent_5 { text-indent: calc(5px * 5); }
 #zeejdengbo .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #zeejdengbo .gt_row_group_first td { border-top-width: 2px; }
 #zeejdengbo .gt_row_group_first th { border-top-width: 2px; }
 #zeejdengbo .gt_striped { color: #333333; background-color: #F4F4F4; }
 #zeejdengbo .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zeejdengbo .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zeejdengbo .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #zeejdengbo .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zeejdengbo .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zeejdengbo .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #zeejdengbo .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #zeejdengbo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zeejdengbo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zeejdengbo .gt_left { text-align: left; }
 #zeejdengbo .gt_center { text-align: center; }
 #zeejdengbo .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #zeejdengbo .gt_font_normal { font-weight: normal; }
 #zeejdengbo .gt_font_bold { font-weight: bold; }
 #zeejdengbo .gt_font_italic { font-style: italic; }
 #zeejdengbo .gt_super { font-size: 65%; }
 #zeejdengbo .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zeejdengbo .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #zeejdengbo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zeejdengbo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zeejdengbo .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #zeejdengbo .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: ultimate by accident year</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Development technique, thousands of dollars</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="reported-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">reported</th>
<th colspan="2" id="paid-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">paid</th>
</tr>
<tr class="gt_col_headings">
<th id="reported" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="reported-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="paid-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported">15,822</td>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported-book">15,822</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid">15,980</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid-book">15,980</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported">25,082</td>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported-book">25,082</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid">25,164</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid-book">25,164</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported">36,948</td>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported-book">36,948</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid">37,922</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid-book">37,922</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported">38,488</td>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported-book">38,487</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid">40,599</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid-book">40,600</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported">48,314</td>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported-book">48,313</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid">49,592</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid-book">49,592</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported">44,950</td>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported-book">44,950</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid">49,858</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid-book">49,858</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported">74,786</td>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported-book">74,787</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid">80,537</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid-book">80,537</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported">76,661</td>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported-book">76,661</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid">80,332</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid-book">80,333</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported">58,370</td>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported-book">58,370</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid">72,108</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid-book">72,108</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported">47,979</td>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported-book">47,979</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid">77,941</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid-book">77,941</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">2008</th>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported">47,530</td>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported-book">47,530</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid">74,995</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid-book">74,995</td>
</tr>
<tr>
<th id="stub-12" class="gt_row gt_left gt_stub" scope="row">all</th>
<td class="gt_row gt_right" headers="stub-12 reported-2 reported">514,929</td>
<td class="gt_row gt_right" headers="stub-12 reported-2 reported-book">514,929</td>
<td class="gt_row gt_right" headers="stub-12 paid-2 paid">605,028</td>
<td class="gt_row gt_right" headers="stub-12 paid-2 paid-book">605,030</td>
</tr>
</tbody>
</table>


The reported total equals the book's. The paid total is 2 less, and some single years differ by 1 either way (reported 2001, 2002 and 2004, paid 2001 and 2005). The cause is the book's data, not the method: its spreadsheet holds claims with decimals and prints whole thousands. For example, 38,798 times 0.992 is 38,487.6, which rounds to 38,488, but 38,797.5 (printed as 38,798) gives the book's 38,487. Section 3 shows the same effect in a column total.

For the latest years the projections differ: faster settlement raises the paid factors, and stronger case reserves raise the reported ones. The book returns to this in chapter 13.


# 3. The expected claims technique (chapter 8)

The ultimate is an expected claim ratio times earned premium; the claims to date are ignored. For U.S. Industry Auto, Friedland selects 75% for 1998 to 2002 and 65% for 2003 to 2007 (chapter 8, Exhibit II, sheet 1). A ratio that changes by year is [apriori](../reference/reserving.Benktander.md#prospicio.reserving.Benktander.apriori) as a dict keyed by year; the premium stays in the exposure column (see section 4 of [`reserving-methods.md`](reserving-methods.md)):


``` python
US_RATIO = [0.75] * 5 + [0.65] * 5
us = triangle(US_YEARS, {"reported": US_REPORTED, "paid": US_PAID}, {"premium": US_PREMIUM})
US_APRIORI = dict(zip(US_YEARS, US_RATIO))
ec = ExpectedLoss(apriori=US_APRIORI).fit(us, "reported", "premium")
ibnr, total = unpaid(ec.ultimate)
vs_book([("expected claims", sum(ec.ultimate), 569281839, 0), ("IBNR", ibnr, 25800252, 0),
         ("total unpaid", total, 71231471, 0), ("IBNR 2000", ec.reserve[2], -3156946, 0)],
        "U.S. Industry Auto: expected claims technique", "Thousands of dollars")
```


<style>
#pdobgukzok table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#pdobgukzok thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#pdobgukzok p { margin: 0; padding: 0; }
 #pdobgukzok .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #pdobgukzok .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #pdobgukzok .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #pdobgukzok .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #pdobgukzok .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #pdobgukzok .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pdobgukzok .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #pdobgukzok .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #pdobgukzok .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #pdobgukzok .gt_column_spanner_outer:first-child { padding-left: 0; }
 #pdobgukzok .gt_column_spanner_outer:last-child { padding-right: 0; }
 #pdobgukzok .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #pdobgukzok .gt_spanner_row { border-bottom-style: hidden; }
 #pdobgukzok .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #pdobgukzok .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #pdobgukzok .gt_from_md> :first-child { margin-top: 0; }
 #pdobgukzok .gt_from_md> :last-child { margin-bottom: 0; }
 #pdobgukzok .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #pdobgukzok .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #pdobgukzok .gt_indent_1 { text-indent: 5px; }
 #pdobgukzok .gt_indent_2 { text-indent: calc(5px * 2); }
 #pdobgukzok .gt_indent_3 { text-indent: calc(5px * 3); }
 #pdobgukzok .gt_indent_4 { text-indent: calc(5px * 4); }
 #pdobgukzok .gt_indent_5 { text-indent: calc(5px * 5); }
 #pdobgukzok .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #pdobgukzok .gt_row_group_first td { border-top-width: 2px; }
 #pdobgukzok .gt_row_group_first th { border-top-width: 2px; }
 #pdobgukzok .gt_striped { color: #333333; background-color: #F4F4F4; }
 #pdobgukzok .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pdobgukzok .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #pdobgukzok .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #pdobgukzok .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pdobgukzok .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #pdobgukzok .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #pdobgukzok .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #pdobgukzok .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pdobgukzok .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #pdobgukzok .gt_left { text-align: left; }
 #pdobgukzok .gt_center { text-align: center; }
 #pdobgukzok .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #pdobgukzok .gt_font_normal { font-weight: normal; }
 #pdobgukzok .gt_font_bold { font-weight: bold; }
 #pdobgukzok .gt_font_italic { font-style: italic; }
 #pdobgukzok .gt_super { font-size: 65%; }
 #pdobgukzok .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pdobgukzok .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #pdobgukzok .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pdobgukzok .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #pdobgukzok .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #pdobgukzok .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: expected claims technique</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">expected claims</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">569,281,839</td>
<td class="gt_row gt_right" headers="stub-1 book">569,281,839</td>
<td class="gt_row gt_right" headers="stub-1 difference">0</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">IBNR</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">25,800,252</td>
<td class="gt_row gt_right" headers="stub-2 book">25,800,252</td>
<td class="gt_row gt_right" headers="stub-2 difference">0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">total unpaid</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">71,231,471</td>
<td class="gt_row gt_right" headers="stub-3 book">71,231,471</td>
<td class="gt_row gt_right" headers="stub-3 difference">0</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">IBNR 2000</th>
<td class="gt_row gt_right" headers="stub-4 prospicio">−3,156,946</td>
<td class="gt_row gt_right" headers="stub-4 book">−3,156,946</td>
<td class="gt_row gt_right" headers="stub-4 difference">0</td>
</tr>
</tbody>
</table>


All figures equal sheet 2. IBNR is negative for 2000, where the 75% ratio is below the reported claims. The book keeps such values to show the method's weakness on mature years.

For XYZ, the ratios come from a long adjustment for trend, rate changes and tort reform (chapter 8, Exhibit III, sheet 2). This guide takes them from sheet 1, column (11):


``` python
XYZ_RATIO = [0.783] * 6 + [0.871, 0.783, 0.658, 0.638, 0.825]
xyz = triangle(XYZ_YEARS, {"reported": XYZ_REPORTED, "paid": XYZ_PAID},
               {"premium": XYZ_PREMIUM}, first_age=XYZ_FIRST_AGE)
XYZ_APRIORI = dict(zip(XYZ_YEARS, XYZ_RATIO))
xec = ExpectedLoss(apriori=XYZ_APRIORI).fit(xyz, "reported", "premium")
ibnr, total = unpaid(xec.ultimate, xyz)
vs_book([("expected claims", sum(xec.ultimate), 561516, 0), ("IBNR", ibnr, 111890, 0),
         ("total unpaid", total, 230887, 0)],
        "XYZ Insurer: expected claims technique", "Thousands of dollars")
```


<style>
#tarbnrpjto table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#tarbnrpjto thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#tarbnrpjto p { margin: 0; padding: 0; }
 #tarbnrpjto .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #tarbnrpjto .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #tarbnrpjto .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #tarbnrpjto .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #tarbnrpjto .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #tarbnrpjto .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #tarbnrpjto .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #tarbnrpjto .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #tarbnrpjto .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #tarbnrpjto .gt_column_spanner_outer:first-child { padding-left: 0; }
 #tarbnrpjto .gt_column_spanner_outer:last-child { padding-right: 0; }
 #tarbnrpjto .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #tarbnrpjto .gt_spanner_row { border-bottom-style: hidden; }
 #tarbnrpjto .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #tarbnrpjto .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #tarbnrpjto .gt_from_md> :first-child { margin-top: 0; }
 #tarbnrpjto .gt_from_md> :last-child { margin-bottom: 0; }
 #tarbnrpjto .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #tarbnrpjto .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #tarbnrpjto .gt_indent_1 { text-indent: 5px; }
 #tarbnrpjto .gt_indent_2 { text-indent: calc(5px * 2); }
 #tarbnrpjto .gt_indent_3 { text-indent: calc(5px * 3); }
 #tarbnrpjto .gt_indent_4 { text-indent: calc(5px * 4); }
 #tarbnrpjto .gt_indent_5 { text-indent: calc(5px * 5); }
 #tarbnrpjto .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #tarbnrpjto .gt_row_group_first td { border-top-width: 2px; }
 #tarbnrpjto .gt_row_group_first th { border-top-width: 2px; }
 #tarbnrpjto .gt_striped { color: #333333; background-color: #F4F4F4; }
 #tarbnrpjto .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #tarbnrpjto .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #tarbnrpjto .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #tarbnrpjto .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #tarbnrpjto .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #tarbnrpjto .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #tarbnrpjto .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #tarbnrpjto .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #tarbnrpjto .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #tarbnrpjto .gt_left { text-align: left; }
 #tarbnrpjto .gt_center { text-align: center; }
 #tarbnrpjto .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #tarbnrpjto .gt_font_normal { font-weight: normal; }
 #tarbnrpjto .gt_font_bold { font-weight: bold; }
 #tarbnrpjto .gt_font_italic { font-style: italic; }
 #tarbnrpjto .gt_super { font-size: 65%; }
 #tarbnrpjto .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #tarbnrpjto .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #tarbnrpjto .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #tarbnrpjto .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #tarbnrpjto .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #tarbnrpjto .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: expected claims technique</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">expected claims</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">561,516</td>
<td class="gt_row gt_right" headers="stub-1 book">561,516</td>
<td class="gt_row gt_right" headers="stub-1 difference">0</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">IBNR</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">111,890</td>
<td class="gt_row gt_right" headers="stub-2 book">111,890</td>
<td class="gt_row gt_right" headers="stub-2 difference">0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">total unpaid</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">230,889</td>
<td class="gt_row gt_right" headers="stub-3 book">230,887</td>
<td class="gt_row gt_right" headers="stub-3 difference">2</td>
</tr>
</tbody>
</table>


The total unpaid is 2 more than the book's. The book's paid total at December 31, 2008 is 330,629, but its eleven printed paid values add to 330,627 (the exhibits hold claims with decimals). The other rows agree.


# 4. The Bornhuetter-Ferguson technique (chapter 9)

Bornhuetter-Ferguson (BF) keeps the claims to date and adds expected claims times the unreported (or unpaid) share, `1 - 1 / CDF`. With chapter 8's expected claims and chapter 7's rounded CDFs, prospicio reproduces chapter 9, Exhibit I:


``` python
BOOK_BF_US = {  # chapter 9, Exhibit I, sheet 1, columns (11) and (12)
    "reported": [47742304, 51185767, 54889558, 56462300, 58947116,
                 58178105, 58317678, 59754938, 60778247, 62835336],
    "paid": [47746843, 51205350, 54841461, 56470405, 58972346,
             58096743, 58447423, 60151912, 61425942, 63209774],
}
bf = {
    col: BornhuetterFerguson(apriori=US_APRIORI, ldf=US_CDF[col], ldf_kind="cdf").fit(us, col, "premium")
    for col in ("reported", "paid")
}
BOOK_BF_US_TOTAL = {"reported": 569091348, "paid": 570568198}
compare(US_YEARS, {col: (bf[col].ultimate, BOOK_BF_US[col], BOOK_BF_US_TOTAL[col]) for col in bf},
        "U.S. Industry Auto: Bornhuetter-Ferguson ultimate by accident year", "Thousands of dollars")
```


<style>
#uwfpytaedo table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#uwfpytaedo thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#uwfpytaedo p { margin: 0; padding: 0; }
 #uwfpytaedo .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #uwfpytaedo .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #uwfpytaedo .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #uwfpytaedo .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #uwfpytaedo .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #uwfpytaedo .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #uwfpytaedo .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #uwfpytaedo .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #uwfpytaedo .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #uwfpytaedo .gt_column_spanner_outer:first-child { padding-left: 0; }
 #uwfpytaedo .gt_column_spanner_outer:last-child { padding-right: 0; }
 #uwfpytaedo .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #uwfpytaedo .gt_spanner_row { border-bottom-style: hidden; }
 #uwfpytaedo .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #uwfpytaedo .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #uwfpytaedo .gt_from_md> :first-child { margin-top: 0; }
 #uwfpytaedo .gt_from_md> :last-child { margin-bottom: 0; }
 #uwfpytaedo .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #uwfpytaedo .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #uwfpytaedo .gt_indent_1 { text-indent: 5px; }
 #uwfpytaedo .gt_indent_2 { text-indent: calc(5px * 2); }
 #uwfpytaedo .gt_indent_3 { text-indent: calc(5px * 3); }
 #uwfpytaedo .gt_indent_4 { text-indent: calc(5px * 4); }
 #uwfpytaedo .gt_indent_5 { text-indent: calc(5px * 5); }
 #uwfpytaedo .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #uwfpytaedo .gt_row_group_first td { border-top-width: 2px; }
 #uwfpytaedo .gt_row_group_first th { border-top-width: 2px; }
 #uwfpytaedo .gt_striped { color: #333333; background-color: #F4F4F4; }
 #uwfpytaedo .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #uwfpytaedo .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #uwfpytaedo .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #uwfpytaedo .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #uwfpytaedo .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #uwfpytaedo .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #uwfpytaedo .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #uwfpytaedo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #uwfpytaedo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #uwfpytaedo .gt_left { text-align: left; }
 #uwfpytaedo .gt_center { text-align: center; }
 #uwfpytaedo .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #uwfpytaedo .gt_font_normal { font-weight: normal; }
 #uwfpytaedo .gt_font_bold { font-weight: bold; }
 #uwfpytaedo .gt_font_italic { font-style: italic; }
 #uwfpytaedo .gt_super { font-size: 65%; }
 #uwfpytaedo .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #uwfpytaedo .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #uwfpytaedo .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #uwfpytaedo .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #uwfpytaedo .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #uwfpytaedo .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: Bornhuetter-Ferguson ultimate by accident year</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="reported-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">reported</th>
<th colspan="2" id="paid-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">paid</th>
</tr>
<tr class="gt_col_headings">
<th id="reported" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="reported-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="paid-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported-book">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid">47,746,843</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid-book">47,746,843</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported-book">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid">51,205,350</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid-book">51,205,350</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported">54,889,558</td>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported-book">54,889,558</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid">54,841,461</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid-book">54,841,461</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported">56,462,300</td>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported-book">56,462,300</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid">56,470,405</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid-book">56,470,405</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported">58,947,116</td>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported-book">58,947,116</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid">58,972,346</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid-book">58,972,346</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported">58,178,105</td>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported-book">58,178,105</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid">58,096,743</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid-book">58,096,743</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported">58,317,678</td>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported-book">58,317,678</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid">58,447,423</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid-book">58,447,423</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported">59,754,938</td>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported-book">59,754,938</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid">60,151,912</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid-book">60,151,912</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported">60,778,247</td>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported-book">60,778,247</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid">61,425,942</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid-book">61,425,942</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported">62,835,336</td>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported-book">62,835,336</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid">63,209,774</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid-book">63,209,774</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">all</th>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported">569,091,348</td>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported-book">569,091,348</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid">570,568,198</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid-book">570,568,198</td>
</tr>
</tbody>
</table>


``` python
items = []
for col, book in [("reported", (25609761, 71040980)), ("paid", (27086611, 72517830))]:
    ibnr, total = unpaid(bf[col].ultimate)
    items += [(f"{col}: IBNR", ibnr, book[0], 0), (f"{col}: total unpaid", total, book[1], 0)]
vs_book(items, "U.S. Industry Auto: unpaid claims, Bornhuetter-Ferguson", "Thousands of dollars")
```


<style>
#cimonjdsjk table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#cimonjdsjk thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#cimonjdsjk p { margin: 0; padding: 0; }
 #cimonjdsjk .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #cimonjdsjk .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #cimonjdsjk .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #cimonjdsjk .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #cimonjdsjk .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cimonjdsjk .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cimonjdsjk .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #cimonjdsjk .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #cimonjdsjk .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #cimonjdsjk .gt_column_spanner_outer:first-child { padding-left: 0; }
 #cimonjdsjk .gt_column_spanner_outer:last-child { padding-right: 0; }
 #cimonjdsjk .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #cimonjdsjk .gt_spanner_row { border-bottom-style: hidden; }
 #cimonjdsjk .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #cimonjdsjk .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #cimonjdsjk .gt_from_md> :first-child { margin-top: 0; }
 #cimonjdsjk .gt_from_md> :last-child { margin-bottom: 0; }
 #cimonjdsjk .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #cimonjdsjk .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #cimonjdsjk .gt_indent_1 { text-indent: 5px; }
 #cimonjdsjk .gt_indent_2 { text-indent: calc(5px * 2); }
 #cimonjdsjk .gt_indent_3 { text-indent: calc(5px * 3); }
 #cimonjdsjk .gt_indent_4 { text-indent: calc(5px * 4); }
 #cimonjdsjk .gt_indent_5 { text-indent: calc(5px * 5); }
 #cimonjdsjk .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #cimonjdsjk .gt_row_group_first td { border-top-width: 2px; }
 #cimonjdsjk .gt_row_group_first th { border-top-width: 2px; }
 #cimonjdsjk .gt_striped { color: #333333; background-color: #F4F4F4; }
 #cimonjdsjk .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cimonjdsjk .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cimonjdsjk .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #cimonjdsjk .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #cimonjdsjk .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #cimonjdsjk .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #cimonjdsjk .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #cimonjdsjk .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cimonjdsjk .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cimonjdsjk .gt_left { text-align: left; }
 #cimonjdsjk .gt_center { text-align: center; }
 #cimonjdsjk .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #cimonjdsjk .gt_font_normal { font-weight: normal; }
 #cimonjdsjk .gt_font_bold { font-weight: bold; }
 #cimonjdsjk .gt_font_italic { font-style: italic; }
 #cimonjdsjk .gt_super { font-size: 65%; }
 #cimonjdsjk .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cimonjdsjk .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #cimonjdsjk .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #cimonjdsjk .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #cimonjdsjk .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #cimonjdsjk .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: unpaid claims, Bornhuetter-Ferguson</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">reported: IBNR</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">25,609,761</td>
<td class="gt_row gt_right" headers="stub-1 book">25,609,761</td>
<td class="gt_row gt_right" headers="stub-1 difference">0</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">reported: total unpaid</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">71,040,980</td>
<td class="gt_row gt_right" headers="stub-2 book">71,040,980</td>
<td class="gt_row gt_right" headers="stub-2 difference">0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">paid: IBNR</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">27,086,611</td>
<td class="gt_row gt_right" headers="stub-3 book">27,086,611</td>
<td class="gt_row gt_right" headers="stub-3 difference">0</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">paid: total unpaid</th>
<td class="gt_row gt_right" headers="stub-4 prospicio">72,517,830</td>
<td class="gt_row gt_right" headers="stub-4 book">72,517,830</td>
<td class="gt_row gt_right" headers="stub-4 difference">0</td>
</tr>
</tbody>
</table>


All figures agree. For XYZ, the book adds one convention: chapter 9, Exhibit II **caps the CDFs at a minimum of 1.00**, so a year with a CDF below 1 gets no negative unreported claims:


``` python
capped = [max(c, 1.0) for c in CDF_XYZ_REPORTED]
XYZ_CDF = {"reported": dict(zip(XYZ_AGES, capped)), "paid": dict(zip(XYZ_AGES, CDF_XYZ_PAID))}
BOOK_BF_XYZ = {  # chapter 9, Exhibit II, sheet 1, columns (11) and (12)
    "reported": [15822, 25107, 37246, 38798, 48312, 45068, 75492, 79129, 60404, 45221, 42607],
    "paid": [15977, 25158, 37841, 40525, 49417, 50768, 82593, 94301, 71205, 45636, 41049],
}
xbf = {
    col: BornhuetterFerguson(apriori=XYZ_APRIORI, ldf=XYZ_CDF[col], ldf_kind="cdf").fit(xyz, col, "premium")
    for col in ("reported", "paid")
}
BOOK_BF_XYZ_TOTAL = {"reported": 513207, "paid": 554471}
compare(XYZ_YEARS, {col: (xbf[col].ultimate, BOOK_BF_XYZ[col], BOOK_BF_XYZ_TOTAL[col]) for col in xbf},
        "XYZ Insurer: Bornhuetter-Ferguson ultimate by accident year", "Thousands of dollars")
```


<style>
#lrtxgmqwpi table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#lrtxgmqwpi thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#lrtxgmqwpi p { margin: 0; padding: 0; }
 #lrtxgmqwpi .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #lrtxgmqwpi .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #lrtxgmqwpi .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #lrtxgmqwpi .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #lrtxgmqwpi .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #lrtxgmqwpi .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #lrtxgmqwpi .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #lrtxgmqwpi .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #lrtxgmqwpi .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #lrtxgmqwpi .gt_column_spanner_outer:first-child { padding-left: 0; }
 #lrtxgmqwpi .gt_column_spanner_outer:last-child { padding-right: 0; }
 #lrtxgmqwpi .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #lrtxgmqwpi .gt_spanner_row { border-bottom-style: hidden; }
 #lrtxgmqwpi .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #lrtxgmqwpi .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #lrtxgmqwpi .gt_from_md> :first-child { margin-top: 0; }
 #lrtxgmqwpi .gt_from_md> :last-child { margin-bottom: 0; }
 #lrtxgmqwpi .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #lrtxgmqwpi .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #lrtxgmqwpi .gt_indent_1 { text-indent: 5px; }
 #lrtxgmqwpi .gt_indent_2 { text-indent: calc(5px * 2); }
 #lrtxgmqwpi .gt_indent_3 { text-indent: calc(5px * 3); }
 #lrtxgmqwpi .gt_indent_4 { text-indent: calc(5px * 4); }
 #lrtxgmqwpi .gt_indent_5 { text-indent: calc(5px * 5); }
 #lrtxgmqwpi .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #lrtxgmqwpi .gt_row_group_first td { border-top-width: 2px; }
 #lrtxgmqwpi .gt_row_group_first th { border-top-width: 2px; }
 #lrtxgmqwpi .gt_striped { color: #333333; background-color: #F4F4F4; }
 #lrtxgmqwpi .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #lrtxgmqwpi .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #lrtxgmqwpi .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #lrtxgmqwpi .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #lrtxgmqwpi .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #lrtxgmqwpi .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #lrtxgmqwpi .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #lrtxgmqwpi .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #lrtxgmqwpi .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #lrtxgmqwpi .gt_left { text-align: left; }
 #lrtxgmqwpi .gt_center { text-align: center; }
 #lrtxgmqwpi .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #lrtxgmqwpi .gt_font_normal { font-weight: normal; }
 #lrtxgmqwpi .gt_font_bold { font-weight: bold; }
 #lrtxgmqwpi .gt_font_italic { font-style: italic; }
 #lrtxgmqwpi .gt_super { font-size: 65%; }
 #lrtxgmqwpi .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #lrtxgmqwpi .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #lrtxgmqwpi .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #lrtxgmqwpi .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #lrtxgmqwpi .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #lrtxgmqwpi .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: Bornhuetter-Ferguson ultimate by accident year</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="reported-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">reported</th>
<th colspan="2" id="paid-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">paid</th>
</tr>
<tr class="gt_col_headings">
<th id="reported" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="reported-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="paid-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported">15,822</td>
<td class="gt_row gt_right" headers="stub-1 reported-2 reported-book">15,822</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid">15,977</td>
<td class="gt_row gt_right" headers="stub-1 paid-2 paid-book">15,977</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported">25,107</td>
<td class="gt_row gt_right" headers="stub-2 reported-2 reported-book">25,107</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid">25,158</td>
<td class="gt_row gt_right" headers="stub-2 paid-2 paid-book">25,158</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported">37,246</td>
<td class="gt_row gt_right" headers="stub-3 reported-2 reported-book">37,246</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid">37,841</td>
<td class="gt_row gt_right" headers="stub-3 paid-2 paid-book">37,841</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported">38,798</td>
<td class="gt_row gt_right" headers="stub-4 reported-2 reported-book">38,798</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid">40,525</td>
<td class="gt_row gt_right" headers="stub-4 paid-2 paid-book">40,525</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported">48,312</td>
<td class="gt_row gt_right" headers="stub-5 reported-2 reported-book">48,312</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid">49,417</td>
<td class="gt_row gt_right" headers="stub-5 paid-2 paid-book">49,417</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported">45,068</td>
<td class="gt_row gt_right" headers="stub-6 reported-2 reported-book">45,068</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid">50,768</td>
<td class="gt_row gt_right" headers="stub-6 paid-2 paid-book">50,768</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported">75,492</td>
<td class="gt_row gt_right" headers="stub-7 reported-2 reported-book">75,492</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid">82,593</td>
<td class="gt_row gt_right" headers="stub-7 paid-2 paid-book">82,593</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported">79,129</td>
<td class="gt_row gt_right" headers="stub-8 reported-2 reported-book">79,129</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid">94,301</td>
<td class="gt_row gt_right" headers="stub-8 paid-2 paid-book">94,301</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported">60,404</td>
<td class="gt_row gt_right" headers="stub-9 reported-2 reported-book">60,404</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid">71,205</td>
<td class="gt_row gt_right" headers="stub-9 paid-2 paid-book">71,205</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported">45,221</td>
<td class="gt_row gt_right" headers="stub-10 reported-2 reported-book">45,221</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid">45,636</td>
<td class="gt_row gt_right" headers="stub-10 paid-2 paid-book">45,636</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">2008</th>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported">42,607</td>
<td class="gt_row gt_right" headers="stub-11 reported-2 reported-book">42,607</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid">41,049</td>
<td class="gt_row gt_right" headers="stub-11 paid-2 paid-book">41,049</td>
</tr>
<tr>
<th id="stub-12" class="gt_row gt_left gt_stub" scope="row">all</th>
<td class="gt_row gt_right" headers="stub-12 reported-2 reported">513,207</td>
<td class="gt_row gt_right" headers="stub-12 reported-2 reported-book">513,207</td>
<td class="gt_row gt_right" headers="stub-12 paid-2 paid">554,469</td>
<td class="gt_row gt_right" headers="stub-12 paid-2 paid-book">554,471</td>
</tr>
</tbody>
</table>


Every year agrees. The paid total is 2 less than the book's 554,471, which is itself 2 more than the sum of the book's eleven paid rows (unrounded values, as in section 2).


# 5. The Benktander technique (chapter 9)

Benktander's method applies BF twice: the first BF ultimate becomes the expected claims of the second. The book shows it only on synthetic "changing conditions" scenarios (chapter 9, Exhibits V and VI), so this guide checks the formula of Exhibit V, column (11), reported claims plus the BF ultimate times the percentage unreported, on the book's U.S. Industry BF ultimates. `Benktander(n_iters=2)` matches it:


``` python
gb = Benktander(apriori=US_APRIORI, n_iters=2, ldf=US_CDF["reported"], ldf_kind="cdf").fit(us, "reported", "premium")
latest = us.latest_diagonal()[0][us.columns.index("reported")]
cdf_by_year = CDF_REPORTED[::-1]  # the oldest year has the oldest age
by_hand = [r + (1 - 1 / c) * u for r, c, u in zip(latest, cdf_by_year, BOOK_BF_US["reported"])]
print("largest difference under 0.5:", max(abs(a - b) for a, b in zip(gb.ultimate, by_hand)) < 0.5)
```


    largest difference under 0.5: True


``` python
benktander = pd.DataFrame({
    "year": [str(y) for y in US_YEARS], "prospicio": gb.ultimate, "formula": by_hand,
    "dev": BOOK_DEV["reported"], "BF": BOOK_BF_US["reported"],
})
(GT(benktander, rowname_col="year")
 .tab_header("U.S. Industry Auto: Benktander ultimate, reported", "Thousands of dollars; dev and BF are the book's ultimates")
 .fmt_integer(["prospicio", "formula", "dev", "BF"]))
```


<style>
#zzcctxpglz table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#zzcctxpglz thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#zzcctxpglz p { margin: 0; padding: 0; }
 #zzcctxpglz .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #zzcctxpglz .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #zzcctxpglz .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #zzcctxpglz .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #zzcctxpglz .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zzcctxpglz .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zzcctxpglz .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #zzcctxpglz .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #zzcctxpglz .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #zzcctxpglz .gt_column_spanner_outer:first-child { padding-left: 0; }
 #zzcctxpglz .gt_column_spanner_outer:last-child { padding-right: 0; }
 #zzcctxpglz .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #zzcctxpglz .gt_spanner_row { border-bottom-style: hidden; }
 #zzcctxpglz .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #zzcctxpglz .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #zzcctxpglz .gt_from_md> :first-child { margin-top: 0; }
 #zzcctxpglz .gt_from_md> :last-child { margin-bottom: 0; }
 #zzcctxpglz .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #zzcctxpglz .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #zzcctxpglz .gt_indent_1 { text-indent: 5px; }
 #zzcctxpglz .gt_indent_2 { text-indent: calc(5px * 2); }
 #zzcctxpglz .gt_indent_3 { text-indent: calc(5px * 3); }
 #zzcctxpglz .gt_indent_4 { text-indent: calc(5px * 4); }
 #zzcctxpglz .gt_indent_5 { text-indent: calc(5px * 5); }
 #zzcctxpglz .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #zzcctxpglz .gt_row_group_first td { border-top-width: 2px; }
 #zzcctxpglz .gt_row_group_first th { border-top-width: 2px; }
 #zzcctxpglz .gt_striped { color: #333333; background-color: #F4F4F4; }
 #zzcctxpglz .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zzcctxpglz .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zzcctxpglz .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #zzcctxpglz .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #zzcctxpglz .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #zzcctxpglz .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #zzcctxpglz .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #zzcctxpglz .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zzcctxpglz .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zzcctxpglz .gt_left { text-align: left; }
 #zzcctxpglz .gt_center { text-align: center; }
 #zzcctxpglz .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #zzcctxpglz .gt_font_normal { font-weight: normal; }
 #zzcctxpglz .gt_font_bold { font-weight: bold; }
 #zzcctxpglz .gt_font_italic { font-style: italic; }
 #zzcctxpglz .gt_super { font-size: 65%; }
 #zzcctxpglz .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zzcctxpglz .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #zzcctxpglz .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #zzcctxpglz .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #zzcctxpglz .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #zzcctxpglz .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: Benktander ultimate, reported</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars; dev and BF are the book's ultimates</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="formula" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">formula</th>
<th id="dev" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">dev</th>
<th id="BF" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">BF</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 formula">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 dev">47,742,304</td>
<td class="gt_row gt_right" headers="stub-1 BF">47,742,304</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 formula">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 dev">51,185,767</td>
<td class="gt_row gt_right" headers="stub-2 BF">51,185,767</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">54,892,764</td>
<td class="gt_row gt_right" headers="stub-3 formula">54,892,764</td>
<td class="gt_row gt_right" headers="stub-3 dev">54,892,767</td>
<td class="gt_row gt_right" headers="stub-3 BF">54,889,558</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 prospicio">56,468,442</td>
<td class="gt_row gt_right" headers="stub-4 formula">56,468,442</td>
<td class="gt_row gt_right" headers="stub-4 dev">56,468,461</td>
<td class="gt_row gt_right" headers="stub-4 BF">56,462,300</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 prospicio">58,944,285</td>
<td class="gt_row gt_right" headers="stub-5 formula">58,944,285</td>
<td class="gt_row gt_right" headers="stub-5 dev">58,944,268</td>
<td class="gt_row gt_right" headers="stub-5 BF">58,947,116</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 prospicio">58,198,340</td>
<td class="gt_row gt_right" headers="stub-6 formula">58,198,340</td>
<td class="gt_row gt_right" headers="stub-6 dev">58,198,563</td>
<td class="gt_row gt_right" headers="stub-6 BF">58,178,105</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 prospicio">58,287,807</td>
<td class="gt_row gt_right" headers="stub-7 formula">58,287,807</td>
<td class="gt_row gt_right" headers="stub-7 dev">58,287,120</td>
<td class="gt_row gt_right" headers="stub-7 BF">58,317,678</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 prospicio">59,686,031</td>
<td class="gt_row gt_right" headers="stub-8 formula">59,686,031</td>
<td class="gt_row gt_right" headers="stub-8 dev">59,682,517</td>
<td class="gt_row gt_right" headers="stub-8 BF">59,754,938</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 prospicio">60,664,409</td>
<td class="gt_row gt_right" headers="stub-9 formula">60,664,409</td>
<td class="gt_row gt_right" headers="stub-9 dev">60,651,886</td>
<td class="gt_row gt_right" headers="stub-9 BF">60,778,247</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 prospicio">63,054,738</td>
<td class="gt_row gt_right" headers="stub-10 formula">63,054,738</td>
<td class="gt_row gt_right" headers="stub-10 dev">63,118,803</td>
<td class="gt_row gt_right" headers="stub-10 BF">62,835,336</td>
</tr>
</tbody>
</table>


The columns agree in every year, within the rounding of the printed BF ultimates. Each Benktander ultimate lies between the BF and the development ultimate, nearer development for mature years: the book calls the method a credibility weighting that always weights development more than BF does.


# 6. The Cape Cod technique (chapter 10)

Cape Cod is BF with an expected claim ratio from the data: reported claims divided by "used-up" premium (premium times the percentage reported). For U.S. Industry Auto (chapter 10, Exhibit I):


``` python
cc = CapeCod(ldf=US_CDF["reported"], ldf_kind="cdf").fit(us, "reported", "premium")
ibnr, total = unpaid(cc.ultimate)
flat = BornhuetterFerguson(apriori=0.695, ldf=US_CDF["reported"], ldf_kind="cdf").fit(us, "reported", "premium")
vs_book([("expected claim ratio", cc.apriori[0], 0.695, 5), ("ultimate", sum(cc.ultimate), 570800677, 0),
         ("IBNR", ibnr, 27319090, 0), ("total unpaid", total, 72750309, 0),
         ("ultimate, BF at exactly 69.5%", sum(flat.ultimate), None, 0)],
        "U.S. Industry Auto: Cape Cod", "Thousands of dollars; the book prints the ratio as 69.5%")
```


<style>
#iuaeyahyzu table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#iuaeyahyzu thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#iuaeyahyzu p { margin: 0; padding: 0; }
 #iuaeyahyzu .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #iuaeyahyzu .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #iuaeyahyzu .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #iuaeyahyzu .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #iuaeyahyzu .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #iuaeyahyzu .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iuaeyahyzu .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #iuaeyahyzu .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #iuaeyahyzu .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #iuaeyahyzu .gt_column_spanner_outer:first-child { padding-left: 0; }
 #iuaeyahyzu .gt_column_spanner_outer:last-child { padding-right: 0; }
 #iuaeyahyzu .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #iuaeyahyzu .gt_spanner_row { border-bottom-style: hidden; }
 #iuaeyahyzu .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #iuaeyahyzu .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #iuaeyahyzu .gt_from_md> :first-child { margin-top: 0; }
 #iuaeyahyzu .gt_from_md> :last-child { margin-bottom: 0; }
 #iuaeyahyzu .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #iuaeyahyzu .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #iuaeyahyzu .gt_indent_1 { text-indent: 5px; }
 #iuaeyahyzu .gt_indent_2 { text-indent: calc(5px * 2); }
 #iuaeyahyzu .gt_indent_3 { text-indent: calc(5px * 3); }
 #iuaeyahyzu .gt_indent_4 { text-indent: calc(5px * 4); }
 #iuaeyahyzu .gt_indent_5 { text-indent: calc(5px * 5); }
 #iuaeyahyzu .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #iuaeyahyzu .gt_row_group_first td { border-top-width: 2px; }
 #iuaeyahyzu .gt_row_group_first th { border-top-width: 2px; }
 #iuaeyahyzu .gt_striped { color: #333333; background-color: #F4F4F4; }
 #iuaeyahyzu .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iuaeyahyzu .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #iuaeyahyzu .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #iuaeyahyzu .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iuaeyahyzu .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #iuaeyahyzu .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #iuaeyahyzu .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #iuaeyahyzu .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iuaeyahyzu .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #iuaeyahyzu .gt_left { text-align: left; }
 #iuaeyahyzu .gt_center { text-align: center; }
 #iuaeyahyzu .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #iuaeyahyzu .gt_font_normal { font-weight: normal; }
 #iuaeyahyzu .gt_font_bold { font-weight: bold; }
 #iuaeyahyzu .gt_font_italic { font-style: italic; }
 #iuaeyahyzu .gt_super { font-size: 65%; }
 #iuaeyahyzu .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iuaeyahyzu .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #iuaeyahyzu .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iuaeyahyzu .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #iuaeyahyzu .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #iuaeyahyzu .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: Cape Cod</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars; the book prints the ratio as 69.5%</th>
</tr>
<tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th id="prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="difference" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">difference</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">expected claim ratio</th>
<td class="gt_row gt_right" headers="stub-1 prospicio">0.69544</td>
<td class="gt_row gt_right" headers="stub-1 book">0.69500</td>
<td class="gt_row gt_right" headers="stub-1 difference">0.00044</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">ultimate</th>
<td class="gt_row gt_right" headers="stub-2 prospicio">570,800,677</td>
<td class="gt_row gt_right" headers="stub-2 book">570,800,677</td>
<td class="gt_row gt_right" headers="stub-2 difference">0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">IBNR</th>
<td class="gt_row gt_right" headers="stub-3 prospicio">27,319,090</td>
<td class="gt_row gt_right" headers="stub-3 book">27,319,090</td>
<td class="gt_row gt_right" headers="stub-3 difference">0</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">total unpaid</th>
<td class="gt_row gt_right" headers="stub-4 prospicio">72,750,309</td>
<td class="gt_row gt_right" headers="stub-4 book">72,750,309</td>
<td class="gt_row gt_right" headers="stub-4 difference">0</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">ultimate, BF at exactly 69.5%</th>
<td class="gt_row gt_right" headers="stub-5 prospicio">570,783,246</td>
<td class="gt_row gt_right" headers="stub-5 book"></td>
<td class="gt_row gt_right" headers="stub-5 difference"></td>
</tr>
</tbody>
</table>


The totals agree to the unit. The book's spreadsheet holds a ratio of 69.544%, not the printed 69.5%; at exactly 69.5% the ultimate is 17,431 lower.

For XYZ (chapter 10, Exhibit II), Friedland first puts every year on the 2008 basis: premium at current rate levels (column (4), typed below), and claims trended at 3.425% a year to 2008 and adjusted for the tort reform (column (8)).

The ratio of adjusted reported claims to used-up on-level premium is 70.8%. Each year's ratio is that ratio taken back to the year's cost level, tort environment and rate level. `CapeCod(trend=...)` applies such a trend, with the latest origin as reference. The code applies the tort factor and rate level by hand, estimates the ratio on the adjusted claims, then gives each year's ratio on the actual premium to a BF fit on the actual claims:


``` python
ON_LEVEL_PREMIUM = [19783, 30548, 42784, 46606, 55911, 60204, 80411, 97258, 68850, 49950, 47797]
TORT = [0.670] * 8 + [0.750, 1.000, 1.000]
adjusted = [[v * t for v in row] for row, t in zip(XYZ_REPORTED, TORT)]
xyz_cc = triangle(XYZ_YEARS, {"adjusted": adjusted, "reported": XYZ_REPORTED},
                  {"on_level": ON_LEVEL_PREMIUM}, first_age=XYZ_FIRST_AGE)
ratio = CapeCod(trend=0.03425, ldf=XYZ_CDF["reported"], ldf_kind="cdf").fit(xyz_cc, "adjusted", "on_level")
print(f"adjusted expected claim ratio {ratio.apriori[-1]:.4f} (book 70.8%)")
cc_expected = [a * p / t for a, p, t in zip(ratio.apriori, ON_LEVEL_PREMIUM, TORT)]
cc_ratio = {y: e / p for y, e, p in zip(XYZ_YEARS, cc_expected, XYZ_PREMIUM)}
xcc = BornhuetterFerguson(apriori=cc_ratio, ldf=XYZ_CDF["reported"], ldf_kind="cdf").fit(xyz, "reported", "premium")
BOOK_CC_XYZ = [15822, 25107, 37246, 38798, 48313, 45062, 74754, 77931, 58759, 43307, 39201]
compare(XYZ_YEARS, {"Cape Cod": (xcc.ultimate, BOOK_CC_XYZ, 504300)},
        "XYZ Insurer: Cape Cod ultimate by accident year",
        "Thousands of dollars; the ratio is on the actual premium", ratio=list(cc_ratio.values()))
```


    adjusted expected claim ratio 0.7078 (book 70.8%)


<style>
#kxfpjbkowa table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#kxfpjbkowa thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#kxfpjbkowa p { margin: 0; padding: 0; }
 #kxfpjbkowa .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #kxfpjbkowa .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #kxfpjbkowa .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #kxfpjbkowa .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #kxfpjbkowa .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #kxfpjbkowa .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #kxfpjbkowa .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #kxfpjbkowa .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #kxfpjbkowa .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #kxfpjbkowa .gt_column_spanner_outer:first-child { padding-left: 0; }
 #kxfpjbkowa .gt_column_spanner_outer:last-child { padding-right: 0; }
 #kxfpjbkowa .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #kxfpjbkowa .gt_spanner_row { border-bottom-style: hidden; }
 #kxfpjbkowa .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #kxfpjbkowa .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #kxfpjbkowa .gt_from_md> :first-child { margin-top: 0; }
 #kxfpjbkowa .gt_from_md> :last-child { margin-bottom: 0; }
 #kxfpjbkowa .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #kxfpjbkowa .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #kxfpjbkowa .gt_indent_1 { text-indent: 5px; }
 #kxfpjbkowa .gt_indent_2 { text-indent: calc(5px * 2); }
 #kxfpjbkowa .gt_indent_3 { text-indent: calc(5px * 3); }
 #kxfpjbkowa .gt_indent_4 { text-indent: calc(5px * 4); }
 #kxfpjbkowa .gt_indent_5 { text-indent: calc(5px * 5); }
 #kxfpjbkowa .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #kxfpjbkowa .gt_row_group_first td { border-top-width: 2px; }
 #kxfpjbkowa .gt_row_group_first th { border-top-width: 2px; }
 #kxfpjbkowa .gt_striped { color: #333333; background-color: #F4F4F4; }
 #kxfpjbkowa .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #kxfpjbkowa .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #kxfpjbkowa .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #kxfpjbkowa .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #kxfpjbkowa .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #kxfpjbkowa .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #kxfpjbkowa .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #kxfpjbkowa .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #kxfpjbkowa .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #kxfpjbkowa .gt_left { text-align: left; }
 #kxfpjbkowa .gt_center { text-align: center; }
 #kxfpjbkowa .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #kxfpjbkowa .gt_font_normal { font-weight: normal; }
 #kxfpjbkowa .gt_font_bold { font-weight: bold; }
 #kxfpjbkowa .gt_font_italic { font-style: italic; }
 #kxfpjbkowa .gt_super { font-size: 65%; }
 #kxfpjbkowa .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #kxfpjbkowa .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #kxfpjbkowa .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #kxfpjbkowa .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #kxfpjbkowa .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #kxfpjbkowa .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="4" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: Cape Cod ultimate by accident year</th>
</tr>
<tr class="gt_heading">
<th colspan="4" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Thousands of dollars; the ratio is on the actual premium</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th rowspan="2" id="ratio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">expected claim ratio</th>
<th colspan="2" id="Cape-Cod-2" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">Cape Cod</th>
</tr>
<tr class="gt_col_headings">
<th id="Cape-Cod" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="Cape-Cod-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 ratio">0.746</td>
<td class="gt_row gt_right" headers="stub-1 Cape-Cod-2 Cape-Cod">15,822</td>
<td class="gt_row gt_right" headers="stub-1 Cape-Cod-2 Cape-Cod-book">15,822</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 ratio">0.757</td>
<td class="gt_row gt_right" headers="stub-2 Cape-Cod-2 Cape-Cod">25,107</td>
<td class="gt_row gt_right" headers="stub-2 Cape-Cod-2 Cape-Cod-book">25,107</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 ratio">0.767</td>
<td class="gt_row gt_right" headers="stub-3 Cape-Cod-2 Cape-Cod">37,246</td>
<td class="gt_row gt_right" headers="stub-3 Cape-Cod-2 Cape-Cod-book">37,246</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 ratio">0.778</td>
<td class="gt_row gt_right" headers="stub-4 Cape-Cod-2 Cape-Cod">38,798</td>
<td class="gt_row gt_right" headers="stub-4 Cape-Cod-2 Cape-Cod-book">38,798</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 ratio">0.789</td>
<td class="gt_row gt_right" headers="stub-5 Cape-Cod-2 Cape-Cod">48,313</td>
<td class="gt_row gt_right" headers="stub-5 Cape-Cod-2 Cape-Cod-book">48,313</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 ratio">0.777</td>
<td class="gt_row gt_right" headers="stub-6 Cape-Cod-2 Cape-Cod">45,063</td>
<td class="gt_row gt_right" headers="stub-6 Cape-Cod-2 Cape-Cod-book">45,062</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 ratio">0.747</td>
<td class="gt_row gt_right" headers="stub-7 Cape-Cod-2 Cape-Cod">74,754</td>
<td class="gt_row gt_right" headers="stub-7 Cape-Cod-2 Cape-Cod-book">74,754</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 ratio">0.672</td>
<td class="gt_row gt_right" headers="stub-8 Cape-Cod-2 Cape-Cod">77,931</td>
<td class="gt_row gt_right" headers="stub-8 Cape-Cod-2 Cape-Cod-book">77,931</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 ratio">0.565</td>
<td class="gt_row gt_right" headers="stub-9 Cape-Cod-2 Cape-Cod">58,759</td>
<td class="gt_row gt_right" headers="stub-9 Cape-Cod-2 Cape-Cod-book">58,759</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 ratio">0.547</td>
<td class="gt_row gt_right" headers="stub-10 Cape-Cod-2 Cape-Cod">43,307</td>
<td class="gt_row gt_right" headers="stub-10 Cape-Cod-2 Cape-Cod-book">43,307</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">2008</th>
<td class="gt_row gt_right" headers="stub-11 ratio">0.708</td>
<td class="gt_row gt_right" headers="stub-11 Cape-Cod-2 Cape-Cod">39,201</td>
<td class="gt_row gt_right" headers="stub-11 Cape-Cod-2 Cape-Cod-book">39,201</td>
</tr>
<tr>
<th id="stub-12" class="gt_row gt_left gt_stub" scope="row">all</th>
<td class="gt_row gt_right" headers="stub-12 ratio"></td>
<td class="gt_row gt_right" headers="stub-12 Cape-Cod-2 Cape-Cod">504,300</td>
<td class="gt_row gt_right" headers="stub-12 Cape-Cod-2 Cape-Cod-book">504,300</td>
</tr>
</tbody>
</table>


The adjusted ratio, the ratios by year (column (15): 74.6%, 75.7%, … 70.8%) and the total of 504,300 all agree. The 2003 ultimate is 1 more than the book's, from the rounding of the printed data. The tort factor must multiply the claims, not divide the premium: the ratio is a ratio of sums, so the two differ when the factors differ by year.


# 7. Reasonableness checks (chapters 8 and 15)

The book's last step checks the results against claim ratios, severities and agreement between methods. Chapter 15 gives the unpaid claims of each method for U.S. Industry Auto in billions of dollars. The fits above reproduce them:


``` python
book_billions = {  # chapter 15, IBNR and total unpaid, $ billions
    "Development, reported": (26, 71), "Development, paid": (29, 74),
    "Expected claims": (26, 71), "B-F, reported": (26, 71),
    "B-F, paid": (27, 73), "Cape Cod": (27, 73),
}
fits = [dev_r, dev_p, ec, bf["reported"], bf["paid"], cc]
summary = pd.DataFrame({
    "method": list(book_billions),
    "IBNR, book": [b[0] for b in book_billions.values()],
    "IBNR, prospicio": [unpaid(f.ultimate)[0] / 1e6 for f in fits],
    "total, book": [b[1] for b in book_billions.values()],
    "total, prospicio": [unpaid(f.ultimate)[1] / 1e6 for f in fits],
})
(GT(summary, rowname_col="method")
 .tab_header("U.S. Industry Auto: unpaid claims by method", "$ billions")
 .tab_spanner("IBNR", ["IBNR, book", "IBNR, prospicio"])
 .tab_spanner("total unpaid", ["total, book", "total, prospicio"])
 .cols_label(**{"IBNR, book": "book", "IBNR, prospicio": "prospicio",
                "total, book": "book", "total, prospicio": "prospicio"})
 .fmt_integer(["IBNR, book", "total, book"])
 .fmt_number(["IBNR, prospicio", "total, prospicio"], decimals=1))
```


<style>
#eopyrrnbef table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#eopyrrnbef thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#eopyrrnbef p { margin: 0; padding: 0; }
 #eopyrrnbef .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #eopyrrnbef .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #eopyrrnbef .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #eopyrrnbef .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #eopyrrnbef .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #eopyrrnbef .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #eopyrrnbef .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #eopyrrnbef .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #eopyrrnbef .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #eopyrrnbef .gt_column_spanner_outer:first-child { padding-left: 0; }
 #eopyrrnbef .gt_column_spanner_outer:last-child { padding-right: 0; }
 #eopyrrnbef .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #eopyrrnbef .gt_spanner_row { border-bottom-style: hidden; }
 #eopyrrnbef .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #eopyrrnbef .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #eopyrrnbef .gt_from_md> :first-child { margin-top: 0; }
 #eopyrrnbef .gt_from_md> :last-child { margin-bottom: 0; }
 #eopyrrnbef .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #eopyrrnbef .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #eopyrrnbef .gt_indent_1 { text-indent: 5px; }
 #eopyrrnbef .gt_indent_2 { text-indent: calc(5px * 2); }
 #eopyrrnbef .gt_indent_3 { text-indent: calc(5px * 3); }
 #eopyrrnbef .gt_indent_4 { text-indent: calc(5px * 4); }
 #eopyrrnbef .gt_indent_5 { text-indent: calc(5px * 5); }
 #eopyrrnbef .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #eopyrrnbef .gt_row_group_first td { border-top-width: 2px; }
 #eopyrrnbef .gt_row_group_first th { border-top-width: 2px; }
 #eopyrrnbef .gt_striped { color: #333333; background-color: #F4F4F4; }
 #eopyrrnbef .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #eopyrrnbef .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #eopyrrnbef .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #eopyrrnbef .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #eopyrrnbef .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #eopyrrnbef .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #eopyrrnbef .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #eopyrrnbef .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #eopyrrnbef .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #eopyrrnbef .gt_left { text-align: left; }
 #eopyrrnbef .gt_center { text-align: center; }
 #eopyrrnbef .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #eopyrrnbef .gt_font_normal { font-weight: normal; }
 #eopyrrnbef .gt_font_bold { font-weight: bold; }
 #eopyrrnbef .gt_font_italic { font-style: italic; }
 #eopyrrnbef .gt_super { font-size: 65%; }
 #eopyrrnbef .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #eopyrrnbef .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #eopyrrnbef .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #eopyrrnbef .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #eopyrrnbef .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #eopyrrnbef .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="5" id="title" class="gt_heading gt_title gt_font_normal">U.S. Industry Auto: unpaid claims by method</th>
</tr>
<tr class="gt_heading">
<th colspan="5" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">$ billions</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="IBNR" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">IBNR</th>
<th colspan="2" id="total-unpaid" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">total unpaid</th>
</tr>
<tr class="gt_col_headings">
<th id="IBNR-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="IBNR-prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="total-book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="total-prospicio" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">Development, reported</th>
<td class="gt_row gt_right" headers="stub-1 IBNR IBNR-book">26</td>
<td class="gt_row gt_right" headers="stub-1 IBNR IBNR-prospicio">25.7</td>
<td class="gt_row gt_right" headers="stub-1 total-unpaid total-book">71</td>
<td class="gt_row gt_right" headers="stub-1 total-unpaid total-prospicio">71.1</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">Development, paid</th>
<td class="gt_row gt_right" headers="stub-2 IBNR IBNR-book">29</td>
<td class="gt_row gt_right" headers="stub-2 IBNR IBNR-prospicio">28.6</td>
<td class="gt_row gt_right" headers="stub-2 total-unpaid total-book">74</td>
<td class="gt_row gt_right" headers="stub-2 total-unpaid total-prospicio">74.0</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">Expected claims</th>
<td class="gt_row gt_right" headers="stub-3 IBNR IBNR-book">26</td>
<td class="gt_row gt_right" headers="stub-3 IBNR IBNR-prospicio">25.8</td>
<td class="gt_row gt_right" headers="stub-3 total-unpaid total-book">71</td>
<td class="gt_row gt_right" headers="stub-3 total-unpaid total-prospicio">71.2</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">B-F, reported</th>
<td class="gt_row gt_right" headers="stub-4 IBNR IBNR-book">26</td>
<td class="gt_row gt_right" headers="stub-4 IBNR IBNR-prospicio">25.6</td>
<td class="gt_row gt_right" headers="stub-4 total-unpaid total-book">71</td>
<td class="gt_row gt_right" headers="stub-4 total-unpaid total-prospicio">71.0</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">B-F, paid</th>
<td class="gt_row gt_right" headers="stub-5 IBNR IBNR-book">27</td>
<td class="gt_row gt_right" headers="stub-5 IBNR IBNR-prospicio">27.1</td>
<td class="gt_row gt_right" headers="stub-5 total-unpaid total-book">73</td>
<td class="gt_row gt_right" headers="stub-5 total-unpaid total-prospicio">72.5</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">Cape Cod</th>
<td class="gt_row gt_right" headers="stub-6 IBNR IBNR-book">27</td>
<td class="gt_row gt_right" headers="stub-6 IBNR IBNR-prospicio">27.3</td>
<td class="gt_row gt_right" headers="stub-6 total-unpaid total-book">73</td>
<td class="gt_row gt_right" headers="stub-6 total-unpaid total-prospicio">72.8</td>
</tr>
</tbody>
</table>


All twelve figures agree. The spread across methods is about 4% of the unpaid estimate.

For XYZ the methods disagree, and the claim ratios show why. Chapter 8, Exhibit III, sheet 1, column (10) prints the claim ratio of the average of the reported and paid development ultimates, shown here beside each method's:


``` python
BOOK_AVG_RATIO = [79.5, 79.8, 83.2, 79.1, 80.0, 68.5, 78.2, 56.8, 60.6, 100.8, 128.2]
methods = {
    "dev rep": xdev_r, "dev paid": xdev_p, "EC": xec,
    "BF rep": xbf["reported"], "BF paid": xbf["paid"], "CC": xcc,
}
ratios = pd.DataFrame({
    "year": [str(y) for y in XYZ_YEARS],
    "avg dev": [(xdev_r.ultimate[i] + xdev_p.ultimate[i]) / 2 / p for i, p in enumerate(XYZ_PREMIUM)],
    "book": [r / 100 for r in BOOK_AVG_RATIO],
    **{name: [u / p for u, p in zip(f.ultimate, XYZ_PREMIUM)] for name, f in methods.items()},
})
(GT(ratios, rowname_col="year")
 .tab_header("XYZ Insurer: ultimate claim ratio by method", "Percent of premium")
 .tab_spanner("average of the two development ultimates", ["avg dev", "book"])
 .tab_spanner("each method", list(methods))
 .cols_label(**{"avg dev": "prospicio"})
 .fmt_percent(list(ratios.columns[1:]), decimals=1))
```


<style>
#iizyzdlxdi table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }

#iizyzdlxdi thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#iizyzdlxdi p { margin: 0; padding: 0; }
 #iizyzdlxdi .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #iizyzdlxdi .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #iizyzdlxdi .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #iizyzdlxdi .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #iizyzdlxdi .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #iizyzdlxdi .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iizyzdlxdi .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #iizyzdlxdi .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #iizyzdlxdi .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #iizyzdlxdi .gt_column_spanner_outer:first-child { padding-left: 0; }
 #iizyzdlxdi .gt_column_spanner_outer:last-child { padding-right: 0; }
 #iizyzdlxdi .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #iizyzdlxdi .gt_spanner_row { border-bottom-style: hidden; }
 #iizyzdlxdi .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #iizyzdlxdi .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #iizyzdlxdi .gt_from_md> :first-child { margin-top: 0; }
 #iizyzdlxdi .gt_from_md> :last-child { margin-bottom: 0; }
 #iizyzdlxdi .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #iizyzdlxdi .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #iizyzdlxdi .gt_indent_1 { text-indent: 5px; }
 #iizyzdlxdi .gt_indent_2 { text-indent: calc(5px * 2); }
 #iizyzdlxdi .gt_indent_3 { text-indent: calc(5px * 3); }
 #iizyzdlxdi .gt_indent_4 { text-indent: calc(5px * 4); }
 #iizyzdlxdi .gt_indent_5 { text-indent: calc(5px * 5); }
 #iizyzdlxdi .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #iizyzdlxdi .gt_row_group_first td { border-top-width: 2px; }
 #iizyzdlxdi .gt_row_group_first th { border-top-width: 2px; }
 #iizyzdlxdi .gt_striped { color: #333333; background-color: #F4F4F4; }
 #iizyzdlxdi .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iizyzdlxdi .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #iizyzdlxdi .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #iizyzdlxdi .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #iizyzdlxdi .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #iizyzdlxdi .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #iizyzdlxdi .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #iizyzdlxdi .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iizyzdlxdi .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #iizyzdlxdi .gt_left { text-align: left; }
 #iizyzdlxdi .gt_center { text-align: center; }
 #iizyzdlxdi .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #iizyzdlxdi .gt_font_normal { font-weight: normal; }
 #iizyzdlxdi .gt_font_bold { font-weight: bold; }
 #iizyzdlxdi .gt_font_italic { font-style: italic; }
 #iizyzdlxdi .gt_super { font-size: 65%; }
 #iizyzdlxdi .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iizyzdlxdi .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #iizyzdlxdi .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #iizyzdlxdi .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #iizyzdlxdi .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #iizyzdlxdi .gt_asterisk { font-size: 100%; vertical-align: 0; }
 
</style>

<table class="gt_table" aria-labelledby="title" aria-describedby="subtitle" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead>
<tr class="gt_heading">
<th colspan="9" id="title" class="gt_heading gt_title gt_font_normal">XYZ Insurer: ultimate claim ratio by method</th>
</tr>
<tr class="gt_heading">
<th colspan="9" id="subtitle" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border">Percent of premium</th>
</tr>
<tr class="gt_col_headings gt_spanner_row">
<th rowspan="2" class="gt_col_heading gt_columns_bottom_border gt_left" scope="col"></th>
<th colspan="2" id="average-of-the-two-development-ultimates" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">average of the two development ultimates</th>
<th colspan="6" id="each-method" class="gt_center gt_columns_top_border gt_column_spanner_outer" scope="colgroup">each method</th>
</tr>
<tr class="gt_col_headings">
<th id="avg-dev" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">prospicio</th>
<th id="book" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">book</th>
<th id="dev-rep" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">dev rep</th>
<th id="dev-paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">dev paid</th>
<th id="EC" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">EC</th>
<th id="BF-rep" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">BF rep</th>
<th id="BF-paid" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">BF paid</th>
<th id="CC" class="gt_col_heading gt_columns_bottom_border gt_right" scope="col">CC</th>
</tr>
</thead>
<tbody class="gt_table_body">
<tr>
<th id="stub-1" class="gt_row gt_left gt_stub" scope="row">1998</th>
<td class="gt_row gt_right" headers="stub-1 average-of-the-two-development-ultimates avg-dev">79.5%</td>
<td class="gt_row gt_right" headers="stub-1 average-of-the-two-development-ultimates book">79.5%</td>
<td class="gt_row gt_right" headers="stub-1 each-method dev-rep">79.1%</td>
<td class="gt_row gt_right" headers="stub-1 each-method dev-paid">79.9%</td>
<td class="gt_row gt_right" headers="stub-1 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-1 each-method BF-rep">79.1%</td>
<td class="gt_row gt_right" headers="stub-1 each-method BF-paid">79.9%</td>
<td class="gt_row gt_right" headers="stub-1 each-method CC">79.1%</td>
</tr>
<tr>
<th id="stub-2" class="gt_row gt_left gt_stub" scope="row">1999</th>
<td class="gt_row gt_right" headers="stub-2 average-of-the-two-development-ultimates avg-dev">79.8%</td>
<td class="gt_row gt_right" headers="stub-2 average-of-the-two-development-ultimates book">79.8%</td>
<td class="gt_row gt_right" headers="stub-2 each-method dev-rep">79.6%</td>
<td class="gt_row gt_right" headers="stub-2 each-method dev-paid">79.9%</td>
<td class="gt_row gt_right" headers="stub-2 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-2 each-method BF-rep">79.7%</td>
<td class="gt_row gt_right" headers="stub-2 each-method BF-paid">79.9%</td>
<td class="gt_row gt_right" headers="stub-2 each-method CC">79.7%</td>
</tr>
<tr>
<th id="stub-3" class="gt_row gt_left gt_stub" scope="row">2000</th>
<td class="gt_row gt_right" headers="stub-3 average-of-the-two-development-ultimates avg-dev">83.2%</td>
<td class="gt_row gt_right" headers="stub-3 average-of-the-two-development-ultimates book">83.2%</td>
<td class="gt_row gt_right" headers="stub-3 each-method dev-rep">82.1%</td>
<td class="gt_row gt_right" headers="stub-3 each-method dev-paid">84.3%</td>
<td class="gt_row gt_right" headers="stub-3 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-3 each-method BF-rep">82.8%</td>
<td class="gt_row gt_right" headers="stub-3 each-method BF-paid">84.1%</td>
<td class="gt_row gt_right" headers="stub-3 each-method CC">82.8%</td>
</tr>
<tr>
<th id="stub-4" class="gt_row gt_left gt_stub" scope="row">2001</th>
<td class="gt_row gt_right" headers="stub-4 average-of-the-two-development-ultimates avg-dev">79.1%</td>
<td class="gt_row gt_right" headers="stub-4 average-of-the-two-development-ultimates book">79.1%</td>
<td class="gt_row gt_right" headers="stub-4 each-method dev-rep">77.0%</td>
<td class="gt_row gt_right" headers="stub-4 each-method dev-paid">81.2%</td>
<td class="gt_row gt_right" headers="stub-4 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-4 each-method BF-rep">77.6%</td>
<td class="gt_row gt_right" headers="stub-4 each-method BF-paid">81.0%</td>
<td class="gt_row gt_right" headers="stub-4 each-method CC">77.6%</td>
</tr>
<tr>
<th id="stub-5" class="gt_row gt_left gt_stub" scope="row">2002</th>
<td class="gt_row gt_right" headers="stub-5 average-of-the-two-development-ultimates avg-dev">80.0%</td>
<td class="gt_row gt_right" headers="stub-5 average-of-the-two-development-ultimates book">80.0%</td>
<td class="gt_row gt_right" headers="stub-5 each-method dev-rep">79.0%</td>
<td class="gt_row gt_right" headers="stub-5 each-method dev-paid">81.1%</td>
<td class="gt_row gt_right" headers="stub-5 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-5 each-method BF-rep">79.0%</td>
<td class="gt_row gt_right" headers="stub-5 each-method BF-paid">80.8%</td>
<td class="gt_row gt_right" headers="stub-5 each-method CC">79.0%</td>
</tr>
<tr>
<th id="stub-6" class="gt_row gt_left gt_stub" scope="row">2003</th>
<td class="gt_row gt_right" headers="stub-6 average-of-the-two-development-ultimates avg-dev">68.5%</td>
<td class="gt_row gt_right" headers="stub-6 average-of-the-two-development-ultimates book">68.5%</td>
<td class="gt_row gt_right" headers="stub-6 each-method dev-rep">65.0%</td>
<td class="gt_row gt_right" headers="stub-6 each-method dev-paid">72.1%</td>
<td class="gt_row gt_right" headers="stub-6 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-6 each-method BF-rep">65.2%</td>
<td class="gt_row gt_right" headers="stub-6 each-method BF-paid">73.4%</td>
<td class="gt_row gt_right" headers="stub-6 each-method CC">65.1%</td>
</tr>
<tr>
<th id="stub-7" class="gt_row gt_left gt_stub" scope="row">2004</th>
<td class="gt_row gt_right" headers="stub-7 average-of-the-two-development-ultimates avg-dev">78.2%</td>
<td class="gt_row gt_right" headers="stub-7 average-of-the-two-development-ultimates book">78.2%</td>
<td class="gt_row gt_right" headers="stub-7 each-method dev-rep">75.3%</td>
<td class="gt_row gt_right" headers="stub-7 each-method dev-paid">81.1%</td>
<td class="gt_row gt_right" headers="stub-7 each-method EC">87.1%</td>
<td class="gt_row gt_right" headers="stub-7 each-method BF-rep">76.0%</td>
<td class="gt_row gt_right" headers="stub-7 each-method BF-paid">83.2%</td>
<td class="gt_row gt_right" headers="stub-7 each-method CC">75.3%</td>
</tr>
<tr>
<th id="stub-8" class="gt_row gt_left gt_stub" scope="row">2005</th>
<td class="gt_row gt_right" headers="stub-8 average-of-the-two-development-ultimates avg-dev">56.8%</td>
<td class="gt_row gt_right" headers="stub-8 average-of-the-two-development-ultimates book">56.8%</td>
<td class="gt_row gt_right" headers="stub-8 each-method dev-rep">55.5%</td>
<td class="gt_row gt_right" headers="stub-8 each-method dev-paid">58.1%</td>
<td class="gt_row gt_right" headers="stub-8 each-method EC">78.3%</td>
<td class="gt_row gt_right" headers="stub-8 each-method BF-rep">57.3%</td>
<td class="gt_row gt_right" headers="stub-8 each-method BF-paid">68.3%</td>
<td class="gt_row gt_right" headers="stub-8 each-method CC">56.4%</td>
</tr>
<tr>
<th id="stub-9" class="gt_row gt_left gt_stub" scope="row">2006</th>
<td class="gt_row gt_right" headers="stub-9 average-of-the-two-development-ultimates avg-dev">60.6%</td>
<td class="gt_row gt_right" headers="stub-9 average-of-the-two-development-ultimates book">60.6%</td>
<td class="gt_row gt_right" headers="stub-9 each-method dev-rep">54.3%</td>
<td class="gt_row gt_right" headers="stub-9 each-method dev-paid">67.0%</td>
<td class="gt_row gt_right" headers="stub-9 each-method EC">65.8%</td>
<td class="gt_row gt_right" headers="stub-9 each-method BF-rep">56.1%</td>
<td class="gt_row gt_right" headers="stub-9 each-method BF-paid">66.2%</td>
<td class="gt_row gt_right" headers="stub-9 each-method CC">54.6%</td>
</tr>
<tr>
<th id="stub-10" class="gt_row gt_left gt_stub" scope="row">2007</th>
<td class="gt_row gt_right" headers="stub-10 average-of-the-two-development-ultimates avg-dev">100.8%</td>
<td class="gt_row gt_right" headers="stub-10 average-of-the-two-development-ultimates book">100.8%</td>
<td class="gt_row gt_right" headers="stub-10 each-method dev-rep">76.8%</td>
<td class="gt_row gt_right" headers="stub-10 each-method dev-paid">124.8%</td>
<td class="gt_row gt_right" headers="stub-10 each-method EC">63.8%</td>
<td class="gt_row gt_right" headers="stub-10 each-method BF-rep">72.4%</td>
<td class="gt_row gt_right" headers="stub-10 each-method BF-paid">73.1%</td>
<td class="gt_row gt_right" headers="stub-10 each-method CC">69.4%</td>
</tr>
<tr>
<th id="stub-11" class="gt_row gt_left gt_stub" scope="row">2008</th>
<td class="gt_row gt_right" headers="stub-11 average-of-the-two-development-ultimates avg-dev">128.2%</td>
<td class="gt_row gt_right" headers="stub-11 average-of-the-two-development-ultimates book">128.2%</td>
<td class="gt_row gt_right" headers="stub-11 each-method dev-rep">99.4%</td>
<td class="gt_row gt_right" headers="stub-11 each-method dev-paid">156.9%</td>
<td class="gt_row gt_right" headers="stub-11 each-method EC">82.5%</td>
<td class="gt_row gt_right" headers="stub-11 each-method BF-rep">89.1%</td>
<td class="gt_row gt_right" headers="stub-11 each-method BF-paid">85.9%</td>
<td class="gt_row gt_right" headers="stub-11 each-method CC">82.0%</td>
</tr>
</tbody>
</table>


``` python
fig, ax = plt.subplots()
for name in ["EC", "BF rep", "BF paid"]:
    ax.plot(XYZ_YEARS, [100 * u / p for u, p in zip(methods[name].ultimate, XYZ_PREMIUM)],
            color="0.75", linewidth=1)
ax.plot([], [], color="0.75", label="EC, BF rep, BF paid")
for name in ["dev rep", "dev paid", "CC"]:
    ax.plot(XYZ_YEARS, [100 * u / p for u, p in zip(methods[name].ultimate, XYZ_PREMIUM)],
            marker="o", label=name)
ax.set_xlabel("accident year")
ax.set_ylabel("ultimate claim ratio, % of premium")
ax.set_title("XYZ Insurer: claim ratio by accident year and method")
ax.legend()
```


<figure class="p-figure figure">
IiNtMTRmZDU5Y2YzYiIgeD0iNzEuMDk3MTA5IiB5PSI1My4yMjcyNjYiIHN0eWxlPSJmaWxsOiB2YXIoLS1wLXNlcmllcy0xKTsgc3Ryb2tlOiB2YXIoLS1wLXNlcmllcy0xKSIgLz4KICAgICA8L2c+CiAgICA8L2c+CiAgICA8ZyBpZD0idGV4dF8xNyI+CiAgICAgPHRleHQgc3R5bGU9ImZvbnQtc2l6ZTogMTFweDsgZm9udC1mYW1pbHk6IHZhcigtLXAtZm9udCk7IHRleHQtYW5jaG9yOiBzdGFydDsgZmlsbDogdmFyKC0tcC1pbmspIiB4PSI5MC44OTcxMDkiIHk9IjU3LjA3NzI2NiIgdHJhbnNmb3JtPSJyb3RhdGUoLTAgOTAuODk3MTA5IDU3LjA3NzI2NikiPmRldiByZXA8L3RleHQ+CiAgICA8L2c+CiAgICA8ZyBpZD0ibGluZTJkXzM0Ij4KICAgICA8cGF0aCBkPSJNIDYwLjA5NzEwOSA2OS43MjgxMjUgCkwgNzEuMDk3MTA5IDY5LjcyODEyNSAKTCA4Mi4wOTcxMDkgNjkuNzI4MTI1IAoiIHN0eWxlPSJmaWxsOiBub25lOyBzdHJva2U6IHZhcigtLXAtc2VyaWVzLTIpOyBzdHJva2Utd2lkdGg6IDEuNTsgc3Ryb2tlLWxpbmVjYXA6IHNxdWFyZSIgLz4KICAgICA8Zz4KICAgICAgPH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lsbDogdmFyKC0tcC1pbmspIiB4PSI5MC44OTcxMDkiIHk9IjkwLjA3ODk4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTAgOTAuODk3MTA5IDkwLjA3ODk4NCkiPkNDPC90ZXh0PgogICAgPC9nPgogICA8L2c+CiAgPC9nPgogPC9nPgogPGRlZnM+CiAgPGNsaXBwYXRoIGlkPSJwYmYyNzdkODc0OSI+CiAgIDxyZWN0IHg9IjUwLjE5NzEwOSIgeT0iMjIuMzE4MTI1IiB3aWR0aD0iMzkwLjYiIGhlaWdodD0iMTk5LjU4NCIgLz4KICA8L2NsaXBwYXRoPgogPC9kZWZzPgo8L3N2Zz4=" />
</figure>


The development average equals the book's to the tenth of a percent. For 2007 and 2008 the development ratios are far above earlier years; expected claims, BF and Cape Cod keep them near the history.

Chapter 15 also divides ultimates by claim counts (severity), and IBNR plus case by open and unreported counts: with a counts triangle these are one-line divisions of `fit.ultimate` and `fit.reserve`. The book's conclusion for XYZ uses chapter 13's Berquist-Sherman projections.


# See also

- [`reserving-methods.md`](reserving-methods.md): which reserving method to use when, with Mack, the bootstraps, Clark, the Bayesian models and the one-year view.
- `docs/design/triangle.md` and `docs/design/reserving-v02.md`: the design of the triangle and the expected-loss methods, with selected patterns.
