SmithWilson

Struct SmithWilson 

Source
pub struct SmithWilson {
    pub ultimate_forward_rate: f64,
    pub convergence_speed: f64,
    pub last_liquid_point: f64,
}
Expand description

Smith-Wilson extrapolation for regulatory yield curves.

The Smith-Wilson method is the regulatory standard for extrapolating risk-free rate curves under Solvency II (EIOPA). It ensures smooth convergence from the Last Liquid Point (LLP) to the Ultimate Forward Rate (UFR) at long maturities.

§EIOPA Standard Parameters

CurrencyUFRLLPAlpha
EUR3.45%20Y0.126
GBP3.45%50Y0.100
USD3.45%30Y0.100
CHF3.45%25Y0.100

Note: UFR values are updated annually by EIOPA. Values shown are as of 2024.

§Properties

  • Regulatory compliant: Matches EIOPA specification
  • Smooth convergence: C∞ continuity
  • UFR target: Converges to Ultimate Forward Rate
  • Speed control: Alpha parameter controls convergence speed

§Convergence Behavior

The forward rate converges to UFR according to:

  • At LLP: forward rate equals observed market rate
  • At LLP + 40Y: forward rate within 3bp of UFR (EIOPA convergence criterion)
  • At infinity: forward rate equals UFR exactly

§Example

use convex_math::extrapolation::{SmithWilson, Extrapolator};

// EUR parameters (EIOPA 2024)
let sw = SmithWilson::new(0.0345, 0.126, 20.0);

// Extrapolate from 20Y (LLP) to 60Y
let rate_60y = sw.extrapolate(60.0, 20.0, 0.03, 0.001);

// The rate should be moving towards UFR (3.45%)
assert!(rate_60y > 0.03); // Moving up towards UFR

Fields§

§ultimate_forward_rate: f64

Ultimate Forward Rate (continuously compounded)

§convergence_speed: f64

Convergence speed parameter (alpha)

§last_liquid_point: f64

Last Liquid Point (years)

Implementations§

Source§

impl SmithWilson

Source

pub fn new(ufr: f64, alpha: f64, llp: f64) -> Self

Creates a new Smith-Wilson extrapolator.

§Arguments
  • ufr - Ultimate Forward Rate (e.g., 0.0345 for 3.45%)
  • alpha - Convergence speed (higher = faster convergence)
  • llp - Last Liquid Point in years
§Panics

Panics if alpha <= 0 or llp <= 0.

Source

pub fn eiopa_eur() -> Self

Creates a Smith-Wilson extrapolator with EIOPA EUR parameters.

Uses standard EIOPA parameters for EUR curves:

  • UFR: 3.45% (2024 value)
  • Alpha: 0.126
  • LLP: 20 years
Source

pub fn eiopa_gbp() -> Self

Creates a Smith-Wilson extrapolator with EIOPA GBP parameters.

Uses standard EIOPA parameters for GBP curves:

  • UFR: 3.45% (2024 value)
  • Alpha: 0.100
  • LLP: 50 years
Source

pub fn eiopa_usd() -> Self

Creates a Smith-Wilson extrapolator with EIOPA USD parameters.

Uses standard EIOPA parameters for USD curves:

  • UFR: 3.45% (2024 value)
  • Alpha: 0.100
  • LLP: 30 years
Source

pub fn eiopa_chf() -> Self

Creates a Smith-Wilson extrapolator with EIOPA CHF parameters.

Uses standard EIOPA parameters for CHF curves:

  • UFR: 3.45% (2024 value)
  • Alpha: 0.100
  • LLP: 25 years
Source

pub fn ufr(&self) -> f64

Returns the UFR.

Source

pub fn alpha(&self) -> f64

Returns the convergence speed (alpha).

Source

pub fn llp(&self) -> f64

Returns the Last Liquid Point.

Trait Implementations§

Source§

impl Clone for SmithWilson

Source§

fn clone(&self) -> SmithWilson

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SmithWilson

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Extrapolator for SmithWilson

Source§

fn extrapolate( &self, t: f64, last_t: f64, last_value: f64, _last_derivative: f64, ) -> f64

Extrapolates to time t given the last known point. Read more
Source§

fn name(&self) -> &'static str

Returns the name of the extrapolation method.
Source§

impl PartialEq for SmithWilson

Source§

fn eq(&self, other: &SmithWilson) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SmithWilson

Source§

impl StructuralPartialEq for SmithWilson

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,