{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Uncertainty\n", "\n", "This notebook examines uncertainty in Atomica, going through\n", "\n", "- How uncertainty in model inputs is entered\n", "- How to perform simulations that are sampled from the distribution of parameters with uncertainty\n", "- How to perform analyses that incorporate uncertainty\n", "\n", "## Specifying uncertainty\n", "\n", "Fundamentally, uncertainty enters Atomica via the data entry spreadsheets. Both the databook and program book have columns that can be used to enter uncertainty. \n", "\n", "In the databook, uncertainty can be added to any TDVE table - that is, any of the sub-tables within the databook for each quantity. By default, those columns are not produced when the databook is written e.g. with \n", "\n", " proj.data.save('databook.xlsx')\n", " \n", "If you want to include those columns, use the `write_uncertainty` options:\n", "\n", " proj.data.save('databook.xlsx',write_uncertainty=True)\n", " \n", "This will add an 'uncertainty' column to all tables in the databook. If you only want to add uncertainty to a small number of quantities, you can simply insert an extra column for the tables that you want to add uncertainty to, by selecting the other cells and moving them over. The example below shows how an uncertainty column has been added to the 'Screened people' table and not to the 'All people with condition' table:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "![image1](assets/databook_uncertainty.png)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "