casino / docs /VALIDATION.md
Rikardnilsson's picture
Publish validated Askersund Casno OCEL 2.0 and ML fixture
259e3d4 verified
|
Raw History Blame Contribute Delete
3.68 kB

Validation Methodology

The release is fail-closed: generation and publication are not considered successful when a mandatory check fails.

Core generator validation

  1. OCEL structure — JSON Schema validation with ISO date-time checking.
  2. OCEL semantics — declared attribute types, unique identifiers, valid relationships, chronological event order, recorded-time causality, and consecutive sequence numbers.
  3. Accounting — zero transaction imbalance and exact replay of every stored posting balance.
  4. Game accounting — settled-round net-result equations and zero-result aborted rounds.
  5. Theoretical mathematics — exact fixed-paytable slot RTP and European roulette RTP.
  6. Foreign keys — every ledger transaction references an exported event.
  7. Ground-truth isolation — forbidden truth fields are absent from operational/OCEL outputs.
  8. ML structure — nonempty point-in-time tables and valid split assignments.
  9. SQLite integrity — clean SQLite foreign-key check and JSON/SQLite entity-count equality.
  10. Empirical game returns — predeclared tolerance based on sample size, with theoretical and observed values both reported.

Independent exported-artifact audit

audit_askersund.py rereads the delivered files rather than trusting generator state. It checks:

  • Presence of payment, bonus, mixed-wallet, KYC, rejection, split-payment, chargeback, AML, RG, self-exclusion, and aborted-round scenarios.
  • Withdrawal-hold reconciliation for paid, rejected, and still-open requests.
  • Exported round-event balance attributes against exported ledger postings.
  • Compensating-entry links for aborted rounds.
  • Process-mining context and bounded event/object graph fan-out.
  • Positive examples for RG, AML, and churn targets; fully observed churn windows.
  • Deposit heterogeneity using overall unique-amount coverage and median within-player coefficient of variation, with observed SEK quantiles published.
  • Same-day feature availability for every label cutoff and player-disjoint group assignments.
  • Swedish fictional-name population and operational/truth population equality.
  • Executable DuckDB queries for daily losses, deposit spikes, and low-turnover withdrawals.
  • SQLite foreign keys and JSON/SQLite entity equality.
  • External PM4Py OCEL 2.0 SQLite import and all 24 relational constraints. PM4Py can represent timestamped object changes as multiple object-table rows, so object identity is audited using unique ocel:oid, not raw snapshot-row count.
  • Integer physical Parquet types for monetary columns.
  • Repeated-run determinism: byte equality for exported files plus schema and canonical sorted-content equality for every DuckDB table.

Statistical interpretation

Theoretical RTP is a property of the declared game distribution. Empirical RTP is a sample statistic and varies between seeds. A narrow RTP assertion on a tiny fixture would be statistically dishonest, so the validator uses a predeclared sample-size-dependent tolerance and reports the actual rounds, stake, payout, and tolerance.

Process-mining schema conformance does not establish casino accounting correctness, and accounting correctness does not establish behavioral realism. These are separate validation layers.

External-validity boundary

Passing every check means the dataset is deterministic, internally consistent, queryable, and interoperable. It does not establish that base rates match a real casino, that RG labels are clinical diagnoses, that AML scenarios represent all typologies, or that the workflows constitute legal certification. Those limitations remain explicit in the dataset card.