SlideShare a Scribd company logo
1 of 7
A new SAS macro package for PI R&D:
Model Delivery System
Author: Songtao Wan Manager: Joseph (Xiaochen) Li Mentor: Hao Ding
1
Model Delivery System’s Introduction
1. Motivation
• It is always a headache for modelers to deliver/document their models.
The processes are well described as:
 Time-consuming
 Labor-intensive
 Repetitive
 Vulnerable to human errors
2
2. Solution
• Motivated by my manager Joseph (Xiaochen) Li, I present a new tool:
Three piece-wise SAS macro package: Model Delivery System
• Les Trois Mousquetaires: %convert, %merge, %output
Model Delivery System’s Workflow
3
%convert Input:
1.Modeling dataset
2.Parameter dataset
3.Modeled and Structure
variables
Step 1:
Aggregate exposure by both
modeled & structured variables
Step 2:
Obtain factors from
%fitted_parts
Step 3:
Calculate exposure
weighted factor by
structured variables
Step 5:
Addition features:
Level checking
Rebase
Basic stats
Step 4:
Combine other aggregated
model information
%merge Input: output datasets from
%convert with the same structure.
What do:
Merge the input datasets – combining
factors from different coverage/perils
into one dataset.
%output Input: output datasets from
%merge and/or %convert.
What do:
Produce Excel file – outputting merged
datasets into separate tabs.
Model Delivery System’s 1st Function: Delivery
4
This is how it looks like in a merged tab for CP,BI,PD and CL
structured variables with levels exposure-weighted factors
Note: all results are coming from simulated data sets
cc7 cc8 cc9 cc10 CP BI PD CL
0 0 0 0 0.991 1.005 1.000 1.007
0 0 0 1 1.015 1.000 1.000 1.016
0 0 0 2 1.021 0.989 1.000 1.002
0 0 0 3 0.997 0.997 1.000 1.012
0 0 1 0 0.997 1.001 1.000 1.000
0 0 1 1 0.995 0.991 1.000 1.006
0 0 1 2 1.022 1.007 1.000 1.006
0 0 1 3 0.991 0.976 1.000 1.008
0 0 2 0 0.991 0.986 1.000 1.012
0 0 2 1 1.015 0.993 1.000 1.009
… … … … … … … …
Model Delivery System’s 2nd Function: Documentation
5
This is how it looks like to record model variable “cc1”
model information & structured factor recorded model statistics
Note: all results are coming from simulated data sets
from %dglm output parameter estimate data set
cc1
NUM_
CLAIMS
INCURRED_
LOSS
EARNED_
EXPOSURE
PURE_
PREMIUM
z
INDICATED_
FACTOR
df estimate stderr ci_l ci_u chi_square p_value
SELECTED_
FACTOR
0 98692 392138539.8 3001316.97 130.660 100.00% 1.011 1 0.011 0.01 -0.008 0.029 1.219 0.270 1.005
1 13207 51032729.89 3000724.58 17.010 27.65% 0.135 1 -2 0.02 -2.039 -1.962 10263.426 0.000 0.135
2 98187 386948937.9 2998271.84 129.060 100.00% 1.004 1 0.004 0.01 -0.015 0.022 0.137 0.711 0.995
3 98747 390380096.8 2998800.16 130.180 100.00% 1.000 0 0 0 0 0 1.000
from %spline
Model Delivery System’s Available Resources
• The macros and user’s guide book are located at:
• For SAS server TLSASPU6:
/auto/auto_nextgen/TEAM/swan/sas_macro/convert.sas
/auto/auto_nextgen/TEAM/swan/sas_macro/merge.sas
/auto/auto_nextgen/TEAM/swan/sas_macro/output.sas
/auto/auto_nextgen/TEAM/swan/sas_macro/MDS.pdf
• For SAS server TLSASPU7:
/data_team/Data_Home/swan/macro/convert.sas
/data_team/Data_Home/swan/macro/merge.sas
/data_team/Data_Home/swan/macro/output.sas
/data_team/Data_Home/swan/macro/fitted_parts.sas
/data_team/Data_Home/swan/macro/MDS.pdf
6
Q & A session
Any Questions?
7
“ Judge a man(woman) by his(her) questions rather than by his(her) answers.”
--- Francois-Marie Arouet, known as Voltaire

More Related Content

Viewers also liked

Hackers de Sombrero Negro.
Hackers de Sombrero Negro.Hackers de Sombrero Negro.
Hackers de Sombrero Negro.
carolina_980
 
Carr_Finding Aid_Example
Carr_Finding Aid_ExampleCarr_Finding Aid_Example
Carr_Finding Aid_Example
Marietta Carr
 
vsource - Smarter Talent Acquisition
vsource - Smarter Talent Acquisitionvsource - Smarter Talent Acquisition
vsource - Smarter Talent Acquisition
Quoc Nguyen
 

Viewers also liked (20)

ASF consolidated securitisation proposals European commission September 2015
ASF consolidated securitisation proposals European commission September 2015ASF consolidated securitisation proposals European commission September 2015
ASF consolidated securitisation proposals European commission September 2015
 
Brandon's Resume
Brandon's ResumeBrandon's Resume
Brandon's Resume
 
Noun
NounNoun
Noun
 
Teoria 2
Teoria 2Teoria 2
Teoria 2
 
Articolo_Bocelli_
Articolo_Bocelli_Articolo_Bocelli_
Articolo_Bocelli_
 
Hackers de Sombrero Negro.
Hackers de Sombrero Negro.Hackers de Sombrero Negro.
Hackers de Sombrero Negro.
 
SHA Bulletin 10 1-15
SHA Bulletin 10 1-15SHA Bulletin 10 1-15
SHA Bulletin 10 1-15
 
Number bonds to_10
Number bonds to_10Number bonds to_10
Number bonds to_10
 
Carr_Finding Aid_Example
Carr_Finding Aid_ExampleCarr_Finding Aid_Example
Carr_Finding Aid_Example
 
Trial e crt
Trial e crtTrial e crt
Trial e crt
 
IIA Tasks 3
IIA Tasks 3IIA Tasks 3
IIA Tasks 3
 
vsource - Smarter Talent Acquisition
vsource - Smarter Talent Acquisitionvsource - Smarter Talent Acquisition
vsource - Smarter Talent Acquisition
 
Micro elements
Micro elementsMicro elements
Micro elements
 
Fisica 2 Diana Torres
Fisica 2 Diana TorresFisica 2 Diana Torres
Fisica 2 Diana Torres
 
La ronda
La rondaLa ronda
La ronda
 
Canada: demographic, cultural and economic analysis.
Canada: demographic, cultural and economic analysis.Canada: demographic, cultural and economic analysis.
Canada: demographic, cultural and economic analysis.
 
Ken Courtright at LaCosta GMP
Ken Courtright at LaCosta GMPKen Courtright at LaCosta GMP
Ken Courtright at LaCosta GMP
 
Perkembangan agama islam di madinah
Perkembangan agama islam di madinahPerkembangan agama islam di madinah
Perkembangan agama islam di madinah
 
Treball definitiu
Treball definitiuTreball definitiu
Treball definitiu
 
Introducing.... The Key is E
Introducing.... The Key is EIntroducing.... The Key is E
Introducing.... The Key is E
 

Similar to MDS_mod

Sap solution manager change request management
Sap solution manager change request managementSap solution manager change request management
Sap solution manager change request management
dryday sunny
 
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docxWeek 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
jessiehampson
 
Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
hodeeeeee1
 
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docxCIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
clarebernice
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0
PMILebanonChapter
 
Onlineshopping 121105040955-phpapp02
Onlineshopping 121105040955-phpapp02Onlineshopping 121105040955-phpapp02
Onlineshopping 121105040955-phpapp02
Shuchi Singla
 

Similar to MDS_mod (20)

Sap solution manager change request management
Sap solution manager change request managementSap solution manager change request management
Sap solution manager change request management
 
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docxWeek 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
Week 2 Individual Assignment 2 Quantitative Analysis of Credit - .docx
 
Simulink Presentation.ppt
Simulink Presentation.pptSimulink Presentation.ppt
Simulink Presentation.ppt
 
CONTROL STRUCTURE
CONTROL STRUCTURECONTROL STRUCTURE
CONTROL STRUCTURE
 
CSL0777-L07.pptx
CSL0777-L07.pptxCSL0777-L07.pptx
CSL0777-L07.pptx
 
Aplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unitAplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unit
 
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docxCIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
CIS 321 Case Study ‘Equipment Check-Out System’MILESTONE 3 – PRO.docx
 
Telecom Churn Analysis
Telecom Churn AnalysisTelecom Churn Analysis
Telecom Churn Analysis
 
Model based development(MBD)
Model based development(MBD) Model based development(MBD)
Model based development(MBD)
 
Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0
 
Test plansample
Test plansampleTest plansample
Test plansample
 
Lab03
Lab03Lab03
Lab03
 
Implementation of a new Size Estimation Model
Implementation of a new Size Estimation ModelImplementation of a new Size Estimation Model
Implementation of a new Size Estimation Model
 
Ml2 train test-splits_validation_linear_regression
Ml2 train test-splits_validation_linear_regressionMl2 train test-splits_validation_linear_regression
Ml2 train test-splits_validation_linear_regression
 
Onlineshopping 121105040955-phpapp02
Onlineshopping 121105040955-phpapp02Onlineshopping 121105040955-phpapp02
Onlineshopping 121105040955-phpapp02
 
Onlineshoppingonline shopping
Onlineshoppingonline shoppingOnlineshoppingonline shopping
Onlineshoppingonline shopping
 
Machine_Learning_Trushita
Machine_Learning_TrushitaMachine_Learning_Trushita
Machine_Learning_Trushita
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDraw
 
Machine Learning Model for M.S admissions
Machine Learning Model for M.S admissionsMachine Learning Model for M.S admissions
Machine Learning Model for M.S admissions
 

MDS_mod

  • 1. A new SAS macro package for PI R&D: Model Delivery System Author: Songtao Wan Manager: Joseph (Xiaochen) Li Mentor: Hao Ding 1
  • 2. Model Delivery System’s Introduction 1. Motivation • It is always a headache for modelers to deliver/document their models. The processes are well described as:  Time-consuming  Labor-intensive  Repetitive  Vulnerable to human errors 2 2. Solution • Motivated by my manager Joseph (Xiaochen) Li, I present a new tool: Three piece-wise SAS macro package: Model Delivery System • Les Trois Mousquetaires: %convert, %merge, %output
  • 3. Model Delivery System’s Workflow 3 %convert Input: 1.Modeling dataset 2.Parameter dataset 3.Modeled and Structure variables Step 1: Aggregate exposure by both modeled & structured variables Step 2: Obtain factors from %fitted_parts Step 3: Calculate exposure weighted factor by structured variables Step 5: Addition features: Level checking Rebase Basic stats Step 4: Combine other aggregated model information %merge Input: output datasets from %convert with the same structure. What do: Merge the input datasets – combining factors from different coverage/perils into one dataset. %output Input: output datasets from %merge and/or %convert. What do: Produce Excel file – outputting merged datasets into separate tabs.
  • 4. Model Delivery System’s 1st Function: Delivery 4 This is how it looks like in a merged tab for CP,BI,PD and CL structured variables with levels exposure-weighted factors Note: all results are coming from simulated data sets cc7 cc8 cc9 cc10 CP BI PD CL 0 0 0 0 0.991 1.005 1.000 1.007 0 0 0 1 1.015 1.000 1.000 1.016 0 0 0 2 1.021 0.989 1.000 1.002 0 0 0 3 0.997 0.997 1.000 1.012 0 0 1 0 0.997 1.001 1.000 1.000 0 0 1 1 0.995 0.991 1.000 1.006 0 0 1 2 1.022 1.007 1.000 1.006 0 0 1 3 0.991 0.976 1.000 1.008 0 0 2 0 0.991 0.986 1.000 1.012 0 0 2 1 1.015 0.993 1.000 1.009 … … … … … … … …
  • 5. Model Delivery System’s 2nd Function: Documentation 5 This is how it looks like to record model variable “cc1” model information & structured factor recorded model statistics Note: all results are coming from simulated data sets from %dglm output parameter estimate data set cc1 NUM_ CLAIMS INCURRED_ LOSS EARNED_ EXPOSURE PURE_ PREMIUM z INDICATED_ FACTOR df estimate stderr ci_l ci_u chi_square p_value SELECTED_ FACTOR 0 98692 392138539.8 3001316.97 130.660 100.00% 1.011 1 0.011 0.01 -0.008 0.029 1.219 0.270 1.005 1 13207 51032729.89 3000724.58 17.010 27.65% 0.135 1 -2 0.02 -2.039 -1.962 10263.426 0.000 0.135 2 98187 386948937.9 2998271.84 129.060 100.00% 1.004 1 0.004 0.01 -0.015 0.022 0.137 0.711 0.995 3 98747 390380096.8 2998800.16 130.180 100.00% 1.000 0 0 0 0 0 1.000 from %spline
  • 6. Model Delivery System’s Available Resources • The macros and user’s guide book are located at: • For SAS server TLSASPU6: /auto/auto_nextgen/TEAM/swan/sas_macro/convert.sas /auto/auto_nextgen/TEAM/swan/sas_macro/merge.sas /auto/auto_nextgen/TEAM/swan/sas_macro/output.sas /auto/auto_nextgen/TEAM/swan/sas_macro/MDS.pdf • For SAS server TLSASPU7: /data_team/Data_Home/swan/macro/convert.sas /data_team/Data_Home/swan/macro/merge.sas /data_team/Data_Home/swan/macro/output.sas /data_team/Data_Home/swan/macro/fitted_parts.sas /data_team/Data_Home/swan/macro/MDS.pdf 6
  • 7. Q & A session Any Questions? 7 “ Judge a man(woman) by his(her) questions rather than by his(her) answers.” --- Francois-Marie Arouet, known as Voltaire