Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Accounting & Audit Standards

SyntheticData includes comprehensive support for major accounting and auditing standards frameworks, enabling the generation of standards-compliant synthetic financial data suitable for audit analytics, compliance testing, and ML model training.

Overview

The datasynth-standards crate provides domain models and generation logic for:

CategoryStandards
AccountingUS GAAP (ASC), IFRS
AuditingISA (International Standards on Auditing), PCAOB
RegulatorySOX (Sarbanes-Oxley Act)

Accounting Framework Selection

Framework Options

accounting_standards:
  enabled: true
  framework: us_gaap  # Options: us_gaap, ifrs, dual_reporting
FrameworkDescription
us_gaapUnited States Generally Accepted Accounting Principles
ifrsInternational Financial Reporting Standards
dual_reportingGenerate data for both frameworks with reconciliation

Key Framework Differences

The generator automatically handles framework-specific rules:

AreaUS GAAPIFRS
Inventory costingLIFO permittedLIFO prohibited
Development costsGenerally expensedCapitalized when criteria met
PPE revaluationCost model onlyRevaluation model permitted
Impairment reversalNot permittedPermitted (except goodwill)
Lease classificationBright-line tests (75%/90%)Principles-based

Revenue Recognition (ASC 606 / IFRS 15)

Generate realistic customer contracts with performance obligations:

accounting_standards:
  revenue_recognition:
    enabled: true
    generate_contracts: true
    avg_obligations_per_contract: 2.0
    variable_consideration_rate: 0.15
    over_time_recognition_rate: 0.30
    contract_count: 100

Generated Entities

  • Customer Contracts: Transaction price, status, framework
  • Performance Obligations: Goods, services, licenses with satisfaction patterns
  • Variable Consideration: Discounts, rebates, incentives with constraint application
  • Revenue Recognition Schedule: Period-by-period recognition

5-Step Model Compliance

The generator follows the 5-step revenue recognition model:

  1. Identify the contract
  2. Identify performance obligations
  3. Determine transaction price
  4. Allocate transaction price to obligations
  5. Recognize revenue when/as obligations are satisfied

Lease Accounting (ASC 842 / IFRS 16)

Generate lease portfolios with ROU assets and lease liabilities:

accounting_standards:
  leases:
    enabled: true
    lease_count: 50
    finance_lease_percent: 0.30
    avg_lease_term_months: 60
    generate_amortization: true
    real_estate_percent: 0.40

Generated Entities

  • Leases: Classification, commencement date, term, payments, discount rate
  • ROU Assets: Initial measurement, accumulated depreciation, carrying amount
  • Lease Liabilities: Current/non-current portions
  • Amortization Schedules: Period-by-period interest and principal

Classification Logic

  • US GAAP: Bright-line tests (75% term, 90% PV)
  • IFRS: All leases (except short-term/low-value) recognized on balance sheet

Fair Value Measurement (ASC 820 / IFRS 13)

Generate fair value measurements across hierarchy levels:

accounting_standards:
  fair_value:
    enabled: true
    measurement_count: 30
    level1_percent: 0.60    # Quoted prices
    level2_percent: 0.30    # Observable inputs
    level3_percent: 0.10    # Unobservable inputs
    include_sensitivity_analysis: true

Fair Value Hierarchy

LevelDescriptionExamples
Level 1Quoted prices in active marketsListed stocks, exchange-traded funds
Level 2Observable inputsCorporate bonds, interest rate swaps
Level 3Unobservable inputsPrivate equity, complex derivatives

Impairment Testing (ASC 360 / IAS 36)

Generate impairment tests with framework-specific methodology:

accounting_standards:
  impairment:
    enabled: true
    test_count: 15
    impairment_rate: 0.20
    generate_projections: true
    include_goodwill: true

Framework Differences

  • US GAAP: Two-step test (recoverability then measurement)
  • IFRS: One-step test comparing to recoverable amount

ISA Compliance (Audit Standards)

Generate audit procedures mapped to ISA requirements:

audit_standards:
  isa_compliance:
    enabled: true
    compliance_level: comprehensive  # basic, standard, comprehensive
    generate_isa_mappings: true
    generate_coverage_summary: true
    include_pcaob: true
    framework: dual  # isa, pcaob, dual

Supported ISA Standards

The crate includes 34 ISA standards from ISA 200 through ISA 720:

SeriesFocus Area
ISA 200-265General principles and responsibilities
ISA 300-450Risk assessment and response
ISA 500-580Audit evidence
ISA 600-620Using work of others
ISA 700-720Conclusions and reporting

Analytical Procedures (ISA 520)

Generate analytical procedures with variance investigation:

audit_standards:
  analytical_procedures:
    enabled: true
    procedures_per_account: 3
    variance_probability: 0.20
    generate_investigations: true
    include_ratio_analysis: true

Procedure Types

  • Trend analysis: Year-over-year comparisons
  • Ratio analysis: Key financial ratios
  • Reasonableness tests: Expected vs. actual comparisons

External Confirmations (ISA 505)

Generate confirmation procedures with response tracking:

audit_standards:
  confirmations:
    enabled: true
    confirmation_count: 50
    positive_response_rate: 0.85
    exception_rate: 0.10

Confirmation Types

  • Bank confirmations
  • Accounts receivable confirmations
  • Accounts payable confirmations
  • Legal confirmations

Audit Opinion (ISA 700/705/706/701)

Generate audit opinions with key audit matters:

audit_standards:
  opinion:
    enabled: true
    generate_kam: true
    average_kam_count: 3

Opinion Types

  • Unmodified
  • Qualified
  • Adverse
  • Disclaimer

SOX Compliance

Generate SOX 302/404 compliance documentation:

audit_standards:
  sox:
    enabled: true
    generate_302_certifications: true
    generate_404_assessments: true
    materiality_threshold: 10000.0

Section 302 Certifications

  • CEO and CFO certifications
  • Disclosure controls effectiveness
  • Material weakness identification

Section 404 Assessments

  • ICFR effectiveness assessment
  • Key control testing
  • Deficiency classification matrix

Deficiency Classification

The DeficiencyMatrix classifies deficiencies based on:

LikelihoodMagnitudeClassification
ProbableMaterialMaterial Weakness
Reasonably PossibleMore Than InconsequentialSignificant Deficiency
RemoteInconsequentialControl Deficiency

PCAOB Standards

Generate PCAOB-specific audit elements:

audit_standards:
  pcaob:
    enabled: true
    generate_cam: true
    integrated_audit: true

PCAOB-Specific Requirements

  • Critical Audit Matters (CAMs) vs. Key Audit Matters (KAMs)
  • Integrated audit (ICFR + financial statements)
  • AS 2201 ICFR testing requirements

Evaluation and Validation

The datasynth-eval crate includes standards compliance evaluators:

#![allow(unused)]
fn main() {
use datasynth_eval::coherence::{
    StandardsComplianceEvaluation,
    RevenueRecognitionEvaluator,
    LeaseAccountingEvaluator,
    StandardsThresholds,
};

// Evaluate revenue recognition compliance
let eval = RevenueRecognitionEvaluator::evaluate(&contracts);
assert!(eval.po_allocation_compliance >= 0.95);

// Evaluate lease classification accuracy
let eval = LeaseAccountingEvaluator::evaluate(&leases, "us_gaap");
assert!(eval.classification_accuracy >= 0.90);
}

Compliance Thresholds

MetricDefault Threshold
PO allocation compliance95%
Revenue timing compliance95%
Lease classification accuracy90%
ROU asset accuracy95%
Fair value hierarchy compliance95%
ISA coverage90%
SOX control coverage95%
Audit trail completeness90%

Output Files

When standards generation is enabled, additional files are exported:

output/
└── standards/
    ├── accounting/
    │   ├── customer_contracts.csv
    │   ├── performance_obligations.csv
    │   ├── variable_consideration.csv
    │   ├── revenue_recognition_schedule.csv
    │   ├── leases.csv
    │   ├── rou_assets.csv
    │   ├── lease_liabilities.csv
    │   ├── lease_amortization.csv
    │   ├── fair_value_measurements.csv
    │   ├── impairment_tests.csv
    │   └── framework_differences.csv
    ├── audit/
    │   ├── isa_requirement_mappings.csv
    │   ├── isa_coverage_summary.csv
    │   ├── analytical_procedures.csv
    │   ├── variance_investigations.csv
    │   ├── confirmations.csv
    │   ├── confirmation_responses.csv
    │   ├── audit_opinions.csv
    │   ├── key_audit_matters.csv
    │   ├── audit_trails.json
    │   └── pcaob_mappings.csv
    └── regulatory/
        ├── sox_302_certifications.csv
        ├── sox_404_assessments.csv
        ├── deficiency_classifications.csv
        └── material_weaknesses.csv

Use Cases

Audit Analytics Training

Generate labeled data for training audit analytics models with known standards compliance levels.

Compliance Testing

Test compliance monitoring systems with synthetic data covering all major accounting and auditing standards.

IFRS to US GAAP Reconciliation

Use dual reporting mode to generate reconciliation data for multi-framework analysis.

SOX Testing

Generate internal control data with known deficiencies for testing SOX monitoring systems.

See Also