tree: 52f3a45388bddcf223627ec70b6f9874d78ebb70 [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 Apache Hamilton

This is an example of developing and applying a simple statistical model using Apache 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 Apache Hamilton module that generates date-related series
  3. [probability_estimation.py] -- a Apache Hamilton module that computes a statistical model (estimating parameters for probability due dates)
  4. [probabilities.py] -- a Apache 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.