The document describes the ESG package in R, which provides tools for generating economic scenarios for use in insurance valuation and capital requirements calculations. It discusses the available risk factors in ESG, including nominal interest rates, equity returns, property returns, and corporate bond returns. It also outlines the package's object-oriented structure and provides examples of how to use ESG to simulate scenarios and calculate insurance liabilities and capital requirements.
Economic Scenarios Generators in R with ESGtoolkitThierry Moudiki
Economic Scenarios Generators (ESG) are used in Insurance for the calculation of regulatory reserves and required capital. The R package ESGtoolkit provides tools that can help actuaries in buiding their own ESGs. These slides present some of the features included in version 0.1. For more examples, please refer to the package vignette
Impact of Solvency II yield curve extrapolation parameters on the valuation o...Thierry Moudiki
In order to price long term insurance guarantees, extrapolation of the yield curve is required. In this document, I present the method currently in use for Solvency II (presented in an article), and its impact on the valuation of an annuity.
You can play around with a web application explaining the impact of the extrapolation parameters, by typing the following commands in R:
# Loading Shiny package
library(shiny)
# Run the app in your browser; execs code from my Gist
runGist("ee4e7b9506a09e5d7cb8")
Presentation European Actuarial Journal conference 2016Thierry Moudiki
We introduce a model for the swap curve, whose static discount factors rely on the closed-form formulas for zero coupons available in exogenous (also known as no arbitrage) short rate models. After their calibration, the spot rates can be extrapolated to unobserved maturities by converging to a fixed ultimate forward rate.
If one is interested in no arbitrage pricing, then she can use simulations under the risk neutral probability of the corresponding exogenous short rates model.
Otherwise, yield curve forecasts can be obtained under the real world probability, by applying Functional Principal Components Analysis to the model's parameters.
Fair valuation of participating life insurance contracts with jump riskAlex Kouam
A C++ based program which prices the fair value of a participating life insurance whereby the underlying follows a Kou process and the insurer's default occurs only at contract's maturity.
Economic Scenarios Generators in R with ESGtoolkitThierry Moudiki
Economic Scenarios Generators (ESG) are used in Insurance for the calculation of regulatory reserves and required capital. The R package ESGtoolkit provides tools that can help actuaries in buiding their own ESGs. These slides present some of the features included in version 0.1. For more examples, please refer to the package vignette
Impact of Solvency II yield curve extrapolation parameters on the valuation o...Thierry Moudiki
In order to price long term insurance guarantees, extrapolation of the yield curve is required. In this document, I present the method currently in use for Solvency II (presented in an article), and its impact on the valuation of an annuity.
You can play around with a web application explaining the impact of the extrapolation parameters, by typing the following commands in R:
# Loading Shiny package
library(shiny)
# Run the app in your browser; execs code from my Gist
runGist("ee4e7b9506a09e5d7cb8")
Presentation European Actuarial Journal conference 2016Thierry Moudiki
We introduce a model for the swap curve, whose static discount factors rely on the closed-form formulas for zero coupons available in exogenous (also known as no arbitrage) short rate models. After their calibration, the spot rates can be extrapolated to unobserved maturities by converging to a fixed ultimate forward rate.
If one is interested in no arbitrage pricing, then she can use simulations under the risk neutral probability of the corresponding exogenous short rates model.
Otherwise, yield curve forecasts can be obtained under the real world probability, by applying Functional Principal Components Analysis to the model's parameters.
Fair valuation of participating life insurance contracts with jump riskAlex Kouam
A C++ based program which prices the fair value of a participating life insurance whereby the underlying follows a Kou process and the insurer's default occurs only at contract's maturity.
Inventory Model with Different Deterioration Rates under Exponential Demand, ...inventionjournals
An inventory model with different deterioration rates under exponential demand with inflation and permissible delay in payments is developed. Holding cost is taken as linear function of time. Shortages are allowed. Numerical examples are provided to illustrate the model and sensitivity analysis is also carried out for parameters.
Using portfolio diversification and risk modeling techniques determine if Insurance portfolio is less volatile than Tech portfolio.
Covers below :
Risk Modeling
Portfolio Diversification
Time Series Forecasting
ARIMA + GARCH + Copula
Application of Q-Measure in a Real Time Fuzzy System for Managing Financial A...ijsc
One of the major problems that a financial manager faces is the enormous amount of financial data. There is a variety of software systems used to support the process of investment decision making. In this paper, a software system for financial asset management is presented. The system is based on fuzzy logic, operates in real time and differs from existing systems for portfolio management in five key aspects. The system is tested on real data from Bulgarian Stock Exchange.
Bid and Ask Prices Tailored to Traders' Risk Aversion and Gain Propension: a ...Waqas Tariq
Risky asset bid and ask prices “tailored” to the risk-aversion and the gain-propension of the traders are set up. They are calculated through the principle of the Extended Gini premium, a standard method used in non-life insurance. Explicit formulae for the most common stochastic distributions of risky returns, are calculated. Sufficient and necessary conditions for successful trading are also discussed.
Financial Regulation Lecture 9Based on notes by Marlena El.docxericn8
Financial Regulation Lecture 9
Based on notes by Marlena Eley
March 22, 2019
1
1 Concept Review
We have been studying Cooper and Ross’s paper, which demonstrates how
deposit insurance causes moral hazard. Their work uses the Diamond and
Dybvig model and adds:
1. Risky Technology
2. Monitoring by Households (HH)
The introduction of deposit insurance reduces HH’s incentives to monitor.
HHs would have to pay a fixed cost Γ, which is measured in utils (an effort
cost rather than a resource cost), to monitor the bank. When HHs do monitor,
they are able to FORCE the bank to invest in the safe technology. We know
that HHs always prefer the safe long term technology investment to the risky
technology investment because they are risk averse (u′′ < 0).
1.1 LEMMA
Let q denote the probability of a run - this q is exogenously given. A Bank
that maximizes HH’s utility solves the following problem:
if q ≤ q∗ the deposit contract offered allows runs
if q > q∗ the deposit contract offered is a run preventing contract
When q ≤ q∗, banks are providing liquidity insurance, cE > 1, which means
that a run is a potential equilibria. When q > q∗, banks provide contracts
similar to autarky allocations, cE = 1,cL = R.
Intuitively, if runs are not very likely, then the bank prefers to offer a contract
that allows for runs but offers some liquidity insurance, which is valuable to
households.
We’re studying when q ≤ q∗ because we want deposit insurance to be offered
so that moral hazard is an issue.
1.2 Risky Technology
Risky technology is defined as:
(−1, 0,
{
λR with probability ν
0 with probability 1 −ν
Where:
1. λ > 1
2. νλ ≤ 1
2
Sidenote: when νλ = 1, we say this technology has a mean preserving spread.
Moral hazard is introduced here and this implies that rather than strictly
maximizing HH’s utility, Banks are now maximizing profit. The “managers” of
the Banks get whatever is leftover after feeding the consumers.
Banks then maximize profit as follows:
max
i∈[0,1]
ν[iλR + (1 − i−πcE)R− (1 −π)cL]
+ (1 −ν)max(i∗ 0 + (1 − i−πcE)R− (1 −π)cL, 0)
We see that the objective function is linear in i which tells us that there may
be corner solutions where i∗ = 0 (investment is only made in the safe
technology) or i∗ = 1 (investment is only made in the risky technology).
1.3 The Threshold ī
We study this decision by establishing a threshold of indifference, ī - when
they are indifferent between investing everything in the risky technology and
investing in the safe technology.
We can establish ī by looking at the investment decision in the low state,
(1 −ν) when the risky technology fails.
Conditional on being in the low state (1 −ν):
ī = {i ∈ [0, 1] : (1 − i−πcE)R− (1 −π)cL = 0}
∀i > ī, (1 − i−πcE)R− (1 −π)cL < 0, max = 0 therefore invests in risky.
∀i < ī, (1 − i−πcE)R− (1 −π)cL > 0, max = (1 − i−πcE)R− (1 −π)cL therefore invests in safe.
Our next step is to plug these values back into the objective function for each
case.
If i ≥ .
These slides introduce the lifecontingencies R package functionalities. Pricing, reserving and simulating life contingent insurance will be shown. Similarly, joining Lee Carter mortality projections with demography R package and annuities evaluation with lifecontingencies R package is shown. The work has been all done with R markdown.
The smile calibration problem is a mathematical conundrum in finance that has challenged quantitative analysts for decades. Through his research, Aitor Muguruza has discovered a novel resolution to this classic problem.
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
Why React Native as a Strategic Advantage for Startup Innovation.pdfayushiqss
Do you know that React Native is being increasingly adopted by startups as well as big companies in the mobile app development industry? Big names like Facebook, Instagram, and Pinterest have already integrated this robust open-source framework.
In fact, according to a report by Statista, the number of React Native developers has been steadily increasing over the years, reaching an estimated 1.9 million by the end of 2024. This means that the demand for this framework in the job market has been growing making it a valuable skill.
But what makes React Native so popular for mobile application development? It offers excellent cross-platform capabilities among other benefits. This way, with React Native, developers can write code once and run it on both iOS and Android devices thus saving time and resources leading to shorter development cycles hence faster time-to-market for your app.
Let’s take the example of a startup, which wanted to release their app on both iOS and Android at once. Through the use of React Native they managed to create an app and bring it into the market within a very short period. This helped them gain an advantage over their competitors because they had access to a large user base who were able to generate revenue quickly for them.
More Related Content
Similar to Introducing R package ESG at Rmetrics Paris 2014 conference
Inventory Model with Different Deterioration Rates under Exponential Demand, ...inventionjournals
An inventory model with different deterioration rates under exponential demand with inflation and permissible delay in payments is developed. Holding cost is taken as linear function of time. Shortages are allowed. Numerical examples are provided to illustrate the model and sensitivity analysis is also carried out for parameters.
Using portfolio diversification and risk modeling techniques determine if Insurance portfolio is less volatile than Tech portfolio.
Covers below :
Risk Modeling
Portfolio Diversification
Time Series Forecasting
ARIMA + GARCH + Copula
Application of Q-Measure in a Real Time Fuzzy System for Managing Financial A...ijsc
One of the major problems that a financial manager faces is the enormous amount of financial data. There is a variety of software systems used to support the process of investment decision making. In this paper, a software system for financial asset management is presented. The system is based on fuzzy logic, operates in real time and differs from existing systems for portfolio management in five key aspects. The system is tested on real data from Bulgarian Stock Exchange.
Bid and Ask Prices Tailored to Traders' Risk Aversion and Gain Propension: a ...Waqas Tariq
Risky asset bid and ask prices “tailored” to the risk-aversion and the gain-propension of the traders are set up. They are calculated through the principle of the Extended Gini premium, a standard method used in non-life insurance. Explicit formulae for the most common stochastic distributions of risky returns, are calculated. Sufficient and necessary conditions for successful trading are also discussed.
Financial Regulation Lecture 9Based on notes by Marlena El.docxericn8
Financial Regulation Lecture 9
Based on notes by Marlena Eley
March 22, 2019
1
1 Concept Review
We have been studying Cooper and Ross’s paper, which demonstrates how
deposit insurance causes moral hazard. Their work uses the Diamond and
Dybvig model and adds:
1. Risky Technology
2. Monitoring by Households (HH)
The introduction of deposit insurance reduces HH’s incentives to monitor.
HHs would have to pay a fixed cost Γ, which is measured in utils (an effort
cost rather than a resource cost), to monitor the bank. When HHs do monitor,
they are able to FORCE the bank to invest in the safe technology. We know
that HHs always prefer the safe long term technology investment to the risky
technology investment because they are risk averse (u′′ < 0).
1.1 LEMMA
Let q denote the probability of a run - this q is exogenously given. A Bank
that maximizes HH’s utility solves the following problem:
if q ≤ q∗ the deposit contract offered allows runs
if q > q∗ the deposit contract offered is a run preventing contract
When q ≤ q∗, banks are providing liquidity insurance, cE > 1, which means
that a run is a potential equilibria. When q > q∗, banks provide contracts
similar to autarky allocations, cE = 1,cL = R.
Intuitively, if runs are not very likely, then the bank prefers to offer a contract
that allows for runs but offers some liquidity insurance, which is valuable to
households.
We’re studying when q ≤ q∗ because we want deposit insurance to be offered
so that moral hazard is an issue.
1.2 Risky Technology
Risky technology is defined as:
(−1, 0,
{
λR with probability ν
0 with probability 1 −ν
Where:
1. λ > 1
2. νλ ≤ 1
2
Sidenote: when νλ = 1, we say this technology has a mean preserving spread.
Moral hazard is introduced here and this implies that rather than strictly
maximizing HH’s utility, Banks are now maximizing profit. The “managers” of
the Banks get whatever is leftover after feeding the consumers.
Banks then maximize profit as follows:
max
i∈[0,1]
ν[iλR + (1 − i−πcE)R− (1 −π)cL]
+ (1 −ν)max(i∗ 0 + (1 − i−πcE)R− (1 −π)cL, 0)
We see that the objective function is linear in i which tells us that there may
be corner solutions where i∗ = 0 (investment is only made in the safe
technology) or i∗ = 1 (investment is only made in the risky technology).
1.3 The Threshold ī
We study this decision by establishing a threshold of indifference, ī - when
they are indifferent between investing everything in the risky technology and
investing in the safe technology.
We can establish ī by looking at the investment decision in the low state,
(1 −ν) when the risky technology fails.
Conditional on being in the low state (1 −ν):
ī = {i ∈ [0, 1] : (1 − i−πcE)R− (1 −π)cL = 0}
∀i > ī, (1 − i−πcE)R− (1 −π)cL < 0, max = 0 therefore invests in risky.
∀i < ī, (1 − i−πcE)R− (1 −π)cL > 0, max = (1 − i−πcE)R− (1 −π)cL therefore invests in safe.
Our next step is to plug these values back into the objective function for each
case.
If i ≥ .
These slides introduce the lifecontingencies R package functionalities. Pricing, reserving and simulating life contingent insurance will be shown. Similarly, joining Lee Carter mortality projections with demography R package and annuities evaluation with lifecontingencies R package is shown. The work has been all done with R markdown.
The smile calibration problem is a mathematical conundrum in finance that has challenged quantitative analysts for decades. Through his research, Aitor Muguruza has discovered a novel resolution to this classic problem.
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
Why React Native as a Strategic Advantage for Startup Innovation.pdfayushiqss
Do you know that React Native is being increasingly adopted by startups as well as big companies in the mobile app development industry? Big names like Facebook, Instagram, and Pinterest have already integrated this robust open-source framework.
In fact, according to a report by Statista, the number of React Native developers has been steadily increasing over the years, reaching an estimated 1.9 million by the end of 2024. This means that the demand for this framework in the job market has been growing making it a valuable skill.
But what makes React Native so popular for mobile application development? It offers excellent cross-platform capabilities among other benefits. This way, with React Native, developers can write code once and run it on both iOS and Android devices thus saving time and resources leading to shorter development cycles hence faster time-to-market for your app.
Let’s take the example of a startup, which wanted to release their app on both iOS and Android at once. Through the use of React Native they managed to create an app and bring it into the market within a very short period. This helped them gain an advantage over their competitors because they had access to a large user base who were able to generate revenue quickly for them.
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
As part of the DOE Integrated Research Infrastructure (IRI) program, NERSC at Lawrence Berkeley National Lab and ALCF at Argonne National Lab are working closely with General Atomics on accelerating the computing requirements of the DIII-D experiment. As part of the work the team is investigating ways to speedup the time to solution for many different parts of the DIII-D workflow including how they run jobs on HPC systems. One of these routes is looking at Globus Compute as a way to replace the current method for managing tasks and we describe a brief proof of concept showing how Globus Compute could help to schedule jobs and be a tool to connect compute at different facilities.
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
Unleash Unlimited Potential with One-Time Purchase
BoxLang is more than just a language; it's a community. By choosing a Visionary License, you're not just investing in your success, you're actively contributing to the ongoing development and support of BoxLang.
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
Traditional software testing methods are being challenged in retail, where customer expectations and technological advancements continually shape the landscape. Enter generative AI—a transformative subset of artificial intelligence technologies poised to revolutionize software testing.
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Globus
The U.S. Geological Survey (USGS) has made substantial investments in meeting evolving scientific, technical, and policy driven demands on storing, managing, and delivering data. As these demands continue to grow in complexity and scale, the USGS must continue to explore innovative solutions to improve its management, curation, sharing, delivering, and preservation approaches for large-scale research data. Supporting these needs, the USGS has partnered with the University of Chicago-Globus to research and develop advanced repository components and workflows leveraging its current investment in Globus. The primary outcome of this partnership includes the development of a prototype enterprise repository, driven by USGS Data Release requirements, through exploration and implementation of the entire suite of the Globus platform offerings, including Globus Flow, Globus Auth, Globus Transfer, and Globus Search. This presentation will provide insights into this research partnership, introduce the unique requirements and challenges being addressed and provide relevant project progress.
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTier1 app
Even though at surface level ‘java.lang.OutOfMemoryError’ appears as one single error; underlyingly there are 9 types of OutOfMemoryError. Each type of OutOfMemoryError has different causes, diagnosis approaches and solutions. This session equips you with the knowledge, tools, and techniques needed to troubleshoot and conquer OutOfMemoryError in all its forms, ensuring smoother, more efficient Java applications.
Cyaniclab : Software Development Agency Portfolio.pdfCyanic lab
CyanicLab, an offshore custom software development company based in Sweden,India, Finland, is your go-to partner for startup development and innovative web design solutions. Our expert team specializes in crafting cutting-edge software tailored to meet the unique needs of startups and established enterprises alike. From conceptualization to execution, we offer comprehensive services including web and mobile app development, UI/UX design, and ongoing software maintenance. Ready to elevate your business? Contact CyanicLab today and let us propel your vision to success with our top-notch IT solutions.
We describe the deployment and use of Globus Compute for remote computation. This content is aimed at researchers who wish to compute on remote resources using a unified programming interface, as well as system administrators who will deploy and operate Globus Compute services on their research computing infrastructure.
top nidhi software solution freedownloadvrstrong314
This presentation emphasizes the importance of data security and legal compliance for Nidhi companies in India. It highlights how online Nidhi software solutions, like Vector Nidhi Software, offer advanced features tailored to these needs. Key aspects include encryption, access controls, and audit trails to ensure data security. The software complies with regulatory guidelines from the MCA and RBI and adheres to Nidhi Rules, 2014. With customizable, user-friendly interfaces and real-time features, these Nidhi software solutions enhance efficiency, support growth, and provide exceptional member services. The presentation concludes with contact information for further inquiries.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
Les Buildpacks existent depuis plus de 10 ans ! D’abord, ils étaient utilisés pour détecter et construire une application avant de la déployer sur certains PaaS. Ensuite, nous avons pu créer des images Docker (OCI) avec leur dernière génération, les Cloud Native Buildpacks (CNCF en incubation). Sont-ils une bonne alternative au Dockerfile ? Que sont les buildpacks Paketo ? Quelles communautés les soutiennent et comment ?
Venez le découvrir lors de cette session ignite
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Advanced Flow Concepts Every Developer Should KnowPeter Caitens
Tim Combridge from Sensible Giraffe and Salesforce Ben presents some important tips that all developers should know when dealing with Flows in Salesforce.
In software engineering, the right architecture is essential for robust, scalable platforms. Wix has undergone a pivotal shift from event sourcing to a CRUD-based model for its microservices. This talk will chart the course of this pivotal journey.
Event sourcing, which records state changes as immutable events, provided robust auditing and "time travel" debugging for Wix Stores' microservices. Despite its benefits, the complexity it introduced in state management slowed development. Wix responded by adopting a simpler, unified CRUD model. This talk will explore the challenges of event sourcing and the advantages of Wix's new "CRUD on steroids" approach, which streamlines API integration and domain event management while preserving data integrity and system resilience.
Participants will gain valuable insights into Wix's strategies for ensuring atomicity in database updates and event production, as well as caching, materialization, and performance optimization techniques within a distributed system.
Join us to discover how Wix has mastered the art of balancing simplicity and extensibility, and learn how the re-adoption of the modest CRUD has turbocharged their development velocity, resilience, and scalability in a high-growth environment.
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Hivelance Technology
Cryptocurrency trading bots are computer programs designed to automate buying, selling, and managing cryptocurrency transactions. These bots utilize advanced algorithms and machine learning techniques to analyze market data, identify trading opportunities, and execute trades on behalf of their users. By automating the decision-making process, crypto trading bots can react to market changes faster than human traders
Hivelance, a leading provider of cryptocurrency trading bot development services, stands out as the premier choice for crypto traders and developers. Hivelance boasts a team of seasoned cryptocurrency experts and software engineers who deeply understand the crypto market and the latest trends in automated trading, Hivelance leverages the latest technologies and tools in the industry, including advanced AI and machine learning algorithms, to create highly efficient and adaptable crypto trading bots
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
Unlocking Business Potential: Tailored Technology Solutions by Prosigns
Discover how Prosigns, a leading technology solutions provider, partners with businesses to drive innovation and success. Our presentation showcases our comprehensive range of services, including custom software development, web and mobile app development, AI & ML solutions, blockchain integration, DevOps services, and Microsoft Dynamics 365 support.
Custom Software Development: Prosigns specializes in creating bespoke software solutions that cater to your unique business needs. Our team of experts works closely with you to understand your requirements and deliver tailor-made software that enhances efficiency and drives growth.
Web and Mobile App Development: From responsive websites to intuitive mobile applications, Prosigns develops cutting-edge solutions that engage users and deliver seamless experiences across devices.
AI & ML Solutions: Harnessing the power of Artificial Intelligence and Machine Learning, Prosigns provides smart solutions that automate processes, provide valuable insights, and drive informed decision-making.
Blockchain Integration: Prosigns offers comprehensive blockchain solutions, including development, integration, and consulting services, enabling businesses to leverage blockchain technology for enhanced security, transparency, and efficiency.
DevOps Services: Prosigns' DevOps services streamline development and operations processes, ensuring faster and more reliable software delivery through automation and continuous integration.
Microsoft Dynamics 365 Support: Prosigns provides comprehensive support and maintenance services for Microsoft Dynamics 365, ensuring your system is always up-to-date, secure, and running smoothly.
Learn how our collaborative approach and dedication to excellence help businesses achieve their goals and stay ahead in today's digital landscape. From concept to deployment, Prosigns is your trusted partner for transforming ideas into reality and unlocking the full potential of your business.
Join us on a journey of innovation and growth. Let's partner for success with Prosigns.
Prosigns: Transforming Business with Tailored Technology Solutions
Introducing R package ESG at Rmetrics Paris 2014 conference
1. Economic Scenarios Generation for Insurance: ESG
package and other tools (Pt. I : ESG)
Rmetrics Workshop on R in Finance and Insurance 2014, Paris
Thierry Moudiki, Frederic Planchet
June 27, 2014
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :1E/SG2)2
2. ESG
R package ESG was designed to provide a minimal Economic
Scenarios Generator (ESG) for valuation and capital requirements
calculations in Solvency II.
Currently : projections of risk factors in a risk-neutral world.
Available risk factors are : nominal rates, equity returns, property
returns, corporate bonds returns.
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :2E/SG2)2
3. ESG
ESG current structure
Nominal rates
Equity prices Property returns
Corporate bonds
returns
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :3E/SG2)2
4. ESG
Available risk factors
Let (Wt )t0 be a standard brownian motion.
nominal rates : Hull-White Extended Vasicek (HW)
drt = ((t) − art ) dt + dW(r)
t
equity prices : Geometric Brownian motion with stochastic
Hull-White interest rates (BSHW)
dSt = rtStdt + StdW(E)
t
dW(E)
t dW(r)
t = dt
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :4E/SG2)2
5. ESG
Available risk factors (cont’d)
property returns : Geometric Brownian motion with stochastic
Hull-White interest rates
dSt = rtStdt + StdW(P)
t
corporate bonds returns : HW + intensity of default + liquidity
spread = Longstaff-Mithal-Neis (LMN)
Intensity of default
dt = ( −
6. t )dt +
p
tdW()
t
Additional liquidity spread
dt = tdW()
t
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :5E/SG2)2
7. ESG
Simulation/discretization
Example : Vasicek model.
Most simple and intuitive way : Euler scheme (1st order Ito-Taylor
development) :
pti+1 − ti
rti+1 − rti = a( − rti )(ti+1 − ti ) +
Another way : 2nd order development, Milstein scheme. More precise.
But When is constant, not necessary. More complicated formula.
Third way : exact simulation of the transition distribution between
ti+1 and ti :
s
1 − e−a(ti+1−ti )
rti+1 = e−a(ti+1−ti )rti + (1 − e−a(ti+1−ti )) +
2a
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :6E/SG2)2
8. ESG
0.012 0.013 0.014 0.015 0.016 0.017 0.018
0 100 200 300 400 500
Visualizing discretization bias (t = 2) on the example, through densities
N = 500 Bandwidth = 0.0002482
Density
Euler simulation
Exact simulation
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :7E/SG2)2
9. ESG
The package’s structure
An S4 object-oriented architecture, around 2 classes : ParamsScenarios
and Scenarios, with associated getter and setter methods.
ParamsScenarios Scenarios
horizon A ParamsScenarios attribute
n ForwardRates slot
HW, BSHW, LMN parameters ZCRates slot
Equity/short rate correlation One slot for each model path
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :8E/SG2)2
10. ESG
Using the package : 2 ways
Step by step approach : Using successive getter and setter
methods, to know exactly what is done at each step
set/get*Params*Scenarios*
set/getForwardRates
set/getZCRates
set/get*Paths
Through an interface wrapping the successive getter and setter
methods, which is easier but also safer
rShortRate : nominal rates (HW)
rStock : equity (BSHW)
rDefaultSpread + rLiquiditySpread : credit (LMN)
rRealEstate : property (BSHW)
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package andJuonthee2r7t,o2o0ls1(4Pt. I :9E/SG2)2
11. Examples of use of ESG
# loading ESG
library(ESG)
# needed for yield curve interpolation
library(ycinterextra)
# yield to maturities
txZC - c(0.01422,0.01309,0.01380,0.01549,0.01747,0.01940,
0.02104,0.02236,0.02348,0.02446,0.02535,0.02614,
0.02679,0.02727,0.02760,0.02779,0.02787,0.02786,
0.02776,0.02762,0.02745,0.02727,0.02707,0.02686,
0.02663,0.02640,0.02618,0.02597,0.02578,0.02563)
# maturities
u - 1:30
# the yield curve must be interpolated on a monthly basis
ZC - fitted(ycinter(yM = txZC, matsin = u,
matsout = seq(1, 30, by = 1/12),
method = SW))
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:0E/SG2)2
12. Examples of use of ESG : Step by step approach
# object creation
objScenario - new(Scenarios)
# Setting the basic scenario's parameters
objScenario - setParamsBaseScenarios(objScenario,
horizon = 5,
nScenarios = 100)
# Parameters for BSHW
objScenario - setRiskParamsScenariosS(objScenario,
vol = .1,
k = .2,
volStock = .2,
stock0 = 100,
rho= .5)
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:1E/SG2)2
13. Examples of use of ESG : Step by step approach (cont’d)
# Setting the forward rates
objScenario - setForwardRates(objScenario, ZC = ZC,
horizon = 5)
# Simulation, setting the Paths' slots
objScenario - customPathsGeneration(objScenario,
type=stock)
y.step - getstockPaths(objScenario)
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:2E/SG2)2
14. Examples of use of ESG : Through the interface
# only one function is called, instead of 6
y.interface - rStock(horizon = 5,
nScenarios = 100,
ZC = ZC,
vol = .1,
k = .2,
volStock = .2,
stock0 = 100,
rho= .5)
# visualizing the results :
par(mfrow=c(2, 2))
matplot(t(y.step$shortRatePaths), type = 'l')
matplot(t(y.step$stockPaths), type = 'l')
matplot(t(y.interface$shortRatePaths), type = 'l')
matplot(t(y.interface$stockPaths), type = 'l')
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:3E/SG2)2
15. 0 1 2 3 4 5
−0.4 −0.2 0.0 0.2 0.4
HW short rate (step by step)
time
values
0 1 2 3 4 5
0 200 600 1000
BSHW equity (step by step)
time
values
0 1 2 3 4 5
−0.2 0.0 0.2 0.4
HW short rate (direct)
time
values
0 1 2 3 4 5
0 200 400 600 800
BSHW equity (direct)
time
values
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:4E/SG2)2
16. Example of Best Estimate Liability calculation
We consider an insurance company, offering a unit-linked contract
The insured party pays a premium equal to 1.
The premium is invested in a stock : the unit
Maturity : 10 years
Systematic surrender rate : 2% (unavoidable)
Economic surrender rate : 5% (depends on the economic situation).
Added to systematic surrender rate whenever the unit-link falls below
the initial value invested in it, which is 1
The contract is entirely redeemed at maturity =) surrender rate
at maturity : 100%
In Solvency II, the Best Estimate liability related to the contract is equal
to the average discounted value of its future cash-flows
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:5E/SG2)2
17. Example of Best Estimate Liability calculation (cont’d)
r(s) : the systematic surrender rate (2%)
r(e) : the economic surrender rate (5%)
8i = 1, . . . , 10
r(total)
i :=
0
@r(s) + r(e)11
Si
Si−1
1
1
A11(i9) + 100% × 11(i=10)
(rt )t0 : the instantaneous short rate (HW)
(St )t0 : the value of the unit (BSHW)
Resi = Resi−1 × Si
Si−1
1 − r(total)
i
; Res0 = 1 : the reserves
The Best Estimate liability associated to the contract is equal to :
BEL = E
X10
i=1
e−
R i
0 ruduResi
#
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:6E/SG2)2
18. Example of Best Estimate Liability calculation (cont’d)
No close formula for the BEL. . .
. . . Or difficult to derive =) Monte Carlo simulation with ESG
An R function, calculFlux, is defined for the calculation of ALM
cash-flows. calculFlux depends on projected short rates, projected
values of the unit, and the surrender rates, depending on the latter
Parameters for ALM projection :
k - 0.12 # short rates' mean-reversion speed
sTaux - 0.05 # volatility of short rates
sUC - .16 # volatility of the unit
rho_rS - .5 # correlation unit vs short rates
H - 10 # maturity of the contract
nSimulations - 1000 # number of simulations
tauxRachatS - .02 # systematic surrender rates
tauxRachatC - .05 # economic surrender rates
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:7E/SG2)2
19. Example of Best Estimate Liability calculation (cont’d)
set.seed(10)
# Simulation of the unit and of short rates with rStock
traj - rStock(horizon=H, nScenarios=nSimulations, ZC=ZC,
vol=sTaux, k=k, volStock=sUC, stock0=1,
rho=rho_rS)
# Short rates
trajectoiresTaux - traj$shortRatePaths
# Unit (a stock)
trajectoiresUC - traj$stockPaths
# Future cash-flows and discount factors
Flux_futurs - calculFlux(trajectoiresTaux,trajectoiresUC,
tauxRachatS,tauxRachatC)
# discounted cash-flows
ActuFlux_futurs - Flux_futurs$flux*Flux_futurs$actu
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:8E/SG2)2
20. # Future distribution of the reserves
Res - t(apply(Flux_futurs$PM, 2,
function(x) summary(x))[c(-1,-6), ])
rownames(Res) - paste0(Year , 0:10)
## 1st Qu. Median Mean 3rd Qu.
## Year 0 1.000 1.000 1.000 1.00
## Year 1 0.864 0.980 0.995 1.10
## Year 2 0.756 0.929 0.974 1.14
## Year 3 0.668 0.901 0.986 1.23
## Year 4 0.609 0.883 1.000 1.28
## Year 5 0.555 0.849 1.020 1.33
## Year 6 0.487 0.833 1.050 1.41
## Year 7 0.430 0.821 1.110 1.47
## Year 8 0.392 0.783 1.180 1.63
## Year 9 0.360 0.774 1.270 1.69
## Year 10 0.000 0.000 0.000 0.00
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I1:9E/SG2)2
21. 0 2 4 6 8 10
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4
95% c.i on the projection of reserves
time
Reserves
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I2:0E/SG2)2
22. (BestEstimate - sum(ActuFlux_futurs)/nSimulations)
## [1] 0.9912
Best Estimate liability convergence
0 200 400 600 800 1000 0.7 0.8 0.9 1.0 1.1
Number of simulations Best Estimate
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I2:1E/SG2)2
23. ESG
Future versions
More flexibility on the interpolation of zero-rates (not only
monthly frequency required)
Projection is annual =) impossible to obtain correct estimations of
discount factors =) add an option for changing the sampling
frequency
Adding correlation/dependence between the risk factors
Adding real world models
ESGtoolkit, will be used in ESG
Thierry Moudiki, Frederic Planchet Economic Scenarios Generation for Insurance: ESG package anJdunoeth2e7r,to20o1ls4(Pt. I2:2E/SG2)2