qis.compute_fx_vol_beta¶
- qis.compute_fx_vol_beta(asset_price_local_ccy, local_to_reference_fx_rate, freq='ME', span=36)[source]¶
EWMA FX volatility and the asset’s beta to the FX leg.
Decomposes the asset into local and FX log-return legs, then estimates the exponentially-weighted FX volatility and the EWMA beta of the local return on the FX return. These feed the mean-variance hedge in
compute_fx_optimal_hedge(the beta-hedge term is1 + fx_beta).- Parameters:
asset_price_local_ccy (Series) – Asset price quoted in its local currency.
local_to_reference_fx_rate (Series) – Units of reference currency per 1 unit of the local currency.
freq (str) – Resampling frequency for the underlying returns (e.g.
'ME').span (int) – EWMA span in periods of
freq(default 36, i.e. 3 years monthly).
- Returns:
annualised FX volatility and the EWMA beta of the local return on the FX return. Both are point in time: the beta’s FX variance is seeded with the first squared FX return (up to qis 5.30.3 with the full-sample mean square) and its cross moment with zero. The volatility recursion is seeded with
0.08 ** 2 / af, an 8% annual volatility atfreq.- Return type:
Tuple
(fx_vol, fx_beta)of Series atfreq