Upload prompt_dataset_generation_D2_80.txt
Browse files
prompt_dataset_generation_D2_80.txt
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Prompt D2 80:
|
| 2 |
+
|
| 3 |
+
context: you are an expert actuarial data scientist with 20 Years of experience.
|
| 4 |
+
task: You are involved in a project to build synthetic datasets for the non-life insurance field.
|
| 5 |
+
request: please, generate 51638 rows of a synthetic dataset and save in a csv file with the following characteristics
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
I retrieved features from the dataset
|
| 9 |
+
|
| 10 |
+
1) columns and datatypes
|
| 11 |
+
OwnerAge int64
|
| 12 |
+
Gender object
|
| 13 |
+
Area object
|
| 14 |
+
RiskClass object
|
| 15 |
+
VehAge int64
|
| 16 |
+
BonusClass object
|
| 17 |
+
Exposure float64
|
| 18 |
+
ClaimNb int64
|
| 19 |
+
ClaimAmount int64
|
| 20 |
+
ClaimOcc int64
|
| 21 |
+
|
| 22 |
+
2) distribution of categorical columns
|
| 23 |
+
|
| 24 |
+
count unique top freq
|
| 25 |
+
Gender 51638 2 Male 43819
|
| 26 |
+
Area 51638 7 Small towns; countryside except Gotland; North... 19869
|
| 27 |
+
RiskClass 51638 7 EV ratio 9-12 15105
|
| 28 |
+
BonusClass 51638 7 BM7 14325
|
| 29 |
+
|
| 30 |
+
3) classes of categorical variables
|
| 31 |
+
|
| 32 |
+
Unique classes in 'Gender': ['Male' 'Female']
|
| 33 |
+
Unique classes in 'Area': ['Suburbs; middle-sized cities'
|
| 34 |
+
"Central parts of Sweden's three largest cities"
|
| 35 |
+
'Lesser towns except Gotland; Northern towns'
|
| 36 |
+
'Small towns; countryside except Gotland; Northern towns'
|
| 37 |
+
'Northern countryside' 'Northern towns'
|
| 38 |
+
"Gotland (Sweden's largest island)"]
|
| 39 |
+
Unique classes in 'RiskClass': ['EV ratio 20-24' 'EV ratio 16-19' 'EV ratio 9-12' 'EV ratio 13-15'
|
| 40 |
+
'EV ratio 6-8' 'EV ratio >25' 'EV ratio <5']
|
| 41 |
+
Unique classes in 'BonusClass': ['BM4' 'BM3' 'BM2' 'BM7' 'BM1' 'BM5' 'BM6']
|
| 42 |
+
|
| 43 |
+
4) distribution of numerical variables
|
| 44 |
+
|
| 45 |
+
count mean std min 25% 50% 75% max
|
| 46 |
+
OwnerAge 51638.0 42.381250 12.979286 0.0 31.000000 44.000000 52.0 92.0
|
| 47 |
+
VehAge 51638.0 11.114722 6.365856 0.0 5.000000 12.000000 16.0 20.0
|
| 48 |
+
Exposure 51638.0 0.687829 0.332135 0.0 0.463014 0.821918 1.0 1.0
|
| 49 |
+
ClaimNb 51638.0 0.010535 0.105824 0.0 0.000000 0.000000 0.0 2.0
|
| 50 |
+
ClaimAmount 51638.0 260.434583 4748.164398 0.0 0.000000 0.000000 0.0 365347.0
|
| 51 |
+
ClaimOcc 51638.0 0.010148 0.100224 0.0 0.000000 0.000000 0.0 1.0
|
| 52 |
+
|
| 53 |
+
5) few examples of rows are here
|
| 54 |
+
|
| 55 |
+
OwnerAge Gender Area RiskClass VehAge BonusClass Exposure ClaimNb ClaimAmount ClaimOcc
|
| 56 |
+
0 58 Male Central parts of Sweden's three largest cities EV ratio 13-15 9 BM1 0.747945 0 0 0
|
| 57 |
+
1 38 Male Gotland (Sweden's largest island) EV ratio 13-15 15 BM7 1.000000 0 0 0
|
| 58 |
+
2 23 Male Lesser towns except Gotland; Northern towns EV ratio 13-15 0 BM7 0.002740 0 0 0
|
| 59 |
+
3 22 Male Northern countryside EV ratio 6-8 0 BM1 0.432877 0 0 0
|
| 60 |
+
4 49 Male Northern towns EV ratio <5 20 BM1 1.000000 0 0 0
|
| 61 |
+
5 43 Male Small towns; countryside except Gotland; North. EV ratio 20-24 13 BM2 0.712329 0 0 0
|
| 62 |
+
6 26 Male Suburbs; middle-sized cities EV ratio 13-15 0 BM1 0.443836 0 0 0
|
| 63 |
+
7 51 Female Lesser towns except Gotland; Northern towns EV ratio 16-19 13 BM7 0.454795 0 0 0
|
| 64 |
+
8 55 Male Suburbs; middle-sized cities EV ratio 13-15 15 BM1 0.441096 0 0 0
|
| 65 |
+
9 32 Male Central parts of Sweden's three largest cities EV ratio 20-24 2 BM1 0.397260 0 0 0
|
| 66 |
+
10 48 Female Suburbs; middle-sized cities EV ratio 9-12 14 BM2 0.416438 0 0 0
|
| 67 |
+
11 28 Male Suburbs; middle-sized cities EV ratio 9-12 15 BM3 1.000000 0 0 0
|
| 68 |
+
12 46 Male Lesser towns except Gotland; Northern towns EV ratio 9-12 18 BM4 0.501370 0 0 0
|
| 69 |
+
13 39 Male Suburbs; middle-sized cities EV ratio 13-15 1 BM5 0.490411 0 0 0
|
| 70 |
+
14 42 Male Central parts of Sweden's three largest cities EV ratio <5 15 BM6 0.487671 0 0 0
|
| 71 |
+
15 42 Female Suburbs; middle-sized cities EV ratio 9-12 7 BM7 1.000000 0 0 0
|
| 72 |
+
16 44 Female Small towns; countryside except Gotland; North. EV ratio 13-15 13 BM7 1.000000 0 0 0
|
| 73 |
+
17 24 Male Lesser towns except Gotland; Northern towns EV ratio 16-19 15 BM2 0.498630 0 0 0
|
| 74 |
+
18 46 Male Small towns; countryside except Gotland; North. EV ratio 20-24 15 BM3 1.000000 0 0 0
|
| 75 |
+
19 36 Male Small towns; countryside except Gotland; North. EV ratio 6-8 8 BM7 0.482192 0 0 0
|
| 76 |
+
20 48 Male Lesser towns except Gotland; Northern towns EV ratio 9-12 17 BM7 1.000000 0 0 0
|
| 77 |
+
21 20 Male Small towns; countryside except Gotland; North. EV ratio <5 11 BM2 1.000000 0 0 0
|
| 78 |
+
22 31 Male Small towns; countryside except Gotland; North. EV ratio >25 9 BM7 0.493151 0 0 0
|
| 79 |
+
23 57 Male Lesser towns except Gotland; Northern towns EV ratio 13-15 3 BM3 0.504110 1 2279 1
|
| 80 |
+
24 50 Male Small towns; countryside except Gotland; North. EV ratio 20-24 10 BM7 1.000000 1 4911 1
|
| 81 |
+
25 53 Male Lesser towns except Gotland; Northern towns EV ratio 16-19 16 BM4 1.000000 1 6222 1
|
| 82 |
+
26 29 Male Small towns; countryside except Gotland; North. EV ratio 16-19 8 BM7 1.000000 1 26169 1
|
| 83 |
+
27 30 Male Northern towns EV ratio 16-19 6 BM1 1.000000 1 10000 1
|
| 84 |
+
28 53 Male Small towns; countryside except Gotland; North. EV ratio 9-12 3 BM7 1.000000 1 5826 1
|
| 85 |
+
29 23 Male Small towns; countryside except Gotland; North. EV ratio 16-19 2 BM6 0.243836 1 78796 1
|
| 86 |
+
30 29 Male Small towns; countryside except Gotland; North. EV ratio 20-24 4 BM7 1.000000 1 5605 1
|
| 87 |
+
31 50 Male Small towns; countryside except Gotland; North. EV ratio 6-8 15 BM7 1.000000 1 6558 1
|
| 88 |
+
32 31 Male Suburbs; middle-sized cities EV ratio 16-19 12 BM1 0.994521 1 24326 1
|
| 89 |
+
33 27 Male Central parts of Sweden's three largest cities EV ratio 16-19 6 BM7 0.723288 2 91589 1
|
| 90 |
+
34 54 Male Small towns; countryside except Gotland; North. EV ratio 20-24 0 BM7 1.000000 2 11000 1
|
| 91 |
+
35 21 Male Central parts of Sweden's three largest cities EV ratio 16-19 3 BM4 0.504110 2 69754 1
|
| 92 |
+
36 26 Male Lesser towns except Gotland; Northern towns EV ratio 13-15 2 BM1 0.419178 2 25889 1
|
| 93 |
+
37 18 Male Small towns; countryside except Gotland; North. EV ratio 9-12 4 BM1 1.000000 2 35153 1
|
| 94 |
+
38 30 Male Central parts of Sweden's three largest cities EV ratio 13-15 3 BM7 1.000000 2 17362 1
|
| 95 |
+
39 26 Male Central parts of Sweden's three largest cities EV ratio 9-12 1 BM1 0.857534 2 276298 1
|
| 96 |
+
40 24 Male Small towns; countryside except Gotland; North. EV ratio 20-24 9 BM2 0.386301 2 34238 1
|
| 97 |
+
41 40 Male Suburbs; middle-sized cities EV ratio 9-12 2 BM7 0.917808 2 191462 1
|
| 98 |
+
42 52 Male Suburbs; middle-sized cities EV ratio 20-24 10 BM7 1.000000 2 22111 1
|
| 99 |
+
|
| 100 |
+
6) The distribution of the two target columns:
|
| 101 |
+
- ClaimNb: 0 if no claim, else it follows a ~Poisson distribution
|
| 102 |
+
- ClaimAmount: 0 if no claim, else positively skewed with ~gamma distribution
|
| 103 |
+
|
| 104 |
+
7) Core logical relationships:
|
| 105 |
+
If ClaimOcc = 0 → ClaimNb = 0 and ClaimAmount = 0
|
| 106 |
+
If ClaimOcc = 1 → ClaimNb ≥ 1 and ClaimAmount > 0
|
| 107 |
+
ClaimNb ∈ {0,1,2}
|
| 108 |
+
Exposure ∈ (0,1]
|
| 109 |
+
ClaimAmount >= 0
|
| 110 |
+
|
| 111 |
+
8) Exposure as an offset-like driver of frequency:
|
| 112 |
+
For similar risk factors, rows with higher Exposure should have proportionally higher probability of ClaimOcc and higher expected ClaimNb.
|
| 113 |
+
|
| 114 |
+
9) Likely relationship:
|
| 115 |
+
Introduce a modest dependence between VehAge and BonusClass.
|
| 116 |
+
As VehAge increases, probability of higher BonusClass (e.g., BM6–BM7) increases slightly, while probability of lower classes (BM1–BM3) decreases slightly.
|
| 117 |
+
This trend should be soft with overlap across all ages.
|
| 118 |
+
|
| 119 |
+
10) tie it to OwnerAge:
|
| 120 |
+
-Ensure OwnerAge is moderately positively associated with VehAge.
|
| 121 |
+
-Ensure OwnerAge is positively associated with BonusClass (older owners slightly more likely in higher BM classes).
|
| 122 |
+
-As a result, allow a mild positive association between VehAge and BonusClass.
|
| 123 |
+
|
| 124 |
+
11) Severity structure tied to count:
|
| 125 |
+
Conditional on ClaimOcc=1, ClaimAmount should have a positive association with ClaimNb at the distribution level.
|
| 126 |
+
|
| 127 |
+
12) Add weak dependencies with Area/RiskClass
|
| 128 |
+
Allow slight differences in RiskClass distribution across Area.
|
| 129 |
+
Allow small Gender mix variation by Area.
|
| 130 |
+
|
| 131 |
+
13) Add light consistency rules for ages
|
| 132 |
+
Allow a small fraction of OwnerAge = 0 to reflect missingness; otherwise keep ages within realistic adult bounds
|
| 133 |
+
|
| 134 |
+
14) generate a csv files and not provide code to build a dataframe
|
| 135 |
+
|