Options
All
  • Public
  • Public/Protected
  • All
Menu

Multiplicative seasonality in the price index (CPI/RPI/HICP/etc).

Stationary multiplicative seasonality in CPI/RPI/HICP (i.e. in price) implies that zero inflation swap rates are affected, but that year-on-year inflation swap rates show no effect. Of course, if the seasonality in CPI/RPI/HICP is non-stationary then both swap rates will be affected.

Factors must be in multiples of the minimum required for one year, e.g. 12 for monthly, and these factors are reused for as long as is required, i.e. they wrap around. So, for example, if 24 factors are given this repeats every two years. True stationary seasonality can be obtained by giving the same number of factors as the frequency dictates e.g. 12 for monthly seasonality.

warning Multi-year seasonality (i.e. non-stationary) is fragile: the user must ensure that corrections at whole years before and after the inflation term structure base date are the same. Otherwise there can be an inconsistency with quoted rates. This is enforced if the frequency is lower than daily. This is not enforced for daily seasonality because this will always be inconsistent due to weekends, holidays, leap years, etc. If you use multi-year daily seasonality it is up to you to check.

note Factors are normalized relative to their appropriate reference dates. For zero inflation this is the inflation curve true base date: since you have a fixing for that date the seasonality factor must be one. For YoY inflation the reference is always one year earlier.

Seasonality is treated as piecewise constant, hence it works correctly with uninterpolated indices if the seasonality correction factor frequency is the same as the index frequency (or less).

Hierarchy

Index

Constructors

constructor

Properties

Private _frequency

_frequency: Frequency

Private _seasonalityBaseDate

_seasonalityBaseDate: Date

Private _seasonalityFactors

_seasonalityFactors: Rate[]

Methods

correctYoYRate

correctZeroRate

frequency

  • Returns Frequency

isConsistent

seasonalityBaseDate

  • seasonalityBaseDate(): Date
  • Returns Date

Protected seasonalityCorrection

  • seasonalityCorrection(rate: Rate, atDate: Date, dc: DayCounter, curveBaseDate: Date, isZeroRate: boolean): Rate
  • Parameters

    • rate: Rate
    • atDate: Date
    • dc: DayCounter
    • curveBaseDate: Date
    • isZeroRate: boolean

    Returns Rate

seasonalityFactor

  • seasonalityFactor(to: Date): Rate
  • Parameters

    • to: Date

    Returns Rate

seasonalityFactors

  • seasonalityFactors(): Rate[]
  • Returns Rate[]

set

  • set(seasonalityBaseDate: Date, frequency: Frequency, seasonalityFactors: Rate[]): void
  • Parameters

    • seasonalityBaseDate: Date
    • frequency: Frequency
    • seasonalityFactors: Rate[]

    Returns void

Protected validate

  • validate(): void
  • Returns void