module exams.ex2016

Short summary

module actuariat_python.exams.ex2016

Dummy data for 2016

source on GitHub

Functions

function

truncated documentation

enumerate_appointments

enumerate a list of appointments for a given list of ids

enumerate_person

enumerate a person randomly chosen

Documentation

Dummy data for 2016

source on GitHub

actuariat_python.exams.ex2016.enumerate_appointments(persons, nb=(1, 4), price=(60.0, 120.0), first_date=None, end_date=None, formula=None)[source]

enumerate a list of appointments for a given list of ids

Paramètres
  • persons – list of persons

  • nb – range for the number of appointments

  • price – range for prices

  • begin_date – first date (or now - 2 months)

  • end_date – end date (or now)

  • formula – formula for the prices of the appointments

Renvoie

enumerator of dictionaries

source on GitHub

actuariat_python.exams.ex2016.enumerate_person(hf=0.5, age=(18, 60), n=100)[source]

enumerate a person randomly chosen

Paramètres
  • hf – proportion of men

  • age – range for age

  • n – number of person to generate

Renvoie

enumerator of dictionaries

source on GitHub