View source: R/04_option_pricing.R
| price_weather_option | R Documentation |
Evaluates fair values and Monte Carlo standard errors for HDD and CDD Call Options.
price_weather_option(
temp_paths,
strike,
type = c("HDD", "CDD"),
r = 0.04,
base_temp = 18
)
temp_paths |
Matrix of simulated temperature paths from simulate_weather_paths. |
strike |
Strike index level K. |
type |
Option contract type: "HDD" or "CDD". |
r |
Risk-free discount rate (default 0.04). |
base_temp |
Threshold index baseline (default 18.0 deg C). |
A list containing estimated price, standard error, and index distribution metrics.
paths <- simulate_weather_paths(n_paths = 100, days = 90)
hdd_opt <- price_weather_option(paths, strike = 500, type = "HDD")
print(hdd_opt$price)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.