Skip to content

Commit

Permalink
fix: typo in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincyi committed Jan 5, 2023
1 parent 7034a8e commit f5c5dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fpm_risk_model/accuracy/value_at_risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def compute_value_at_risk_breach_statistics(
def compute_value_at_risk_rolling_breach_statistics(
X: ndarray,
weights: ndarray,
rolling_timeframes: int,
rolling_timeframe: int,
rolling_risk_model: Optional[RollingFactorRiskModel] = None,
forecast_vols: Optional[Series] = None,
threshold: Optional[float] = 0.95,
Expand All @@ -124,7 +124,7 @@ def compute_value_at_risk_rolling_breach_statistics(
respectively. The weights should be normalized, i.e.
sum to one for each time frame.
rolling_timeframes: int
rolling_timeframe: int
The number of rolling time frames to compute the percentage
of returns breaching the specified VaR.
Expand All @@ -146,6 +146,6 @@ def compute_value_at_risk_rolling_breach_statistics(
threshold=threshold,
)
return (
breach_statistics.rolling(rolling_timeframes, min_periods=min_periods).sum()
/ rolling_timeframes
breach_statistics.rolling(rolling_timeframe, min_periods=min_periods).sum()
/ rolling_timeframe
)

0 comments on commit f5c5dab

Please sign in to comment.