SlideShare a Scribd company logo
Which is Safe to Invest
Insurance or Technology ?
Risk Modeling
Portfolio Diversification
Time Series Forecasting
Nikhil Shrivastava
1
Executive Summary
OBJECTIVE
Approach
Conclusion
Using portfolio diversification and risk modeling techniques determine if
Insurance portfolio is less volatile than Tech portfolio
Two different techniques were applied, first assuming returns follow Normal Distribution,
ARIMA model was used. After plotting residuals to observe heteroscedasticity and
conditional variance ARMA+GARCH model was used with Copula
It is determined there is 5% chance that Insurance portfolio would lose 1.35 % with
expected shortfall of 1.84%. On the other hand there is 5% chance that Tech portfolio
would lose 1.83% with expected shortfall of 2.43%. Hence on any next day (period)
Insurance is expected to lose less than Tech.
2
Hypothesis
• Tech industry may experience larger loss than Insurance. Or Tech industry is more
volatile than Insurance industry.
• For the purpose of this project, 3 assets in each portfolio are chosen as a representative
of the industry.
• It is assumed that
• Insurance industry is only comprised of three Fortune 500 Insurance carriers- Chubb, Travelers and
Prudential.
• Tech industry is only comprised of Fortune 500 tech giants – Amazon, Google and Facebook
3
Data & Plots
• Yahoo finance historical data was obtained for all the companies in both portfolio
• For the purpose of this analysis, “Adj Close” price is used. Below two portfolios of assets have been created to further
this analysis.
• InsuRet: This is the Insurance portfolio and contains the cleaned complete cases of return series of Chubb, Travelers
and Prudential with time series attribute.
• TechRet: This is the Tech portfolio and contains the cleaned complete cases return series of Amazon, Google and
Facebook with time series attribute.
• Insuloss = - 1 * InsuRet & TechLoss = -1 * TechRet
• It can be observed that from below histograms that losses are not truly normally distributed, they look leptokurtic
4
Approach
5
• Two methods were used to predict the Value at Risk of Portfolio
1. Assuming Return/loss Follow Normal Distribution
𝐸 𝑅 𝑝 =
𝑖
𝑤𝑖 𝐸[𝑅𝑖]
𝐸 𝑅 𝑝 :return on the portfolio, 𝑤𝑖:weight of asset 𝑖 in the portfolio, 𝐸 𝑅𝑖 :expected return of asset 𝑖
2. Plots of all returns/loss showed signs of high kurtosis hence for Non-Normal Distribution used
ARMA + GARCH + Copula
Value at Risk, VaR - Portfolio
6
𝑉𝑎𝑅 = 𝑉0 𝛼𝜎p
𝜎 𝑝
2
= 𝑤 𝐴
2
𝜎𝐴
2
+ 𝑤 𝐵
2
𝜎 𝐵
2
+ 𝑤 𝐶
2
𝜎 𝐶
2
+ 2𝑤 𝐴 𝜎𝐴 𝜌 𝐴𝐵 𝑤 𝐵 𝜎 𝐵 + 2𝑤 𝐴 𝜎𝐴 𝜌 𝐴𝐶 𝑤 𝐶 𝜎 𝐶 + 2𝑤 𝐵 𝜎 𝐵 𝜌 𝐵𝐶 𝑤 𝐶 𝜎 𝐶
• Results show at 95% confidence interval, there is 5% chance Tech portfolio will lose 2.52% whereas
Insurance portfolio will lose 1.38%.
ARIMA – ACFs & PACFs
7
Asset ARIMA based on ACF PACF AIC
AMZN (0, 0, 1) 854.87
FB (0, 0, 1) 955.35
GOOG (0, 0, 1) 904.63
CB (0, 0, 1) 744.44
PRU (0, 0, 1) 925.89
TRV (0, 0, 1) 759.94
Residuals from ARIMA: Conditional Heteroscedasticity
8
• Showing only 2 residuals plots . FB from Tech portfolio and Chubb from Insurance portfolio . It is evident
from below that residuals have conditional heteroscedasticity.
ARMA + GARCH + Copula
9
To address conditional heteroscedasticity and volatility clustering ARMA + GARCH models was built by following steps
1. Specify and estimate the GARCH models for each loss factor.
gfitTech<-lapply(TechLoss,garchFit,formula=~arma(0,1)+garch(1,1), cond.dist="std",trace=FALSE)
gfitInsu<-lapply(Insuloss,garchFit,formula= ~arma(0,1)+garch(1,1), cond.dist="std",trace=FALSE)
Coefficient(s):
mu ma1 omega alpha1 beta1 shape
-0.176586 0.014660 0.094656 0.041029 0.915025 3.299001
Std. Errors:
based on Hessian
Error Analysis:
Estimate Std. Error t value Pr(>|t|)
mu -0.17659 0.06840 -2.582 0.00983 **
ma1 0.01466 0.06312 0.232 0.81633
omega 0.09466 0.08825 1.073 0.28347
alpha1 0.04103 0.02797 1.467 0.14245
beta1 0.91502 0.05540 16.516 < 2e-16 ***
shape 3.29900 0.69503 4.747 2.07e-06 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
• mu - intercept of the return/loss ARMA equation 0,1
• ar1 - first lag return
• omega - intercept of conditional standard equation
• alpha1 - lagged squared error
• beta1 - lagged conditional variance
• shape - from student t distribution
ARMA + GARCH + Copula
10
2. Estimate Degree-of-freedom parameters for the GARCH model of each asset:
gshapeTech<-unlist(lapply(gfitTech, function(x) x@fit$coef[6]))
gshapeInsu<-unlist(lapply(gfitInsu, function(x) x@fit$coef[6]))
We have to take coefficient that determine the shape, which is 6 in both cases:
ARMA + GARCH + Copula
11
3. Determine the standardized residuals :
gresidTech<-as.matrix(data.frame(lapply(gfitTech,function(x) x@residuals / sqrt(x@h.t))))
gresidInsu<-as.matrix(data.frame(lapply(gfitInsu,function(x) x@residuals / sqrt(x@h.t))))
4. Calculate the pseudo-uniform variables from the standardized residuals :
U_Tech <- sapply(1:3, function(y) pt(gresidTech[, y], df = gshapeTech[y]))
U_Insu <- sapply(1:3, function(y) pt(gresidInsu[, y], df = gshapeInsu[y]))
5. Estimate the copula model using kendall method :
cop_Tech <- fit.tcopula(Udata = U_Tech, method = "Kendall")
cop_Insu <- fit.tcopula(Udata = U_Insu, method = "Kendall")
Kendall method describes the joint marginal distribution for the three pseudo-uniform variates. Below mentioned Kendall
correlation matrix and nu are obtained :
ARMA + GARCH + Copula
12
6. Use the dependence structure determined by the estimated copula for generating N data sets of random variates for the
pseudo-uniformly distributed variables.
Histogram of rcop_Tech and rcop_Insu shows values between 0 and 1 and is uniformly distributed. Examples shown
7. Compute the quantiles for these Monte Carlo draws.
qcop_Tech <- sapply(1:3, function(x) qstd(rcop_Tech[, x], nu = gshapeTech[x]))
qcop_Insu <- sapply(1:3, function(x) qstd(rcop_Insu[, x], nu = gshapeInsu[x]))
ARMA + GARCH + Copula
13
8. Create a matix of 1 period ahead predictions of standard deviations. The matrix has 100,000 rows and 3 columns. Labeled
the matrix as "ht.mat".
Tech_ht.mat <- matrix(gprogTech, nrow = 100000, ncol = ncol(TechLoss), byrow = TRUE)
Insu_ht.mat <- matrix(gprogInsu, nrow = 100000, ncol = ncol(Insuloss), byrow = TRUE)
9. Use these quantiles in conjunction with the weight vector to calculate the N portfolio return scenarios. Here weight vector
was obtained by global minimum variance portfolio method.
Tech_pfall <- (qcop_Tech * Tech_ht.mat) %*% wTech
Insu_pfall <- (qcop_Insu * Insu_ht.mat) %*% wInsu
10. Finally, used this series for the calculation Expected Shortfall value of risk for the "global minimum variance portfolio"
with 95% confidence.
Tech_pfall.es95 <- median(tail(sort(Tech_pfall), 5000))
Tech_pfall.var95 <- min(tail(sort(Tech_pfall), 5000))
Insu_pfall.es95 <- median(tail(sort(Insu_pfall), 5000))
Insu_pfall.var95 <- min(tail(sort(Insu_pfall), 5000))
#For Tech Portfolio
TechGMV<-PGMV(Techcov)
www<-as.numeric(Weights(TechGMV))/100
wAMZN<-www[1]
wFB<-www[2]
wGOOG<-www[3]
wTech<-c(wAMZN,wFB,wGOOG)
#For Insu Portfolio
InsuGMV<-PGMV(Insucov)
www<-as.numeric(Weights(InsuGMV))/100
wCB<-www[1]
wPRU<-www[2]
wTRV<-www[3]
wInsu <- c(wCB,wPRU,wTRV)
Results and Conclusion
14
Tech_pfall.es95 # 2.41
Tech_pfall.var95 # 1.83
Insu_pfall.es95 # 1.833
Insu_pfall.var95 #1.353
• Based on above result we conclude our hypothesis that:
• There is 5% chance that Tech portfolio would lose 1.83% or more on next day (period) with expected shortfall of
2.41%. Meaning average losses could be around 2.41%
and
• There is 5% chance that Insurance portfolio would lose 1.35% or more on next day. With average loss of 1.8%
• Comparing it with previous VaR on slide 6, where it was determined that there is 5% chance that Insurance portfolio
will lose 1.38% is not huge different but ARMA+GARCH+Copula model is more accurate by .03%
• Similarly comparing for Tech portfolio earlier it was determined it may lose 2.52% where as ARMA+GARCH+Copula
determined 1.83% and tell us that earlier the risk was over-estimated
• Hence, Insurance portfolio is safer than Tech portfolio, and as these were representations of Insurance and Tech
industry, it is safe to invest in Insurance industry than in Tech industry.
Future Exploration
15
1. Using Different Methods to Obtain Weights
PAveDD() : Portfolio optimization with average draw-down constraint
PCDaR() : Portfolio optimization with conditional draw-down at-risk constraint
PERC() : equal risk contributed portfolios
PGMV() : global minimum variance portfolio
PMD() : most diversified portfolio
PMTD() : minimum tail-dependent portfolio
PMaxDD() : portfolio optimization with maximum draw-down constraint
PMinCDaR() : portfolio optimization for minimum conditional draw-down at risk
2. Understanding True Diversification
• Exploration of Asset Classes.
Thank You
16

More Related Content

Similar to Risk modeling prortfolio diversification 4.0

Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docxFall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
lmelaine
 
1100163YifanGuo
1100163YifanGuo1100163YifanGuo
1100163YifanGuoYifan Guo
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
k1kumar
 
Introducing R package ESG at Rmetrics Paris 2014 conference
Introducing R package ESG at Rmetrics Paris 2014 conferenceIntroducing R package ESG at Rmetrics Paris 2014 conference
Introducing R package ESG at Rmetrics Paris 2014 conference
Thierry Moudiki
 
IRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning AlgorithmIRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET Journal
 
PATTEM JAGADESH_21mt0269_research proposal presentation.pptx
PATTEM JAGADESH_21mt0269_research proposal presentation.pptxPATTEM JAGADESH_21mt0269_research proposal presentation.pptx
PATTEM JAGADESH_21mt0269_research proposal presentation.pptx
PATTEMJAGADESH
 
Exceptions and Exception Handling in C++
Exceptions and Exception Handling in C++Exceptions and Exception Handling in C++
Exceptions and Exception Handling in C++
IRJET Journal
 
ITB Term Paper - 10BM60066
ITB Term Paper - 10BM60066ITB Term Paper - 10BM60066
ITB Term Paper - 10BM60066
rahulsm27
 
IRJET-Debarred Objects Recognition by PFL Operator
IRJET-Debarred Objects Recognition by PFL OperatorIRJET-Debarred Objects Recognition by PFL Operator
IRJET-Debarred Objects Recognition by PFL Operator
IRJET Journal
 
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docxStrategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
cpatriciarpatricia
 
2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_fariaPaulo Faria
 
LTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptxLTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptx
ssuser574918
 
Explanations to the article on Copy-Paste
Explanations to the article on Copy-PasteExplanations to the article on Copy-Paste
Explanations to the article on Copy-Paste
PVS-Studio
 
How to use R in different professions: R for Car Insurance Product (Speaker: ...
How to use R in different professions: R for Car Insurance Product (Speaker: ...How to use R in different professions: R for Car Insurance Product (Speaker: ...
How to use R in different professions: R for Car Insurance Product (Speaker: ...
Zurich_R_User_Group
 
Flight Landing Analysis
Flight Landing AnalysisFlight Landing Analysis
Flight Landing Analysis
Tauseef Alam
 
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Universitat Politècnica de Catalunya
 
C.pdf
C.pdfC.pdf
Six Sigma Methods and Formulas for Successful Quality Management
Six Sigma Methods and Formulas for Successful Quality ManagementSix Sigma Methods and Formulas for Successful Quality Management
Six Sigma Methods and Formulas for Successful Quality Management
IJERA Editor
 
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHMNON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
IRJET Journal
 

Similar to Risk modeling prortfolio diversification 4.0 (20)

Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docxFall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
Fall 2016 Insurance Case Study – Finance 360Loss ControlLoss.docx
 
1100163YifanGuo
1100163YifanGuo1100163YifanGuo
1100163YifanGuo
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
Introducing R package ESG at Rmetrics Paris 2014 conference
Introducing R package ESG at Rmetrics Paris 2014 conferenceIntroducing R package ESG at Rmetrics Paris 2014 conference
Introducing R package ESG at Rmetrics Paris 2014 conference
 
IRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning AlgorithmIRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning Algorithm
 
PATTEM JAGADESH_21mt0269_research proposal presentation.pptx
PATTEM JAGADESH_21mt0269_research proposal presentation.pptxPATTEM JAGADESH_21mt0269_research proposal presentation.pptx
PATTEM JAGADESH_21mt0269_research proposal presentation.pptx
 
Exceptions and Exception Handling in C++
Exceptions and Exception Handling in C++Exceptions and Exception Handling in C++
Exceptions and Exception Handling in C++
 
ITB Term Paper - 10BM60066
ITB Term Paper - 10BM60066ITB Term Paper - 10BM60066
ITB Term Paper - 10BM60066
 
IRJET-Debarred Objects Recognition by PFL Operator
IRJET-Debarred Objects Recognition by PFL OperatorIRJET-Debarred Objects Recognition by PFL Operator
IRJET-Debarred Objects Recognition by PFL Operator
 
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docxStrategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
Strategic Sourcing Quantitative Decision-Making and Analytics Mo.docx
 
2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria
 
LTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptxLTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptx
 
Code Tuning
Code TuningCode Tuning
Code Tuning
 
Explanations to the article on Copy-Paste
Explanations to the article on Copy-PasteExplanations to the article on Copy-Paste
Explanations to the article on Copy-Paste
 
How to use R in different professions: R for Car Insurance Product (Speaker: ...
How to use R in different professions: R for Car Insurance Product (Speaker: ...How to use R in different professions: R for Car Insurance Product (Speaker: ...
How to use R in different professions: R for Car Insurance Product (Speaker: ...
 
Flight Landing Analysis
Flight Landing AnalysisFlight Landing Analysis
Flight Landing Analysis
 
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
 
C.pdf
C.pdfC.pdf
C.pdf
 
Six Sigma Methods and Formulas for Successful Quality Management
Six Sigma Methods and Formulas for Successful Quality ManagementSix Sigma Methods and Formulas for Successful Quality Management
Six Sigma Methods and Formulas for Successful Quality Management
 
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHMNON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
NON-STATIONARY BANDIT CHANGE DETECTION-BASED THOMPSON SAMPLING ALGORITHM
 

Recently uploaded

一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 

Risk modeling prortfolio diversification 4.0

  • 1. Which is Safe to Invest Insurance or Technology ? Risk Modeling Portfolio Diversification Time Series Forecasting Nikhil Shrivastava 1
  • 2. Executive Summary OBJECTIVE Approach Conclusion Using portfolio diversification and risk modeling techniques determine if Insurance portfolio is less volatile than Tech portfolio Two different techniques were applied, first assuming returns follow Normal Distribution, ARIMA model was used. After plotting residuals to observe heteroscedasticity and conditional variance ARMA+GARCH model was used with Copula It is determined there is 5% chance that Insurance portfolio would lose 1.35 % with expected shortfall of 1.84%. On the other hand there is 5% chance that Tech portfolio would lose 1.83% with expected shortfall of 2.43%. Hence on any next day (period) Insurance is expected to lose less than Tech. 2
  • 3. Hypothesis • Tech industry may experience larger loss than Insurance. Or Tech industry is more volatile than Insurance industry. • For the purpose of this project, 3 assets in each portfolio are chosen as a representative of the industry. • It is assumed that • Insurance industry is only comprised of three Fortune 500 Insurance carriers- Chubb, Travelers and Prudential. • Tech industry is only comprised of Fortune 500 tech giants – Amazon, Google and Facebook 3
  • 4. Data & Plots • Yahoo finance historical data was obtained for all the companies in both portfolio • For the purpose of this analysis, “Adj Close” price is used. Below two portfolios of assets have been created to further this analysis. • InsuRet: This is the Insurance portfolio and contains the cleaned complete cases of return series of Chubb, Travelers and Prudential with time series attribute. • TechRet: This is the Tech portfolio and contains the cleaned complete cases return series of Amazon, Google and Facebook with time series attribute. • Insuloss = - 1 * InsuRet & TechLoss = -1 * TechRet • It can be observed that from below histograms that losses are not truly normally distributed, they look leptokurtic 4
  • 5. Approach 5 • Two methods were used to predict the Value at Risk of Portfolio 1. Assuming Return/loss Follow Normal Distribution 𝐸 𝑅 𝑝 = 𝑖 𝑤𝑖 𝐸[𝑅𝑖] 𝐸 𝑅 𝑝 :return on the portfolio, 𝑤𝑖:weight of asset 𝑖 in the portfolio, 𝐸 𝑅𝑖 :expected return of asset 𝑖 2. Plots of all returns/loss showed signs of high kurtosis hence for Non-Normal Distribution used ARMA + GARCH + Copula
  • 6. Value at Risk, VaR - Portfolio 6 𝑉𝑎𝑅 = 𝑉0 𝛼𝜎p 𝜎 𝑝 2 = 𝑤 𝐴 2 𝜎𝐴 2 + 𝑤 𝐵 2 𝜎 𝐵 2 + 𝑤 𝐶 2 𝜎 𝐶 2 + 2𝑤 𝐴 𝜎𝐴 𝜌 𝐴𝐵 𝑤 𝐵 𝜎 𝐵 + 2𝑤 𝐴 𝜎𝐴 𝜌 𝐴𝐶 𝑤 𝐶 𝜎 𝐶 + 2𝑤 𝐵 𝜎 𝐵 𝜌 𝐵𝐶 𝑤 𝐶 𝜎 𝐶 • Results show at 95% confidence interval, there is 5% chance Tech portfolio will lose 2.52% whereas Insurance portfolio will lose 1.38%.
  • 7. ARIMA – ACFs & PACFs 7 Asset ARIMA based on ACF PACF AIC AMZN (0, 0, 1) 854.87 FB (0, 0, 1) 955.35 GOOG (0, 0, 1) 904.63 CB (0, 0, 1) 744.44 PRU (0, 0, 1) 925.89 TRV (0, 0, 1) 759.94
  • 8. Residuals from ARIMA: Conditional Heteroscedasticity 8 • Showing only 2 residuals plots . FB from Tech portfolio and Chubb from Insurance portfolio . It is evident from below that residuals have conditional heteroscedasticity.
  • 9. ARMA + GARCH + Copula 9 To address conditional heteroscedasticity and volatility clustering ARMA + GARCH models was built by following steps 1. Specify and estimate the GARCH models for each loss factor. gfitTech<-lapply(TechLoss,garchFit,formula=~arma(0,1)+garch(1,1), cond.dist="std",trace=FALSE) gfitInsu<-lapply(Insuloss,garchFit,formula= ~arma(0,1)+garch(1,1), cond.dist="std",trace=FALSE) Coefficient(s): mu ma1 omega alpha1 beta1 shape -0.176586 0.014660 0.094656 0.041029 0.915025 3.299001 Std. Errors: based on Hessian Error Analysis: Estimate Std. Error t value Pr(>|t|) mu -0.17659 0.06840 -2.582 0.00983 ** ma1 0.01466 0.06312 0.232 0.81633 omega 0.09466 0.08825 1.073 0.28347 alpha1 0.04103 0.02797 1.467 0.14245 beta1 0.91502 0.05540 16.516 < 2e-16 *** shape 3.29900 0.69503 4.747 2.07e-06 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 • mu - intercept of the return/loss ARMA equation 0,1 • ar1 - first lag return • omega - intercept of conditional standard equation • alpha1 - lagged squared error • beta1 - lagged conditional variance • shape - from student t distribution
  • 10. ARMA + GARCH + Copula 10 2. Estimate Degree-of-freedom parameters for the GARCH model of each asset: gshapeTech<-unlist(lapply(gfitTech, function(x) x@fit$coef[6])) gshapeInsu<-unlist(lapply(gfitInsu, function(x) x@fit$coef[6])) We have to take coefficient that determine the shape, which is 6 in both cases:
  • 11. ARMA + GARCH + Copula 11 3. Determine the standardized residuals : gresidTech<-as.matrix(data.frame(lapply(gfitTech,function(x) x@residuals / sqrt(x@h.t)))) gresidInsu<-as.matrix(data.frame(lapply(gfitInsu,function(x) x@residuals / sqrt(x@h.t)))) 4. Calculate the pseudo-uniform variables from the standardized residuals : U_Tech <- sapply(1:3, function(y) pt(gresidTech[, y], df = gshapeTech[y])) U_Insu <- sapply(1:3, function(y) pt(gresidInsu[, y], df = gshapeInsu[y])) 5. Estimate the copula model using kendall method : cop_Tech <- fit.tcopula(Udata = U_Tech, method = "Kendall") cop_Insu <- fit.tcopula(Udata = U_Insu, method = "Kendall") Kendall method describes the joint marginal distribution for the three pseudo-uniform variates. Below mentioned Kendall correlation matrix and nu are obtained :
  • 12. ARMA + GARCH + Copula 12 6. Use the dependence structure determined by the estimated copula for generating N data sets of random variates for the pseudo-uniformly distributed variables. Histogram of rcop_Tech and rcop_Insu shows values between 0 and 1 and is uniformly distributed. Examples shown 7. Compute the quantiles for these Monte Carlo draws. qcop_Tech <- sapply(1:3, function(x) qstd(rcop_Tech[, x], nu = gshapeTech[x])) qcop_Insu <- sapply(1:3, function(x) qstd(rcop_Insu[, x], nu = gshapeInsu[x]))
  • 13. ARMA + GARCH + Copula 13 8. Create a matix of 1 period ahead predictions of standard deviations. The matrix has 100,000 rows and 3 columns. Labeled the matrix as "ht.mat". Tech_ht.mat <- matrix(gprogTech, nrow = 100000, ncol = ncol(TechLoss), byrow = TRUE) Insu_ht.mat <- matrix(gprogInsu, nrow = 100000, ncol = ncol(Insuloss), byrow = TRUE) 9. Use these quantiles in conjunction with the weight vector to calculate the N portfolio return scenarios. Here weight vector was obtained by global minimum variance portfolio method. Tech_pfall <- (qcop_Tech * Tech_ht.mat) %*% wTech Insu_pfall <- (qcop_Insu * Insu_ht.mat) %*% wInsu 10. Finally, used this series for the calculation Expected Shortfall value of risk for the "global minimum variance portfolio" with 95% confidence. Tech_pfall.es95 <- median(tail(sort(Tech_pfall), 5000)) Tech_pfall.var95 <- min(tail(sort(Tech_pfall), 5000)) Insu_pfall.es95 <- median(tail(sort(Insu_pfall), 5000)) Insu_pfall.var95 <- min(tail(sort(Insu_pfall), 5000)) #For Tech Portfolio TechGMV<-PGMV(Techcov) www<-as.numeric(Weights(TechGMV))/100 wAMZN<-www[1] wFB<-www[2] wGOOG<-www[3] wTech<-c(wAMZN,wFB,wGOOG) #For Insu Portfolio InsuGMV<-PGMV(Insucov) www<-as.numeric(Weights(InsuGMV))/100 wCB<-www[1] wPRU<-www[2] wTRV<-www[3] wInsu <- c(wCB,wPRU,wTRV)
  • 14. Results and Conclusion 14 Tech_pfall.es95 # 2.41 Tech_pfall.var95 # 1.83 Insu_pfall.es95 # 1.833 Insu_pfall.var95 #1.353 • Based on above result we conclude our hypothesis that: • There is 5% chance that Tech portfolio would lose 1.83% or more on next day (period) with expected shortfall of 2.41%. Meaning average losses could be around 2.41% and • There is 5% chance that Insurance portfolio would lose 1.35% or more on next day. With average loss of 1.8% • Comparing it with previous VaR on slide 6, where it was determined that there is 5% chance that Insurance portfolio will lose 1.38% is not huge different but ARMA+GARCH+Copula model is more accurate by .03% • Similarly comparing for Tech portfolio earlier it was determined it may lose 2.52% where as ARMA+GARCH+Copula determined 1.83% and tell us that earlier the risk was over-estimated • Hence, Insurance portfolio is safer than Tech portfolio, and as these were representations of Insurance and Tech industry, it is safe to invest in Insurance industry than in Tech industry.
  • 15. Future Exploration 15 1. Using Different Methods to Obtain Weights PAveDD() : Portfolio optimization with average draw-down constraint PCDaR() : Portfolio optimization with conditional draw-down at-risk constraint PERC() : equal risk contributed portfolios PGMV() : global minimum variance portfolio PMD() : most diversified portfolio PMTD() : minimum tail-dependent portfolio PMaxDD() : portfolio optimization with maximum draw-down constraint PMinCDaR() : portfolio optimization for minimum conditional draw-down at risk 2. Understanding True Diversification • Exploration of Asset Classes.