welcome to the course - amazon s3 · diversification constraints ... chapter 2: portfolio...
TRANSCRIPT
INTRODUCTION TO PORTFOLIO ANALYSIS
Welcome To The Course
Introduction to Portfolio Analysis
Is Investing Monkey-Business?
Source: Eric Isselee, Getty Images
Introduction to Portfolio Analysis
Who am I?● Professor of Finance
Introduction to Portfolio Analysis
Who am I?● Advisor to investment companies about risk optimized investment:
Winning by losing less.
Source: Finvex
Introduction to Portfolio Analysis
Diversify To Avoid Losses
Screening Based On Financial Risk And Performance Analysis
Optimize Portfolios Under Diversification Constraints
Screening Based on Liquidity
Introduction to Portfolio Analysis
Simple Tricks
Introduction to Portfolio Analysis
Simple Tricks● To avoid large losses:
● Carefully select diversified portfolios
● Use backtesting and online performance
monitoring
Introduction to Portfolio Analysis
Course OverviewChapter 1: Portfolio Weights & Returns
Chapter 2: Portfolio Performance Evaluation
Chapter 3: Drivers of Performance
Chapter 4: Portfolio Optimization
INTRODUCTION TO PORTFOLIO ANALYSIS
Let’s practice!
INTRODUCTION TO PORTFOLIO ANALYSIS
The Portfolio Weights
Introduction to Portfolio Analysis
Investment Decision Choices● There are two similar companies:
● Do you invest in either of them based on a coin toss?
Portfolio
Company 1Company 2Source: ICMA Photos, Flickr
Introduction to Portfolio Analysis
Investment Decision ChoicesPortfolio
Company 1Company 2
Portfolio
Company 1Company 2
or or … ?
compute portfolio weights
Introduction to Portfolio Analysis
Investment Value Invested Weight
1 V1
2 V2
• • •
• • •
• • •
N VN
Asset Weighting
Introduction to Portfolio Analysis
values <- c(500000, 200000, 100000, 20000) names(values) <- c(“Inv 1”, “Inv 2”, “Inv 3”, “Inv 4”) weights <- values/sum(values)
barplot(weights)
Calculating Weight
Introduction to Portfolio Analysis
Calculating Weight
0.61 + 0.24 + 0.12 + 0.03 = 1
Introduction to Portfolio Analysis
Allocation Strategies
Be!ing On 1 Asset
Market Cap Weighting
Equal Weighting
Optimize Mean & Variance
(Ch. 4)
Introduction to Portfolio Analysis
Source: h!p://www.falibo.com/vocabulary/idiom-dont-put-all-your-eggs-in-one/
INTRODUCTION TO PORTFOLIO ANALYSIS
Let’s practice!
INTRODUCTION TO PORTFOLIO ANALYSIS
The Portfolio Return
Introduction to Portfolio Analysis
Portfolio Returns: Relative Value● Weights reveal active investment bets
● Returns are the relative changes in value:
Initial Value 100
Final Value 120
Introduction to Portfolio Analysis
Asset 1 … AssetN
InValue.Asset1 … InValue.AssetN
FinValue.Asset1 … FinValue.AssetN
InValue.Portfolio = InValue.Asset1 + … + InValue.AssetN
FinValue.Portfolio = FinValue.Asset1 + … + FinValue.AssetN
Three Steps
Introduction to Portfolio Analysis
Asset 1 Asset2
InValue.Asset1 = $200 InValue.Asset2 = $300
FinValue.Asset1= $180 FinValue.Asset2 = $330
InValue.Portfolio = $200 + $300 = $500
FinValue.Portfolio = $180 + $330 = $510
Example: Two Assets
Introduction to Portfolio Analysis
Portfolio Returns: Weighted Average Return
Where:
Introduction to Portfolio Analysis
Asset 1 … AssetN
InValue.Asset1 … InValue.AssetN
FinValue.Asset1 … FinValue.AssetN
Three Steps
Asset 1 AssetN
Introduction to Portfolio Analysis
Example: Two AssetsAsset 1 Asset2
InValue.Asset1 = $200 InValue.Asset2 = $300
FinValue.Asset1 = $180 FinValue.Asset2 = $300
Asset 1 Asset2
INTRODUCTION TO PORTFOLIO ANALYSIS
Let’s practice!
INTRODUCTION TO PORTFOLIO ANALYSIS
PerformanceAnalytics
Introduction to Portfolio Analysis
The Practitioner’s Challenge● In practice, time series of portfolio returns
● Longer history more info on portfolio
● Good package = PerformanceAnalytics
Introduction to Portfolio Analysis
The Creators● PerformanceAnalytics is the go-to package for portfolio
return analysis in R
Peter Carl Brian Peterson
Introduction to Portfolio Analysis
Calculating Returns
Introduction to Portfolio Analysis
Calculating Returns● Return.calculate: to compute the asset returns
● Return.portfolio: to compute the portfolio return
● Return.calculate(prices)
xts-object
● Dates structure: YYYY-MM-DD
Introduction to Portfolio Analysis
Calculating Returns
> head(prices)> AAPL MSFT> 2006-01-03 9.829465 21.07395> 2006-01-04 9.858394 21.17603> 2006-01-05 9.780810 21.19173> 2006-01-06 10.033286 21.12891> 2006-01-09 10.000411 21.08966> 2006-01-10 10.632916 21.19958
> head(returns)> AAPL MSFT> 2006-01-03 NA NA> 2006-01-04 0.002943090 0.0048434670> 2006-01-05 -0.007869842 0.0007415934> 2006-01-06 0.025813404 -0.0029640809> 2006-01-09 -0.003276594 -0.0018579752> 2006-01-10 0.063247901 0.0052121756
> returns <- Return.calculate(prices)
Return.calculate
Out: ReturnsIn: Prices
> returns <- Return.calculate(prices)> returns <- returns[(-1),]
Introduction to Portfolio Analysis
Dynamics of Portfolio Weights
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
1/5/16
2/5/16
3/5/16
4/5/16
5/5/16
6/5/16
7/5/16
8/5/16
WeightAsset2
WeightAsset1
Set Initial Weights & Do Not Intervene
Example: Initial 50/50 weight
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
1/5/16
2/5/16
3/5/16
4/5/16
5/5/16
6/5/16
7/5/16
8/5/16
WeightAsset2
WeightAsset1
Actively Change Portfolio Weights
Example: 50/50 Weight With Rebalance
Introduction to Portfolio Analysis
Portfolio Returns> Return.portfolio <- function(R, weights = NULL,
rebalance_on = c(NA, “years”, “quarters”, “months”, “weeks”, “days”))
INTRODUCTION TO PORTFOLIO ANALYSIS
Let’s practice!