ECO 4051 Financial Econometrics Introduction, Topics,...

15
ECO 4051 Financial Econometrics Introduction, Topics, and Organization Sebastiano Manzan ECO 4051 | Spring 2018 1 / 15

Transcript of ECO 4051 Financial Econometrics Introduction, Topics,...

Page 1: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

ECO 4051 Financial EconometricsIntroduction, Topics, and Organization

Sebastiano Manzan

ECO 4051 | Spring 2018

1 / 15

Page 2: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

ECO 4051: Financial Econometrics

I Financial Econometrics can be broadly defined as the area of statistics andeconometrics devoted to the analysis of financial data

I Three main topics will be covered in this course:

1. Linear regression model and its application to understand the factorsdriving stock returns and to measure their riskiness

2. Time series models use the past of a variable to forecast its future; one ofthe applications that we will consider is to forecast quarterly revenue of acompany

3. Volatility models are time series model that are used to forecast thevariance or standard deviation of a financial variable; we will consider theapplication of these models to financial risk management

I In addition to learn about methods and models, you will also learn to do dataanalysis in the R programming language

2 / 15

Page 3: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Resources

I S. Manzan, Introduction to Financial Econometrics linkI Class slidesI WRDS Wharton Research Data Services

I In Blackboard is posted a class username and password to access thedatabase

I NB: you agree to not share these credentials with any other individualoutside of the class; the account can accommodate up to 15 simultaneoususers

I Datasets available in WRDS (among others):I CRSPI CompustatI TAQ

3 / 15

Page 4: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

I Datacamp

I I created a group and sent out invitations (who did not get it?)I Weekly assignments to learn RI Currently assigned:

1. DC1 (02/07): course Introduction to R2. DC2 (02/09):

I chapter Compiling Reports from course Reporting with RmarkdownI chapter Embedding Code from course Reporting with R MarkdownI chapter Authoring Rmarkdown Reports from course Reporting with

Rmarkdown3. DC3 (02/14): course Data Visualization with ggplot2 (Part 1)4. DC4 (02/16):

I chapter Importing data from flat files with utils from courseImporting Data in R (Part 1)

I chapter readr & data.table from course Importing Data in R (Part 1)I chapter Importing Excel data from course Importing Data in R (Part

1)5. DC5 (02/21): course Data Manipulation in R with dplyr6. DC6 (02/28): course Intro to Statistics with R: Multiple Regression7. More DC? assignments TBA

4 / 15

Page 5: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Supplemental material

I Tsay, An Introduction to Analysis of Financial Data with R, WileyI Tsay, Analysis of Financial Time Series, WileyI Christoffersen, Elements of Financial Risk Management, 2nd Edition, Academic

PressI R Core Team, An Introduction to RI Zuur, Ieno, Mesters, A beginner’s Guide to R, SpringerI Cowpertwait and Metcalfe, Introductory Time Series Analysis with R, SpringerI Albert and Rizzo, R by Example, SpringerI Wickham, ggplot2: Elegant Graphics for Data Analysis, SpringerI Datacamp course on Intro to Computational Finance with R by Eric Zivot, UWI Coursera course on R Programming (part of Data Specialization Specialization)I Swirl: a package to learn R in R

I Install the package: install.packages("swirl")I Install a course: install_from_swirl("Course name") (details)I The courses related to our course are: (S1) R Programming, (S2) Data

Analysis, (S3) Regression Models, (S4)I CRAN task viewsI Quick-RI R-Bloggers

5 / 15

Page 6: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Grading

I The overall grade is determined as follows:1. Datacamp assignments (between 5 and 8, 2% each)

2. WRDS assignments (between 4 and 7, 3% each)

3. Group Project (20%)

4. Midterm and Final (non-cumulative and both in computer lab 12-120;weight: 100 minus the sum of 1-4 above divided by 2, i.e. between 21.5%and 29% each)

6 / 15

Page 7: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Project

I Apply the concepts discussed in class to a relevant economic and financialproblem using R

I Group composed of at least 2 and max 4 students

I 10-page report due on Thursday 05/10/2018 by 10amI Presentations on Sat 05/12/2018 (last class)

I Topics:I I posted in the course webpage a series of articles that could be used as the

base for your project on topics ranging from the housing market tomomentum trading

I You can choose to develop your project based on one of these articles or findanother article on a topic of your interest

7 / 15

Page 8: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

ScheduleDate Day Topic CH ASS DC

1/27 Sat Introductionto the course,R, Rstudio,Rmarkdown,Datacamp,WRDS

CH1

1/27 Sat Gettingstarted withR:Classes, types,structures

CH2

2/3 Sat Reading andwriting data

DC1

2/3 Sat Plotting datawith the baseand ggplot2packages

DC2

2/10 Sat Summarystatistics

DC3

2/10 Sat LAB 12-120Loops, apply,functions

DC4

2/17 Sat LinearregressionmodelReview,estimator,assumptions

CH3 PS1 DC5

2/17 Sat LAB 12-120Nonlinearregressionmodel

2/24 Sat CAPM andFama-French3 factor model

PS2 DC6

2/24 Sat additionaltopics

3/3 Sat Time seriesmodelsSome lingo,ACF, etc

PS3

3/3 Sat AR models CH43/10 Sat more on AR

modelsDC7

3/10 Sat LAB 12-120Seasonality

3/17 Sat Stationary ornon-stationary?,trend-stationarymodel

DC8

8 / 15

Page 9: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Date Day Topic CH ASS DC

3/23 Thu Random walks with and without drift,testing non-stationarity

3/28 Tue Review session WRDS33/30 Thu MIDTERM (Chapter 1, 2, and 3)

LAB 12-1204/4 Tue Volatility models:

intro, MA, EMACH4 WRDS4

4/6 Thu ARCH and GARCH model, asymmetricmodels

4/25 Tue forecasting, estimation, R packages4/27 Thu LAB 12-120

additional topics5/2 Tue High Frequency Data CH5 WRDS55/4 Thu Measuring financial risk

Value-at-Risk, non-normalityCH6

5/9 Tue Historical simulation, Monte Carlo,FHS

5/11 Thu LAB 12-120Portfolio VaR

5/16 Tue Backtesting WRDS65/18 Thu Project presentations (report due on

05/15/2017 by 10am)5/25 Thu FINAL (chapter 4, 5, and 6)

LAB 12-120

9 / 15

Page 10: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Checklist

1. Datacamp2. WRDS3. Rstudio:

I Importing and viewing dataI ConsoleI ScriptI Rmarkdown

I Some examples of financial data that we will analyze in this course

10 / 15

Page 11: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

A long-run look at the S&P 500

10

20

30

40

1900 1940 1980 2020

Price−Earnings Ratio

25

50

75

1900 1940 1980 2020

Price−Dividends Ratio

Source: http://www.econ.yale.edu/~shiller/data/chapt26.xlsx

Figure 1: Annual Price-to-Earnings and Price-to-Dividends ratio for theStandard and Poors 500 Index starting in 1871.

I Why are market valuations fluctuating so much?I Are these fluctuations driven by the tendency of economies to have cycles of

expansions and recessions?I What explains the extreme valuations in the late 1990s?

11 / 15

Page 12: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

A short-run look at the S&P 500

500

1000

1500

2000

1985 1990 1995 2000 2005 2010 2015

Daily price

−20

−10

0

10

1985 1990 1995 2000 2005 2010 2015

Daily returns

Source: Yahoo

Figure 2: Daily prices and returns for the Standard and Poor 500 Index.

I What forces determine the boom-bust dynamics of asset prices?I Why do we have these clusters of calm and turbulent times rather than having

“normal” times with returns fluctuating on a constant range?I Are returns predictable?

12 / 15

Page 13: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Intra-day data?

116.1

116.4

116.7

117.0

Dec 30 00:00 Dec 30 06:00 Dec 30 12:00 Dec 30 18:00

Mid

−P

rice

USDJPY on 2016−12−30

Source: TrueFX

Figure 3: Intra-day mid-point between bid and ask price for the USD/JPYFX rate at the 1 minute frequency.

1,320 1-minute quotes for one day from the 31,076 1-minute quotes for December2016 obtained from 14,237,744 quotes

I Is the bid-ask spread constant over time or subject to fluctuations due to marketevents?

I Is it possible to use intra-day information to construct measures of volatility?I Does the size of a trade have an impact on the price?I Can we predict the direction of the next trade and the price change?

13 / 15

Page 14: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

−100

0

100

200

6 8 10 12

log(Market Capitalization) current month

Ret

urn

next

mon

th

Market Cap and Future Returns

Source: CRSP

Figure 4: Logarithm of the market capitalization for aNYSE, AMEX, orNASDAQ stock against the percentage return in the following month.

I Do stocks of large (small) capitalization companies outperform in the followingmonth stocks of small (large) caps? Is size a predictor of future returns?

I In addition to size, what other company characteristics can be used to predictfuture stock performance?

I Are small caps “riskier” relative to large caps?I Small caps stocks provide (on average) higher returns relative to large cap stocks:

what are the factors explaining it? why?

14 / 15

Page 15: ECO 4051 Financial Econometrics Introduction, Topics, …faculty.baruch.cuny.edu/smanzan/finmetrics/files/ECO4051course...ECO 4051 Financial Econometrics Introduction, Topics, and

Data sources

There are several sources of financial data that, in some cases, are publicly available, while in othersare subscription-based. In this book we will use publicly available data when possible, and commercialdatasets otherwise. A short-list of data providers is:

I http://finance.yahoo.com/I http://www.truefx.comI https://fred.stlouisfed.org/I http://www.quandl.comI WRDS:

I CRSPI CompustatI TAQ

15 / 15