You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
**Some notes**:
6
6
7
7
- The main reference is [Basic term S](https://lifelib.io/libraries/basiclife/BasicTerm_S.html). Model S, M and SC are basically the same.
8
+
- The computation heavy work load is performed with Rust.
8
9
- Post run analysis is stored at [notebooks](notebooks) folder. This is a [Marimo Notebook](https://marimo.io/) notebook. Its purpose is to explain a practical smoothing technique after crude premium calculation is performed by Rust model. The method is reproducible and reduces labor intensity from manual practise.
Copy file name to clipboardExpand all lines: notebooks/analysis.py
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,16 @@ def _(mo):
43
43
44
44
This notebook shows how the premium rates are smoothed after being calculated using Rust model.
45
45
46
-
The intension at first is to used Rust for analysis. However, at the time of this is produced, due to its Rust language's nature (compiled), it takes significant time to produce the output. On another hand, Python reactive notebook is more advanced and packed with featured. Hence, Python is used for post anlysis.
46
+
The intension at first is to used Rust for analysis.
47
+
However, at the time of production, Rust language compilation nature takes significant time to produce the output in reactive notebook environment.
48
+
On another hand, Python reactive notebook is more advanced and packed with featured.
49
+
Hence, Python is used for post analysis.
47
50
48
-
After premium rate is calculated using Rust model, the premium rates are still jumpy at several model points. This notebook shows how the premium rate is smoothed using common p-sline technique.
51
+
What is done in this notebook?
52
+
After premium rate is calculated using Rust model, the premium rates are still jumpy at several model points.
53
+
This notebook shows how the premium rate is smoothed using common p-sline technique.
49
54
50
-
In practise, it is observed that many actuaries are performing this step manually with interpolation. However, it is not recommended as not being reproducible and laborintensive.
55
+
In practise, this step is usually performed manually with interpolation. However, it is not recommended as not being reproducible and labor-intensive.
As observed there is still one points that is has a negative slope. We can either iterate over different subset of variable to smooth out the curve.
211
+
As observed there is still one points that is has a negative slope. We can either iterate over different subset of variable to smooth out the curve.
207
212
208
213
However, I make an objective decision if tolerance is small enough, it will be ignored. Else, we will obtain the rate from the previous period to make the difference 0.
0 commit comments