tree: d59aed1a1ed62c8010a643e28a0fa12f4124bc16 [path history] [tgz]
  1. base_dates.py
  2. notebook.ipynb
  3. probabilities.py
  4. probability_estimation.py
  5. README.md
examples/due_date_probabilities/README.md

Modeling Pregnancy Due Dates using Hamilton

This is an example of developing and applying a simple statistical model using Hamilton for a very common problem. What is the probability that a baby will be born (before, on, after) X date?

You can find the notebook on google collab here:

You can read the full description in the post.

In this, you'll find the following files:

  1. notebook.ipynb - The Jupyter notebook that walks through the process of developing/running the model.
  2. [base_dates.py] -- a Hamilton module that generates date-related series
  3. [probability_estimation.py] -- a Hamilton module that computes a statistical model (estimating parameters for probability due dates)
  4. [probabilities.py] -- a Hamilton module that runs that model over a set of dates

Run the notebook to see the process of developing the model and running it.