Track D chapter index (PyPI)
This page is a “table of contents” for running Track D from the PyPI workbook.
Track D is the “big picture” track: you’re learning how to do statistics on accounting data (not toy datasets) in a way that is repeatable, testable, and usable on your own books. The workflow loop is the same in every chapter: start from accounting tables (canonical demos or your own exports), normalize them into a consistent GL contract (see Track D BYOD: Bring Your Own Data), validate the structure, then analyze with scripts that produce tidy CSVs, figures, and short JSON/MD summaries. In the PyPI workbook you run chapters with pystatsv1 workbook run dXX and outputs land under outputs/track_d/ (see Track D Outputs Guide). When you bring your own data, you use the BYOD pipeline (export → tables/ → normalize → normalized/ → analyze); start at Track D BYOD: Bring Your Own Data and Track D Playbook: Big Picture for the end-to-end “how it all fits together.” Keep asking one question as you go: what does this accounting structure measure, and what statistical summary answers a real decision problem?
After you’ve initialized a Track D workbook:
pystatsv1 workbook init --track d --dest track_d_workbook
cd track_d_workbook
You can run any chapter with:
pystatsv1 workbook run d01
By default, scripts write to outputs/track_d/. See Track D Outputs Guide.
D00PEEKDATA — peek at the (canonical) datasets.
Run:
pystatsv1 workbook run d00_peek_data
Expected artifacts (written under outputs/track_d/):
d00_peek_data_summary.md
D00SETUPDATA — (re)generate the synthetic datasets.
Run:
pystatsv1 workbook run d00_setup_data
Expected artifacts (written under outputs/track_d/):
data/synthetic/ledgerlab_ch01/ (LedgerLab seed=123 tables)data/synthetic/nso_v1/ (NSO v1 seed=123 tables)outputs/track_d/d00_setup_data_validate/ (optional validation artifacts)
D01 — Accounting as a measurement system.
Run:
pystatsv1 workbook run d01
Expected artifacts (written under outputs/track_d/):
business_ch01_cash_balance.pngbusiness_ch01_balance_sheet_bar.pngbusiness_ch01_summary.json
Read the chapter narrative (main docs): D01 narrative
D02 — Double-entry and the general ledger as a database.
Run:
pystatsv1 workbook run d02
Expected artifacts (written under outputs/track_d/):
business_ch02_gl_tidy.csvbusiness_ch02_trial_balance.csvbusiness_ch02_account_rollup.csvbusiness_ch02_tb_by_account.pngbusiness_ch02_summary.json
Read the chapter narrative (main docs): D02 narrative
D03 — Financial statements as summary statistics.
Run:
pystatsv1 workbook run d03
Expected artifacts (written under outputs/track_d/):
business_ch03_summary.jsonbusiness_ch03_statement_bridge.csvbusiness_ch03_trial_balance.csvbusiness_ch03_net_income_vs_cash_change.png
Read the chapter narrative (main docs): D03 narrative
D04 — Assets: inventory, fixed assets, depreciation (and leases, conceptual).
Run:
pystatsv1 workbook run d04
Expected artifacts (written under outputs/track_d/):
business_ch04_inventory_rollforward.csvbusiness_ch04_margin_bridge.csvbusiness_ch04_depreciation_rollforward.csvbusiness_ch04_summary.jsonbusiness_ch04_gross_margin_over_time.pngbusiness_ch04_depreciation_over_time.png
Read the chapter narrative (main docs): D04 narrative
D05 — Liabilities, payroll, taxes, and equity: obligations and structure.
Run:
pystatsv1 workbook run d05
Expected artifacts (written under outputs/track_d/):
business_ch05_summary.jsonbusiness_ch05_wages_payable_rollforward.csvbusiness_ch05_payroll_taxes_payable_rollforward.csvbusiness_ch05_sales_tax_payable_rollforward.csvbusiness_ch05_notes_payable_rollforward.csvbusiness_ch05_accounts_payable_rollforward.csvbusiness_ch05_liabilities_over_time.png
Read the chapter narrative (main docs): D05 narrative
D06 — Reconciliations as quality control.
Run:
pystatsv1 workbook run d06
Expected artifacts (written under outputs/track_d/):
ar_rollforward.csvbank_recon_matches.csvbank_recon_exceptions.csvch06_summary.json
Read the chapter narrative (main docs): D06 narrative
D07 — Preparing accounting data for analysis.
Run:
pystatsv1 workbook run d07
Expected artifacts (written under outputs/track_d/):
gl_tidy.csvgl_monthly_summary.csvch07_summary.json
Read the chapter narrative (main docs): D07 narrative
D08 — Descriptive statistics for financial performance.
Run:
pystatsv1 workbook run d08
Expected artifacts (written under outputs/track_d/):
gl_kpi_monthly.csvar_monthly_metrics.csvar_payment_slices.csvar_days_stats.csvch08_summary.json
Read the chapter narrative (main docs): D08 narrative
D09 — Plotting/reporting style contract + example outputs.
Run:
pystatsv1 workbook run d09
Expected artifacts (written under outputs/track_d/):
figures/ch09_style_contract.jsonch09_figures_manifest.csvch09_executive_memo.mdch09_summary.json
Read the chapter narrative (main docs): D09 narrative
D10 — Probability and Risk in Business Terms.
Run:
pystatsv1 workbook run d10
Expected artifacts (written under outputs/track_d/):
figures/ch10_figures_manifest.csvch10_risk_memo.mdch10_risk_summary.json
Read the chapter narrative (main docs): D10 narrative
D11 — Sampling and Estimation (Audit and Controls Lens).
Run:
pystatsv1 workbook run d11
Expected artifacts (written under outputs/track_d/):
figures/ch11_sampling_plan.jsonch11_sampling_summary.jsonch11_audit_memo.mdch11_figures_manifest.csv
Read the chapter narrative (main docs): D11 narrative
D12 — Hypothesis Testing for Decisions (Practical, Not Math-Heavy).
Run:
pystatsv1 workbook run d12
Expected artifacts (written under outputs/track_d/):
figures/ch12_experiment_design.jsonch12_hypothesis_testing_summary.jsonch12_experiment_memo.mdch12_figures_manifest.csv
Read the chapter narrative (main docs): D12 narrative
D13 — Correlation, Causation, and Controlled Comparisons (NSO running case).
Run:
pystatsv1 workbook run d13
Expected artifacts (written under outputs/track_d/):
figures/ch13_controlled_comparisons_design.jsonch13_correlation_summary.jsonch13_correlation_memo.mdch13_figures_manifest.csv
Read the chapter narrative (main docs): D13 narrative
D14 — Regression Driver Analysis (NSO).
Run:
pystatsv1 workbook run d14
Read the chapter narrative (main docs): D14 narrative
D15 — Forecasting foundations (NSO).
Run:
pystatsv1 workbook run d15
Read the chapter narrative (main docs): D15 narrative
D16 — Seasonality and baseline forecasts (NSO).
Run:
pystatsv1 workbook run d16
Read the chapter narrative (main docs): D16 narrative
D17 — Revenue forecasting via segmentation + drivers (NSO v1).
Run:
pystatsv1 workbook run d17
Expected artifacts (written under outputs/track_d/):
figures/ch17_ar_revenue_segment_monthly.csvch17_series_monthly.csvch17_customer_segments.csvch17_backtest_metrics.csvch17_backtest_total_revenue.csvch17_forecast_next12.csvch17_memo.mdch17_design.jsonch17_known_events_template.jsonch17_figures_manifest.csvch17_manifest.jsonch17_forecast_next_12m.csvch17_forecast_memo.md
Read the chapter narrative (main docs): D17 narrative
D18 — Expense forecasting (NSO running case).
Run:
pystatsv1 workbook run d18
Expected artifacts (written under outputs/track_d/):
figures/ch18_expense_monthly_by_account.csvch18_expense_behavior_map.csvch18_payroll_monthly.csvch18_payroll_scenarios_forecast.csvch18_expense_forecast_next12_detail.csvch18_expense_forecast_next12_summary.csvch18_control_plan_template.csvch18_design.jsonch18_memo.mdch18_figures_manifest.csv
Read the chapter narrative (main docs): D18 narrative
D19 — Cash flow forecasting (direct method, 13-week).
Run:
pystatsv1 workbook run d19
Expected artifacts (written under outputs/track_d/):
figures/ch19_cash_history_weekly.csvch19_cash_forecast_13w_scenarios.csvch19_cash_assumptions.csvch19_cash_governance_template.csvch19_design.jsonch19_memo.mdch19_figures_manifest.csv
Read the chapter narrative (main docs): D19 narrative
D20 — Integrated forecasting (P&L + balance sheet + cash tie-out).
Run:
pystatsv1 workbook run d20
Expected artifacts (written under outputs/track_d/):
figures/ch20_pnl_forecast_monthly.csvch20_balance_sheet_forecast_monthly.csvch20_cash_flow_forecast_monthly.csvch20_assumptions.csvch20_design.jsonch20_memo.mdch20_figures_manifest.csv
Read the chapter narrative (main docs): D20 narrative
D21 — scenario planning, sensitivity, and stress testing.
Run:
pystatsv1 workbook run d21
Expected artifacts (written under outputs/track_d/):
figures/ch21_scenario_pack_monthly.csvch21_sensitivity_cash_shortfall.csvch21_assumptions.csvch21_governance_template.csvch21_figures_manifest.csvch21_design.jsonch21_memo.md
Read the chapter narrative (main docs): D21 narrative
D22 — Financial statement analysis toolkit.
Run:
pystatsv1 workbook run d22
Expected artifacts (written under outputs/track_d/):
figures/ch22_ratios_monthly.csvch22_common_size_is.csvch22_common_size_bs.csvch22_variance_bridge_latest.csvch22_assumptions.csvch22_figures_manifest.csvch22_memo.mdch22_design.json
Read the chapter narrative (main docs): D22 narrative
D23 — Communicating results (memos, dashboards, governance).
Run:
pystatsv1 workbook run d23
Expected artifacts (written under outputs/track_d/):
ch23_memo_template.mdch23_kpi_governance_template.csvch23_dashboard_spec_template.csvch23_red_team_checklist.mdch23_design.json
Read the chapter narrative (main docs): D23 narrative