The Capital Asset Pricing Model

Similar documents
Arbitrage Pricing Theory and Multifactor Models of Risk and Return

Measuring Performance with Factor Models

An Econometrician Looks at CAPM and Fama-French Models

Optimal Debt-to-Equity Ratios and Stock Returns

Problem Set 4 Solutions

Applied Macro Finance

The debate on NBIM and performance measurement, or the factor wars of 2015

DEGREE OF MASTER OF SCIENCE IN FINANCIAL ECONOMICS FINANCIAL ECONOMETRICS HILARY TERM 2019 COMPUTATIONAL ASSIGNMENT 1 PRACTICAL WORK 3

CHAPTER 10. Arbitrage Pricing Theory and Multifactor Models of Risk and Return INVESTMENTS BODIE, KANE, MARCUS

Using risk factors to evaluate investments and build portfolios. Michael Furey Managing Director Delta Research & Advisory

RETURN AND RISK GOVERNMENT PENSION FUND GLOBAL PRESS SEMINAR OSLO, 06 MARCH 2018

Does the Fama and French Five- Factor Model Work Well in Japan?*

Portfolio Risk Management and Linear Factor Models

Principles of Finance

Department of Finance Working Paper Series

Tuomo Lampinen Silicon Cloud Technologies LLC

Predictability of Stock Returns

The Norwegian State Equity Ownership

MATERIALITY MATTERS. Targeting the ESG issues that can impact performance the material ESG score. Emily Steinbarth, Quantitative Analyst.

CHAPTER 10. Arbitrage Pricing Theory and Multifactor Models of Risk and Return INVESTMENTS BODIE, KANE, MARCUS

Debt/Equity Ratio and Asset Pricing Analysis

EQUITY RESEARCH AND PORTFOLIO MANAGEMENT

The Econometrics of Financial Returns

Quantopian Risk Model Abstract. Introduction

NHY examples. Bernt Arne Ødegaard. 23 November Estimating dividend growth in Norsk Hydro 8

Answer FOUR questions out of the following FIVE. Each question carries 25 Marks.

Note on Cost of Capital

Global Journal of Finance and Banking Issues Vol. 5. No Manu Sharma & Rajnish Aggarwal PERFORMANCE ANALYSIS OF HEDGE FUND INDICES

Stochastic Models. Statistics. Walt Pohl. February 28, Department of Business Administration

Study Session 10. Equity Valuation: Valuation Concepts

Financial Returns. Dakota Wixom Quantitative Analyst QuantCourse.com INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON

Delta Factors. Glossary

Economics of Behavioral Finance. Lecture 3

Exploiting Factor Autocorrelation to Improve Risk Adjusted Returns

Optimal Portfolio Inputs: Various Methods

Statistically Speaking

FIN822 project 3 (Due on December 15. Accept printout submission or submission )

Size Matters, if You Control Your Junk

Empirical Study on Five-Factor Model in Chinese A-share Stock Market

Index Models and APT

Overview of Concepts and Notation

Asset Pricing and Excess Returns over the Market Return

An Analysis of Theories on Stock Returns

CHAPTER 8: INDEX MODELS

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

Firm specific uncertainty around earnings announcements and the cross section of stock returns

Stock-Based Compensation: Interest Alignment or Earnings Dilution?

Topic Nine. Evaluation of Portfolio Performance. Keith Brown

PASS Sample Size Software

Internet Appendix to The Booms and Busts of Beta Arbitrage

FF hoped momentum would go away, but it didn t, so the standard factor model became the four-factor model, = ( )= + ( )+ ( )+ ( )+ ( )

Statistical Understanding. of the Fama-French Factor model. Chua Yan Ru

Models explaining the average return on the Stockholm Stock Exchange

Impact of Accruals Quality on the Equity Risk Premium in Iran

Final Exam Suggested Solutions

Applied Macro Finance

The study of enhanced performance measurement of mutual funds in Asia Pacific Market

Expected Return Methodologies in Morningstar Direct Asset Allocation

Investigation the strength of Five-factor model of Fama and French. (2015) in describing fluctuations in stock returns

THE PENNSYLVANIA STATE UNIVERSITY SCHREYER HONORS COLLEGE DEPARTMENT OF FINANCE

Daily Data is Bad for Beta: Opacity and Frequency-Dependent Betas Online Appendix

Using Pitman Closeness to Compare Stock Return Models

Trading Costs of Asset Pricing Anomalies Appendix: Additional Empirical Results

Chapter 13 Return, Risk, and Security Market Line

FIN 6160 Investment Theory. Lecture 7-10

Applied portfolio analysis. Lecture II

Risk adjusted performance measurement of the stock-picking within the GPFG 1

Anomalies and Liquidity

State Ownership at the Oslo Stock Exchange. Bernt Arne Ødegaard

Problem Set 6. I did this with figure; bar3(reshape(mean(rx),5,5) );ylabel( size ); xlabel( value ); mean mo return %

Problem Set 3 Due by Sat 12:00, week 3

Dakota Wixom Quantitative Analyst QuantCourse.com

Tests for One Variance

Volatility Appendix. B.1 Firm-Specific Uncertainty and Aggregate Volatility

CHAPTER 8: INDEX MODELS

Next Generation Fund of Funds Optimization

Hedging Factor Risk Preliminary Version

Should Benchmark Indices Have Alpha? Revisiting Performance Evaluation. Martijn Cremers (Yale) Antti Petajisto (Yale) Eric Zitzewitz (Dartmouth)

Testing The Fama-French Five-Factor Model In Explaining Stock Returns Variation At The Lusaka Securities Exchange

MUTUAL FUND PERFORMANCE ANALYSIS PRE AND POST FINANCIAL CRISIS OF 2008

Title: Risk, Return, and Capital Budgeting Speaker: Rebecca Stull Created by: Gene Lai. online.wsu.edu

A. Huang Date of Exam December 20, 2011 Duration of Exam. Instructor. 2.5 hours Exam Type. Special Materials Additional Materials Allowed

B35150 Winter 2014 Quiz Solutions

State Ownership at the Oslo Stock Exchange

Regret-based Selection

Performances Appraisal of Real Estate Investment Trust in Borsa Istanbul

Foundations of Finance

The Free Cash Flow and Corporate Returns

Senior Research. Topic: Testing Asset Pricing Models: Evidence from Thailand. Name: Wasitphon Asawakowitkorn ID:

Finansavisen A case study of secondary dissemination of insider trade notifications

A Study to Check the Applicability of Fama and French, Three-Factor Model on S&P BSE- 500 Index

ATestofFameandFrenchThreeFactorModelinPakistanEquityMarket

Econ 219B Psychology and Economics: Applications (Lecture 10) Stefano DellaVigna

Tests for Two Variances

Betting Against Correlation:

Performance evaluation of managed portfolios

Microéconomie de la finance

CHAPTER 9: THE CAPITAL ASSET PRICING MODEL

Modelling Stock Returns in India: Fama and French Revisited

Economic Review. Wenting Jiao * and Jean-Jacques Lilti

Transcription:

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON The Capital Asset Pricing Model Dakota Wixom Quantitative Analyst QuantCourse.com

The Founding Father of Asset Pricing Models CAPM The Capital Asset Pricing Model is the fundamental building block for many other asset pricing models and factor models in finance.

Excess Returns To calculate excess returns, simply subtract the risk free rate of return from your total return: Example: Investing in Brazil: Excess Return = Return Risk Free Return 10% Portfolio Return - 15% Risk Free Rate = -5% Excess Return Investing in the US: 10% Portfolio Return - 3% Risk Free Rate = 7% Excess Return

The Capital Asset Pricing Model E(R ) RF = β (E(R ) RF ) E(R ) RF : The excess expected return of a stock or portfolio P E(R P M ) RF : The excess expected return of the broad market portfolio B RF : The regional risk free-rate P P M β : Portfolio beta, or exposure, to the broad market portfolio B P

Calculating Beta Using Co-Variance To calculate historical beta using co-variance: β = P Cov(R P, R B) V ar(r B) β : Portfolio beta P Cov(R, R ): The co-variance between the portfolio (P) and the benchmark P B market index (B) V ar(r ): The variance of the benchmark market index B

Calculating Beta Using Co-Variance in Python Assuming you already have excess portfolio and market returns in the object Data: In [1]: covariance_matrix = Data[["Port_Excess","Mkt_Excess"]].cov() In [2]: covariance_coefficient = covariance_matrix.iloc[0,1] In [3]: benchmark_variance = Data["Mkt_Excess"].var() In [4]: portfolio_beta = covariance_coefficient / benchmark_variance In [5]: portfolio_beta Out [5]: 0.93

Linear Regressions Example of a linear regression: Regression formula in matrix notation:

Calculating Beta Using Linear Regression Assuming you already have excess portfolio and market returns in the object Data: In [1]: import statsmodels.formula.api as smf In [2]: model = smf.ols(formula='port_excess ~ Mkt_Excess', data=data) In [3]: fit = model.fit() In [4]: beta = fit.params["mkt_excess"] In [5]: beta Out [5]: 0.93

R-Squared vs Adjusted R-Squared To extract the adjusted r-squared and r-squared values: In [1]: import statsmodels.formula.api as smf In [2]: model = smf.ols(formula='port_excess ~ Mkt_Excess', data=data) In [3]: fit = model.fit() In [4]: r_squared = fit.rsquared In [5]: r_squared Out [5]: 0.70 In [6]: adjusted_r_squared = fit.rsquared_adj Out [6]: 0.65

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON Let's practice!

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON Alpha and Multi-Factor Models Dakota Wixom Quantitative Analyst QuantCourse.com

The Fama-French 3 Factor Model The Fama-French 3- factor model: R = RF + β (R RF ) + b SM B + b HM L + α SMB: The small minus big factor b : Exposure to the SMB factor HML: The high minus low factor b : Exposure to the HML factor α: Performance which is unexplained by any other factors β SM B HM L M P M M SM B HM L : Beta to the broad market portfolio B

The Fama-French 3 Factor Model

The Fama-French 3 Factor Model in Python Assuming you already have excess portfolio and market returns in the object Data: In [1]: import statsmodels.formula.api as smf In [2]: model = smf.ols(formula='port_excess ~ Mkt_Excess + SMB + HML', data=dat In [3]: fit = model.fit() In [4]: adjusted_r_squared = fit.rsquared_adj In [5]: adjusted_r_squared Out [5]: 0.90

P-Values and Statistical Significance To extract the HML p-value, assuming you have a fitted regression model object in your workspace as fit: In [1]: fit.pvalues["hml"] Out [1]: 0.0063 To test if it is statistically significant, simply examine whether or not it is less than a given threshold, normally 0.05: In [1]: fit.pvalues["hml"] < 0.05 Out [2]: True

Extracting Coefficients To extract the HML coefficient, assuming you have a fitted regression model object in your workspace as fit: In [1]: fit.params["hml"] Out [1]: 0.502 In [2]: fit.params["smb"] Out [2]: -0.243

Alpha and the Efficient Market Hypothesis Assuming you already have a fitted regression analysis in the object fit: In [1]: portfolio_alpha = fit.params["intercept"] In [2]: portfolio_alpha_annualized = ((1+portfolio_alpha)**252)-1 In [3]: portfolio_alpha_annualized Out [3]: 0.045

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON Let's practice!

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON Expanding the 3-Factor Model Dakota Wixom Quantitative Analyst QuantCourse.com

Fama French 1993 The original paper that started it all:

Cliff Assness on Momentum A paper published later by Cliff Asness from AQR:

The Fama-French 5 Factor Model In 2015, Fama and French extended their previous 3-factor model, adding two additional factors: RMW: Profitability CMA: Investment The RMW factor represents the returns of companies with high operating profitability versus those with low operating profitability. The CMA factor represents the returns of companies with aggressive investments versus those who are more conservative.

The Fama-French 5 Factor Model

The Fama-French 5 Factor Model in Python Assuming you already have excess portfolio and market returns in the object Data: In [1]: import statsmodels.formula.api as smf In [2]: model = smf.ols(formula='port_excess ~ Mkt_Excess + SMB + HML + RMW + CM In [3]: fit = model.fit() In [4]: adjusted_r_squared = fit.rsquared_adj In [5]: adjusted_r_squared Out [5]: 0.92

INTRO TO PORTFOLIO RISK MANAGEMENT IN PYTHON Let's practice!