Intro_Slides
Intro_Slides
Xiao Qiao
City University of Hong Kong
Statistics Preliminaries
Our Basic Toolbox
Probability
Inference
Regressions
Time Series
X. Qiao 1
Random Variable
X. Qiao 2
Example 1 - Discrete RV
X. Qiao 3
Example 2 - Continuous RV
1 (R−µ)2
f (R) = √ e − 2σ2
2πσ
X. Qiao 4
Moments 1
Mean
What value is the random variable centered around?
Discrete
X
µ = E (R) = πi Ri
i
Continuous
Z
E (R) = R f (R)dR
X. Qiao 5
Moments 2
Variance
How “spread out” is the random variable?
X
var (R) = σ 2 (R) = E (R − E (R))2 = πi (Ri − E (R))2
i
Standard deviation
Square root of variance
Same units as the mean
X. Qiao 6
Moments 3
Covariance
How do two random variables move with each other?
Mean
E (cR) = cE (R)
E (R a + R b ) = E (R a ) + E (R b )
Variance
Covariance
X. Qiao 8
Statistics and Inference
X. Qiao 9
Some Sample Moments
Sample mean
T
1 X
R̄ = Rt
T
t=1
Sample variance
T
1 X
s 2 = σ̂ 2 = (Rt − R̄)2
T −1
t=1
X. Qiao 10
Sampling Variation
Standard error
σ̂(R)
s.e.(R) = σ̂(R̄) = √
T
Confidence interval
Assuming normal distribution, 95% confidence interval is
R̄ ± 1.96 × s.e.(R)
If the true mean were µ, the probability for observing a sample mean
outside of the 95% confidence interval is less than 5%
Hypothesis testing
Assume normal or t-distribution
H0 : µ = C
√ R̄ − C
T
σ̂
X. Qiao 11
Regression Setup
In general, we have
Rt = α + βRm,t + ϵt
Rt = α + βRm,t + γRp,t + ϵt
X. Qiao 12
Regression Facts
yt = α + βxt + ϵt
X. Qiao 13
Time Series Regression
Rt = α + βRm,t + ϵt ; t = 1, 2, ...T
X. Qiao 14
Forecasting Regression
X. Qiao 15
Cross-Sectional Regression
Ri = α + βi λ + ϵi ; i = 1, 2, ...N
X. Qiao 16
Definition of Time Series
X. Qiao 17
Conditional vs. Unconditional
X. Qiao 18
Autocovariance and Autocorrelation
Autocorrelation
cov (yt , yt−j )
corr (yt , yt−j ) =
σ 2 (y )
Tell us if we see today’s observation, where tomorrow’s observation is
likely to be
If autocorrelation is positive, a high value today is likely followed by a
high value tomorrow
If autocorrelation is negative, a high value today is likely followed by a
low value tomorrow
X. Qiao 19
Stationarity
E (yt ) = E (yt−j ) ∀j
σ 2 (yt ) = σ 2 (yt−j ) ∀j
cov (yt , yt−j ) = γj does not depend on t
X. Qiao 20
White Noise Process
Let’s start from the simplest process, the white noise process
yt = ϵt
X. Qiao 21
MA(1)
yt = θϵt−1 + ϵt
E (yt ) = 0
σ 2 (yt ) = (1 + θ2 )σ 2
θ
corr (yt , yt−1 ) =
1 + θ2
corr (yt , yt−j ) = 0, ∀j ≥ 2
X. Qiao 22
MA(1) Continued
Et (yt+1 ) = θϵt
Et (yt+j ) = 0, ∀j ≥ 2
σt2 (yt+1 ) = σ 2
σt2 (yt+j ) = (1 + θ2 )σ 2 , ∀j ≥ 2
yt = µ + θϵt−1 + ϵt
X. Qiao 23
MA(q)
X. Qiao 24
AR(1)
yt = ρyt−1 + ϵt
Assuming stationarity
E (yt ) = 0
σ2
σ 2 (yt ) =
1 − ρ2
corr (yt , yt−j ) = ρj
Et (yt+1 ) = ρyt
Et (yt+j ) = ρj yt
σt2 (yt+1 ) = σ 2
σt2 (yt+2 ) = (1 + ρ2 )σ 2
X. Qiao 26
AR(p)
X. Qiao 27
ARMA
yt = ρyt−1 + θϵt−1 + ϵt
X. Qiao 28
Finance Warm Up
Finance in a Nutshell
X. Qiao 29
Types of Assets
Financial Assets
Liquid, frequently traded
Claims on real assets
Real Assets
Used to produce goods and services, e.g. factories and machines
Illiquid, used for specific purposes, not traded frequently
X. Qiao 30
What does Finance Study?
Households
Want to invest funds, save to defer consumption today (e.g.
retirement)
Corporations
Obtain external funds for its projects (e.g. develop a new product)
Invest accumulated profits
Financial Sector
Role of an intermediary (e.g. banks, brokers)
Government
Obtain funds for its projects (e.g. build a highway)
X. Qiao 32
Types of Financial Assets
Equity
Common stock
Preferred stock (promises a dividend)
Warrants (e.g. executive stock options)
Debt
Government vs. corporate
Bank debt
Money market instruments (short-term lending and borrowing)
X. Qiao 33
Types of Financial Assets
Commodities
Soybeans, crude oil, etc.
Physical inputs to production
Foreign Exchange
Relation between different currencies
X. Qiao 34
Types of Financial Assets
Derivatives
An asset whose value is derived from some underlying asset
The underlying could be anything: stocks, bonds, stock index (e.g.
Hang Seng)
Examples: options, futures, credit-default swaps (CDS)
Underlying could also be a derivative itself
X. Qiao 35
Holding Period Return
X. Qiao 36
Calculating Returns
X. Qiao 37
Expected vs. Realized Returns
We do not know how much the stock market will go up or down next
year
We represent an unknown value with a random variable r˜t+1
If we are at time t,
P̃t+1 + D̃t+1 − Pt
r˜t+1 =
Pt
X. Qiao 38
Expected vs. Realized Returns
Expected return
E [P̃t+1 ] + E [D̃t+1 ] − Pt
E [˜
rt+1 ] =
Pt
Realized return, after observing Pt+1 , Dt+1 , is
Pt+1 + Dt+1 − Pt
rt+1 =
Pt
I’ve removed the tildes to indicate Pt+1 and Dt+1 are now known
E [˜
rt+1 ] and rt+1 can be very different
X. Qiao 39
Compounding
If you earn 20% in year 1 and 10% in year 2, what’s your two-year
return?
X. Qiao 41
Multi-Period Returns
Geometric average is the one number that gives us the same outcome
that we get from using actual rates
Solve for r
(1 + r )2 = (1 + 0.2)(1 + 0.1)
p
1 + r = (1 + 0.2)(1 + 0.1)
p
r = (1 + 0.2)(1 + 0.1) − 1 = 14.9%
X. Qiao 42
Arithmetic vs. Geometric Returns
X. Qiao 43
Historical Returns
X. Qiao 44
Historical Returns
Total returns = capital gains (Pt+1 /Pt ) + income yield (Dt+1 /Pt )
X. Qiao 45
Nominal vs. Real Returns
X. Qiao 46
Nominal vs. Real Returns
Nominal returns
Real returns
X. Qiao 47
Risk
X. Qiao 48
Risk
X. Qiao 49
Risk and Return
Poll: Flip a coin. If it lands heads, you receive $40,000. If it lands tails,
you lose $20,000. What would you pay to play this game?
1 Nothing
2 $8,000
3 $10,000
4 $15,000
5 $20,000
X. Qiao 50
Risk and Return
X. Qiao 51
Risk and Return
Stocks offer higher average returns than bonds because stocks are
riskier
For risk-averse people to hold riskier stocks, they have to receive
higher average returns
The difference in average returns between stocks and bonds should
reflect the higher level of risk of stocks
X. Qiao 52