Skip to content

HistoricalDecompositionResult.hdi() computes the HDI of baseline and discards it #263

Description

@thomaspinder

Severity: P3
Location: src/impulso/results.py:374

Description

Passing the whole Dataset to az.hdi wastes 16–20% of the call; the single-DataArray pattern used by its siblings is bit-identical.

Suggested fix

Pass posterior_predictive["hd"].


Found by the 2026-07-29 adversarial audit (reports/audit-2026-07-29.md); every finding was independently verified with a reproduction before filing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalInternal improvements (refactor, test, chore)perfPerformance

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions