tiantian-paris commited on
Commit
d030ea8
·
verified ·
1 Parent(s): 9ffa21c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ def calculate_historical_var(returns: np.ndarray, var_level: float = 0.95) -> fl
17
  Calculate the Value at Risk (VaR) using the historical method.
18
 
19
  Parameters:
20
- returns (np.ndarray): Array of daily returns.
21
- var_level (float): VaR level (e.g., 0.95 for 95%).
22
 
23
  Returns:
24
  float: VaR value.
 
17
  Calculate the Value at Risk (VaR) using the historical method.
18
 
19
  Parameters:
20
+ returns: Array of daily returns.
21
+ var_level: VaR level (e.g., 0.95 for 95%).
22
 
23
  Returns:
24
  float: VaR value.