Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheme for configuration of damage functions within physrisk #312

Open
joemoorhouse opened this issue Jun 26, 2024 · 5 comments
Open

Scheme for configuration of damage functions within physrisk #312

joemoorhouse opened this issue Jun 26, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@joemoorhouse
Copy link
Collaborator

joemoorhouse commented Jun 26, 2024

It is desirable to be able to define for various asset types, the damage/disruption vulnerability functions that should be applied in the form of configuration. These functions in general describe the vulnerability curve (i.e. curve relating hazard indicator value to relative loss) and uncertainty in the curve.

This issue is to define conventions for specification of the vulnerability functions, in particular:

  • Asset naming schemes and
  • Scheme to map asset information onto curves that support a range of use cases: cases where asset attributes are known in detail; cases where asset specifics are unknown (including sectorial approaches)
@joemoorhouse joemoorhouse added the enhancement New feature or request label Jun 26, 2024
@joemoorhouse
Copy link
Collaborator Author

joemoorhouse commented Jun 26, 2024

In terms of conventions to adhere to, I suggest the following:

FYI, @xbarra, @MichaelTiemann, @EglantineGiraud, @devarfima, @NickKellett

@joemoorhouse
Copy link
Collaborator Author

I note that for different use-cases the ways to specify different vulnerability curves may vary.

  1. Asset-specific information available
    A user may want to
    a) Specify a set of asset attributes and have the system give the best match to the specification, e.g. occupancy_scheme, occupancy_code, number_of_storeys, first_floor_height for a real estate asset

@joemoorhouse joemoorhouse self-assigned this Jun 26, 2024
@NickKellett
Copy link

* We should use Open Exposure Data wherever possible (OED) https://github.com/OasisLMF/ODS_OpenExposureData/blob/develop/OpenExposureData/Docs/OpenExposureData_Spec.xlsx.

Should we have a similar ticket for standardizing the output, and if so would we ideally support Open Results Data (ORD) format there?

@xbarra
Copy link
Collaborator

xbarra commented Jul 3, 2024

@jmcano-arfima

@joemoorhouse
Copy link
Collaborator Author

joemoorhouse commented Jul 9, 2024

In terms of representing curves, I see (at least) 3 use-cases. Perhaps the most frequently-used case will be where we have the hazard intensity ($x$) values and the corresponding impact (damage/disruption) ($y$) values. This can be captured by $x$ and $y$ fields each containing an array. We can add a third $z$ field to capture information about the uncertainty in the vulnerability functions.

Case 1: deterministic damage curve provided

The hazard intensity values, $x_i$, are given, $i \in [1 \dots n]$ and the corresponding impacts $y_i$.

$x = [x_1, x_2, \dots, x_n]$
$y = [y_1, y_2, \dots, y_n]$
$z$ is empty

Case 2: mean and standard deviation provided

The hazard intensity values, $x_i$, are given, $i \in [1 \dots n]$.

$f_i(y) = \mathbb{P}(Y=y|x_i)$
$\mu_i = \int f_i(y) y dy$
$\sigma_i^2 = \int f_i(y) y^2 dy - \mu_i^2$

The means are given in $y$ and the standard deviations in $z$.

$x = [x_1, x_2, \dots, x_n ]$
$y = [\mu_1, \mu_2, \dots, \mu_n ]$
$z = [\sigma_1, \sigma_2, \dots, \sigma_n ]$

Case 3: discrete piece-wise linear cumulative density function (CDF) provided

The hazard intensity values, $x_i$, are given, $i \in [1 \dots n]$.

$F_i(y) = \mathbb{P}(Y \leq y|x_i)$

The CDF, $F_i(y)$, is given for points $y_j$, $j \in [1 \dots m]$.
$F_{ij} = \mathbb{P}(Y \leq y_i|x_i)$

$x = [x_1, x_2, \dots, x_n ]$
$y = [y_1, y_2, \dots, y_m ]$
$z = [[F_{11}, F_{12}, \dots, F_{1m}], [F_{21}, F_{12}, \dots, F_{2m}], \dots, [F_{n1}, F_{n2}, \dots, F_{nm}]]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants