Skip to content

Return full seasonal state vector from smoother to eliminate post-period approximation #12

Description

@YuminosukeSato

Context

The current implementation reconstructs the seasonal state [s_2, ..., s_{S-1}] from s1_obs_pre history for post-period propagation (sampler.rs L574-586). This is an approximation because process noise η accumulates in the smoother draws.

Problem

When sigma2_seasonal is large, the reconstruction from past s1_obs values diverges from the actual smoother state. This could affect CI parity in high-noise seasonal scenarios.

Proposed fix

Modify local_level_seasonal_smoother() to return the full state vector at t = pre_end - 1 (S-dimensional) alongside levels and s1_obs. Use this exact state as the starting point for post-period propagation.

Impact

Eliminates approximation error in post-period seasonal predictions. May improve R parity for edge cases.

Estimated effort

Medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions