Skip to content

With reference to a popular Python lifelib library, the repo demonstrates how a similar pricing process can be achieved with Rust

Notifications You must be signed in to change notification settings

hnlearndev/Basic-Term-Model-Rust-lifelibBasicTermSM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASIC TERM SM MODEL IN RUST FROM LIFELIB

About The Project

Some notes:

  • The main reference is Basic term S. Model S, M and SC are basically the same.
  • The computation heavy work load is performed with Rust.
  • Post run analysis is stored at notebooks folder. This is a Marimo 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.

What can be taken out from this repo?

  • The project introduces the implementation of Rust language and its latest dataframe technology to support actuarial work.
  • The project also shows that spreadsheet, although being convinient, is not the best suited tool to handle full projections which might consist of millions records even for the most basic products.

Getting started

Rust installation

Install Rust

Repo installation

  • Clone the repo:
git clone https://github.com/hnlearndev/Basic-Term-Model-Rust-lifelibBasicTermSM

Usage

  • Go to the local repo and build dependencies:
cargo build
  • Run the package
cargo run

Roadmap

  • Add Changelog
  • Add premium rate plot and introduce technique (eg: spline...) to smooth curve.

Contact

Trung-Hieu Nguyen - hieunt.hello@gmail.com

Project Link: https://github.com/hnlearndev/Basic-Term-Model-Rust-lifelibBasicTermSM

About

With reference to a popular Python lifelib library, the repo demonstrates how a similar pricing process can be achieved with Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published