19.3.10 Model and source code

The Python model makes the calculations behind these comparisons available for inspection. The source pages show the actual code with syntax highlighting and provide individual downloads. The source index lists all published files; download the complete source and data bundle to run the calculations locally.

Code used for the chapter's calculations

FilePurpose
calibration.pyPopulation age weights, income base, and the UBI and service funding pools.
emtr.pyAustralian taxes and interacting benefits, VoTa household calculations, and EMTR, ETR and purchasing-power plots.
family_comparison.pyHousehold comparisons, including zero earnings and one parent earning $30,000.
purchasing_power_preview.pyThe ten purchasing-power plots for one or two adults with zero to four children.
build_svgs.pyGeneration and publication of the standard plots within the website repository.
test_ubi.pyChecks of demographic accounting, Australian payment interactions and household comparisons.

The default rates are 0.30 for UBI and 0.22 for services. The calibration divides the UBI pool by the population's age weights. The Australian model applies the tax and benefit rules to each household; the plotting functions then express the results on the price basis described in 19.3.1 Methodology. The household table functions enumerate child-age combinations to obtain ranges, rather than treating every family of a given size as identical.

Data and tests

The data notes describe the ABS inputs, source references and modelling assumptions. The bundle includes the population CSV, income and calibration JSON files, and all accompanying tests. Tests check pool conservation, age weights, tax and payment boundaries, benefit interactions and household calculations.

Running the calculations

Extract the bundle into a directory and run these commands from that directory with Python 3:

python3 -m pip install numpy matplotlib scipy
python3 calibration.py
python3 family_comparison.py
python3 -m unittest discover -p 'test_*.py'
python3 emtr.py

The first two scripts print funding amounts and family examples. The tests check the model, and emtr.py writes the standard plots into a local svg directory. The website's publication scripts additionally copy plots into its document directories and are intended to run within the repository.

The headline table ranges are available through household_table_rows() and part_time_table_rows() in family_comparison.py. Each row contains the numbers of parents and children, the minimum and maximum VoTa cash amounts, and the minimum and maximum Australian buying-power results with their child ages. Multiply the VoTa cash amounts by 0.528 to express buying power at Australian advertised prices. The part-time rows include the $30,000 earnings.

from family_comparison import household_table_rows, part_time_table_rows

for rows in (household_table_rows(), part_time_table_rows()):
    for parents, children, vmin, vmax, amin, amax in rows:
        print(parents, children, vmin, vmax, 0.528 * vmin, 0.528 * vmax,
              amin[0], amax[0])

Exploratory population models

These files investigate aggregate income distributions, family demographics and national accounts. They are separate from the household schedules that produce the chapter's plots and tables:

Sources and reproducibility

The accompanying Python calculation stores the ABS age counts and income-series identifiers, and uses the same age-weighted UBI for every chart. Australian payment parameters come from the archived July 2025 payment guide. Tax parameters follow the ATO resident income-tax rates, low-income tax offset, and 2025 Australian TaxBEN policy description. Medicare thresholds use the 2025–26 thresholds enacted in June 2026. This combines frozen July 2025 benefit rates with final 2025–26 annual tax rules; it is not a claim that benefits remained unchanged throughout that financial year.