13
15/11/2011 1 Life Conference and Exhibition 2011 Life Conference and Exhibition 2011 Stuart Carroll, Christopher Hursey Efficient Curve Fitting © 2010 The Actuarial Profession www.actuaries.org.uk Efficient Curve Fitting Techniques 20-22 November Agenda Background Outline of the problem and issues to consider The solution Theoretical justification Further considerations Practical issues Outcome Questions or comments 1

Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•1

Life Conference and Exhibition 2011Life Conference and Exhibition 2011Stuart Carroll, Christopher Hursey

Efficient Curve Fitting

© 2010 The Actuarial Profession www.actuaries.org.uk

Efficient Curve Fitting Techniques

20-22 November

Agenda

• Background

• Outline of the problem and issues to consider

• The solution

• Theoretical justification

• Further considerations

• Practical issues

• Outcome

• Questions or comments

1

Page 2: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•2

Background

• We wished to use an internal model running in excess of one million scenariosscenarios– Many different products– And many different risk factors

• It was not feasible to evaluate liabilities accurately in every scenario• Therefore the decision was taken to formula fit liability values

– Use polynomial approximation formulae– Fitted to a limited number of evaluation points

• We need to capture all material risk dependenciesWe need to capture all material risk dependencies– Each risk factor leads to a marginal risk function in one variable– Non-linearity between risk factors leads to non linearity functions in

two or more variables– Marginal risk functions and non linearity functions are summed to

give the final approximation formula.

2

Outline of the problem and issues to considerRequirements

• Repeatable process that is objective

• Measurable performance

• Risk management exercise, not just compliance– We wish to model the full distribution

• Sufficient number of sample points for accuracy– Implies more sample points

• Reasonable run times• Reasonable run times– Implies fewer sample points

• Need to resolve the tension between the previous two points.

3

Page 3: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•3

Outline of the problem and issues to considerTesting and Validation

• Measures of goodness of fit

– Least squares

– Maximum absolute error

– Error dependency

– Error Bias

• Out of sample testing

– How many to be statistically significant

• Analysis of change

• Understanding the results.

4

Outline of the problem and issues to considerOther considerations

• Determining the limits of the model

• Range for each risk factor

– Allow for movements in roll-forward

– Four standard deviations?

• What about plan B?

– Must distinguish between analysis phase and d ti hproduction phase

– What if goodness of fit fails once in production?

5

Page 4: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•4

LapsesLapses

The SolutionA simple example

• Consider the variation in liabilit al e ith respect

PV

Lia

bili

tie

sP

V L

iab

iliti

es

liability value with respect to a single risk factor

• The least squares quadratic is fitted using all evaluation points

• Initial fit is reasonable but uses too many calculations

-80 -60 -40 -20 0 20 40 60 80

Percent

Actual Results

-80 -60 -40 -20 0 20 40 60 80

Percent

Actual Results Approximation Results

uses too many calculations to be feasible for the production phase

• How do we reduce the number of fitting points?

6

The SolutionThe Error Curve

• The error curve is cubic Approximation Errors - All points

8

• Three roots at three points of intersection

• Those three points define a unique quadratic function

• Fit to the three points of intersection only

-8

-6

-4

-2

0

2

4

6

-80% -60% -40% -20% 0% 20% 40% 60% 80%

Percent

Err

or

(£m

)

Approximation Errors - Three points

6

8

intersection only– same approximation function

– same error curve

• No loss in performance for greatly reduced effort.

7

-8

-6

-4

-2

0

2

4

-80% -60% -40% -20% 0% 20% 40% 60% 80%

Percent

Err

or

(£m

)

Page 5: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•5

The SolutionImplications

• In general, we wish to approximate our unknown function by an (n-1)-order polynomial

• The least squares (n-1)-order polynomial approximation will intersect the unknown function n times

• If those n points of intersection can be determined, they provide the optimal fitting points, or “nodes” for our approximation functionpp

• We can achieve as good a fit using n nodes as using an infinite number of nodes

• Similarly, we can determine the points of maximum error– Allows us to estimate maximum error

– more powerful than estimating maximum sample error. 8

The SolutionMore points is not necessarily better

• What happens when we add points to try and improve the fit?

• The error curve changes– Maximum error has

increased

– Sum squared error is worse

Approximation Errors - Three points

-4

-2

0

2

4

6

8

-80% -60% -40% -20% 0% 20% 40% 60% 80%Err

or

(£m

)

Approximation Errors - Five points

-4

-2

0

2

4

6

8

-80% -60% -40% -20% 0% 20% 40% 60% 80%Err

or

(£m

)

• Adding more points has led to a deterioration in the fit

Why?9

-8

-6

Percent

-8

-6

Percent

Page 6: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•6

The SolutionRationale

• This is not a regression problem but an approximation problemproblem

• For a given order of polynomial approximation function there exists a unique optimal error curve, i.e. one that deviates least from zero in the least squares sense

• Identifying solutions to the optimum error curve allows us to use the absolute minimum number of nodes that are required to uniquely define the optimum approximationrequired to uniquely define the optimum approximation function

• Adding further nodes shifts the error curve and, by definition, results in a sub-optimal approximation.

10

The SolutionDetermining the fitting points

• We introduce a single assumption: our unknown function can be accurately represented by an n-order polynomial

• Powers of (n+1) and above are vanishingly small

• Under this assumption the n points of intersection depend only on the range, or “domain”, over which the least squares best fit is performed

• Similarly the turning points or points of maximum error• Similarly, the turning points, or points of maximum error, also depend only on the domain

• Usefully, all our points of interest are now independent of the unknown function and can be determined analytically.

11

Page 7: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•7

• We wish to approximate a liability function with a quadratic (n=3)

The SolutionAn example

Quadratic fit to cubic

25000

function with a quadratic (n 3)

• Assuming powers of four and above are immaterial, we are attempting to approximate an unknown cubic

• the least squares quadratic best fit to any cubic, intersects that cubic at three points

0

5000

10000

15000

20000

-80 -60 -40 -20 0 20 40 60 80

)( LL )(3)( LLLL

Errors

1000

1500

2000

12

2

)( 121

LLP

2

)(

5

3

2

)( 12123,2

LLLLP

where L1 and L1 represent the upper and lower limits of the domain.

and has turning points

2

)(

5

1

2

)( 12122,1

LLLLM

-2000

-1500

-1000

-500

0

500

-80 -60 -40 -20 0 20 40 60 80

The SolutionMore examples

Quadratic least squares fit using 1,200 points and the resulting error curvesQuadratic fit to cubic

12000

Quadratic fit to cubic

15000

Quadratic fit to cubic

30000

-2000

0

2000

4000

6000

8000

10000

-80 -60 -40 -20 0 20 40 60 80

-10000

-5000

0

5000

10000

-80 -60 -40 -20 0 20 40 60 80

0

5000

10000

15000

20000

25000

-80 -60 -40 -20 0 20 40 60 80

Errors

1500

2000

Errors

1500

2000

Errors

1500

2000

13

Points of intersection do not depend on the function.

-2000

-1500

-1000

-500

0

500

1000

-80 -60 -40 -20 0 20 40 60 80

-2000

-1500

-1000

-500

0

500

1000

-80 -60 -40 -20 0 20 40 60 80

-2000

-1500

-1000

-500

0

500

1000

-80 -60 -40 -20 0 20 40 60 80

Page 8: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•8

The SolutionImplications

• We can make an assumption about the order of polynomial fthat accurately represents the unknown function

• Given this assumption, the nodes that give optimum least squares fit can be determined without any prior analysis or knowledge of the unknown function

• Goodness of fit tests will fail for one of two reasons

– a good enough fit is not possible ora good enough fit is not possible, or

– the initial assumption is invalid

• In either case. simply revise the assumption and try again

• As long as the initial assumption holds, once identified, the fitting nodes and points of maximum error remain fixed.

14

Theoretical Justification

• Weierstrauss Approximation Theorem - Any continuous function on a closed and bounded interval can be approximated on that interval by polynomials to any degree of accuracy

• The optimum nodes can be shown to correspond to the roots of the Legendre polynomials for all n

• Properties of Legendre polynomials

– Orthogonal

– Series convergence on [a, b]

p y y g y

– Minimum deviation from zero

15

• We effectively use a truncated Legendre series

• Forces the error curve to be the n-order Legendre polynomial.

)()()(1

0

xLaxLaxf nn

n

kkk

Page 9: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•9

Further ConsiderationsNon Linearity

• The same theory can be extended and applied to non

Lapses

120

140

Interest Rates

180

200

extended and applied to non linearity functions in two or more variables

• Construct a combined risk surface by adding marginal risk functions

• Compare with actual combined risk surface to evaluate non li it

0

20

40

60

80

100

-50%

-40.0

0%

-30.00%

-20.0

0%

-10.00%

0.00%

10.00%

20.00%

30.00%

40.00%

50.00%

0

20

40

60

80

100

120

140

160

-3%

-2.400

%

-1.80

0%

-1.200

%

-0.60

0%

0.000

%

0.600%

1.200%

1.800%

2.400%

3.000%

150

200

250

Combined Risk Surface from Marginals

150

200

250

Actual Combined Risk Surface

linearity

• If there is no non linearity between two risk factors then there should be no cross terms in the approximation formula.

16

-50%

-25.00%

0.00%

25.00%

50.00%

-3%-1.500%

0.000%1.500%

3.000%

0

50

100

-50%

-25.00%

0.00%

25.00%

50.00%

-3%-1.500%

0.000%1.500%

3.000%

0

50

100

Further ConsiderationsNon Linearity

• Non-linearity is the difference between the combined impact of

60

Non linearity surface

between the combined impact of two or more risk factor and the sum of those same risk factors.

• Using a combination of terms in xy, x2y, xy2 and x2y2, we can construct a two factor 2nd order polynomial approximation

-3

-2.1

-1.2

-0.3

0.6

1.5

2.4

-40

-30

-20

-10

0

10

20

30

40

50

Approximation

17

• Least squares fit found from 14,641 nodes.

-50%

-35.

00%

-20.

00%

-5.0

0%

10.

00%

25.0

0%

40.

00%

-3%

-1.8

00%

-0.6

00%

0.6

00%

1.8

00%

3.00

0%

-30

-20

-10

0

10

20

30

-50%

-35

.00

%

-20.

00%

-5.0

0%

10.

00%

25.0

0%

40.

00%

-3%

-1.8

00%

-0.6

00%

0.6

00%

1.8

00%

3.0

00%

-8

-6

-4

-2

0

2

4

6

8

-50

%

-35.

00%

-20

.00

%

-5.0

0%

10.0

0%

25.0

0%

40.

00%

-3%

-1.8

00%

-0.6

00%

0.6

00%

1.80

0%

3.0

00%0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

-3

-2.1

-1.2

-0.3

0.6

1.5

2.4

-40

-30

-20

-10

0

10

20

30

40

50

60

Page 10: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•10

Error SurfaceError Surface

Further ConsiderationsNon Linearity

• Optimal fitting points are given by the intersection of the non

20

-15

-10

-5

0

5

10

15

20

25

30

35

40

45

50

55

60

20

-15

-10

-5

0

5

10

15

20

25

30

35

40

45

50

55

60by the intersection of the non-linearity surface and the least squares non linearity approximation function

• No unique solution

• It can be shown that the intersection of the one factor

l ti id l ti t

-3.0

0

-2.7

5

-2.5

0

-2.2

5

-2.0

0

-1.7

5

-1.5

0

-1.2

5

-1.0

0

-0.7

5

-0.5

0

-0.2

5

0.0

0

0.2

5

0.5

0

0.7

5

1.0

0

1.2

5

1.5

0

1.7

5

2.0

0

2.2

5

2.5

0

2.7

5

3.0

0

-60

-55

-50

-45

-40

-35

-30

-25

-20

-3.0

0

-2.7

5

-2.5

0

-2.2

5

-2.0

0

-1.7

5

-1.5

0

-1.2

5

-1.0

0

-0.7

5

-0.5

0

-0.2

5

0.0

0

0.2

5

0.5

0

0.7

5

1.0

0

1.2

5

1.5

0

1.7

5

2.0

0

2.2

5

2.5

0

2.7

5

3.0

0

-60

-55

-50

-45

-40

-35

-30

-25

-20

solutions provide one solution to the two factor problem

• Same approximation function results from fitting to four nodes as from fitting to 14,641 nodes.

18

Further ConsiderationsNon Linearity

• Can show that the roots to the Legendre polynomials provide optimum nodes single factor polynomials of any order

• Can also show that the intersection of the single factor solutions provide optimum nodes to the following:

– Two factor 2nd order polynomials

– Three factor 2nd order polynomialsThree factor 2 order polynomials

– Two factor 3rd order polynomials

• Attempts at a general proof for multifactor polynomials have so far been unsuccessful.

19

Page 11: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•11

Further ConsiderationsConstrained solutions

Errors

1500

• Consider a quadratic least squares fit over a non-symmetrical domainQuadratic fit to cubic

25000

-1500

-1000

-500

0

500

1000

-60 -50 -40 -30 -20 -10 0 10 20 30 40

• Resulting error at zero may be undesirable

• Can solve directly with constraint that error at zero is nil

0

5000

10000

15000

20000

-60 -50 -40 -30 -20 -10 0 10 20 30 40

Quadratic fit to cubic Errors

20• Resulting fit is optimal given the constraint.

Quad at c t to cub c

0

5000

10000

15000

20000

25000

-60 -50 -40 -30 -20 -10 0 10 20 30 40

Errors

-1500

-1000

-500

0

500

1000

1500

-60 -50 -40 -30 -20 -10 0 10 20 30 40

Quadratic fit to cubic

15000

20000

25000

Errors

500

1000

1500

2000

Quadratic fit to cubic

15000

20000

25000

Errors

500

1000

1500

2000

Quadratic fit to cubic

15000

20000

25000

Errors

500

1000

1500

2000

Quadratic fit to cubic

15000

20000

25000

Errors

500

1000

1500

2000

Further ConsiderationsWhat about Plan B?

• Minimise the maximum C

0

5000

10000

-80 -60 -40 -20 0 20 40 60 80 -2000

-1500

-1000

-500

0

-80 -60 -40 -20 0 20 40 60 80

0

5000

10000

-80 -60 -40 -20 0 20 40 60 80 -2000

-1500

-1000

-500

0

-80 -60 -40 -20 0 20 40 60 80

0

5000

10000

-80 -60 -40 -20 0 20 40 60 80 -2000

-1500

-1000

-500

0

-80 -60 -40 -20 0 20 40 60 80

0

5000

10000

-80 -60 -40 -20 0 20 40 60 80 -2000

-1500

-1000

-500

0

-80 -60 -40 -20 0 20 40 60 80error using Chebyshev nodes

• Adjust the domain to use nested and coincident nodes

• Use a Dampening function

Same domain

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

Same domain - no coincedent nodes

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

Different domains - 2 nodes coincident

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

3rd Order Legendre 4th Order Legendre

p g– Error curve is next term in

Legendre series

– Coefficient is the error at the extreme.

21

3rd Order Legendre3rd Order Legendre 4th Order Legendre

Page 12: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•12

Practical Issues

• Stochastic values– Approximation error must be minimised

– Take the average of two results close to, and equidistant from, each node

– Similarly for each test point

• Error accumulation– The errors in marginal risk functions combine to form an error

fsurface

– These errors may accumulate to exceed materiality limits

– Lower materiality limits in the marginal risk functions

• Fit to the true non linearity surface– Adjust for marginal errors in non linearity before fitting.

22

Outcome

• Efficiency maximised– Fit exactly n points for n formula coefficients

• Process is repeatable and objective– Based on theories widely accepted and used in engineering,

physics and animation

• Less reliance on samples for performance measurement– Maximum error is targeted and measuredg

– Model limitations can be determined with some confidence

• Better understanding of results– Fitting errors are predictable and explainable

• Greater confidence in the internal model results.23

Page 13: Efficient Curve Fitting Techniques · Efficient Curve Fitting Techniques 20-22 November Agenda • Background • Outline of the problem and issues to consider • The solution •

•15/11/2011

•13

Questions or comments?

Expressions of individual views by members of The Actuarial Profession and its staff are encouraged.

The views expressed in this presentation are those of the presenter.

24© 2010 The Actuarial Profession www.actuaries.org.uk