Introduction to Algorithmic Trading Strategies Lecture 9

Similar documents
FE670 Algorithmic Trading Strategies. Stevens Institute of Technology

OPTIMAL RISKY PORTFOLIOS- ASSET ALLOCATIONS. BKM Ch 7

Applied Macro Finance

Portfolio Risk Management and Linear Factor Models

Applied Macro Finance

Chapter 8: CAPM. 1. Single Index Model. 2. Adding a Riskless Asset. 3. The Capital Market Line 4. CAPM. 5. The One-Fund Theorem

Asset Selection Model Based on the VaR Adjusted High-Frequency Sharp Index

Applied Macro Finance

Mean-Variance Theory at Work: Single and Multi-Index (Factor) Models

CHAPTER 8: INDEX MODELS

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

Financial Markets & Portfolio Choice

Post-Earnings-Announcement Drift (PEAD): The Role of Revenue Surprises

FIN 6160 Investment Theory. Lecture 7-10

CHAPTER 8: INDEX MODELS

Optimal Portfolio Inputs: Various Methods

Principles of Finance

EQUITY RESEARCH AND PORTFOLIO MANAGEMENT

Risk. Technical article

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

Lecture 3: Return vs Risk: Mean-Variance Analysis

LECTURE NOTES 3 ARIEL M. VIALE

Applications of Linear Programming

9.1 Principal Component Analysis for Portfolios

Empirical Methods for Corporate Finance. Panel Data, Fixed Effects, and Standard Errors

Final Exam Suggested Solutions

Foundations of Finance

COMM 324 INVESTMENTS AND PORTFOLIO MANAGEMENT ASSIGNMENT 2 Due: October 20

MATH 4512 Fundamentals of Mathematical Finance

Economics of Behavioral Finance. Lecture 3

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

Financial Mathematics III Theory summary

Common Macro Factors and Their Effects on U.S Stock Returns

ECONOMIA DEGLI INTERMEDIARI FINANZIARI AVANZATA MODULO ASSET MANAGEMENT LECTURE 6

Topic Nine. Evaluation of Portfolio Performance. Keith Brown

Machine Learning in Risk Forecasting and its Application in Low Volatility Strategies

QR43, Introduction to Investments Class Notes, Fall 2003 IV. Portfolio Choice

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

Lecture 4: Return vs Risk: Mean-Variance Analysis

MS-E2114 Investment Science Lecture 5: Mean-variance portfolio theory

APPLYING MULTIVARIATE

P2.T8. Risk Management & Investment Management. Jorion, Value at Risk: The New Benchmark for Managing Financial Risk, 3rd Edition.

The Fundamental Law of Mismanagement

Comparison of OLS and LAD regression techniques for estimating beta

ECONOMIA DEGLI INTERMEDIARI FINANZIARI AVANZATA MODULO ASSET MANAGEMENT LECTURE 5

An Empiricist s Guide to The Arbitrage Pricing Theory

(High Dividend) Maximum Upside Volatility Indices. Financial Index Engineering for Structured Products

Can you do better than cap-weighted equity benchmarks?

Lecture 10-12: CAPM.

Dissertation on. Linear Asset Pricing Models. Na Wang

Option-Implied Correlations, Factor Models, and Market Risk

Macroeconomics Sequence, Block I. Introduction to Consumption Asset Pricing

Assessment on Credit Risk of Real Estate Based on Logistic Regression Model

Microéconomie de la finance

A Portfolio s Risk - Return Analysis

Derivation of zero-beta CAPM: Efficient portfolios

Aggregate Earnings Surprises, & Behavioral Finance

Mean Variance Analysis and CAPM

Risk and Return and Portfolio Theory

Attilio Meucci. Managing Diversification

CORPORATE ANNOUNCEMENTS OF EARNINGS AND STOCK PRICE BEHAVIOR: EMPIRICAL EVIDENCE

Log-Robust Portfolio Management

Note on Cost of Capital

Asset Allocation with Exchange-Traded Funds: From Passive to Active Management. Felix Goltz

Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty

Multi-Asset Risk Models

ECCE Research Note 06-01: CORPORATE GOVERNANCE AND THE COST OF EQUITY CAPITAL: EVIDENCE FROM GMI S GOVERNANCE RATING

Highest possible excess return at lowest possible risk May 2004

Financial Analysis The Price of Risk. Skema Business School. Portfolio Management 1.

Risk and Return. CA Final Paper 2 Strategic Financial Management Chapter 7. Dr. Amit Bagga Phd.,FCA,AICWA,Mcom.

2.4 STATISTICAL FOUNDATIONS

LECTURE NOTES 10 ARIEL M. VIALE

Practice Problems 1: Moral Hazard

3. Capital asset pricing model and factor models

Beyond Markowitz Portfolio Optimization

Economics 424/Applied Mathematics 540. Final Exam Solutions

CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization

Chapter 6 Forecasting Volatility using Stochastic Volatility Model

Improving Returns-Based Style Analysis

Basic Regression Analysis with Time Series Data

A RIDGE REGRESSION ESTIMATION APPROACH WHEN MULTICOLLINEARITY IS PRESENT

Module 6 Portfolio risk and return

Addendum. Multifactor models and their consistency with the ICAPM

Procedia - Social and Behavioral Sciences 109 ( 2014 ) Yigit Bora Senyigit *, Yusuf Ag

Archana Khetan 05/09/ MAFA (CA Final) - Portfolio Management

What is the Expected Return on a Stock?

Solutions to questions in Chapter 8 except those in PS4. The minimum-variance portfolio is found by applying the formula:

Chapter 13 Return, Risk, and Security Market Line

Tests for Two ROC Curves

Portfolio models - Podgorica

ECON FINANCIAL ECONOMICS

ECON FINANCIAL ECONOMICS

P1.T1. Foundations of Risk Management Zvi Bodie, Alex Kane, and Alan J. Marcus, Investments, 10th Edition Bionic Turtle FRM Study Notes

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay. Solutions to Final Exam

Steve Monahan. Discussion of Using earnings forecasts to simultaneously estimate firm-specific cost of equity and long-term growth

General Notation. Return and Risk: The Capital Asset Pricing Model

Lecture 3: Factor models in modern portfolio choice

Dynamic Replication of Non-Maturing Assets and Liabilities

The Simple Regression Model

Financial Liberalization and Neighbor Coordination

Transcription:

Introduction to Algorithmic Trading Strategies Lecture 9 Quantitative Equity Portfolio Management Haksun Li haksun.li@numericalmethod.com www.numericalmethod.com

Outline Alpha Factor Models

References Ludwig, B. C. and Daehwan, K. Quantitative Equity Portfolio Management: An Active Approach to Portfolio Construction and Management. 2006 Grinold, R. and Kahn, R. Active Portfolio Management: A Quantitative Approach for Producing Superior Returns and Controlling Risk. 1999.

Alpha

Alpha α: out-performance the measurement of a portfolio s risk adjusted returns over a reference instrument. Benchmark α: r p = α + βr B + ε α + ε: residual return, the return that is independent of the benchmark βr B : expected return CAPM α: r p = α + βr M + ε According to CAPM, α = 0. Multifactor α: r p = α + β 1 f 1 + + β K f K + ε Each f i is a risk factor. K β i f i : expected return i=1

Information Ratio II = αb σ α B : ex-ante, expected excess return σ: standard deviation of the residuals

The Seven Tenets of QEPM Markets are mostly efficient. Pure arbitrage opportunities do not exist. Quantitative analysis creates statistical arbitrage opportunities. Quantitative analysis combines all the available information in an efficient way. Quantitative models should be based on sound economic theories. Quantitative models should reflect persistent and stable patterns. Deviations of a portfolio from the benchmark are justified only if the uncertainty is small enough.

Post Earning Announcement Drift On a good (bad) earning surprise announcement, the market will continue to react to the news. The market takes some time to digest the new information, often weeks or even months. We can therefore buy on a good news and take profit when the market finishes consuming the information. Our smart filter picks high confident stocks from hundreds of announcements each quarter.

Example: Insys Therapeutics, Inc. (INSY) Aug 13, 2013 (before open): INSY announced that the continued uptake of their cancer pain relief spray, Subsys, leads to the strong 2 nd quarter results. The announced EPS ($0.17) was much higher than the market expectation ($0.09). Since then, the share price achieved a new high in a few months and the trading volume also increased sharply. 18.83

Response to Earning Surprise INSY s share price rallied over 260% in 4 months!

Post-Earning Announcement Drift (PEAD) Anomaly discovered by Ball and Brown (1968) The tendency for a stock s cumulative abnormal returns to drift for several weeks (even several months) following positive earnings announcement Studied and confirmed by countless academics in many international markets 11

PEAD Trading Fundamental reasons: Under-reaction to earnings announcements Distraction by other announcements Trading idea: Long good news Short bad news 12

Surprise vs. Return Average return = 5.72%

Surprise vs. Return Average return = 5.33% Average return = 7.86%

Capital Allocation U.S. stocks Quarterly reporting system dictates frequent announcements, hence more trading opportunities Diversification No single stock weights more than 10% Long-only Stop-loss No penny stocks

Look for Profitable Stocks Over 300 announcements on peak days Our Smart Stock Filter picks stocks with higher winning probability

A case for 2013 US Stocks Profit: 46.36% #Trade: 103 #Win: 62 #Loss: 41 Max. gain: 91.6% Max. loss: -10.00% Gain/trade: 7.80% Sharpe ratio: 2.95

Historical Returns 2008: 11.3% 2009: 138.1% 2010: 26.2% 2011: 8.9% 2012: 11.6% 2013: 68% 2014: 16.5%

Fundamental Law of Active Management r ii = α i + β ii f 1t + + β ii f Kt + ε ii

Fundamental Law of Active Management With E r ii and Cov r ii, r jj, we can compute the optimal min-variance portfolio. IR 2 approximately equals the goodness of fit, R 2. BR: number of explanatory factors. IC is the average covariance of predictions vs. factors. II 2 = αb σ = w E r T+1 2 w V r T+1 w = R2 = II 2 IR: information ratio IC: information coefficient BR: breadth BB Finding more significant/accurate factors increases IC. Finding more uncorrelated factors increases BR.

Data Mining You can always find a good model by trying hard enough testing enough factors. r t = α + β 1 f 1t + + β 99 f 99t + ε ii When there are 100 months of return, the equation will fit perfectly, R 2 = 1. Forward selection will not work as it will guarantee to pick the most significant variable out of the 100 random factors. Community is doing a collective data mining. E.g., company size may not be a factor.

Parameter Estimation Sensitivity and stability. Divide the data into groups along the timeline. Estimations should be more or less the same for all sub-groups. Uncertainty and confidence.

Factor Models

Expected Return Expected Return = Factor Premium x Factor Exposure Factor Premium, f i : how much an investor is willing to pay for each factor. Payoff. Factor Exposure, β i : how sensitive is a stock return to the factor. Exposure to risk.

Factors Stock specific/fundamental factors: PE, PB, PS, D/E, size, momentum, volume, earning surprise, analyst rating changes Market/economic factors: GDP, inflation, unemployment, interest rate, survey-based indices, Factor exposure: exposure to a risk Factor premium: the premium/price/fair return/dollar value the market places of 1 unit of risk (factor exposure) average stock return = factor exposure * factor premium

Fundamental Model r i = α i + β i1 f 1 + + β ii f K + ε i r i can be replaced by r i = r i r f because the r f portion is not awarded by taking risks. r i : monthly returns, for example. Factors are fundamental factors such as P/E, size. The β ij are directly observable (from accounting reports). factor dependent; stock dependent; time independent The premiums are estimated by cross-sectional/panel regression. factor dependent; stock independent; time independent

Risk total risk = non-diversifiable risk + diversifiable risk V r i = V β i f + V ε i = β i V f β i + V ε i Non-diversifiable risk comes from the randomness of the premiums. Diversifiable risk comes from the unexplained risk of the model.

Estimation of Factor Premiums Returns of N stocks over T periods: r 11,, r N1,, r 1T,, r NT. Factor exposures known: β 11,, β NN,, β 1T,, β NN. Model: r ii = β ii f + ε ii Panel: r 11 = β 11,1 f 1 + + β 11,K f K + ε 11, r 1T = β 1T,1 f 1 + + β 1T,K f K + ε 1T, r N1 = β N1,1 f 1 + + β N1,K f K + ε N1, r NT = β NT,1 f 1 + + β NT,K f K + ε NT,

OLS y i = β 0 + x 1i β 1 + x 2i β 2 + + +x ki β k + ε i, i = 1,2,3,, N Objective: Minimize the sum of squared residuals. Assumptions: No (perfect) collinearity: Cov x i, x j 1 X X cannot be inverted. Regressors are exogenous: E ε i x 1i,, x ki = 0. Uncorrelated errors: Cov ε i, ε j = 0. Homoskedasticity: Vaa ε i = Vaa y i x 1i,, x kk = σ 2. Properties: Consistent: β β. Unbiased: E β = β. Minimum variance Errors are normally distributed. ε i is N 0, σ 2. β are MLE.

OLS Estimation n RSS = S b = y i x i b 2 i=1 = y XX y XX β = argmin S b = n i=1 x i x i x i x i 1 n E.g., apply first order condition on S b β i = Cov x i,y Var x i y = Xβ ε = y y = y Xβ s 2 = ε ε n p, OLS estimator for σ2, unbiased i=1 xi x i y y = X X 1 X y σ 2 = ε ε n, MLE estimator for σ2, biased but minimizes the mean squared error of the estimator. R 2 = y i y 2 y i y 2

OLS Finite Sample Properties E β X = β E s 2 X = σ 2 Var β X = σ 2 X X 1 β ~ N β, σ 2 X X 1 s. e. β j = s 2 X X 1 jj Cov β, ε X = 0

OLS on Panel Data r ii = β ii f + ε ii r ii r = β ii β r = 1 T N r NN i=1 i=1 ii β = 1 T N β NN i=1 i=1 ii r ii = β ii f + εii r ii = r ii r β ii = β it β f + εii T N f = β ii β ii i=1 i=1 1 β ii r ii T i=1 Var f = σ 2 T N β ii β ii i=1 i=1 σ 2 = 1 T N NN r ii β ii f 2 i=1 i=1 N i=1 1

Minimum Absolute Deviation (MAD) OLS is sensitive to outliners. MAD: minimize the sum of absolute value of residuals. Hence outliners, without being squared, have much less effects.

Generalized Least Square (GLS) Heteroskedasticity: ε ii are most likely difference across stocks. Different stocks have different variances. Model: Y = Xβ + ε, E ε X = 0, Var ε X = Ω Fitting: β = argmin Y XX Ω Y XX Solution: β = X Ω 1 X X Ω 1 Y The GLS estimator is unbiased, consistent, efficient, and asymptotically normal. n β β N 0, X Ω 1 X 1

GLS on Panel Data f = T t=1 N i=1 T t=1 β ii σ i β N i=1 r ii σ i r β = 1 T N β ii NN t=1 i=1 σ i r = 1 T N r ii NN t=1 i=1 σ i r ii σ i r σ i 2 = 1 T r ii β ii f 2 T t=1 2

Robustness Check Stability over sub-periods. Confidence within periods.

Economic Model r it = α i + β i1 f 1t + + β ii f Kt + ε i Factors are economic factors such as GDP growth, inflation. The exposures β ii are not observable and are determined by time series regression from the factor premiums f jt. factor dependent; stock dependent; time independent The premiums are market statistics. factor dependent; stock independent; time dependent

Stock Return r it = α i + β ii f 1t + + β ii f Kt + ε it Note, we use the time t available information to compute the factor premiums, e.g., latest inflation rate.

Economic/Market Premiums Inflation, unemployment, risk free rate, Simply copy and paste from newspapers. A premium is a linear function of the true, unexpected, and unobservable part of the factor, e.g., the rewarding portion of inflation. This is not to say that the market is rewarding 5% to a 5% inflation rate, but a linear transformation of the 5%.

Fundamental/Technical/Analyst Premiums P/E, P/B Momentum Rating change

Zero-Investment Portfolio For each time t, For each factor k, set the upper and lower cutoff points, x k and x k. Divide the stocks into three groups. High group: x iii > x k Low group: x iit < x k Others Factor premium is the expected return to the zeroinvestment position that put $1 into the high group and short $1 in the low group. f kk = E r t x kt > x k E r t x kt < x k The expectation is taken across stocks.

Statistical Factors

Principal Component Analysis Intuition: fit the data to a high N-dimensional space. Find and save the important dimensions (and hence filter out the not-so-important ones).

Principal Component Analysis (Math) N stocks returns over T period. r t = r 1t,, r Nt R = r 1,, r T Find the (sample) covariance matrix for R. Σ = 1 T r T t r t r r r = 1 T t=1 T t=1 r t Diagonalization: Q Σ Q = D. D are the (all) positive eigenvalues in descending orders. Pick the K eigenvectors q 1,, q K that correspond to the largest K eigenvalues. Statistical factors are: f i,t = q i r t.

Forecasting Premiums E f T+1 = γ 0 + γ 1 f T + + +γ L f T L+1 Many other ways

Factor Exposure (Standard Approach) Once the premiums are known, we can apply OLS to estimate the factor exposures, β i. r ii = β i f t + ε ii

Factor Exposure (Mergers) β AA = s A s A +s B β A + s B s A +s B β B s A : pre-merger market capitalization of firm A s B : pre-merger market capitalization of firm B

Factor Exposure (Characteristic Matching) For a newly IPO company, there is not enough data to compute factor exposure directly. We use the factor exposures of M similar firms. To identify the M similar firms, We choose L company characteristics; Compute the z-score of those L characteristics for a group of firms z i = z ii,, z il as well as those of the new company, z = z 1,, z L. Set a threshold, ε. The similar firms are those with smaller distances. That is, z z i < ε. β = 1 M β 1 + + β M

Model Comparisons Fundamental Model Factor exposure directly observed. Factor premium from panel regression. Expected return = exposure * premium. Factor exposure from time series regression. Factor premiums either directly observed, zero-cost portfolio, or PCA. Expected return = exposure * premium. Economic Model

Stock Ranking

Z-Score Standardization of factors: z i = β i μ σ

Quintiles Method To test whether a factor (or a strategy) is significant in generating alpha Rank/sort the stocks in a universe by the factor. Divide them into 5 groups (20% each). Portfolio formed each quarter over the test period. Each portfolio is hold for 12 months. Number of portfolios in each quintile for the test period = test period (in years)*4*(size of universe/5). Compute average returns for each quintile. Factor significant if top first quintile significantly outperformed the universe the bottom fifth quintile significantly underperformed the outperformance/underperformance was consistent over time