welcome to the course - amazon s3 · diversification constraints ... chapter 2: portfolio...

35
INTRODUCTION TO PORTFOLIO ANALYSIS Welcome To The Course

Upload: phunghanh

Post on 05-Jun-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

Welcome To The Course

Page 2: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Is Investing Monkey-Business?

Source: Eric Isselee, Getty Images

Page 3: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Who am I?● Professor of Finance

Page 4: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Who am I?● Advisor to investment companies about risk optimized investment:

Winning by losing less.

Source: Finvex

Page 5: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 6: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Simple Tricks

Page 7: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Simple Tricks● To avoid large losses:

● Carefully select diversified portfolios

● Use backtesting and online performance

monitoring

Page 8: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Course OverviewChapter 1: Portfolio Weights & Returns

Chapter 2: Portfolio Performance Evaluation

Chapter 3: Drivers of Performance

Chapter 4: Portfolio Optimization

Page 9: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

Let’s practice!

Page 10: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

The Portfolio Weights

Page 11: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 12: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Investment Decision ChoicesPortfolio

Company 1Company 2

Portfolio

Company 1Company 2

or or … ?

compute portfolio weights

Page 13: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Investment Value Invested Weight

1 V1

2 V2

• • •

• • •

• • •

N VN

Asset Weighting

Page 14: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 15: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Calculating Weight

0.61 + 0.24 + 0.12 + 0.03 = 1

Page 16: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Allocation Strategies

Be!ing On 1 Asset

Market Cap Weighting

Equal Weighting

Optimize Mean & Variance

(Ch. 4)

Page 17: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Source: h!p://www.falibo.com/vocabulary/idiom-dont-put-all-your-eggs-in-one/

Page 18: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

Let’s practice!

Page 19: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

The Portfolio Return

Page 20: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 21: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 22: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 23: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Portfolio Returns: Weighted Average Return

Where:

Page 24: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Asset 1 … AssetN

InValue.Asset1 … InValue.AssetN

FinValue.Asset1 … FinValue.AssetN

Three Steps

Asset 1 AssetN

Page 25: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Example: Two AssetsAsset 1 Asset2

InValue.Asset1 = $200 InValue.Asset2 = $300

FinValue.Asset1 = $180 FinValue.Asset2 = $300

Asset 1 Asset2

Page 26: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

Let’s practice!

Page 27: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

PerformanceAnalytics

Page 28: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

The Practitioner’s Challenge● In practice, time series of portfolio returns

● Longer history more info on portfolio

● Good package = PerformanceAnalytics

Page 29: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

The Creators● PerformanceAnalytics is the go-to package for portfolio

return analysis in R

Peter Carl Brian Peterson

Page 30: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Calculating Returns

Page 31: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 32: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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),]

Page 33: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

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

Page 34: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

Introduction to Portfolio Analysis

Portfolio Returns> Return.portfolio <- function(R, weights = NULL,

rebalance_on = c(NA, “years”, “quarters”, “months”, “weeks”, “days”))

Page 35: Welcome To The Course - Amazon S3 · Diversification Constraints ... Chapter 2: Portfolio Performance Evaluation Chapter 3: ... > 2006-01-06 10.033286 21.12891

INTRODUCTION TO PORTFOLIO ANALYSIS

Let’s practice!