2024 L1 QuantMethods
2024 L1 QuantMethods
Portfolio Mathematics 27
Simulation Methods 31
Hypothesis Testing 41
This document should be used in conjunction with the corresponding readings in the 2024 Level 1 CFA® Program curriculum.
Some of the graphs, charts, tables, examples, and figures are copyright 2023, CFA Institute. Reproduced and republished with
permission from CFA Institute. All rights reserved.
Required disclaimer: CFA Institute does not endorse, promote, or warrant accuracy or quality of the products or services
offered by MarkMeldrum.com. CFA Institute, CFA®, and Chartered Financial Analyst® are trademarks owned by CFA
Institute.
1
Last Revised: 05/12/2023
c. compare the money-weighted and time-weighed rates of return and evaluate the
performance of portfolios based on these measures
e. calculate and interpret major return measures and describe their appropriate
uses
2
Last Revised: 05/12/2023
Page 2
3
Last Revised: 05/12/2023
Page 3
Rates of Return/
1/ HPR - holding period return e.g./
𝐏𝐭 - ending price 105
R = (𝐏𝐭 − 𝐏𝟎 ) + 𝐈
𝐏𝟎 𝐏𝟎 - beginning price 100
𝐈 - all income ∅
HPR = (𝟏𝟎𝟓 − 𝟏𝟎𝟎)
= 5%
- multi-period HPR 𝟏𝟎𝟎
Page 4
Rates of Return/
𝐑𝐆 ≤ 𝐑𝐀 - unless all observations are equal, then 𝐑 𝐆 = 𝐑 𝐀
- as the variability in the data increases, difference
growth of $1 avg. between 𝐑 𝐆 and 𝐑 𝐀 increases
return
PV(1 + RG)N = FV
over time PV(1 + RA)N ≠ FV
- use to estimate
- use to estimate E(R) over one period
E(R) over multiple
periods
4/ Harmonic Mean
𝐧 - arithmetic mean - all obs. have equal weight
4𝐇 =
𝐗
𝟏
∑7 8𝐗9 obs. weight inversely proportional to its magnitude
∴ reduces the effect of outliers
b - most often used with ratios (amount/unit)
e.g./ P/E 45, 15, 15
= 𝟑8 ̇ = 𝟏𝟗. 𝟐𝟖
𝟑
4𝐇 =
𝐗
𝐑 𝐀 = 25 ∑,𝟏)𝟒𝟓 0 𝟏)𝟏𝟓 0 𝟏)𝟏𝟓1 . 𝟏𝟓
4
Last Revised: 05/12/2023
Page 5
Rates of Return/
4/ Harmonic Mean
applied e.g. - dollar-cost averaging (typical DC strategy)
1,000/month for 2 months in a stock P0 = 10 P1 = 15
&𝐇 =
𝐗
𝟐
= 𝟐$ ̇ = 𝟏𝟐/𝐬𝐡. Proof: 𝟏𝟎𝟎𝟎1 = 100 sh.
𝟏𝟎
𝟏𝟎𝟎𝟎1 = 66.67 sh.
𝟏𝟓
#𝟏&𝟏𝟎 ( 𝟏&𝟏𝟓* . 𝟏𝟔
𝟐𝟎𝟎𝟎1
𝟏𝟔𝟔. 𝟔𝟕 𝐬𝐡. = 12/sh.
Relationship: 𝐑 𝐀 × 𝐗
( 𝐇 = 𝐑𝟐𝐆
5/ Others
a) trimmed mean (common with CPI)
oves - remove a %’age from both the largest and smallest
rem ers
i e.g. 100 obs., 8% trimmed = 84 obs. (8 highest, 8 lowest)
outl
bo th
(on ides) b) winsorized mean - replacing values at both end with
b s
the cutoff value
e.g. 100 obs. obs. 1-8 replaced all = obs. 9
obs. 93-100 replaced all = obs. 92
Page 6
Money-weighted Return (IRR, YTM)
- accounts for the timing and magnitude of investments
10
5 470
committed more
200 225
CF0 = -200 CF1 = -220 CF2 = 480 CPT IRR = 9.39% money to a poor
performance year
𝟐𝟓 + 𝟓 𝟐𝟎 + 𝟏𝟎
𝐇𝐏𝐑 = = 𝟏𝟓% 𝐇𝐏𝐑 = = 𝟔. 𝟔𝟕% 𝐑𝐀 = 𝟏𝟎. 𝟖𝟒% (money weighted)
𝟐𝟎𝟎 𝟒𝟓𝟎
- not comparable across investors/investments
- mwrr represents what ‘your’ money earned, not what $1 could earn
5
Last Revised: 05/12/2023
Page 7
Time-weighted returns (= RG)
- previous example from mwrr
𝟏)
=(𝟏. 𝟏𝟓)7𝟏. 𝟎𝟔𝟔̇9@ 𝟐 − 𝟏 = 𝟏𝟎. 𝟕𝟓𝟒𝟗𝟖%
- large funds, HPR = 1 day ➞ (1 + HPR1)(1 + HPR2) + ... + (1 + HPR365) - 1
Page 8
6
Last Revised: 05/12/2023
Page 9
Gross and Net Return/
gross - return before deductions for mgmt. exp., custodial fees, taxes, etc.
but after trading expenses (what the fund earns)
- appropriate measure for evaluating and comparing the
investment skill of managers
net - what the investor earns
Page 10
Real Returns/
After-tax real return ➞ investor measure of growth in
purchasing power of portfolio
Leveraged Returns/
- leverage can be obtained through margin loans, derivatives,
or collateralized loans (repos)
- if 𝐑 𝐏 > 𝐫𝐝 , leverage enhances return
Value borrowed
𝐑 𝐋 = 𝐑 𝐏; = 𝐑 𝐏 × (𝐕𝐄 + 𝐕𝐁 ) − (𝐕𝐁 × 𝐫𝐛 ) = 𝐑 + 𝐕
𝐏𝐄 𝐕𝐄 𝐏 𝐁
(𝐑 − 𝐫𝐝 )
leveraged 𝐕𝐄 𝐏
return portfolio
equity 𝐑 𝐏 𝐕𝐄 𝐑 𝐏 𝐕𝐁 𝐕𝐁 𝐫𝐝 𝐕𝐁 (𝐑 𝐏 − 𝐫𝐝 )
? + − = 𝐑𝐏 + @
𝐕𝐄 𝐕𝐄 𝐕𝐄 𝐕𝐄
e.g./ 10m equity portfolio
e
𝐑 𝐏 = 8%
𝐑 𝐋 = 𝟖% + 𝟑𝐌8𝟕𝐌 (𝟖% − 𝟓%) = 𝟗. 𝟐𝟖𝟓𝟕%
30% debt financed, 𝐫𝐝 = 5%
7
Last Revised: 05/12/2023
a. calculate and interpret the present value (PV) of fixed-income and equity
instruments based on expected future cash flows
c. explain the cash flow additivity principle, its importance for the no-arbitrage
condition, and its use in calculating implied forward interest rates, forward
exchange rates, and option values
8
Last Revised: 05/12/2023
Page 2
9
Last Revised: 05/12/2023
Page 3
ZCB/zero-coupon bond: PV = 𝐅𝐕8(𝟏 + 𝐫)𝐓
r = discount rate, IRR, or YTM
e.g./
20-yr. ZCB, YTM = 6.7% ➞ PV = 𝟏𝟎𝟎$(𝟏. 𝟎𝟔𝟕)𝟐𝟎 = 27.33453
(TVM keys FV = 100 𝐈#𝐘 = 6.7 PMT = 0 N = 20 CPT PV)
price in 3 years if YTM is unchanged? PV = -27.33453
N=3
a) FV3 = PV(𝟏 + 𝐫)𝟑 = 27.33453(1.067)3 = 33.20510591 𝐈1 = 6.7
𝐘
or b) PV3 = 𝐅𝐕#(𝟏 + 𝐫)𝟏𝟕 = 𝟏𝟎𝟎#(𝟏. 𝟎𝟔𝟕)𝟏𝟕 = 33.20510591 PMT = 0
FV = 0 CPT FV
PV = 22.68224 ➞ YTM = ? 𝐈1 = 6.7%
𝐘
22.68224 = 𝟏𝟎𝟎#(𝟏 + 𝐫)𝟐𝟎 ➞ PV = -22.68224 PMT = 0
N = 20 N = 17 CPT PV
𝟏
(𝟏𝟎𝟎/𝟐𝟐. 𝟔𝟖𝟐𝟐𝟒) )𝟐𝟎 -1 = r PMT = 0
FV = 100 CPT 𝐈'𝐘 = 7.6999 ~ 7.7%
r = - .05% , 10 yr. ZCB
FV = 100 N = 10 𝐈1 = - .05 PMT = 0
PV = 𝟏𝟎𝟎#(. 𝟗𝟗𝟗𝟓)𝟏𝟎 = 100.50137 𝐘
CPT PV
6 yrs. later P0 = 95.72, YTM = ? 95.72 = 𝟏𝟎𝟎'(𝟏 + 𝐫)𝟒 ➞ (𝟏𝟎𝟎/𝟗𝟓. 𝟕𝟐) %𝟒 - 1 = 1.09957%
𝟏
Page 4
10
Last Revised: 05/12/2023
Page 5
Perpetuity (some bonds, preferred shares)
PV = 𝐏𝐌𝐓 e.g./ 3.3% qtly. coupon, P = 97.03
𝐫 YTM . 𝟖𝟐𝟓
97.03 = ➞ 𝐫𝟒 = .8502%
𝐫𝟒
Annuity (mortgage, car loans) 𝐫 = 3.401%
PMT - 𝐢 𝐁𝟎 − 𝐏 = 𝐁𝟏
B × 𝐫1𝟏𝟐
Page 6
11
Last Revised: 05/12/2023
Page 7
Page 8
Coupon bond/
2 2 FV = ? = 2(1.02) + 2 + 93.091
100 93.091 = 97.131
implied ret. 𝟏&
r = Q𝟗𝟕. 𝟏𝟑𝟏$𝟏𝟎𝟎S 𝟐
− 𝟏 = -1.445%
12
Last Revised: 05/12/2023
Page 9
Equity/ PV = 𝐃𝟎 (𝟏 + 𝐠) ➞ PV(r - g) = D0(1 + g)
𝐫−𝐠
r - g = 𝐃𝟎 (𝟏 + 𝐠)
e.g./ P0 = 63 D1 = 1.76 g = 4% 𝐏𝐕
r = 𝟏. 𝟕𝟔 r = 𝟎 + 𝐠)
𝐃 (𝟏 GGM
+ 𝟒% = 𝟔. 𝟕𝟗% + 𝐠
𝐏𝐕
𝟔𝟑 growth
- what if r = 7% ➞ g? div. yield
g = 7% - 𝟏. 𝟕𝟔#𝟔𝟑 = 4.21% g = r - 𝐃𝟎 (𝟏 + 𝐠)
𝐏𝐕
PV = 𝐃𝟎 (𝟏 + 𝐠) ➞ divide both sides by E
𝐫−𝐠
dividend payout ratio - DPR
𝐃𝟎8 (
𝐏𝐕 𝐄 𝟏 + 𝐠) - given a 𝐏#𝐄 and DPR - we can solve for
=
𝐄 𝐫−𝐠 𝐫 or 𝐠 given the other
PE ratio - compare the implied 𝐫 or 𝐠 to the required 𝐫 or
expected/estimated 𝐠
Page 10
PE = .𝟕
19 = . 𝟔𝟎
➞ 1.52 - 19g = .6 = 15.5 ×
. 𝟎𝟗 − . 𝟎𝟒𝟓
. 𝟎𝟖 − 𝐠
.92 = 19g - should be trading at 15.5×
g = . 𝟗𝟐'𝟏𝟗 = 4.84% forward earnings, not 28 ∴ sell
13
Last Revised: 05/12/2023
Page 11
Page 12
r = 2.5% invest for 2 yrs.
𝐟𝟏,𝟏 buy a 2 yr. ZCB
t=0 t=1 t=2 buy a 1 yr. ZCB, buy another in one year
r = 3.5% spot 𝐟𝟏,𝟏
(1.035) = (1.025)(1 + 𝐟𝟏,𝟏 )
2
(implied forward rate)
(𝟏. 𝟎𝟑𝟓) 𝟐
𝐟𝟏,𝟏 = - 1 = 4.5097%
(𝟏. 𝟎𝟐𝟓)
14
Last Revised: 05/12/2023
Page 13
Page 14
e.g./ 𝐫𝐟 𝐫𝐝 𝐞.𝟎𝟐𝟏𝟐
May 31 2.012% 𝐅
1.291% ➞ 𝐟)𝐝 = 𝟏. 𝟐𝟔𝟎𝟐 = 𝟏. 𝟐𝟔𝟗𝟑𝟏𝟗
𝐞.𝟎𝟏𝟐𝟗𝟏
June 15 2.667% 1.562% 𝐞.𝟎𝟐𝟔𝟔𝟕
𝐅𝐟) = 𝟏. 𝟐𝟔𝟎𝟐 .𝟎𝟏𝟓𝟔𝟐 = 𝟏. 𝟐𝟕𝟒𝟐𝟎𝟐
𝐒𝐟0 = 1.2602 1 yr. ➞ ∆ 𝐅𝐟0 = ? 𝐝 𝐞
𝐝 𝐝
∆𝐅𝐟0 = ↑ .004883
𝐝
or 48.83 pips
Option pricing/
hS+ hS+ - c+ = hS- - c-
select
c+ hS+ - hS- = c+ - c-
hS h
-c such that h(S+ - S-) = c+ - c-
both outcomes ( 5
hS- h = 𝐜 −𝐜
c- are equal 𝐒( − 𝐒5
15
Last Revised: 05/12/2023
Page 15
Option pricing/
u = 1.4 S+ = 56 h = Z 𝟔 − 𝟎 Z = 𝟔$ = . 𝟐𝟓
𝟓𝟔 − 𝟑𝟐 𝟐𝟒
c+ = 6
40 hS+ - c+ = .25(56) - 6 = 8
-c identical
- hS- - c- = .25(32) - 0 = 8
(X = 50) d = .8 S = 32 ∴ 0.25 S - c is
c- = 0 a risk-free portfolio
r = 5%
hS0 - c0 = 𝐡𝐒0 − 𝐜 0 .25(40) - c0 = . 𝟐𝟓(𝟓𝟔) − 𝟔
𝟏+𝐫 𝟏. 𝟎𝟓
c0 = 10 - 𝟖#𝟏. 𝟎𝟓 = 2.38095
Put
56
h = 𝟎 − 𝟏𝟖
0 Z Z = . 𝟕𝟓
𝟓𝟔 − 𝟑𝟐
40
+p .75(40) + p0 = . 𝟕𝟓(𝟑𝟐) + 𝟏𝟖
32 hS0 + p0 = 𝐡𝐒 + 𝐩 5 5 𝟏. 𝟎𝟓
18 𝟏+𝐫 𝟒𝟐
p0 = #𝟏. 𝟎𝟓 - 30
(X = 50)
r = 5% p0 = 10
16
Last Revised: 05/12/2023
17
Last Revised: 05/12/2023
Page 2
count % ∑count ∑%
18
Last Revised: 05/12/2023
Page 3
Measures of location - quantiles IQR - interquartile range
quartiles 25, 50, 75
quintiles 20, 40, 60, 80
deciles 10, 20 ... 90
Box and whisker plot percentiles 1, 2 ... 99
Page 4
19
Last Revised: 05/12/2023
Page 5
Downside deviation
e.g. target semideviation: 𝐧
𝐒𝐭𝐚𝐫𝐠𝐞𝐭 = !∑𝐢@𝟏(𝐗 𝐢 − 𝐁)
𝟐
∀𝐗 𝐢 ≤ 𝐁
𝐧−𝟏
some minimum
full sample n level
as B ↑ 𝐒𝐭𝐚𝐫𝐠𝐞𝐭 ↑
Page 6
X ~ 𝐍(𝛍, 𝛔𝟐 )
mean = median = mode
Skew
Skew = 0
Skew > 0 Skew < 0
mean = median = mode mean > median > mode mean < median < mode
20
Last Revised: 05/12/2023
Page 7
𝟏 ∑𝐧𝐢C𝟏(𝐗 𝐢 − 5)𝟑
𝐗
𝐒𝐤𝐞𝐰 ≈ for 𝐧 > 𝟏𝟎𝟎
𝐧 𝐒𝟑
5)𝟒
𝟏 ∑𝐧𝐢C𝟏(𝐗 𝐢 − 𝐗 - measures the combined weight of
Kurtosis 𝐊𝐄 = ? @−𝟑
𝐧 𝐒𝟒 the tails relative to the rest of the
distribution
Page 8
Scatter Plot
- used to visualize the joint variation
in 2 numerical values
identify
outliers - may be no relationship, a linear or non-linear
relationship
- scatter plot matrix
- assess for pairwise association
among many variables
21
Last Revised: 05/12/2023
Page 9
calculation 𝐚 ➞ 𝐗
𝐗$ 𝐫𝐗𝐘 𝐘$ 𝐫𝐗𝐘
𝐚 𝐚 𝐚 ➞ 𝐘
Page 10
for all
4
𝐧 = 11
&=9
𝐗
&
𝐘 = 7.5
𝐒𝐗 = 3.32
𝐒𝐘 = 2.03
𝐫𝐗𝐘 = .82
22
Last Revised: 05/12/2023
23
Last Revised: 05/12/2023
Page 2
24
Last Revised: 05/12/2023
Page 3
Page 4
𝐏(𝟐. 𝟔𝟎|𝐝𝐞𝐜𝐥𝐢𝐧𝐢𝐧𝐠 𝐫𝐚𝐭𝐞𝐬)
25
Last Revised: 05/12/2023
Page 5
26
Last Revised: 05/12/2023
Portfolio Mathematics
b. calculate and interpret the covariance and correlation of portfolio returns using
the joint probability function for returns
c. define shortfall risk, calculate the safety-first ratio, and identify an optimal
portfolio using Roy’s safety-first criterion
27
Last Revised: 05/12/2023
Portfolio Mathematics
Page 1
1/ 𝐄(𝐑 𝐏 ) = 𝐄(𝐖𝟏 𝐑 𝟏 + 𝐖𝟐 𝐑 𝟐 + ⋯ + 𝐖𝐧 𝐑 𝐧 )
Page 2
e.g./ W 𝐄(𝐑 𝐢 )
SnP500 .50 13%
Corp. bonds .25 6%
MSCI EAFE .25 15% 𝐄(𝐑 𝐏 ) = .5(13%) + .25(6%) + .25(15%) = 11.75%
28
Last Revised: 05/12/2023
Page 3
𝛔𝟐 (𝐑 𝐏 ) = f(variances, covariances)
can be
always > 0
< 0 or > 0
- major point - by selecting assets with zero or negative covariance,
portfolio risk is lowered
n= 5
- for 𝐧 securities (or asset classes) ➞ 𝐧 variances 5 vars.
𝐧𝟐 − 𝐧 covariances 25 - 5 = 20 Covars.
(𝐧𝟐 − 𝐧)/𝟐 distinct covariances 𝟐𝟎1𝟐 = 10
3/ Correlation ➞ 𝛒𝐢𝐣 = 𝐂𝐨𝐯7𝐑 𝐢 𝐑 𝐣 8 unique
➞ 𝐂𝐨𝐯7𝐑 𝐢 𝐑 𝐣 8 = 𝛒𝐢𝐣 𝛔𝐑 𝐢 𝛔𝐑 𝐣 Covars.
𝛔𝐑 𝐢 𝛔𝐑 𝐣
𝟏𝟖𝟗
𝟏 𝟏&
𝟒𝟎𝟎 &𝟐 𝟒𝟒𝟏 𝟐
Ex #13
𝟏𝟖𝟗
= = 𝟎. 𝟒𝟓
𝟐𝟎. 𝟐𝟏
Page 4
Recall: calculate and interpret the covariance
4 𝐀 97𝐑 𝐁 − 𝐑
4 𝐁9 and correlation of portfolio returns using
𝐂𝐨𝐯(𝐑 𝐀 𝐑 𝐁 ) = ∑7𝐑 𝐀𝐢 − 𝐑 𝐢
a joint probability function for returns
𝐧−𝟏
𝟏 𝟏 𝟏
= D 𝐀 EB𝐑 𝐁 − 𝐑
B𝐑 − 𝐑 D 𝐁E + D 𝐀 EB𝐑 𝐁 − 𝐑
B𝐑 − 𝐑 D 𝐁E + ⋯ + D 𝐀 EB𝐑 𝐁 − 𝐑
B𝐑 − 𝐑 D 𝐁E
𝐧 − 𝟏 𝐀𝟏 𝟏
𝐧 − 𝟏 𝐀𝟐 𝟐
𝐧 − 𝟏 𝐀𝐧 𝐧
weights
probabilities?
- the concept of joint probability
𝐧 𝐧
𝐂𝐨𝐯(𝐑 𝐀 𝐑 𝐁 ) = K K 𝐏 C𝐑 𝐑 D 7𝐑 − 𝐑
4 𝐀 9 C𝐑 𝐁 − 𝐑
4 𝐁D where 𝐢 & 𝐣 = 1 to 𝐧
𝐀 𝐢 𝐁𝐣 𝐀𝐢 𝐣
𝐢C𝟏 𝐣C𝟏 are scenarios
probability value of cross product
29
Last Revised: 05/12/2023
Page 5
Safety first rules focus on shortfall risk - the risk a
portfolio value (or return) will fall below some
minimum acceptable level over some time horizon
e.g./ 𝐑 𝐋 = 2% 𝟏𝟐 − 𝟐
𝐒𝐅𝐑𝐚𝐭𝐢𝐨𝟏 = = 𝟎. 𝟔𝟔̇ = NORM.S.DIST(-.667,1)
Portfolio 𝐑 𝐏 𝛔 𝟏𝟓 = 0.2525
𝟏𝟒 − 𝟐
1 12% 15% 𝐒𝐅𝐑𝐚𝐭𝐢𝐨𝟐 = = 𝟎. 𝟕𝟓 = NORM.S.DIST(-.75,1)
𝟏𝟔
2 14% 16% = 0.227
30
Last Revised: 05/12/2023
Simulation Methods
a. explain the relationship between normal and lognormal distributions and why
the lognormal distribution is used to model asset prices when using
continuously compounded asset returns
b. describe Monte Carlo simulation and explain how it can be used in investment
applications
31
Last Revised: 05/12/2023
𝐒𝐓
;𝐒 = 1 + 𝐑 𝐇 where 𝐑 𝐇 = holding period return
𝟎
i.e./ 𝐒𝐓 − 𝐒𝟎
= 𝐑𝐇
𝐒𝟎
𝐒𝐓 𝐒 𝐒𝐓 𝐒
8𝐒 − 𝟎8𝐒 = 𝐑 𝐇 ➞ 8𝐒 − 𝟏 = 𝐑 𝐇 ➞ 𝐓8𝐒 = 1 + 𝐑 𝐇
𝟎 𝟎 𝟎 𝟎
Page 2
e.g. 𝐒𝐓 = 34.50 𝐒𝟎 = 30
𝐒𝐓
;𝐒 = 𝟑𝟒. 𝟓𝟎;𝟑𝟎 = 𝟏. 𝟏𝟓
𝟎
= 1 + 𝐑𝐇 ∴ 𝐑 𝐇 = 15%
𝐒
𝐥𝐧 : 𝐓;𝐒 < = 𝐫 where 𝐫 = continuously compounded return
𝟎
∴ 𝟑𝟒. 𝟓𝟎 = 𝟑𝟎𝐞.𝟏𝟑𝟗𝟕𝟔
𝐒 𝐒
more generally: 𝐒𝐓 = 𝐒𝟎 𝐞𝐫 : 𝐓;𝐒 = 𝐞𝐫 𝐚𝐧𝐝 𝐥𝐧 : 𝐓;𝐒 < = 𝐫<
𝟎 𝟎
32
Last Revised: 05/12/2023
Page 3
Volatility ➞ annualized sd of the continuously compounded
daily returns of the underlying asset
e.g. if daily vol. = .01, annualized vol. = . 𝟎𝟏√𝟐𝟓𝟎 = 𝟏𝟓. 𝟖𝟏% example #1
Page 4
Monte Carlo Simulation/
Step 1: Specify the quantity of interest
e.g. 𝐌𝐕𝐩 in 10 years
Step 4: Draw standard normal random numbers for each key risk
factor over each 𝐊 sub-periods.
- random number generator ➞ produces a distribution of
random numbers from 0 to 1, all equally likely
33
Last Revised: 05/12/2023
Page 5
Monte Carlo Simulation/
Step #4 distribution of random #’s
#1 ➞ 0.32 1000 runs
#2 ➞ 0.64
#20
0 Step #6:
#1 ➞ -0.48 z-value
𝐄(𝐑 𝐏 ) = 𝟔. 𝟒% − 𝟎. 𝟒𝟖(𝟏𝟐%) = 𝟎. 𝟔𝟒
𝐌𝐕𝟏 = 𝐌𝐕𝟎 (𝟏. 𝟎𝟎𝟑𝟐)
#2 ➞ 0.73 z-value
𝐄(𝐑 𝐏 ) = 𝟔. 𝟒% + . 𝟕𝟑(𝟏𝟐) = 𝟏𝟓. 𝟏𝟔%
𝐌𝐕𝟐 = 𝐌𝐕𝟏 (𝟏. 𝟎𝟕𝟓𝟖)
#20
Page 6
Monte Carlo Simulation/
𝟐𝐌
𝐌𝐕𝐏𝟎 d 𝟏𝟎 = Beginning Capital
7𝟏 + 𝐑 𝐏𝟗𝟓 9
𝐑 𝐏𝟗𝟓
10 yrs.
34
Last Revised: 05/12/2023
Page 7
Resampling ➞ repeatedly draw samples from an
original data sample in order to estimate
population parameters
35
Last Revised: 05/12/2023
b. explain the central limit theorem and its importance for the distribution and
standard error of the sample mean
36
Last Revised: 05/12/2023
Page 2
37
Last Revised: 05/12/2023
Page 3
- sample statistics are estimates of population parameters
- not exact, subject to error
sampling error ➞ difference between observed values of
a statistic and population parameters as a result
of using just a subset of the population
&𝟏
𝐗
&𝟐
sampling distribution of
𝐗
&𝟑
𝐗 the sample means
&𝐧
𝐗 Q𝟑 𝐗𝐧 𝐗
𝐗 Q𝟏 Q𝟐
𝐗
Page 4
38
Last Revised: 05/12/2023
Page 5
B/ Non-probability sampling - depends on factors such
as judgment or convenience (in terms of
access to data)
- risk that samples may be non-representative
example 2, 3, 4
Page 6
population with
𝐒𝟏 𝐒𝟐 𝐒𝟑 𝐒𝐧
any distribution
with 𝝁 and finite 𝛔𝟐
sample
size 𝐧 = 30
4𝟏
𝐗 4𝟐
𝐗 4𝟑
𝐗 4𝐧
𝐗
sample size 𝐒𝟏 𝐒𝟐 𝐒𝟑 𝐒𝐧 Standard Error
𝐧 = 100 𝐒8 or 𝛔8 if we
sample size √𝐧 √𝐧
know 𝛔
𝐧 = 200 ➞ the sampling
Note: sd ≠ SE
- as 𝐧 ↑, sampling distribution of
error decreases the sampling sd = dispersion from
means the mean
(data description)
5 𝐗V ➞ best estimate of 𝛍
𝐗 SE = sampling error
𝟐 (data inference)
𝐒𝐗𝟐V = 𝐒 8𝐧
𝐒𝐄 𝐒𝐗V = 𝐒8
√𝐧
39
Last Revised: 05/12/2023
Page 7
Resampling ➞ repeatedly draw samples from an
original data sample in order to estimate
population parameters
Page 8
2/ Jackknife method/ - omit one observation from
a sample, one at a time
40
Last Revised: 05/12/2023
Hypothesis Testing
41
Last Revised: 05/12/2023
Hypothesis Testing
Page 1
Statistical Inference ➞ the process of making judgments
about a larger group (pop.) based on a
smaller group (sample)
e.g./ hypothesis testing - test to see whether a sample
statistic is likely to come from a population with
the hypothesized value of the population parameter
i.e. Does 3 = 𝛍𝟎 ?
𝐗
Hypothesis ➞ a statement about one or more populations that are
tested using sample statistics
Process: Step 1: State the hypothesis
2: Identify the appropriate test statistic
3: Specify the level of significance
4: State the decision rule
5: Collect data and calculate the test statistic
6: Make a decision
Page 2
Step #1: State the hypothesis
null ➞ 𝐇𝟎 ➞ assumed to be true unless
alternative ➞ 𝐇𝐚 we can reject
- typically want to reject 𝐇𝟎
42
Last Revised: 05/12/2023
Page 3
- the null (𝐇𝟎 ) always contains the equality sign
( = 𝛍𝟎
𝐇𝟎 : 𝐗 ( ≤ 𝛍𝟎
𝐇𝟎 : 𝐗 ( ≥ 𝛍𝟎
𝐇𝟎 : 𝐗
- testing 𝐇𝟎 is always done at equality
Test Statistic:
(Step #2)
pop. 𝛔𝟐 is known
4 − 𝛍𝟎
𝐗
𝐙= 𝛔
8 𝐧
distributed √
normally
pop. 𝛔𝟐 is unknown
4 − 𝛍𝟎
𝐗
𝐭=
𝐒8
t-distributed
√𝐧
Page 4
Step 3: Specify the Level of Significance
- level of sig. depends on the seriousness of making
a mistake
𝐇𝟎 = true 𝐇𝟎 = false
fail to reject Correct Type II error
(𝟏 − ∝) 𝜷 as ∝ ↓ , 𝛃 ↑
confidence level
reject Type I error Correct only way to
∝ (𝟏 − 𝜷) decrease both is
level of sig. Power of a test to increase 𝐧
( − 𝛍𝟎
𝐗
𝐭=
𝐒/√𝐧 ➞ as 𝐧 ↑,
e.g.: 𝐇𝟎 : not pregnant denom. ↓,
𝐇𝐚 : pregnant t-stat ↑
43
Last Revised: 05/12/2023
Page 5
Step #4: State the Decision Rule
or T.INV (p,df)
Page 6
Parametric Testing Non-parametric testing
44
Last Revised: 05/12/2023
45
Last Revised: 05/12/2023
Hypothesis Testing
Page 1
Tests of Correlation
1/ Parametric test left right
2-sided 𝐇𝟎 : 𝐩 = 𝟎 one-sided 𝐇𝟎 : 𝐩 ≥ 𝟎 𝐇𝟎 : 𝐩 ≤ 𝟎
𝐇𝐚 : 𝐩 ≠ 𝟎 𝐇𝐚 : 𝐩 < 𝟎 𝐇𝐚 : 𝐩 > 𝟎
Page 2
Tests of Correlation
2/ Non-parametric test
- if normality assumption for 𝐗 or 𝐘 violated, or
outliers are present
Spearman rank correlation coefficient
basically a correlation, but calculated on rank values
and not the values of the observations of 𝐗 or 𝐘
46
Last Revised: 05/12/2023
Page 3
Tests of Correlation/
2/ Non-parametric test
2/ On original data set (pre-ranked):
calculate 𝐝𝟐𝐢 = (𝐫𝐚𝐧𝐤 𝐗 𝐢 − 𝐫𝐚𝐧𝐤 𝐘𝐢 )𝟐 - where 𝐗 and 𝐘
are original
𝐧 𝟐
3/ 𝐫𝐒 = 𝟏 − ?𝟔7∑𝐢.𝟏 𝐝𝐢 8@ paired obs.
𝐧(𝐧𝟐 − 𝟏)
𝐫𝐒 √𝐧 − 𝟐 white text example
𝐭 𝐧A𝟐 =
Example #3
test 𝐫𝐒 , if 𝐧 > 𝟑𝟎 m𝟏 − 𝐫𝐒𝟐
Tests of Independence/
- test if classification types are independent
e.g./
Are growth stocks equally likely to be any size or
are they more likely to be large-cap stocks?
Page 4
Tests of Independence/ Contingency Table (2-way)
observed
non-parametric test of indep.
𝐦 𝟐
𝟐
Q𝐎𝐢𝐣 − 𝐄𝐢𝐣 S df = (r -1)(c -1)
𝛘 =^
𝐄𝐢𝐣 (right-tailed)
𝐢7𝟏
m = # of cells (3 x 3 = 9)
𝐎𝐢𝐣 = observed value in each cell
𝐄𝐢𝐣 = expected value in each cell
𝐄𝐒𝐕
𝐄𝐌𝐆 𝐄𝐢𝐣 = (𝐫𝐨𝐰𝐢 𝐭𝐨𝐭𝐚𝐥) × Q𝐜𝐨𝐥𝐮𝐦𝐧𝐣 𝐭𝐨𝐭𝐚𝐥S
𝐎𝐯𝐞𝐫𝐚𝐥𝐥 𝐭𝐨𝐭𝐚𝐥
∴ E𝐎
𝟐
𝐢𝐣 − 𝐄𝐢𝐣 F (𝟓𝟎 − 𝟒𝟔. 𝟕𝟎𝟑)𝟐
𝐒𝐕 = = . 𝟐𝟑𝟐𝟖
𝐄𝐢𝐣 𝟒𝟔. 𝟕𝟎𝟑
47
Last Revised: 05/12/2023
Page 5
Tests of Independence/
𝐇𝟎 : size and type are independent
𝐇𝐚 : size and type are not independent
𝐦
𝟐
H 7𝐎𝐢𝐣 − 𝐄𝐢𝐣 9
= 𝟑𝟐. 𝟎𝟖𝟎𝟐𝟓
𝐢(𝟏 𝐄𝐢𝐣
= CHISQ.INV(0.95,4) = 9.4877
∴ reject 𝐇𝟎
standardized residuals = 𝐎𝐢𝐣 − 𝐄𝐢𝐣 ➞ > 𝟎 means more obs. than
B𝐄𝐢𝐣 expected if categories were
e.g./ independent
𝟓𝟎 − 𝟒𝟔. 𝟕𝟎𝟑
𝐒𝐑 𝐒𝐕 = = 𝟎. 𝟒𝟖 < 𝟎 - opposite (i.e. fewer obs.)
√𝟒𝟔. 𝟕𝟎𝟑
more than
𝟏𝟐𝟐 − 𝟖𝟕. 𝟒𝟖𝟐 expected if
𝐒𝐑 𝐌𝐆 = = 𝟑. 𝟔𝟗 example #4
√𝟖𝟕. 𝟒𝟖𝟐 independent
48
Last Revised: 05/12/2023
a. describe a simple linear regression model, how the least squares criterion is
used to estimate regression coefficients, and the interpretation of these
coefficients
b. explain the assumptions underlying the simple linear regression model, and
describe how residuals and residual plots indicate if these assumptions may
have been violated
c. calculate and interpret measures of fit and formulate and evaluate tests of fit
and of regression coefficients in a simple linear regression
e. calculate and interpret the predicted value for the dependent variable, and a
prediction interval for it, given an estimated linear regression model and a
value for the independent variable
49
Last Revised: 05/12/2023
Page 1
- Simple Linear Regression (LR) ➞ one IV LOS a
- describe
DV - dependent variable -𝐘 - the variable we
IV - independent variable - 𝐗 are seeking to explain
the explanatory variable
LR assumes a linear relationship between the DV and the IV
𝐧
Variation of 𝐘 = K(𝐘𝐢 − 𝐘
4)𝟐 ➞ SST or total sum of squares
𝐢C𝟏
3, thus if 𝐗 gives a more accurate
- best guess for 𝐘 is 𝐘
estimate of 𝐘 than 𝐘3 , we say 𝐗 helps explain 𝐘
LOS b
𝐘𝐢 = 𝐛𝟎 + 𝐛𝟏 𝐗 𝐢 + 𝛆𝐢 𝛆 ➞ error term (residual) - describe
50
Last Revised: 05/12/2023
Page 2
regression compute a line of best fit that LOS b
𝐘
residuals minimizes the sum of the squared - describe
𝐂𝐨𝐯(𝐗, 𝐘)
measurement as the DV (𝐘)
()(𝐘𝐢 − 𝐘
∑𝐧𝐢.𝟏(𝐗 𝐢 − 𝐗 ()
( 𝐄(𝛆) = 𝟎
∑𝛆𝐢 = 𝟎)
…𝟏=
𝐛 = ➞ denominator can never be
𝛔𝟐𝐱 ( )𝟐
∑𝐧𝐢.𝟏(𝐗 𝐢 − 𝐗
… 𝟏 is
negative, ∴ sign of 𝐛
determined solely by 𝐂𝐨𝐯(𝐗, 𝐘)
q 𝟏 > 𝟎, 𝐫𝐗𝐘 > 𝟎
- if 𝐛
Page 3
D 𝟎 and 𝐛
D𝟏 LOS b
Interpreting 𝐛
- describe
o = 𝐛𝟎
𝐘 if 𝐗 𝐢 = 𝟎 ➞ only makes sense if
the IV has meaning at 𝐗 = 𝟎
… 𝟏 ➞ the change in 𝐘 for a one unit change in 𝐗
𝐛
e.g.
ROA(%) = 4.875% + 1.25 CAPEX(%) ➞ ROA = 4.875% if CAPEX = 0
➞ if CAPEX ↑ 1 unit (i.e. 1%), then
ROA ↑ 1.25%
51
Last Revised: 05/12/2023
Page 4
Assumptions/ LOS c
- explain
1/ Linearity ➞ the relationship between 𝐗 & 𝐘 is linear in - describe
the parameters 𝐛𝟎 and 𝐛𝟏 ➞ neither is multiplied
or divided by another regression parameter
➞ implies the IV must not be random - if so, there
would be no linear relation between 𝐗 & 𝐘
2/ Homoskedasticity ➞ 𝐕𝐚𝐫(𝛆) is the same for all observations
(vs. heteroskedastic) - a violation indicates the data series
may come from 2 different populations (CS) or
regimes (TS)
Page 5
Assumptions/ LOS c
- explain
4/ Normality ➞ 𝛆 is normally distributed - describe
- required to conduct valid tests of the
example #4 values of the regression coefficients
LOS d
Analysis of Variance/ - calculate
Total sum of squares (SST) - interpret
𝐧
total
4)𝟐
K(𝐘𝐢 − 𝐘 variance
𝐢C𝟏
52
Last Revised: 05/12/2023
Page 6
Analysis of Variance/ LOS d
- calculate
Coefficient of Determination - measures the
- interpret
fraction of the total variation in the
DV that is explained by the IV (goodness of fit measure)
- if only 1 IV, square the correlation between IV and DV
𝐧
𝐢7𝟏
𝟐
𝐒𝐒𝐑 𝐞𝐱𝐩𝐥𝐚𝐢𝐧𝐞𝐝 𝐯𝐚𝐫. ∑𝐧 7𝐘 o−𝐘 (8 measures fit but is
𝐑𝟐 = = = 𝐧𝐢.𝟏
𝐒𝐒𝐓 𝐭𝐨𝐭𝐚𝐥 𝐯𝐚𝐫. ()𝟐
∑𝐢.𝟏(𝐘𝐢 − 𝐘 not a statistical test
Coeff. of
Determination
multiple IVs
∴ statistical test = F-test 𝐇𝟎 : 𝐛𝟏 = 𝟎 𝐇𝟎 : 𝐛𝟏 = 𝐛𝟐 = ⋯ = 𝐛𝐤 = 𝟎
𝐇𝐚 : 𝐛𝟏 ≠ 𝟎 𝐇𝐚 : 𝐚𝐭 𝐥𝐞𝐚𝐬𝐭 𝐨𝐧𝐞 𝐛𝐤 ≠ 𝟎
Page 7
Analysis of Variance/ LOS d
- calculate
𝐒𝐒𝐑; 𝐒𝐒𝐑;
𝐌𝐒𝐑 𝐝𝐟 𝐤 𝐤 = slope - interpret
𝐅= = =
𝐌𝐒𝐄 𝐒𝐒𝐄;𝐝𝐟 𝐒𝐒𝐄;𝐧 − (𝐤 + 𝟏) coefficients
df1 = 𝐤
mean 𝐤 + 𝟏 = regression coefficients
df2 = 𝐧 − 𝐤 − 𝟏
= √𝐌𝐒𝐄 = 𝐒𝐄𝐄
53
Last Revised: 05/12/2023
Page 8
Standard Error of the Estimate (SEE) - a measure of LOS e
- describe
the s.d. of 𝛆
'𝐢
𝟏0 - calculate
𝟏0
∑𝐧𝐢.𝟏7𝐘𝐢
−𝐘o 8𝟐 𝟐
∑𝐧𝐢.𝟏 𝛆𝟐𝐢 𝟐 - interpret
𝐒𝐄𝐄 = √𝐌𝐒𝐄 = † ‡ =ˆ ‰
𝐧−𝟐 𝐧−𝟐
the smaller the SEE, the more accurate the regression
(a.k.a. the standard error of the regression or the root mean square
error)
e.g./
= F.INV(.95,1,4)
= 7.71
𝐒𝐄𝐄 = √𝟏𝟏. 𝟗𝟔𝟖𝟕𝟓
Example #5
Page 9
LOS f
…𝟏:
1/ Hypothesis Tests of 𝐛
- formulate
… 𝟏 − 𝐛𝟏 hypothesized value
test statistic: 𝐭 = 𝐛 - determine
𝐒𝐄𝐄
df = 𝐧 − (𝐤 + 𝟏) 𝐒𝐛X𝟏 ➞ standard error of 𝐛
…𝟏 =
&) 𝟐
g∑𝐧𝐢7𝟏(𝐗 𝐢 − 𝐗
𝐧
𝐧 − (𝐤 + 𝟏)
𝐒𝐛X𝟏 = √𝟏𝟏. 𝟗𝟔𝟕𝟖 = 𝟎. 𝟑𝟏𝟐𝟑𝟗𝟖 𝟏. 𝟐𝟓 − 𝟎
𝐭= = 𝟒. 𝟎𝟎𝟏𝟑𝟏 Reject 𝐇𝟎
√𝟏𝟐𝟐. 𝟔𝟒 . 𝟑𝟏𝟐𝟑𝟗𝟖
(𝐭 = 𝐅, 𝟒. 𝟎𝟎𝟏𝟑𝟏𝟐 = 𝟏𝟔. 𝟎𝟏𝟎𝟒)
𝟐
Note: 𝐇𝟎 : 𝐩 = 𝟎
𝐫√𝐧 − 𝟐 𝟎. 𝟖𝟗𝟒𝟓√𝟒 SLR
𝐇𝐚 : 𝐩 ≠ 𝟎 𝐭= = 𝟒. 𝟎𝟎𝟏𝟑𝟏 Reject 𝐇𝟎
√𝟏 − 𝐫 𝟐 √𝟏 − . 𝟖𝟗𝟒𝟓𝟐 only
df = 𝐧 − 𝟐
54
Last Revised: 05/12/2023
Page 10
…𝟎:
2/ Hypothesis Tests of 𝐛 LOS f
… 𝟎 − 𝐁𝟎 - formulate
𝐭= 𝐛 5𝟐
and 𝐒𝐛X𝟎 =e𝟏 + 𝐗 - determine
𝐒𝐛X𝟎 𝐧 5)𝟐
∑𝐧𝐢C𝟏(𝐗 𝐢 − 𝐗
df = 𝐧 − (𝐤 + 𝟏)
… 𝟏 if IV is an indicator variable (dummy var.)
3/ Hypothesis Tests of 𝐛
f𝟏 takes on a value of 0 or 1
- same process as a test of 𝐛
𝐘 = 𝐛𝟎 + 𝐛𝟏 𝐈𝐍𝐃 - if 𝐈𝐍𝐃 = 𝟎 , 𝐘 = 𝐛𝟎 𝐛𝟎 = avg. of all 0 obs.
- if 𝐈𝐍𝐃 = 𝟏 , 𝐘 = 𝐛𝟎 + 𝐛𝟏 𝐛𝟎 + 𝐛𝟏 = avg. of all 1 obs.
𝐒𝟏 all 0 obs. ( 𝟎 = 𝐛𝟎
𝐗 difference in means
∴(𝐗(𝟏 − 𝐗(𝟎 ) = (𝐛𝟎 + 𝐛𝟏) − 𝐛𝟎
𝐒𝟐 all 1 obs. ( 𝟏 = 𝐛𝟎 + 𝐛𝟏
𝐗 = 𝐛𝟎 − 𝐛𝟎 + 𝐛𝟏
= 𝐛𝟏
Page 11
LOS f
Level of Significance and p-values/
- formulate
- most software output ➞ ∝ = 𝟓% , 𝐇𝟎 : parameter = 0 - determine
recall: = (1 - T.DIST(+ 𝐭 , df, 1)) × 2 example #6
J: LOS g
Prediction interval (or CI) for 𝐘
- calculate
o=𝐛
𝐘 … 𝟎+𝐛… 𝟏𝐗 - interpret
estimated with error 2 sources of
o8 = 𝛆 ➞ estimated with error
7𝐘𝐢 − 𝐘 error
J +⁄− 𝐭 𝐜 𝐒𝐘G
- recall for CI : 𝐘
- since there are 2 sources of error and not just one ➞ adjust 𝐒𝐘G
forecast value of the IV
𝟏 3)𝟐
(𝐗 𝐟 − 𝐗
adjusted 𝐒𝐘G : 𝐒𝐟𝟐 = 𝐒𝐞𝟐 N𝟏 + + P and 𝐒𝐟 = M𝐒𝐟𝟐
𝐧 (𝐧 − 𝟏)𝐒𝐱𝟐
𝐧
SEE
&) 𝟐
^(𝐗 𝐢 − 𝐗
𝐢7𝟏
55
Last Revised: 05/12/2023
Page 12
J:
Prediction interval (or CI) for 𝐘 LOS g
3 - calculate
3 )𝟐
𝟏 (𝐗 𝐟 − 𝐗
𝟐 𝟐 - interpret
𝐒𝐟 = 𝐒𝐞 N𝟏 + + P
𝐧 (𝐧 − 𝟏)𝐒𝐱𝟐
1
2
1. the better the fit of the regression model ➞ lower 𝐒𝐞𝟐 ➞ lower 𝐒𝐟𝟐
2. larger 𝐧 = smaller 𝐒𝐟𝟐
3 ➞ smaller 𝐒𝐟𝟐
3. close 𝐗 𝐟 is to 𝐗
Steps/ Determine o
𝐘
Select ∝
Determine 𝐭𝐜
Determine 𝐒𝐟
Determine o𝐟 +⁄− 𝐭 𝐜 𝐒𝐟
𝐘
example #7
Page 13
1/ Log-lin model LOS h
- describe
𝐘 = 𝐞𝐛𝟎 J𝐛𝟏 𝐗𝐢 Revenues
- take the log of
both sides
growth rate
𝐥𝐧 𝐘𝐢 = 𝐛𝟎 + 𝐛𝟏 𝐗 𝐢 of revenue
relative
change in 𝐘 for
absolute change in 𝐗
2/ Lin-Log model
𝐘 = 𝐛𝟎 + 𝐛𝟏 𝐥𝐧(𝐗 𝐢 )
absolute change in 𝐘 for relative change in 𝐗
- when 𝐘 and 𝐗 are significantly different in scale exh. #35/36
e.g./ 𝐘 = percent 𝐗 = billions of $ in Revenue
(transform 𝐗 with 𝐥𝐧(𝐗))
56
Last Revised: 05/12/2023
Page 14
3/ Log-Log model 𝐥𝐧 𝐘𝐢 = 𝐛𝟎 + 𝐛𝟏 𝐥𝐧(𝐗 𝐢 ) LOS h
- describe
the relative change in 𝐘𝐢 for a
relative change in 𝐗 𝐢
- exh. #37/38
57
Last Revised: 05/12/2023
a. describe aspects of “fintech” that are directly relevant for the gathering and
analyzing of financial data.
58
Last Revised: 05/12/2023
Page 2
59
Last Revised: 05/12/2023
Page 3
Ethical/Legal issues ➞ use of personal info./data scraped from
web data
Challenges quality selection bias outliers
volume missing data data cleansing/organizing
appropriateness
AI - artificial intelligence - systems that exhibit cognitive and
decision-making ability comparable or superior to humans
- from expert systems to neural networks
(if - then rules) (based on how brains learn and
process info.)
Machine learning - seek to extract knowledge from large amounts
of data without assumptions of the data’s underlying
probability distribution
- learn from known examples to determine underlying
structure in the data - generate structure without
help from a human
Page 4
60
Last Revised: 05/12/2023
Page 5
Data processing methods/
Capture - low latency systems (very little delay) vs. high latency
Curation - ensuring data quality/accuracy
- detect errors and make adjustments for missing data
Storage - record/archive/access in databases
Search - how data are queried
Transfer - movement of data from storage to analytical
application
Data Visualization/
- how data is formatted/displayed/summarized in
graphical format
(e.g. heat maps, tree diagrams, network graphs)
- tag clouds (text data) - words are sized/displayed
based on frequency
Page 6
61