Skip to content

Latest commit

 

History

287 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GINSIM: Genetic Information Non-Discrimination Policy Integrated Economic Evaluation

Deployment Status License Python Version

GINSIM is a research-grade, reproducible modelling framework designed to quantify the economic and welfare impacts of policies that restrict genetic discrimination in life insurance. It provides a policy-analysis and reviewer-auditable workflow with a primary focus on the Australian and Aotearoa New Zealand contexts.


🚀 Key Features

Feature Description
High Performance JAX Backend Leverages JAX and XLA for high-speed, vectorized Monte Carlo simulations and gradient-based optimization.
Canonical Policy Benchmarks Active benchmark comparators are status_quo, moratorium, and ban, with additional international scenarios treated as exploratory unless explicitly promoted.
Distributional Equity Metrics Implements Distributional Cost-Benefit Analysis (DCBA) to assess impacts across risk quintiles and Indigenous populations.
Game-Theoretic Framework Models strategic interactions between insurers and applicants, including Nash equilibria in enforcement and adversarial re-optimization on proxy data.
Interactive Dashboard A Streamlit-based visualization tool for real-time policy "sandbox" exploration and sensitivity analysis.

📖 About the Research

This repository supports research into the complex trade-offs between consumer protection and insurance market stability. By modelling the "Information Leakage" from proxy variables (like family history) and the "Scientific Loss" from research participation deterrence, GINSIM provides a comprehensive view of the societal value of genetic non-discrimination laws.

The model is calibrated against structured evidence registers, with active assumptions and transfer decisions tracked in the repository context and reference-validation surfaces. Reviewer-facing documentation should be preferred over older milestone notes when interpreting current readiness.


🛠️ Quick Start (Local)

  1. Create an environment (recommended: conda or venv):
    python -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
  2. Install dependencies:
    pip install -e .
  3. Run the Dashboard:
    streamlit run streamlit_app/app.py

🔬 Scientific Core

The model is structured to mirror the policy causal pathway:

  1. Behavioral Response (Module A): Located in src/model/module_a_behavior.py. Models individual testing decisions under different legal protections.
  2. Insurance Equilibrium (Module C): Located in src/model/module_c_insurance_eq.py. Computes Rothschild-Stiglitz screening equilibria and adverse selection magnitude.
  3. Proxy Reconstruction (Module D): Located in src/model/module_d_proxy.py. Simulates insurer use of non-genetic data to bypass information restrictions.
  4. Enforcement Game (Module E): Located in src/model/module_enforcement.py. Models strategic compliance between insurers and regulators.
  5. Welfare Ledger (DCBA): Located in src/model/dcba_ledger.py. Aggregates stakeholder impacts into a unified distributional cost-benefit analysis.

📊 Reproducibility & Peer Review

This repository is designed for bit-for-bit reproducibility using JAX and deterministic seeds.

Objective Command / Path
Full Policy Run python -m scripts.run_meta_pipeline --n_draws 2000
Figure Generation python -m scripts.generate_figures
Reference Audit python -m scripts.validate_references --report
Logic Verification pytest tests/test_economic_logic.py

📁 Repository Structure

  • src/ — Core JAX/NumPyro modelling engine and logic proof scripts.
  • streamlit_app/ — Live policy sandbox and evidence explorer.
  • configs/ — Calibrated priors and policy benchmark definitions.
  • protocols/ — Versioned research protocols (v2.0 Diamond Standard).
  • docs/ — Model cards, reproduction reports, and technical appendices.
  • local_only/ — (Developer only) Internal decision logs and development journal.

⚖️ License & Citation


Author: Dylan A Mordaunt Affiliation: Research Fellow, Faculty of Health, Education and Psychology, Victoria University of Wellington Live App: https://ginsim.streamlit.app/

About

GINSIM: Genetic Information Non-Discrimination Policy Economic Evaluation

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages