{"id":14065787,"url":"https://github.com/anbarief/actuarydesk","last_synced_at":"2025-07-29T21:33:21.676Z","repository":{"id":57408078,"uuid":"288463701","full_name":"anbarief/actuarydesk","owner":"anbarief","description":"Python package for actuary to model and analyze simple products or for actuarial students to practice.","archived":false,"fork":false,"pushed_at":"2020-09-25T09:58:36.000Z","size":5135,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T13:20:10.905Z","etag":null,"topics":["actuarial","economics","financial","insurance","mathematics","python","statistics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anbarief.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-18T13:28:10.000Z","updated_at":"2024-07-01T23:55:10.000Z","dependencies_parsed_at":"2022-09-13T05:03:08.710Z","dependency_job_id":null,"html_url":"https://github.com/anbarief/actuarydesk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbarief%2Factuarydesk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbarief%2Factuarydesk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbarief%2Factuarydesk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anbarief%2Factuarydesk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anbarief","download_url":"https://codeload.github.com/anbarief/actuarydesk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228052618,"owners_count":17862103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actuarial","economics","financial","insurance","mathematics","python","statistics"],"created_at":"2024-08-13T07:04:43.517Z","updated_at":"2024-12-04T05:30:55.465Z","avatar_url":"https://github.com/anbarief.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Actuarydesk\n\nThese modules are aimed to become a tool for actuary to model and analyze simple products or for actuarial students to practice. \n\nPublished: 29-8-2020\n\nAuthor: Arief Anbiya - anbarief (at) live (dot) com\n\nVersion: 0.2.0\n\nRequirements: Python \u003e= 3.6, Pandas\n\nWebsite: https://anbarief.github.io/actuarydesk/\n\nDataset download for `math_economics_viz`: [dataset link](https://drive.google.com/drive/folders/1n8XRWpmX1tOz1Uu1PaT9gXv9Feu4-k5i?usp=sharing)\n\n---\n\nInstallation: `py -m pip install actuarydesk`\n\n---\n\nExample of using the `financial_math.py`: analysing the growth of money from investments made at time 0, 1, and 1.5 with amount of 100, 100, and 200 respectively.\nAssuming the interest rate is 0.04 annually for the first year and 0.03 semi-annually after that.\n\n```\n\nimport actuarydesk.financial_math as fm\n\ndeposits = [fm.Contribution(0, 100), \\\n            fm.Contribution(1, 100), \\\n            fm.Contribution(1.5, 200)]\nint_rates = [fm.InterestRate(0, 0.04, 'annual'), \\\n             fm.InterestRate(1, 0.03, 'semi-annual')]\ntimeline = fm.FinancialTL(deposits, int_rates)\n\nprint(timeline.acc_value_at_point(5))\ndynamics = timeline.acc_value_dynamics(5, 0.5)\ndynamics_df = timeline.acc_value_dynamics_df(5, 0.5)\npresent_value = timeline.value_at(0)\n\n```\n\nExample of generating a cashflow for a particular actuarial model: insured age 50 with a 15-year life insurance term, the benefit amount is 10000 \npayable at the end year of death, the level-premium are paid at beginning of each year until term ends or as long as survival.\n\n```\n\nimport actuarydesk.financial_math as fm\nimport actuarydesk.actuarial_tables as at\nimport actuarydesk.actuarial_math as am\n\ntable = at.UK_ONS_2016_to_2018_male\nint_rate = [fm.InterestRate(0, 0.05, 'annual')]\nx = 50; term = 15;\nbenefits = [am.Benefit(i, 10000) for i in range(x+1, x+term+1)]\nins_model = am.TermLifeInsurance(x, term, benefits, int_rate, table)\nmodel = am.ActuarialModel(ins_model, ['due', 'annual'], 2020)\nreserves = model.reserves_dynamics_df(0.5, 70)\ncashflow = model.cashflow_df(65)\n\n```\n---\n\nThe tables are collected from: https://www.ons.gov.uk/ , https://mort.soa.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbarief%2Factuarydesk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanbarief%2Factuarydesk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbarief%2Factuarydesk/lists"}