Spaces:
Running
Running
Update app.py
Browse files
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
|
21 |
-
var_level
|
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.
|