mabilton commited on
Commit
b645a3d
1 Parent(s): 04e4a02

Added description of freMTPL2 dataset to README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -1
README.md CHANGED
@@ -14,4 +14,72 @@ size_categories:
14
  - 100K<n<1M
15
  language:
16
  - en
17
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  - 100K<n<1M
15
  language:
16
  - en
17
+ ---
18
+
19
+ # `freMTPL2` Dataset
20
+
21
+ This dataset is a mirror of the freMTPL2 frequency and severity datasets, originally published by Arthur Charpentier to accompany his textbook [*Computational Actuarial Science with R*](https://www.routledge.com/Computational-Actuarial-Science-with-R/Charpentier/p/book/9781138033788).
22
+
23
+ The freMTPL2 dataset contains data on Third-Party Liability (TPL) Motor insurance policies issued in France, along with claims filed against those policies, observed over a duration of just over a year.
24
+
25
+ These observations are organized into two separate CSV files:
26
+ 1. `freMTPL2freq.csv`: a 'Frequency' dataset that stores the risk attributes of the observed insurance policies.
27
+ 2. `freMTPL2sev.csv`: a 'Severity' dataset that records monetary loss of each claim made against one of the policies in `freMTPL2freq.csv`.
28
+
29
+ For further details on the `freMTPL2` dataset, please consult [Page 71 of the `CASdatasets` R package documentation](https://cas.uqam.ca/pub/web/CASdatasets-manual.pdf#page=71).
30
+
31
+ Both `freMTPL2freq.csv` and `freMTPL2sev.csv` in this HuggingFace dataset were sourced from the [karansarpal/freMTPL2-french-motor-tpl-insurance-claims Kaggle dataset](https://www.kaggle.com/datasets/karansarpal/freMTPL2-french-motor-tpl-insurance-claims).
32
+
33
+ ## `freMTPL2freq.csv` Description
34
+
35
+ This file contains data on 678,013 TPL motor insurance policies. Each row represents a single policy and contains the following columns:
36
+ - `IDpol` (`int`): Policy ID number; uniquely identifies each row in `freMTPL2freq.csv`.
37
+ - `ClaimNb` (`int`): Total number of TPL motor claims made against the policy.
38
+ - `Exposure` (`float`): Duration (in years) the policy was observed.
39
+ - `VehPower` (`int`): Vehicle power encoded as an ordinal integer (higher values indicate more powerful vehicles).
40
+ - `VehAge` (`int`): Age of the vehicle in years (integer part only).
41
+ - `DrivAge` (`int`): Driver's age in years (integer part only). In France, the legal driving age is 18. The minimum driver age in this dataset is 18 years old.
42
+ - `BonusMalus` (`int`): [Bonus-Malus factor](https://en.wikipedia.org/wiki/Bonus%E2%80%93malus#Insurance) that ranges from 50 to 350. In France, < 100 means bonus, whilst > 100 means malus.
43
+ - `VehBrand` (`string`): Anonymized vehicle brand code.
44
+ - `VehGas` (`string`): Fuel type, either 'Regular' or 'Diesel'.
45
+ - `Area` (`string`): Population density category of the city/community the driver lives in; these categories are ordered from "A" (rural) to "F" (urban center).
46
+ - `Density` (`int`): Number of inhabitants per square-kilometer living in the city/area where the vehicle driver resides.
47
+ - `Region` (`string`): Region in France the vehicle driver resides; these categories correspond to the [1982 - 2015 French region definitions](https://en.wikipedia.org/wiki/Regions_of_France#1982%E2%80%932015).
48
+
49
+ ## `freMTPL2sev.csv` Description
50
+
51
+ This file contains data on 26,639 claims made against policies in `freMTPL2freq.csv`. Each row represents a single claim and contains the following columns:
52
+ - `IDpol` (`int`): Policy ID number linking the claim to a policy in `freMTPL2freq.csv`. Note that `IDpol` is *not* a unique row identifier in this file, as multiple claims may be made against the same policy.
53
+ - `ClaimAmount` (`float`): Most up-to-date estimate of the total financial loss/cost of the claim, presumably in Euros (although the exact currency the financial losses are recorded is not disclosed).
54
+
55
+ ## Relationship between `freMTPL2freq.csv` and `freMTPL2sev.csv`
56
+
57
+ There is a one-to-many relationship between `freMTPL2freq.csv` and `freMTPL2sev.csv` such that:
58
+ - Each claim in `freMTPL2sev.csv` is associated with no more than one policy in `freMTPL2freq.csv`.
59
+ - Each policy in `freMTPL2freq.csv` can join onto one or more claims in `freMTPL2sev.csv` (i.e. multiple claims can be made against the same policy).
60
+ - Conversely, not all policies in `freMTPL2freq.csv` will join onto a claim listed in `freMTPL2sev.csv` (i.e. not all policyholders make a claim against their policy). Indeed, ~96% of the policies in `freMTPL2freq.csv` have no associated claims in `freMTPL2sev.csv`.
61
+
62
+ ## Data Inconsistency Issues
63
+
64
+ Please be aware that some data inconsistencies exist between the `freMTPL2freq.csv` and `freMTPL2sev.csv` files:
65
+ - *Missing Policy Records*: Not all claims in `freMTPL2sev.csv` have a corresponding policy in `freMTPL2freq.csv`, meaning that the risk attributes associated with these claims are unknown. This issue affects 195 out of 26,639 records in `freMTPL2freq.csv`.
66
+ - *`ClaimNb` Discrepancies*: For some policies in `freMTPL2freq.csv`, the recorded `ClaimNb` does not match the actual number of claims recorded in `freMTPL2sev.csv` for those policies. For instance:
67
+ - Some policies with `ClaimNb = 1` have no matching claims in `freMTPL2sev.csv`.
68
+ - One policy with `ClaimNb = 2` has only one matching claim in `freMTPL2sev.csv`.
69
+
70
+ This issue affects 9,117 out of 678,013 policies in `freMTPL2freq.csv`.
71
+
72
+ These data inconsistency issues have been retained in this Hugging Face dataset so that it remains an exact replica of the original freMTPL2 dataset.
73
+
74
+ ## Referencing
75
+
76
+ If you use this dataset in your work, please cite the original publishers of the freMTPL2 dataset:
77
+
78
+ ```latex
79
+ @article{dutang2020package,
80
+ title={Package ‘casdatasets’},
81
+ author={Dutang, Christophe and Charpentier, Arthur},
82
+ journal={url: https://dutangc.perso.math.cnrs.fr/RRepository/pub/web/CASdatasets-manual.pdf},
83
+ year={2020}
84
+ }
85
+ ```