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:
- notebook.ipynb - The Jupyter notebook that walks through the process of developing/running the model.
- [base_dates.py] -- a Apache Hamilton module that generates date-related series
- [probability_estimation.py] -- a Apache Hamilton module that computes a statistical model (estimating parameters for probability due dates)
- [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.