Main Content

linkRatiosPlot

Plot link ratios for development triangle

Since R2021a

Description

linkRatiosPlot(dT) plots the link ratios for the development triangle.

example

h = linkRatiosPlot(ax,___) additionally specifies the axes and returns the figure handle h. Use this syntax with the required input argument in the previous syntax.

example

Examples

collapse all

Generate a plot for the link ratios for a developmentTriangle object containing simulated insurance claims data.

load InsuranceClaimsData.mat;
head(data)
    OriginYear    DevelopmentYear    ReportedClaims    PaidClaims
    __________    _______________    ______________    __________

       2010             12               3995.7          1893.9  
       2010             24                 4635          3371.2  
       2010             36               4866.8          4079.1  
       2010             48               4964.1            4487  
       2010             60               5013.7          4711.4  
       2010             72               5038.8          4805.6  
       2010             84                 5059          4853.7  
       2010             96               5074.1          4877.9  

Use developmentTriangle to convert the data to a development triangle, which is the standard form for representing claims data.

dT = developmentTriangle(data)
dT = 
  developmentTriangle with properties:

                          Origin: {10x1 cell}
                     Development: {10x1 cell}
                          Claims: [10x10 double]
                  LatestDiagonal: [10x1 double]
                     Description: ""
                      TailFactor: 1
    CumulativeDevelopmentFactors: [1.3069 1.1107 1.0516 1.0261 1.0152 1.0098 1.0060 1.0030 1.0010 1]
               SelectedLinkRatio: [1.1767 1.0563 1.0249 1.0107 1.0054 1.0038 1.0030 1.0020 1.0010]

Use the linkRatiosPlot function to plot a series of lines of the link ratios for the development triangle.

linkRatiosPlot(dT)

Figure contains an axes object. The axes object with title Link Ratio Development, xlabel Origin Period, ylabel Link Ratios contains 9 objects of type line. These objects represent 12-24, 24-36, 36-48, 48-60, 60-72, 72-84, 84-96, 96-108, 108-120.

Input Arguments

collapse all

Development triangle, specified as a previously created developmentTriangle object.

Data Types: object

(Optional) Valid axis object, specified as an ax object created using axes. The function creates the plot on the axes specified by the optional ax argument instead of on the current axes (gca). The optional argument ax must precede any of the input argument combinations.

Data Types: object

Output Arguments

collapse all

Figure handle for the line objects, returned as a handle object.

Version History

Introduced in R2021a