Skip to contents

The piecewise linear distribution function through the points (x, cdf), the usual reading of grouped loss data (losses uniform within each band), as in Pricing Insurance Risk, Exercise 50. ogive_from_counts() builds one from counts[k] losses between bounds[k] and bounds[k + 1]. Its limited moments are exact, band by band.

Usage

ogive(x, cdf, ptr = NULL)

ogive_from_counts(bounds, counts)

Arguments

x

At least two band boundaries, finite, non-negative and strictly increasing.

cdf

F at each boundary, non-decreasing from 0 to 1.

ptr

Internal.

bounds

Band boundaries, one more than counts.

counts

Non-negative counts (or weights) per band, with a positive total.

Value

An ogive, which inherits from distribution.

Examples

o <- ogive_from_counts(c(0, 1000, 5000, 10000), c(40, 50, 10))
cdf(o, 3000)
#> [1] 0.65
VaR(o, 0.95)
#> [1] 7500
TVaR(o, 0.95)
#> [1] 8750