CFA Level I Quantitative Methods formulas
Time value of money, returns, probability, statistics and hypothesis tests: the formulas behind most of the calculator work in the course.
258 formulas from the Quantitative Methods lessons (11–14% of the exam), 159 to memorize. Each says how deeply to learn it and opens to a quick worked example with the keystrokes for the TI BA II Plus and the HP 12C.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
Module 1 Returns of Financial Assets
Required return: risk-free rate, inflation and risk premia
Quick example
Real risk-free 1.0%, inflation 2.5%, market premium 5.0% (exposure 1.1), size premium 2.0% (exposure 0.4), value premium 1.5% (exposure 0.3). 1.0 + 2.5 + 5.5 + 0.8 + 0.45 = 10.25%.
- 1+2.5+(1.1×5)+(0.4×2)+(0.3×1.5)= 10.25
- 1.1ENTER5× 5.5
- 0.4ENTER2×+ 6.3
- 0.3ENTER1.5×+ 6.75
- 3.5+ 10.25, adding the 1.0 and 2.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
A bill yields 6.0% and inflation is 2.5%. 1.06 ÷ 1.025 − 1 = 3.41%, against 3.50% from subtraction.
- 1.06÷1.025−1= 0.0341, so 3.41%
- 1.06ENTER1.025÷1− 0.0341
ENTER enter (on the HP, puts the number on the stack)
Quick example
Shares return 8.4% while a bill returns 2.0%. 1.084 ÷ 1.02 − 1 = 6.27% exactly, against 6.40% by subtraction.
- 1.084÷1.02−1= 0.0627
- 1.084ENTER1.02÷1− 0.0627
ENTER enter (on the HP, puts the number on the stack)
Holding period return
Quick example
Buy at 40.00, receive 0.80 of dividends, sell at 43.00. (43.00 − 40.00 + 0.80) ÷ 40.00 = 9.5%.
- 43−40+0.8=÷40= 0.095
- 43ENTER40−0.8+40÷ 0.095
ENTER enter (on the HP, puts the number on the stack)
Quick example
Bought at 60.00, sold at 63.00. 3.00 ÷ 60.00 = 5.0%.
Quick example
Dividends of 1.20 a year on a share bought at 48.00. 1.20 ÷ 48.00 = 2.5%, the dividend yield.
Quick example
Returns of 8%, −5% and 12%. 1.08 × 0.95 × 1.12 − 1 = 14.91%.
- 1.08×0.95×1.12−1= 0.1491
- 1.08ENTER0.95×1.12×1− 0.1491
ENTER enter (on the HP, puts the number on the stack)
Arithmetic and geometric mean returns
Quick example
+60%, −40% and +10%. (60 − 40 + 10) ÷ 3 = 10% a year.
Quick example
+60%, −40% and +10%. (1.60 × 0.60 × 1.10)^(1/3) − 1 = 1.056^(1/3) − 1 = 1.83% a year.
- 1.6×0.6×1.1= growth of 1 over three years, 1.056
- y^x31/x= the cube root, 1.0183
- −1= 0.0183
y^x power · 1/x reciprocal
- 1.6ENTER0.6×1.1× 1.056
- 31/xy^x the cube root, 1.0183
- 1− 0.0183
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · y^x power
Annualized and continuously compounded returns
Quick example
2.5% over 3 months, so c = 4. 1.025⁴ − 1 = 10.38%.
- 1.025y^x4=−1= 0.1038
y^x power
- 1.025ENTER4y^x1− 0.1038
ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
GBP 1,000 at 6% for one year: 1,000 × e^0.06 = 1,061.84.
- 0.062NDe^x×1000= 1,061.84
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.06ge^x1000× 1,061.84
g blue shift key · e^x e to the power x
Quick example
A price rises from 38 to 43. ln(43 ÷ 38) = ln 1.1316 = 12.36%.
- 43÷38=LN 0.1236
LN natural logarithm
- 43ENTER38÷gLN 0.1236
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · LN natural logarithm
Gross, net, after-tax, real and leveraged returns
Quick example
Total 8.0%, transaction costs 0.2%, management fee 0.6%, administrative expenses 0.1%. Gross 8.0 − 0.2 = 7.8%; net 7.8 − 0.6 − 0.1 = 7.1%.
- 8−0.2= 7.8, gross
- −0.6−0.1= 7.1, net
- 8ENTER0.2− 7.8, gross
- 0.6−0.1− 7.1, net
ENTER enter (on the HP, puts the number on the stack)
Quick example
Price return 6%, distribution return 3%, gains taxed at 25%, distributions at 40%. 6 × 0.75 + 3 × 0.60 = 4.5 + 1.8 = 6.3%.
- 6×0.75=STO1 4.5
- 3×0.6+RCL1= 6.3
STO store · RCL recall a stored number
- 6ENTER0.75× 4.5
- 3ENTER0.6×+ 6.3
ENTER enter (on the HP, puts the number on the stack)
Quick example
Nominal 6.5%, inflation 2.5%. 1.065 ÷ 1.025 − 1 = 3.90%, against 4.00% from subtraction.
- 1.065÷1.025−1= 0.0390
- 1.065ENTER1.025÷1− 0.0390
ENTER enter (on the HP, puts the number on the stack)
Quick example
Equity 600,000, borrowed 400,000 at 5%, portfolio return 9%. 9% + (400 ÷ 600)(9% − 5%) = 11.67%.
- 9−5=×400÷600+9= in percent: 11.67
- 9ENTER5−400×600÷9+ 11.67
ENTER enter (on the HP, puts the number on the stack)
Quick example
Strike 30, premium 2, share ends at 35. (5 − 2) ÷ 2 = 150%. The break-even is 32, and at or below 30 the call loses the whole premium.
- 35−30−2=÷2= 1.50, so 150%
- 35ENTER30−2−2÷ 1.50
ENTER enter (on the HP, puts the number on the stack)
Module 2 Types of Financial Returns
Types of returns: assets, instruments and indicators
Quick example
Buy at 60.00, receive a 1.50 dividend, sell at 63.00. (63.00 − 60.00 + 1.50) ÷ 60.00 = 7.5%: price return 5.0% plus distribution return 2.5%.
- 63−60+1.5=÷60= 0.075
- 63ENTER60−1.5+60÷ 0.075
ENTER enter (on the HP, puts the number on the stack)
Quick example
A 182-day bill with face value 10,000 is priced at 9,780. 10,000 ÷ 9,780 − 1 = 2.2495% over its life.
- 10000÷9780−1= 0.0225
- 10000ENTER9780÷1− 0.0225
ENTER enter (on the HP, puts the number on the stack)
Quick example
The same 182-day bill. 1.022495 raised to 365 ÷ 182, minus 1, is 4.56%. Doubling the period return would give 4.50%.
- 10000÷9780=y^x(365÷182)=−1= 0.0456
y^x power
- 10000ENTER9780÷365ENTER182÷y^x1− 0.0456
ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
The home-currency price of one unit of the foreign currency rises from 0.9200 to 0.9568. 0.9568 ÷ 0.9200 − 1 = +4.00%.
- 0.9568÷0.92−1= 0.04
- 0.9568ENTER0.92÷1− 0.04
ENTER enter (on the HP, puts the number on the stack)
Quick example
Local return 5.0%, and the foreign currency falls 3.0% against yours. 1.05 × 0.97 − 1 = 1.85%.
- 1.05×0.97−1= 0.0185
- 1.05ENTER0.97×1− 0.0185
ENTER enter (on the HP, puts the number on the stack)
Quick example
Returns of +30% and −20%. The arithmetic mean is 5.00%. (1.30 × 0.80)^(1/2) − 1 = 1.98%.
- 1.3×0.8=y^x0.5=−1= 0.0198
y^x power
- 1.3ENTER0.8×0.5y^x1− 0.0198
ENTER enter (on the HP, puts the number on the stack) · y^x power
Long-run asset class returns and their components
Quick example
Equities earn 10.4% a year and bonds 7.1%. 1.104 ÷ 1.071 − 1 = 3.08% a year. The simple difference, 3.30%, overstates it.
- 1.104÷1.071−1= 0.0308
- 1.104ENTER1.071÷1− 0.0308
ENTER enter (on the HP, puts the number on the stack)
Macro and micro risk and the risk-return trade-off
Quick example
An asset's best year is +18% and its worst is −9%. The range is 18 − (−9) = 27 percentage points.
- 18−9+|-= 27
+|- change sign
- 18ENTER9CHS− 27
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
50% in equities at 8.8%, 35% in bonds at 5.4%, 15% in bills at 2.2%. 4.40 + 1.89 + 0.33 = 6.62%.
- (0.5×8.8)+(0.35×5.4)+(0.15×2.2)= 6.62
- 0.5ENTER8.8×0.35ENTER5.4×+0.15ENTER2.2×+ 6.62
ENTER enter (on the HP, puts the number on the stack)
Module 3 Benchmarking Returns
Money-weighted vs time-weighted rate of return
Quick example
Flows of −80 at t = 0, −100 at t = 1 and +216 at t = 2. The internal rate of return of those flows, and so the money-weighted rate of return, is 13.30% a year.
- CF2NDCLR WORK open the cash flow worksheet and clear it
- 80+|-ENTER↓ CF0 = −80
- 100+|-ENTER↓ C01 = −100, and F01 stays at 1
- ↓216ENTER C02 = 216
- IRRCPT 13.30
CF cash flow worksheet · 2ND second function (the shifted label above a key) · CLR WORK clear the worksheet · +|- change sign · ENTER enter (on the HP, puts the number on the stack) · IRR internal rate of return · CPT compute
- fCLEAR REG clear the cash flow registers
- 80CHSgCF0 the first flow
- 100CHSgCFj t = 1
- 216gCFj t = 2
- fIRR 13.30
f gold shift key · CLEAR REG clear all registers · CHS change sign · g blue shift key · CF0 cash flow at time zero · CFj cash flow j · IRR internal rate of return
Quick example
Quarterly returns of 5%, −5%, 5% and 4% between cash flows. 1.05 × 0.95 × 1.05 × 1.04 − 1 = 8.93% for the year.
- 1.05×0.95×1.05×1.04−1= 0.0893
- 1.05ENTER0.95×1.05×1.04×1− 0.0893
ENTER enter (on the HP, puts the number on the stack)
Quick example
Year 1: 80 to 100 (+25%). Year 2: 100 to 108 (+8%). (1.25 × 1.08)^(1/2) − 1 = 16.19% a year.
- 1.25×1.08= year 1 × year 2 growth, 1.35
- √x−1= two years, so the square root: 0.1619
√x square root
- 1.25ENTER1.08× 1.35
- g√x1− 0.1619
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
A quarterly internal rate of return of 2.0371% annualizes to 1.020371⁴ − 1 = 8.40%, not 4 × 2.0371% = 8.15%.
- 1.020371y^x4−1= 0.0840
y^x power
- 1.020371ENTER4y^x1− 0.0840
ENTER enter (on the HP, puts the number on the stack) · y^x power
Index value, price return and total return
Quick example
Constituents worth 10,800 in total and a divisor of 10.8 give an index of 1,000. When they are worth 11,360 the index is 11,360 ÷ 10.8 = 1,051.85.
- 11360÷10.8= 1051.85
- 11360ENTER10.8÷ 1051.85
ENTER enter (on the HP, puts the number on the stack)
Quick example
A price return index moves from 2,000 to 2,060. (2,060 − 2,000) ÷ 2,000 = 3.00%.
- 2060−2000=÷2000= 0.03
- 2060ENTER2000−2000÷ 0.03
ENTER enter (on the HP, puts the number on the stack)
Quick example
Index 2,000 to 2,060 with 24 points of income (capital distributions). (2,060 − 2,000 + 24) ÷ 2,000 = 4.20%.
- 2060−2000+24=÷2000= 0.042
- 2060ENTER2000−24+2000÷ 0.042
ENTER enter (on the HP, puts the number on the stack)
Quick example
Weights 50%, 30% and 20%. Price returns of 6%, 2% and −4% give 2.8%. Adding dividend yields of 2%, 1% and 3% makes total returns of 8%, 3% and −1%, so the index total return is 0.50 × 8 + 0.30 × 3 + 0.20 × (−1) = 4.7%.
- (0.5×8)+(0.3×3)−(0.2×1)= 4.7
- 0.5ENTER8×0.3ENTER3×+0.2ENTER1×− 4.7
ENTER enter (on the HP, puts the number on the stack)
Price-weighted and equal-weighted indexes
Quick example
Prices 30, 60 and 90 with a divisor of 0.18 (set for a base of 1,000). 180 ÷ 0.18 = 1,000.
- 30+60+90=÷0.18= 1000
- 30ENTER60+90+0.18÷ 1000
ENTER enter (on the HP, puts the number on the stack)
Quick example
Prices go from 30, 60, 90 to 33, 57, 99. The sum rises from 180 to 189, so the return is 9 ÷ 180 = 5.00%. The 90 share carries 90 ÷ 180 = 50% of the weight.
- 189÷180−1= 0.05
- 189ENTER180÷1− 0.05
ENTER enter (on the HP, puts the number on the stack)
Quick example
Prices 40, 60 and 100 with a divisor of 2.00 give an index of 100. The 100 share splits 2-for-1, so the sum falls to 150. New divisor = 150 ÷ 100 = 1.50.
- 40+60+50=÷100= 1.5
- 40ENTER60+50+100÷ 1.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
Hold 90 X at 80, 288 Y at 25 and 160 Z at 45 (7,200 in each). 21,600 ÷ 21.6 = 1,000.
- (90×80)+(288×25)+(160×45)=÷21.6= 1000
- 90ENTER80×288ENTER25×+160ENTER45×+21.6÷ 1000
ENTER enter (on the HP, puts the number on the stack)
Quick example
Four shares return 8%, −2%, 5% and 1%. (8 − 2 + 5 + 1) ÷ 4 = 3.00%.
- 8+2+|-+5+1=÷4= 3
+|- change sign
- 8ENTER2CHS+5+1+4÷ 3
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Market-cap, float-adjusted and fundamental weighting
Quick example
Share A: 20 million shares at 35. Share B: 15 million shares at 28. Values 700 and 420, total 1,120. A carries 700 ÷ 1,120 = 62.5%.
- (20×35)+(15×28)= 1120
- 700÷1120= 0.625
- 20ENTER35×15ENTER28×+ 1120
- 700ENTER1120÷ 0.625
ENTER enter (on the HP, puts the number on the stack)
Quick example
Total market value 10,800 at the start, divisor 10.8: index 1,000. Market value 11,360 at the end: 11,360 ÷ 10.8 = 1,051.85.
- 11360÷10.8= 1051.85
- 11360ENTER10.8÷ 1051.85
ENTER enter (on the HP, puts the number on the stack)
Quick example
Total market value of the constituents goes from 1,200 to 1,230, with 15 of dividends (Div, the total paid by the constituents). (1,230 + 15) ÷ 1,200 − 1 = 3.75%. Without dividends the price return is 2.50%.
- 1230+15=÷1200−1= 0.0375
- 1230ENTER15+1200÷1− 0.0375
ENTER enter (on the HP, puts the number on the stack)
Quick example
A holder owns 40% of a company with 100 million shares at 30. With float 60%, the index counts 0.60 × 100 × 30 = 1,800 of the 3,000 market value.
- 0.6×100×30= 1800
- 0.6ENTER100×30× 1800
ENTER enter (on the HP, puts the number on the stack)
Quick example
Weight 34.09%, return −4%: contribution 0.3409 × (−4%) = −1.36 points.
- 0.3409×4+|-= −1.36
+|- change sign
- 0.3409ENTER4CHS× −1.36
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Earnings of 60, 30 and 10 give weights of 60%, 30% and 10%, whatever the share prices are.
Module 4 Time Value of Money in Finance
Pricing bonds: zero-coupon, coupon and perpetual
Quick example
EUR 2,000 invested for 4 years at 5% a year, compounded annually, grows to 2,000 × 1.05⁴ = EUR 2,431.01.
- 2NDCLR TVM with P/Y set to 1
- 4N5I/Y2000+|-PV
- CPTFV 2,431.01
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · +|- change sign · PV present value · CPT compute · FV future value
- fCLEAR FIN
- 4n5i2000CHSPV
- FV 2,431.01
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · CHS change sign · PV present value · FV future value
Quick example
EUR 2,439.78 due in 4 years, discounted at 5% compounded quarterly (1.25% for 16 quarters). 2,439.78 ÷ 1.0125¹⁶ = EUR 2,000.00.
- 2NDCLR TVM
- 16N1.25I/Y2439.78FV
- CPTPV −2,000.00
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · FV future value · CPT compute · PV present value
- fCLEAR FIN
- 16n1.25i2439.78FV
- PV −2,000.00
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · FV future value · PV present value
Quick example
EUR 2,000 for 4 years at 5% a year compounded quarterly (m = 4): 2,000 × 1.0125¹⁶ = EUR 2,439.78. It really earns 1.0125⁴ − 1 = 5.09% a year.
- 2NDCLR TVM
- 16N1.25I/Y2000+|-PV
- CPTFV 2,439.78
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · +|- change sign · PV present value · CPT compute · FV future value
- fCLEAR FIN
- 16n1.25i2000CHSPV
- FV 2,439.78
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · CHS change sign · PV present value · FV future value
Quick example
Face value 100, matures in 8 years, yield 4.5%. 100 ÷ 1.045⁸ = 70.32.
- 2NDCLR TVM with P/Y set to 1
- 8N4.5I/Y100FV
- CPTPV −70.32
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · FV future value · CPT compute · PV present value
- fCLEAR FIN
- 8n4.5i100FV
- PV −70.32
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · FV future value · PV present value
Quick example
Face value 100, 8 years, continuously compounded yield 4.5%. 100 × e^(−0.36) = 69.77.
- 0.36+|-2NDe^x×100= 69.77
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.36CHSge^x100× 69.77
CHS change sign · g blue shift key · e^x e to the power x
Quick example
5 years, 3.5% annual coupon, face value 100, yield 5%. N = 5, I/Y = 5, PMT = 3.5, FV = 100 gives 93.51, a discount.
- 2NDCLR TVM
- 5N5I/Y3.5PMT100FV
- CPTPV −93.51
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · PMT payment · FV future value · CPT compute · PV present value
- fCLEAR FIN
- 5n5i3.5PMT100FV
- PV −93.51
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · PMT payment · FV future value · PV present value
Quick example
Face value USD 1,000,000, paid quarterly, reference rate 3.40%, margin 85 bp. 1,000,000 × 4.25% ÷ 4 = USD 10,625.
- 3.4+0.85=÷100÷4×1000000= 10,625
- 3.4ENTER0.85+100÷4÷1000000× 10,625
ENTER enter (on the HP, puts the number on the stack)
Quick example
Pays 4.25 a year forever, yield 5%. 4.25 ÷ 0.05 = 85.00.
- 4.25÷0.05= 85
- 4.25ENTER0.05÷ 85
ENTER enter (on the HP, puts the number on the stack)
Annuities and level-payment loans
Quick example
EUR 2,000 at the end of each year for 6 years, discounted at 5%. 2,000 × (1 − 1.05⁻⁶) ÷ 0.05 = EUR 10,151.38.
- 2NDCLR TVM with P/Y set to 1
- 6N5I/Y2000PMT
- CPTPV −10,151.38
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · PMT payment · CPT compute · PV present value
- fCLEAR FIN
- 6n5i2000PMT
- PV −10,151.38
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · PMT payment · PV present value
Quick example
Borrow 350,000 over 30 years at 4.2% a year, paid monthly. r = 0.35% a month, t = 360. PMT = 1,711.56 a month.
- 2NDCLR TVM
- 360N0.35I/Y350000PV
- CPTPMT −1,711.56
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · I/Y interest rate per year (per period when P/Y is 1) · PV present value · CPT compute · PMT payment
- fCLEAR FIN
- 360n0.35i350000PV
- PMT −1,711.56
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · i interest rate per period · PV present value · PMT payment
Quick example
Balance 250,000 at 0.4% a month, payment 1,432.49. Interest 1,000.00, principal 432.49.
- 250000×0.004= 1,000.00 interest
- +|-+1432.49= 432.49 principal
+|- change sign
- 250000ENTER0.004× 1,000.00 interest
- CHS1432.49+ 432.49 principal
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Valuing a stock from its dividends
Quick example
A preferred share pays 2.70 a year and investors require 9%. 2.70 ÷ 0.09 = 30.00.
- 2.7÷0.09= 30
- 2.7ENTER0.09÷ 30
ENTER enter (on the HP, puts the number on the stack)
Quick example
Last dividend 2.80, growth 2% forever, required return 7%. D₁ = 2.856, so 2.856 ÷ 0.05 = 57.12.
- 2.8×1.02÷(0.07−0.02)= 57.12
- 2.8ENTER1.02× D₁
- 0.07ENTER0.02− r − g
- ÷ 57.12
ENTER enter (on the HP, puts the number on the stack)
Quick example
D₀ 1.20, growth g_s = 15% for 2 years then g_l = 3.5% forever, r = 9.5%. D₁ 1.38, D₂ 1.587, V₂ = 1.587 × 1.035 ÷ 0.06 = 27.3758. Value = 1.38 ÷ 1.095 + (1.587 + 27.3758) ÷ 1.095² = 25.42.
- CF2NDCLR WORK
- 0ENTER↓1.38ENTER↓↓28.96275ENTER
- NPV9.5ENTER↓CPT 25.42
CF cash flow worksheet · 2ND second function (the shifted label above a key) · CLR WORK clear the worksheet · ENTER enter (on the HP, puts the number on the stack) · NPV net present value · CPT compute
- fCLEAR REG
- 0gCF01.38gCFj28.96275gCFj9.5i
- fNPV 25.42
f gold shift key · CLEAR REG clear all registers · g blue shift key · CF0 cash flow at time zero · CFj cash flow j · i interest rate per period · NPV net present value
Implied return and implied growth
Quick example
A 5-year zero is priced at 82.50 per 100. (100 ÷ 82.50)^(1/5) − 1 = 3.92% a year.
- 2NDCLR TVM with P/Y set to 1
- 5N82.5+|-PV100FV
- CPTI/Y 3.92
2ND second function (the shifted label above a key) · CLR TVM clear the time value of money keys · N number of periods · +|- change sign · PV present value · FV future value · CPT compute · I/Y interest rate per year (per period when P/Y is 1)
- fCLEAR FIN
- 5n82.5CHSPV100FV
- i 3.92
f gold shift key · CLEAR FIN clear the financial registers · n number of periods · CHS change sign · PV present value · FV future value · i interest rate per period
Quick example
Forward P/E 18, payout ratio 45%, required return 8%: D₁ ÷ P₀ = 0.45 ÷ 18 = 2.5%, so g = 8% − 2.5% = 5.5%.
- 0.08−(0.45÷18)= 0.055
- 0.08ENTER0.45ENTER18÷− 0.055
ENTER enter (on the HP, puts the number on the stack)
Quick example
Price 36, last dividend 1.20, required return 9%. (0.09 × 36 − 1.20) ÷ (36 + 1.20) = 5.48%.
- (0.09×36−1.2)÷(36+1.2)= 0.0548
- 0.09ENTER36×1.2−36ENTER1.2+÷ 0.0548
ENTER enter (on the HP, puts the number on the stack)
Quick example
Payout ratio 40%, required return 9%, growth 5%. 0.40 ÷ 0.04 = 10.0×.
- 0.4÷(0.09−0.05)= 10
- 0.4ENTER0.09ENTER0.05−÷ 10
ENTER enter (on the HP, puts the number on the stack)
Quick example
Payout 40%, growth 5%, required return 9%: 0.40 × 1.05 ÷ 0.04 = 10.5×.
- 0.4×1.05÷(0.09−0.05)= 10.5
- 0.4ENTER1.05×0.09ENTER0.05−÷ 10.5
ENTER enter (on the HP, puts the number on the stack)
Cash flow additivity and implied forward rates
Quick example
A 2-year 5% coupon bond equals a 1-year zero paying 5 plus a 2-year zero paying 105. At spot rates 3.0% and 3.8%: 5 ÷ 1.03 + 105 ÷ 1.038² = 102.31.
- 5÷1.03=STO1 4.8544
- 105÷(1.038y^x2)=+RCL1= 102.31
STO store · y^x power · RCL recall a stored number
- 5ENTER1.03÷105ENTER1.038ENTER2y^x÷+ 102.31
ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
S₁ = 3.0%, S₂ = 3.8%. 1.038² ÷ 1.03 − 1 = 4.61%.
- 1.038y^x2=÷1.03−1= 0.0461
y^x power
- 1.038ENTER2y^x1.03÷1− 0.0461
ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
S₁ = 3.0%, S₃ = 4.2%. The 2-year rate from year 1 to year 3, F₁,₃: (1.042³ ÷ 1.03)^(1/2) − 1 = 4.81% a year.
- 1.042y^x3=÷1.03=y^x0.5=−1= 0.0481
y^x power
- 1.042ENTER3y^x1.03÷0.5y^x1− 0.0481
ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
1-year zero 97.09, 2-year zero 92.81 per 100. 97.09 ÷ 92.81 − 1 = 4.61%.
- 97.09÷92.81−1= 0.0461
- 97.09ENTER92.81÷1− 0.0461
ENTER enter (on the HP, puts the number on the stack)
Forward exchange rates and option values by no arbitrage
Quick example
INR 83.00 per USD, continuously compounded rates INR 6.5%, USD 4.5%, one year. 83.00 × e^0.02 = 84.68.
- 0.065−0.045=2NDe^x×83= 84.68
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.065ENTER0.045−ge^x83× 84.68
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Quick example
CHF 0.9400 per EUR, one-year rates CHF 1.5%, EUR 3.0% (annual compounding). 0.9400 × 1.015 ÷ 1.03 = 0.9263.
- 0.94×1.015÷1.03= 0.9263
- 0.94ENTER1.015×1.03÷ 0.9263
ENTER enter (on the HP, puts the number on the stack)
Quick example
USD 1.0800 per EUR, simple rates of 4% a year (USD) and 2% a year (EUR), six months. 1.08 × 1.02 ÷ 1.01 = 1.0907.
- 1.08×1.02÷1.01= 1.0907
- 1.08ENTER1.02×1.01÷ 1.0907
ENTER enter (on the HP, puts the number on the stack)
Quick example
Share 80, then 100 or 64. Call, exercise price 90, pays 10 or 0. h = 10 ÷ 36 = 0.2778 shares per call.
- 10÷36= 0.2778
- 10ENTER36÷ 0.2778
ENTER enter (on the HP, puts the number on the stack)
Quick example
Same tree, risk-free rate 4%. 0.2778 × 80 − (0.2778 × 64 − 0) ÷ 1.04 = 22.22 − 17.09 = 5.13.
- 10÷36=STO1 0.2778
- RCL1×64÷1.04=STO2 17.09
- RCL1×80−RCL2= 5.13
STO store · RCL recall a stored number
- 10ENTER36÷STO1 0.2778
- 64×1.04÷STO2 17.09
- RCL180×RCL2− 5.13
ENTER enter (on the HP, puts the number on the stack) · STO store · RCL recall a stored number
Quick example
Share 80, then 100 or 64. Put, exercise price 90, pays 0 or 26, r = 4%. h = 26 ÷ 36 = 0.7222; p₀ = (0.7222 × 100 + 0) ÷ 1.04 − 0.7222 × 80 = 11.67.
- 26÷36=STO1 0.7222
- RCL1×100÷1.04=STO2 69.44
- RCL1×80=STO3 57.78
- RCL2−RCL3= 11.67
STO store · RCL recall a stored number
- 26ENTER36÷STO1 0.7222
- 100×1.04÷STO2 69.44
- RCL2RCL180×− 11.67
ENTER enter (on the HP, puts the number on the stack) · STO store · RCL recall a stored number
Module 5 Statistical Characteristics of Asset Returns
Mean, median, mode and what outliers do to them
Quick example
Four quarterly returns of 3%, −1%, 4% and 2%. (3 − 1 + 4 + 2) ÷ 4 = 2.00%.
- 3+1+|-+4+2=÷4= 2
+|- change sign
- 3ENTER1CHS+4+2+4÷ 2
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Six sorted returns 1.1, 1.9, 2.4, 2.8, 3.5, 6.0. Average the 3rd and 4th: (2.4 + 2.8) ÷ 2 = 2.60%.
- 2.4+2.8=÷2= 2.6
- 2.4ENTER2.8+2÷ 2.6
ENTER enter (on the HP, puts the number on the stack)
Quartiles, percentiles and box plots
Quick example
19 sorted returns, 80th percentile, (n + 1) method. L = (19 + 1) × 0.80 = 16, so the 16th value exactly.
- 19+1=×0.8= 16
- 19ENTER1+0.8× 16
ENTER enter (on the HP, puts the number on the stack)
Quick example
L = 12.6 sits between the 12th value, 3.1, and the 13th, 3.6. 3.1 + 0.6 × (3.6 − 3.1) = 3.40%.
- 3.6−3.1=×0.6+3.1= 3.4
- 3.6ENTER3.1−0.6×3.1+ 3.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Q1 = −0.8% and Q3 = 2.2%. IQR = 2.2 − (−0.8) = 3.0 percentage points.
- 2.2−0.8+|-= 3
+|- change sign
- 2.2ENTER0.8CHS− 3
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Q1 = −0.6% and Q3 = 2.4%, so IQR = 3.0. Upper fence 2.4 + 1.5 × 3.0 = 6.90%; lower fence −0.6 − 4.5 = −5.10%.
- 2.4−0.6+|-=×1.5+2.4= 6.9
+|- change sign
- 2.4ENTER0.6CHS−1.5×2.4+ 6.9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Range, mean absolute deviation, variance and standard deviation
Quick example
Returns of 4%, −2%, 9% and 1%. Range = 9 − (−2) = 11 percentage points.
- 9−2+|-= 11
+|- change sign
- 9ENTER2CHS− 11
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Returns of 7%, −1%, 4% and 6% have mean 4. Distances 3, 5, 0, 2 add to 10, and 10 ÷ 4 = 2.5%.
- 3+5+0+2=÷4= 2.5
- 3ENTER5+0+2+4÷ 2.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
Returns 1%, 2%, 4%, 9%, 30%. Median 4; distances 3, 2, 0, 5, 26; sorted 0, 2, 3, 5, 26; median 3%. The 30% barely matters.
Quick example
A fund family has exactly four funds, returning 7%, −1%, 4% and 6%. μ = 4; squared deviations 9, 25, 0, 4 = 38; σ² = 38 ÷ 4 = 9.5, σ = 3.08%.
- 38÷4= 9.5
- √x 3.0822
√x square root
- 38ENTER4÷ 9.5
- g√x 3.0822
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Population variance 9.5 (%²). √9.5 = 3.08%.
- 9.5√x 3.0822
√x square root
- 9.5g√x 3.0822
g blue shift key · √x square root
Quick example
Squared deviations of 4 returns add to 38. 38 ÷ (4 − 1) = 12.67 (%²).
- 38÷(4−1)= 12.67
- 38ENTER4ENTER1−÷ 12.67
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 12.67 (%²). √12.67 = 3.56%.
- 12.67√x 3.56
√x square root
- 12.67g√x 3.56
g blue shift key · √x square root
Quick example
σ² = 0.0090 from 30 returns. s² = 0.0090 × 30 ÷ 29 = 0.009310; s = 9.65%.
- 0.009×30÷29=√x 0.0965
√x square root
- 0.009ENTER30×29÷g√x 0.0965
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Semi-deviation, downside deviation and the coefficient of variation
Quick example
Returns 1%, 3%, 5%, 7% (mean 4). Below the mean: 1 and 3, squared distances 9 + 1 = 10. Divided by n = 4 as printed: 2.5 (%²). Most questions divide by n − 1 = 3 instead: 3.33.
- 10÷4= 2.5
- 10÷3= 3.3333
- 10ENTER4÷ 2.5
- 10ENTER3÷ 3.3333
ENTER enter (on the HP, puts the number on the stack)
Quick example
Returns 1%, −2%, 4%, −5%, 3% and a 0% target. Shortfalls −2 and −5: (4 + 25) ÷ (5 − 1) = 7.25, and √7.25 = 2.69%.
- 2x²+5x²= 29
- ÷4=√x 2.69
x² square · √x square root
- 2ENTER×5ENTER×+ 29
- 4÷g√x 2.69
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Mean 8%, standard deviation 10%. CV = 10 ÷ 8 = 1.25 units of risk per unit of return.
- 10÷8= 1.25
- 10ENTER8÷ 1.25
ENTER enter (on the HP, puts the number on the stack)
Skewness and kurtosis
Quick example
Average cubed deviation −0.9 (in %³) and s = 1.2%. −0.9 ÷ 1.2³ = −0.52: negative skew.
- 1.2y^x3=1/x×0.9+|-= -0.5208
y^x power · 1/x reciprocal · +|- change sign
- 0.9CHSENTER1.2ENTER3y^x÷ -0.5208
CHS change sign · ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
Kurtosis of 2.7. Excess kurtosis = 2.7 − 3 = −0.3, so thin-tailed (platykurtic).
- 2.7−3= -0.3
- 2.7ENTER3− -0.3
ENTER enter (on the HP, puts the number on the stack)
Quick example
Average fourth-power deviation 9.9 (in %⁴) and s = 1.2%. 9.9 ÷ 1.2⁴ − 3 = 4.77 − 3 = 1.77: fat-tailed.
- 1.2y^x4=1/x×9.9−3= 1.7743
y^x power · 1/x reciprocal
- 9.9ENTER1.2ENTER4y^x÷3− 1.7743
ENTER enter (on the HP, puts the number on the stack) · y^x power
Covariance and correlation
Quick example
Cross-products of the deviations add to 10 over n = 4 pairs. 10 ÷ 4 = 2.50 (%²).
- 10÷4= 2.5
- 10ENTER4÷ 2.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
Cross-products of the deviations add to 10 over n = 4 pairs. 10 ÷ (4 − 1) = 3.33 (%²).
- 10÷(4−1)= 3.33
- 10ENTER4ENTER1−÷ 3.33
ENTER enter (on the HP, puts the number on the stack)
Quick example
Covariance 0.0045, standard deviations 15% and 10%. ρ = 0.0045 ÷ (0.15 × 0.10) = 0.30.
- 0.0045÷(0.15×0.1)= 0.3
- 0.0045ENTER0.15ENTER0.1×÷ 0.3
ENTER enter (on the HP, puts the number on the stack)
Scaling volatility over time: data frequency and the root-of-time law
Quick example
Daily variance 0.0002. Over 22 trading days: 0.0002 × 22 = 0.0044.
- 0.0002×22= 0.0044
- 0.0002ENTER22× 0.0044
ENTER enter (on the HP, puts the number on the stack)
Quick example
Weekly standard deviation 2.5%. Annual: 2.5 × √52 = 18.03%. Multiplying by 52 (130%) is the trap.
- 52√x×2.5= 18.0278
√x square root
- 52g√x2.5× 18.0278
g blue shift key · √x square root
Quick example
Annual standard deviation 24%. Daily: 24 ÷ √252 = 1.51%.
- 24÷252√x= 1.5119
√x square root
- 24ENTER252g√x÷ 1.5119
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Module 6 Statistical Distributions
Random variables and distribution functions
Quick example
A cumulative table reads 0.09, 0.25 and 0.69 at x = 0, 1 and 2. P(X ≤ 1) = F(1) = 0.25.
Quick example
F(x) = x² on the range 0 to 1. P(0.2 ≤ X ≤ 0.5) = 0.25 − 0.04 = 0.21.
- 0.5x²−0.2x²= 0.21
x² square
- 0.5ENTER×0.2ENTER×− 0.21
ENTER enter (on the HP, puts the number on the stack)
Quick example
Mass of 0.12, 0.38 and 0.28 at x = 1, 2 and 3. P(1 ≤ X ≤ 3) = 0.78.
- 0.12+0.38+0.28= 0.78
- 0.12ENTER0.38+0.28+ 0.78
ENTER enter (on the HP, puts the number on the stack)
Quick example
Four outcomes have probabilities 0.22, 0.41, 0.19 and p. p = 1 − 0.82 = 0.18.
- 1−0.22−0.41−0.19= 0.18
- 1ENTER0.22−0.41−0.19− 0.18
ENTER enter (on the HP, puts the number on the stack)
Quick example
F(x) = x² gives f(x) = 2x, so the density at x = 0.5 is 1.0.
Unconditional expected value, variance and standard deviation
Quick example
A return is 11% with probability 0.4 and 5% with probability 0.6. E = 0.4 × 11 + 0.6 × 5 = 7.4%.
- 0.4×11+(0.6×5)= 7.4
- 0.4ENTER11×0.6ENTER5×+ 7.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Same forecast, E[X] = 7.4. 0.4 × (11 − 7.4)² + 0.6 × (5 − 7.4)² = 5.184 + 3.456 = 8.64 (%²).
- (11−7.4)x²×0.4+((5−7.4)x²×0.6)= 8.64
x² square
- 11ENTER7.4−ENTER×0.4×5ENTER7.4−ENTER×0.6×+ 8.64
ENTER enter (on the HP, puts the number on the stack)
Quick example
Returns 11% (0.4) and 5% (0.6). E[X] = 7.4, E[X²] = 0.4 × 121 + 0.6 × 25 = 63.4. Var = 63.4 − 54.76 = 8.64 (%²).
- 0.4×11x²+(0.6×5x²)=−7.4x²= 8.64
x² square
- 11ENTER×0.4×5ENTER×0.6×+7.4ENTER×− 8.64
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 8.64 (%²). √8.64 = 2.94%.
- 8.64√x 2.94
√x square root
- 8.64g√x 2.94
g blue shift key · √x square root
Quick example
E[X] = 7.4%, σ = 2.94%. An outcome of 2%: (2 − 7.4) ÷ 2.94 = −1.84.
- 2−7.4=÷2.94= -1.8367
- 2ENTER7.4−2.94÷ -1.8367
ENTER enter (on the HP, puts the number on the stack)
Discrete distributions: uniform, binomial and Poisson
Quick example
Whole numbers 0 to 4, all equally likely: mean 2, variance (25 − 1) ÷ 12 = 2.
Quick example
n = 5, p = 0.3: P(X = 2) = 10 × 0.09 × 0.343 = 0.3087.
- 52NDnCr2=×(0.3y^x2)×(0.7y^x3)= 0.3087
2ND second function (the shifted label above a key) · y^x power
- 5gn!2gn!÷3gn!÷0.3ENTER2y^x×0.7ENTER3y^x× 0.3087
g blue shift key · ENTER enter (on the HP, puts the number on the stack) · y^x power
Quick example
n = 36, p = 0.25: mean 9, variance 36 × 0.25 × 0.75 = 6.75.
Quick example
S₀ = 50, u = 1.2, d = 0.9, two ups and one down: 50 × 1.44 × 0.9 = 64.80.
- 50×1.2x²×0.9= 64.8
x² square
- 50ENTER1.2ENTER××0.9× 64.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
n = 100, p = 0.1: np = 10 and n(1 − p) = 90 are both above 5, so X is about N(10, 9).
Quick example
λ = 2 a day, one day: P(1) = 2 × e^(−2) = 0.2707.
- 2×2+|-2NDe^x= 0.2707
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 2ENTER2CHSge^x× 0.2707
ENTER enter (on the HP, puts the number on the stack) · CHS change sign · g blue shift key · e^x e to the power x
Quick example
5 defaults a year on average: variance 5, standard deviation 2.24.
Quick example
λ = 1.5% a year, 6 years: 1 − e^(−0.09) = 8.61%. Expected time to default 1 ÷ 0.015 = 66.7 years.
- 0.015×6=+|-2NDe^x+|-+1= 0.0861
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.015ENTER6×CHSge^xCHS1+ 0.0861
ENTER enter (on the HP, puts the number on the stack) · CHS change sign · g blue shift key · e^x e to the power x
Continuous distributions: uniform, normal and logistic
Quick example
Uniform on [0, 12]: mean 6, variance 144 ÷ 12 = 12.
Quick example
Uniform on [10, 50]: P(20 ≤ X ≤ 30) = 10 ÷ 40 = 0.25.
- 30−20=÷(50−10)= 0.25
- 30ENTER20−50ENTER10−÷ 0.25
ENTER enter (on the HP, puts the number on the stack)
Quick example
N(5%, 10%²): about 95% of outcomes lie between 5 − 20 = −15% and 5 + 20 = 25%.
- 5−(2×10)= -15
- 5+(2×10)= 25
- 5ENTER2ENTER10×− -15
- 5ENTER2ENTER10×+ 25
ENTER enter (on the HP, puts the number on the stack)
Quick example
Scale s = 1.5: 2.25 × 9.8696 ÷ 3 = 7.40, so the standard deviation is 2.72.
- 1.5x²×9.8696÷3= 7.4022
- √x 2.7207
x² square · √x square root
- 1.5ENTER×9.8696×3÷ 7.4022
- g√x 2.7207
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Why asset prices are log-normal
Quick example
A 25.00 share has a continuously compounded return of 8% over the year. = 27.08.
- 0.082NDe^x×25= 27.08
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.08ge^x25× 27.08
g blue shift key · e^x e to the power x
Quick example
A share goes 40.00, 42.40, 41.00, 44.00. Daily returns 5.83% − 3.36% + 7.06% = 9.53%, which equals .
- 44÷40=LN 0.0953, the same total in one step
LN natural logarithm
- 44ENTER40÷gLN 0.0953
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · LN natural logarithm
Quick example
S₀ = 25, μ = 6%, σ = 16%, T = 3: 25 × e^((0.06 − 0.0128) × 3) = 25 × e^0.1416 = 28.80.
- 0.16x²÷2=+|-+0.06=×3=2NDe^x×25= 28.80
x² square · +|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.06ENTER0.16ENTER×2÷−3×ge^x25× 28.80
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Quick example
σ = 22% a year, T = 3: 22 × √3 = 38.11%.
- 3√x×22= 38.1051
√x square root
- 3g√x22× 38.1051
g blue shift key · √x square root
Quick example
Annual log return mean 6%, standard deviation 30%, price 100. Mean price = 111.07, above the median 106.18.
- 0.3x²÷2+0.06=2NDe^x×100= 111.07
x² square · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.3ENTER×2÷0.06+ge^x100× 111.07
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Quick example
μ_X = 0.06, σ_X = 0.30: (e^0.09 − 1) × e^0.21 = 0.094174 × 1.233678 = 0.1162, standard deviation 0.3409.
- 0.3x²=STO1 0.09
- 2NDe^x−1=STO2 0.094174
- 2×0.06+RCL1=2NDe^x×RCL2= 0.116181
x² square · STO store · 2ND second function (the shifted label above a key) · e^x e to the power x · RCL recall a stored number
- 0.3ENTER×STO1 0.09
- ge^x1−STO2 0.094174
- 0.06ENTER2×RCL1+ge^xRCL2× 0.116181
ENTER enter (on the HP, puts the number on the stack) · STO store · g blue shift key · e^x e to the power x · RCL recall a stored number
Probability trees, conditional expectations and conditional variance
Quick example
A scenario has probability 0.65, and an outcome within it has conditional probability 0.75. The joint probability is 0.65 × 0.75 = 0.4875.
- 0.65×0.75= 0.4875
- 0.65ENTER0.75× 0.4875
ENTER enter (on the HP, puts the number on the stack)
Quick example
Joint probability 0.4875, P(B) = 0.65. P(A | B) = 0.4875 ÷ 0.65 = 0.75.
- 0.4875÷0.65= 0.75
- 0.4875ENTER0.65÷ 0.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Given scenario S, an outcome of 15 has probability 0.9 and an outcome of 5 has 0.1. E[X | S] = 13.5 + 0.5 = 14.0.
- 0.9×15+(0.1×5)= 14
- 0.9ENTER15×0.1ENTER5×+ 14
ENTER enter (on the HP, puts the number on the stack)
Quick example
E[X | S₁] = 5.0 with P(S₁) = 0.65, and E[X | S₂] = −2.0 with P(S₂) = 0.35. E[X] = 3.25 − 0.70 = 2.55.
- 0.65×5+(0.35×2+|-)= 2.55
+|- change sign
- 0.65ENTER5×0.35ENTER2CHS×+ 2.55
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, outcomes 5 and −1 each have probability 0.5, so E[X | S] = 2. Variance = 0.5 × 9 + 0.5 × 9 = 9. Shortcut: E[X² | S] = 13, and 13 − 2² = 9.
- (5−2)x²×0.5+((1+|-−2)x²×0.5)= 9
x² square · +|- change sign
- 5ENTER2−ENTER×0.5×1CHSENTER2−ENTER×0.5×+ 9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Given S, X is 9 and Y is 11 with probability 0.75; X is 5 and Y is 3 with probability 0.25. E[X | S] = 8, E[Y | S] = 9. Cov = 0.75 × (1)(2) + 0.25 × (−3)(−6) = 6.0.
- 0.75×1×2+(0.25×3+|-×6+|-)= 6
+|- change sign
- 0.75ENTER1×2×0.25ENTER3CHS×6CHS×+ 6
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Covariance and correlation from a joint probability table
Quick example
Probabilities 0.25, 0.50, 0.25 with returns 12%, 6% and −4%. 0.25 × 12 + 0.50 × 6 + 0.25 × (−4) = 3 + 3 − 1 = 5%.
- 0.25×12+(0.5×6)+(0.25×4+|-)= 5
+|- change sign
- 0.25ENTER12×0.5ENTER6×+0.25ENTER4CHS×+ 5
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Two states, probabilities 0.6 and 0.4: A returns 10% and −5% (mean 4%), B returns 6% and 2% (mean 4.4%). E[R_A R_B] = 0.6 × 60 + 0.4 × (−10) = 32. Cov = 32 − 4 × 4.4 = 14.4 (%²).
- 0.6×60+(0.4×10+|-)=−(4×4.4)= 14.4
+|- change sign
- 0.6ENTER60×0.4ENTER10CHS×+4ENTER4.4×− 14.4
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Two states with probabilities 0.6 and 0.4. A returns 10% and −5% (mean 4%); B returns 6% and 2% (mean 4.4%). 0.6 × (6)(1.6) + 0.4 × (−9)(−2.4) = 5.76 + 8.64 = 14.4 (%²).
- 0.6×(10−4)×(6−4.4)+(0.4×(5+|-−4)×(2−4.4))= 14.4
+|- change sign
- 10ENTER4−6ENTER4.4−×0.6×5CHSENTER4−2ENTER4.4−×0.4×+ 14.4
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Covariance −12, standard deviations 6% and 4%. −12 ÷ (6 × 4) = −0.50.
- 12+|-÷(6×4)= -0.5
+|- change sign
- 12CHSENTER6ENTER4×÷ -0.5
CHS change sign · ENTER enter (on the HP, puts the number on the stack)
Quick example
In the grid below, P(R_A ≤ 7% and R_B ≤ 5%) adds the cells (7, 5), (7, −2), (−4, 5) and (−4, −2): 0.05 + 0 + 0.20 + 0.25 = 0.50.
- 0.05+0.20+0.25= 0.5
- 0.05ENTER0.20+0.25+ 0.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
P(X = 1) = 0.35 and P(Y = 1) = 0.60, with X and Y independent. P(X = 1 and Y = 1) = 0.35 × 0.60 = 0.21.
- 0.35×0.6= 0.21
- 0.35ENTER0.6× 0.21
ENTER enter (on the HP, puts the number on the stack)
Bayes' theorem: updating a probability with new information
Quick example
P(A) = 0.35, P(B | A) = 0.85, P(B) = 0.50. P(A | B) = 0.85 × 0.35 ÷ 0.50 = 0.595.
- 0.85×0.35=÷0.5= 0.595
- 0.85ENTER0.35×0.5÷ 0.595
ENTER enter (on the HP, puts the number on the stack)
Quick example
P(A) = 0.55, P(B | A) = 0.75, P(B | not A) = 0.35. P(B) = 0.4125 + 0.1575 = 0.57.
- 0.55×0.75+(0.45×0.35)= 0.57
- 0.55ENTER0.75×0.45ENTER0.35×+ 0.57
ENTER enter (on the HP, puts the number on the stack)
Quick example
P(B) = 0.34, P(B | A) = 0.55, P(A) = 0.25. P(B | not A) = (0.34 − 0.1375) ÷ 0.75 = 0.27.
- 0.34−(0.55×0.25)=÷0.75= 0.27
- 0.34ENTER0.55ENTER0.25×−0.75÷ 0.27
ENTER enter (on the HP, puts the number on the stack)
Quick example
Priors 0.55, 0.35, 0.10 and likelihoods 0.25, 0.45, 0.75. P(B) = 0.1375 + 0.1575 + 0.075 = 0.37. Posterior of the first: 0.1375 ÷ 0.37 = 0.372.
- 0.55×0.25=STO1
- +(0.35×0.45)+(0.1×0.75)= 0.37
- 1/x×RCL1= 0.3716
STO store · 1/x reciprocal · RCL recall a stored number
- 0.55ENTER0.25×STO1
- 0.35ENTER0.45×+0.1ENTER0.75×+ 0.37
- 1/xRCL1× 0.3716
ENTER enter (on the HP, puts the number on the stack) · STO store · 1/x reciprocal · RCL recall a stored number
Module 7 Estimation and Hypothesis Testing
The central limit theorem and the standard error of the mean
Quick example
Returns have mean 8% and standard deviation 20%. With n = 100, the sample mean is approximately normal with mean 8% and variance 20² ÷ 100 = 4 (%²), so a standard deviation of 2%.
- 20x²÷100= 4
x² square
- 20ENTER×100÷ 4
ENTER enter (on the HP, puts the number on the stack)
Quick example
σ = 20%, n = 100. 20 ÷ √100 = 20 ÷ 10 = 2.0%.
- 20÷100√x= 2
√x square root
- 20ENTER100g√x÷ 2
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
A sample of 25 monthly returns has s = 15%. 15 ÷ √25 = 15 ÷ 5 = 3.0%.
- 15÷25√x= 3
√x square root
- 15ENTER25g√x÷ 3
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Returns have s = 12%. For a standard error of 1.5%, n = (12 ÷ 1.5)² = 8² = 64.
- 12÷1.5=x² 64
x² square
- 12ENTER1.5÷ENTER× 64
ENTER enter (on the HP, puts the number on the stack)
Confidence intervals for a mean return
Quick example
100 monthly returns, mean 1.0%, s = 5.0%. Standard error 5.0 ÷ √100 = 0.5%; margin 1.96 × 0.5 = 0.98%. 95% interval: 0.02% to 1.98%.
- 5÷100√x×1.96= 0.98, the margin of error
√x square root
- 5ENTER100g√x÷1.96× 0.98, the margin of error
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
64 returns with s = 4.0%. Standard error 4.0 ÷ 8 = 0.5%. At 99%, the margin is 2.576 × 0.5 = 1.288%.
- 4÷64√x×2.576= 1.288
√x square root
- 4ENTER64g√x÷2.576× 1.288
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Value at risk from the normal distribution
Quick example
USD 4 million portfolio, daily σ 1.5%, 95%: 1.645 × 0.015 × 4,000,000 = USD 98,700. A 5% chance of losing more than that in one day.
- 1.645×0.015×4000000= 98,700
- 1.645ENTER0.015×4000000× 98,700
ENTER enter (on the HP, puts the number on the stack)
Sampling methods and sampling error
Quick example
A sample of 40 funds has a mean return of 9.1%. The population mean is 8.4%. Sampling error = 9.1 − 8.4 = 0.7 percentage points.
- 9.1−8.4= 0.7
- 9.1ENTER8.4− 0.7
ENTER enter (on the HP, puts the number on the stack)
Quick example
A population of 5,000 stocks has 1,250 in one cell. A proportional stratified sample of 200 takes 200 × 1,250 ÷ 5,000 = 50 from that cell.
- 200×1250÷5000= 50
- 200ENTER1250×5000÷ 50
ENTER enter (on the HP, puts the number on the stack)
Quick example
To pull 80 trades from a log of 2,000, take every 2,000 ÷ 80 = 25th trade.
- 2000÷80= 25
- 2000ENTER80÷ 25
ENTER enter (on the HP, puts the number on the stack)
How a hypothesis test works: four steps from claim to decision
Quick example
A sample mean of 7.2% against a hypothesized 6%, with a standard error of 0.8%: (7.2 − 6) ÷ 0.8 = 1.50 standard errors above the null.
- (7.2−6)÷0.8= 1.5
- 7.2ENTER6−0.8÷ 1.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
16 returns average 1.5% with s = 3%. For H₀: μ = 0.5%, t = (1.5 − 0.5) ÷ (3 ÷ √16) = 1 ÷ 0.75 = 1.33, with 15 degrees of freedom.
- (1.5−0.5)÷(3÷16√x)= 1.3333
√x square root
- 1.5ENTER0.5−3ENTER16g√x÷÷ 1.3333
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
A 1% significance level is a 99% confidence level.
Type I and Type II errors and the power of a test
Quick example
A test misses a false null 20% of the time (β = 0.20). Power = 1 − 0.20 = 0.80.
t-tests of a mean, a difference in means and paired differences
Quick example
n₁ = 20, s₁ = 3%; n₂ = 15, s₂ = 2.5%. s²ₚ = (19 × 9 + 14 × 6.25) ÷ 33 = 258.5 ÷ 33 = 7.83 (%²).
- (19×3x²)+(14×2.5x²)=÷33= 7.8333
x² square
- 19ENTER3ENTER××14ENTER2.5ENTER××+33÷ 7.8333
ENTER enter (on the HP, puts the number on the stack)
Quick example
Means 8.0% and 6.5%, Δ₀ = 0, s²ₚ = 7.83, n₁ = 20, n₂ = 15. Standard error = √(7.83 × (1/20 + 1/15)) = 0.956, so t = (1.5 − 0) ÷ 0.956 = 1.57 with 33 degrees of freedom.
- 201/x+151/x=×7.8333=√xSTO1 0.956
- (8−6.5)÷RCL1= 1.569
1/x reciprocal · √x square root · STO store · RCL recall a stored number
- 201/x151/x+7.8333×g√xSTO1 0.956
- 8ENTER6.5−RCL1÷ 1.569
1/x reciprocal · g blue shift key · √x square root · STO store · ENTER enter (on the HP, puts the number on the stack) · RCL recall a stored number
Quick example
Four monthly differences of 0.9, −0.2, 0.4 and 0.5 (percentage points): (0.9 − 0.2 + 0.4 + 0.5) ÷ 4 = 0.40.
- 0.9−0.2+0.4+0.5=÷4= 0.4
- 0.9ENTER0.2−0.4+0.5+4÷ 0.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
25 paired months, d̄ = 0.8%, s_d = 1.5%, H₀: μ_d = 0. t = 0.8 ÷ (1.5 ÷ √25) = 0.8 ÷ 0.3 = 2.67 with 24 degrees of freedom.
- 0.8÷(1.5÷25√x)= 2.6667
√x square root
- 0.8ENTER1.5ENTER25g√x÷÷ 2.6667
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Chi-square and F-tests of variance
Quick example
16 monthly returns with s = 3.0%, tested against σ₀ = 2.0%. χ² = 15 × 9 ÷ 4 = 33.75, with 15 degrees of freedom.
- 15×3x²÷2x²= 33.75
x² square
- 15ENTER3ENTER××2ENTER×÷ 33.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Standard deviations of 8% and 5%. F = 64 ÷ 25 = 2.56, larger variance on top.
- 8x²÷5x²= 2.56
x² square
- 8ENTER×5ENTER×÷ 2.56
ENTER enter (on the HP, puts the number on the stack)
Is a correlation significant? The t-test of correlation
Quick example
A correlation of 0.52 from 34 observations. t = 0.52 × √32 ÷ √(1 − 0.2704) = 2.94 ÷ 0.854 = 3.44, with 32 degrees of freedom.
- 0.52×32√x÷(1−0.52x²)√x= 3.4438
√x square root · x² square
- 0.52ENTER32g√x×1ENTER0.52ENTER×−g√x÷ 3.4438
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
P-values, p-hacking and critical values from software
Quick example
A one-tailed test of a mean gives t = 2.25 with 35 degrees of freedom. The area to its right is p = 0.015: reject at 5%, not at 1%.
Quick example
A left-tail test gives t = −1.80 with 24 degrees of freedom. The area to its left is p = 0.042: reject at 5%, not at 1%.
Quick example
Software gives a right-tail p-value of 0.018 for t = 2.15. For a two-sided alternative, p = 2 × 0.018 = 0.036.
- 0.018×2= 0.036
- 0.018ENTER2× 0.036
ENTER enter (on the HP, puts the number on the stack)
Spearman rank correlation: the non-parametric test
Quick example
8 pairs of rankings with Σd² = 14. rₛ = 1 − 6 × 14 ÷ (8 × 63) = 1 − 84 ÷ 504 = 0.833.
- 1−(6×14÷(8×(8x²−1)))= 0.8333
x² square
- 6ENTER14×8ENTERENTER×1−×÷CHS1+ 0.8333
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
rₛ = 0.38 from 50 pairs. t = 0.38 × √48 ÷ √(1 − 0.1444) = 2.85, against a critical value of 2.011.
- 0.38×48√x÷(1−0.38x²)√x= 2.8462
√x square root · x² square
- 0.38ENTER48g√x×1ENTER0.38ENTER×−g√x÷ 2.8462
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Chi-square test of independence with a contingency table
Quick example
Row total 90, column total 60, grand total 300. E = 90 × 60 ÷ 300 = 18. In shares: 0.30 × 0.20 × 300 = 18.
- 90×60÷300= 18
- 0.3×0.2×300= 18
- 90ENTER60×300÷ 18
- 0.3ENTER0.2×300× 18
ENTER enter (on the HP, puts the number on the stack)
Quick example
A 2 × 2 table with observed 40, 60, 60, 40 and every expected count 50. Each cell adds 100 ÷ 50 = 2, so χ² = 8.0.
- (40−50)x²÷50×4= 8
x² square
- 40ENTER50−ENTER×50÷4× 8
ENTER enter (on the HP, puts the number on the stack)
Quick example
A table with 3 rows and 4 columns. df = 2 × 3 = 6.
- (3−1)×(4−1)= 6
- 3ENTER1−4ENTER1−× 6
ENTER enter (on the HP, puts the number on the stack)
Quick example
A cell with O = 26 and E = 16. (26 − 16) ÷ √16 = +2.5: beyond ±2, so well above what independence predicts.
- 26−16=÷16√x= 2.5
√x square root
- 26ENTER16−16g√x÷ 2.5
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Module 8 Portfolio Return and Risk
Portfolio returns over time: buy-and-hold, drift and rebalancing
Quick example
Start-of-period weights 55% in A and 45% in B. A returns 9%, B returns −3%. 0.55 × 9 + 0.45 × (−3) = 4.95 − 1.35 = 3.6%.
- 0.55×9+(0.45×3+|-)= 3.6
+|- change sign
- 0.55ENTER9×0.45ENTER3CHS×+ 3.6
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Start 50/50. A returns 20%, B returns 4%. w_A = 0.5 × 1.20 ÷ (0.5 × 1.20 + 0.5 × 1.04) = 0.60 ÷ 1.12 = 53.57%.
- 0.5×1.2=STO1 0.6
- 0.5×1.04+RCL1= 1.12, the portfolio's growth
- 1/x×RCL1= 0.5357
STO store · RCL recall a stored number · 1/x reciprocal
- 0.5ENTER1.2×STO1 0.6
- 0.5ENTER1.04×+ 1.12, the portfolio's growth
- 1/xRCL1× 0.5357
ENTER enter (on the HP, puts the number on the stack) · STO store · 1/x reciprocal · RCL recall a stored number
Quick example
Start 30% in X and 70% in Y. Over three years X gains 40% in total and Y gains 10%. 0.3 × 40 + 0.7 × 10 = 19.0%.
- 0.3×40+(0.7×10)= 19
- 0.3ENTER40×0.7ENTER10×+ 19
ENTER enter (on the HP, puts the number on the stack)
Quick example
Portfolio returns 12%, −5% and 7%. (1.12 × 0.95 × 1.07)^(1/3) − 1 = 1.13848^(1/3) − 1 = 4.42% a year. The arithmetic average, (12 − 5 + 7) ÷ 3, is 4.67%.
- 1.12×0.95×1.07= 1.1385
- y^x31/x= 1.0442
- −1= 0.0442
y^x power · 1/x reciprocal
- 1.12ENTER0.95×1.07× 1.1385
- 31/xy^x 1.0442
- 1− 0.0442
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · y^x power
Quick example
Portfolio returns 12%, −5% and 7%. (12 − 5 + 7) ÷ 3 = 4.67%, above the geometric average of 4.42%.
- 12−5+7=÷3= 4.67
- 12ENTER5−7+3÷ 4.67
ENTER enter (on the HP, puts the number on the stack)
Portfolio expected return, variance and the role of correlation
Quick example
Weights 0.45, 0.45 and 0.10 in assets expected to return 9%, 5% and 2%. 0.45 × 9 + 0.45 × 5 + 0.10 × 2 = 6.5%.
- 0.45×9+(0.45×5)+(0.1×2)= 6.5
- 0.45ENTER9×0.45ENTER5×+0.1ENTER2×+ 6.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
Two equally likely periods. In the first, asset 1 is 3 above its mean and asset 2 is 2 above. In the second, they are 1 and 4 below. = 0.5 × (3 × 2) + 0.5 × (−1 × −4) = 5 (%²). Positive: the returns sit on the same side of their means.
- 0.5×3×2+(0.5×1+|-×4+|-)= 5
+|- change sign
- 0.5ENTER3×2×0.5ENTER1CHS×4CHS×+ 5
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Correlation 0.8, standard deviations 25% and 14%. 0.8 × 0.25 × 0.14 = 0.028.
- 0.8×0.25×0.14= 0.028
- 0.8ENTER0.25×0.14× 0.028
ENTER enter (on the HP, puts the number on the stack)
Quick example
Covariance 0.0336, standard deviations 28% and 16%. 0.0336 ÷ (0.28 × 0.16) = 0.75.
- 0.0336÷(0.28×0.16)= 0.75
- 0.0336ENTER0.28ENTER0.16×÷ 0.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
50/50 mix, standard deviations 14% and 8%, correlation 0.5. 0.25 × 0.0196 + 0.25 × 0.0064 + 2 × 0.25 × 0.5 × 0.14 × 0.08 = 0.0049 + 0.0016 + 0.0028 = 0.0093.
- 0.5x²×0.14x²+(0.5x²×0.08x²)+(2×0.5×0.5×0.5×0.14×0.08)= 0.0093
x² square
- 0.5ENTER×0.14ENTER××0.5ENTER×0.08ENTER××+2ENTER0.5×0.5×0.5×0.14×0.08×+ 0.0093
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 0.0093. √0.0093 = 9.64%. The weighted average of 14% and 8% would be 11%, so the mix is less risky than its parts.
- 0.0093√x 0.0964
√x square root
- 0.0093g√x 0.0964
g blue shift key · √x square root
Quick example
Weights 0.45, 0.45, 0.10. Variances (%²) 400, 100, 225; covariances 60 (1,2), 90 (1,3), 30 (2,3). Own terms 81 + 20.25 + 2.25 = 103.5; cross terms 2 × (12.15 + 4.05 + 1.35) = 35.1. Variance 138.6 %², so = 11.77%. ( is asset i's variance.)
- 0.45x²×400+(0.45x²×100)+(0.1x²×225)+(2×0.45×0.45×60)+(2×0.45×0.1×90)+(2×0.45×0.1×30)= 138.6
- √x 11.77
x² square · √x square root
- 0.45ENTER×400×0.45ENTER×100×+0.1ENTER×225×+2ENTER0.45×0.45×60×+2ENTER0.45×0.1×90×+2ENTER0.45×0.1×30×+ 138.6
- g√x 11.77
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Ten assets need 10 variances and 10 × 9 ÷ 2 = 45 distinct covariances.
- 10×9÷2= 45
- 10ENTER9×2÷ 45
ENTER enter (on the HP, puts the number on the stack)
Quick example
Weights 75/25. In a boom the two assets return 12% and 2%. 0.75 × 12 + 0.25 × 2 = 9.5%.
- 0.75×12+(0.25×2)= 9.5
- 0.75ENTER12×0.25ENTER2×+ 9.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
Probabilities 0.45 and 0.55 with portfolio returns 10% and −4%. 0.45 × 10 + 0.55 × (−4) = 4.5 − 2.2 = 2.3%.
- 0.45×10+(0.55×4+|-)= 2.3
+|- change sign
- 0.45ENTER10×0.55ENTER4CHS×+ 2.3
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Same two scenarios, mean 2.3%. Deviations 7.7 and −6.3: 0.45 × 59.29 + 0.55 × 39.69 = 26.6805 + 21.8295 = 48.51 %², so = 6.96%.
- 7.7x²×0.45+(6.3x²×0.55)= 48.51
- √x 6.96
x² square · √x square root
- 7.7ENTER×0.45×6.3ENTER×0.55×+ 48.51
- g√x 6.96
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
How many assets does diversification need?
Quick example
N = 8, σ = 20%, average correlation 0.40. 0.04 ÷ 8 + (7/8) × 0.4 × 0.04 = 0.005 + 0.014 = 0.019, so = 13.78%.
- 0.2x²÷8+(7÷8×0.4×0.2x²)= 0.019
- √x 0.1378
x² square · √x square root
- 0.2ENTER×8÷7ENTER8÷0.4×0.2ENTER××+ 0.019
- g√x 0.1378
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Average variance 0.0625, average covariance 0.015, N = 20. 0.0625 ÷ 20 + (19/20) × 0.015 = 0.003125 + 0.01425 = 0.017375, so = 13.18%.
- 0.0625÷20+(19÷20×0.015)= 0.017375
- √x 0.1318
√x square root
- 0.0625ENTER20÷19ENTER20÷0.015×+ 0.017375
- g√x 0.1318
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
σ = 20%, average correlation 0.40. = √0.016 = 12.65%.
- 0.4×0.04= 0.016
- √x 0.1265
√x square root
- 0.4ENTER0.04× 0.016
- g√x 0.1265
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
The minimum-variance portfolio and the efficient frontier
Quick example
Assets returning 6% and 13%, no short selling. A target return k of 10% is feasible. Targets of 5% and 14% are not, because k must lie between the lowest and the highest asset return.
Quick example
σ_A = 9%, σ_B = 15%, σ_A,B = 0.0027 (correlation 0.2). w_A = (0.0225 − 0.0027) ÷ (0.0081 + 0.0225 − 0.0054) = 0.0198 ÷ 0.0252 = 78.57%.
- 0.15x²−0.0027=STO1 0.0198
- 0.09x²+0.15x²−(2×0.0027)= 0.0252
- 1/x×RCL1= 0.7857
x² square · STO store · 1/x reciprocal · RCL recall a stored number
- 0.15ENTER×0.0027−STO1 0.0198
- 0.09ENTER×0.15ENTER×+2ENTER0.0027×− 0.0252
- 1/xRCL1× 0.7857
ENTER enter (on the HP, puts the number on the stack) · STO store · 1/x reciprocal · RCL recall a stored number
Quick example
The same weight when the correlation is given: σ_A = 9%, σ_B = 15%, ρ = 0.2 gives σ_A,B = 0.2 × 0.09 × 0.15 = 0.0027, and the weight is 78.57% again.
Quick example
r_A = 4%, r_B = 10%, target 8%. w_A = (8 − 10) ÷ (4 − 10) = 33.3%, so w_B = 66.7%.
- (8−10)÷(4−10)= 0.3333
- 8ENTER10−4ENTER10−÷ 0.3333
ENTER enter (on the HP, puts the number on the stack)
Quick example
Funds A (5%, σ 10%) and B (12%, σ 20%), σ_A,B = 0.005, target 9% (units in %²). (9 × 0.01 + 16 × 0.04 + 2 × (−3) × (−4) × 0.005) ÷ 49 = (0.09 + 0.64 + 0.12) ÷ 49 = 0.85 ÷ 49 = 0.017347, the variance of the 9% mix.
- (9−12)x²×0.01+((5−9)x²×0.04)+(2×(9−12)×(5−9)×0.005)=÷(5−12)x²= 0.017347
x² square
- 9ENTER12−ENTER×0.01×5ENTER9−ENTER×0.04×+2ENTER9ENTER12−×5ENTER9−×0.005×+5ENTER12−ENTER×÷ 0.017347
ENTER enter (on the HP, puts the number on the stack)
Quick example
Expected return 9%, risk-free rate 2%, standard deviation 14%. (9 − 2) ÷ 14 = 0.50.
- (9−2)÷14= 0.5
- 9ENTER2−14÷ 0.5
ENTER enter (on the HP, puts the number on the stack)
Risk preferences, mean–variance utility and indifference curves
Quick example
E[r] = 8%, σ = 15%, A = 2. 0.08 − 0.5 × 2 × 0.0225 = 0.0575 (5.75%). Use decimals, with σ² the variance.
- 0.5×2×0.15x²= 0.0225
- +|-+0.08= 0.0575
x² square · +|- change sign
- 0.08ENTER0.5ENTER2×0.15ENTER××− 0.0575
ENTER enter (on the HP, puts the number on the stack)
Quick example
A = 4 and U = 0.03. At σ = 20% the curve sits at 0.03 + 2 × 0.04 = 11.0%. A higher σ needs a higher E[r] to keep U unchanged.
- 2×0.2x²+0.03= 0.11
x² square
- 2ENTER0.2ENTER××0.03+ 0.11
ENTER enter (on the HP, puts the number on the stack)
From the capital allocation line to the capital market line and the CAPM
Quick example
40% in a 3% risk-free asset, 60% in a risky portfolio with E[r] of 11%. 0.4 × 3 + 0.6 × 11 = 7.8%.
- 0.4×3+(0.6×11)= 7.8
- 0.4ENTER3×0.6ENTER11×+ 7.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
60% in a risky portfolio with σ of 16% and 40% in the risk-free asset. 0.6 × 16 = 9.6%.
- 0.6×16= 9.6
- 0.6ENTER16× 9.6
ENTER enter (on the HP, puts the number on the stack)
Quick example
r_f 3%, risky portfolio E[r] 11% and σ 16%. At σ_p = 9.6%: 3 + (8 ÷ 16) × 9.6 = 7.8%. The slope, 8 ÷ 16 = 0.50, is the Sharpe ratio.
- (11−3)÷16×9.6+3= 7.8
- 11ENTER3−16÷9.6×3+ 7.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
r_f 2%, risky portfolio 8%, target 10%. w = (10 − 2) ÷ (8 − 2) = 133.3%, so borrow 33.3% of your own money.
- (10−2)÷(8−2)= 1.3333
- 10ENTER2−8ENTER2−÷ 1.3333
ENTER enter (on the HP, puts the number on the stack)
Quick example
r_f 3%, E[r_m] 9%, σ_m 15%, σ_p 9%. 3 + (6 ÷ 15) × 9 = 6.6%.
- (9−3)÷15×9+3= 6.6
- 9ENTER3−15÷9×3+ 6.6
ENTER enter (on the HP, puts the number on the stack)
Quick example
ρ = 0.5, σ_i = 24%, σ_m = 16%: β = 0.5 × 24 ÷ 16 = 0.75. From a covariance: σ_i,m = 0.0288 with σ_m = 16% gives 0.0288 ÷ 0.0256 = 1.125.
- 0.5×24÷16= 0.75
- 0.0288÷0.16x²= 1.125
x² square
- 0.5ENTER24×16÷ 0.75
- 0.0288ENTER0.16ENTER×÷ 1.125
ENTER enter (on the HP, puts the number on the stack)
Quick example
r_f 2%, E[r_m] 8%, σ_m 20%, σ_i,m = 0.052. (8 − 2) ÷ 0.04 × 0.052 + 2 = 7.8 + 2 = 9.8%. The same as a beta of 1.3.
- (8−2)÷0.2x²×0.052+2= 9.8
x² square
- 8ENTER2−0.2ENTER×÷0.052×2+ 9.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
r_f 2.5%, E[r_m] 8.5%, β 0.75. 2.5 + 0.75 × (8.5 − 2.5) = 7.0%.
- 0.75×(8.5−2.5)+2.5= 7
- 8.5ENTER2.5−0.75×2.5+ 7
ENTER enter (on the HP, puts the number on the stack)
Quick example
Regress a stock's monthly excess returns on the market's. A slope of 1.35 and an intercept of −0.05% a month mean a beta of 1.35 and an alpha of −0.05% a month.
Module 9 Simulating Prices and Returns
Historical, bootstrap or Monte Carlo: the four-step engine
Quick example
Weights 70% shares and 30% bonds; a scenario has shares +1.5% and bonds −0.5%. = 0.90%.
- 0.7×1.5=STO1
- 0.3×0.5+|-+RCL1= 0.9
STO store · +|- change sign · RCL recall a stored number
- 0.7ENTER1.5×0.3ENTER0.5CHS×+ 0.9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Historical simulation and historical value at risk
Quick example
A GBP 2,500,000 position and a past day with a log return of −1.80%. = −GBP 44,597.
- 0.018+|-2NDe^x−1=×2500000= −44,597.42
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.018CHSge^x1−2500000× −44,597.42
CHS change sign · g blue shift key · e^x e to the power x
Quick example
300 daily scenarios, 99% VaR: , so VaR is the 3rd largest loss. At 95%, .
Quick example
185 days, 95%: , between the 9th loss (520,000) and the 10th (496,000). VaR = 520,000 + 0.25 × (496,000 − 520,000) = 514,000.
- 496000−520000=×0.25+520000= 514,000
- 496000ENTER520000−0.25×520000+ 514,000
ENTER enter (on the HP, puts the number on the stack)
Quick example
USD 3 million (σ 1.0%) and USD 2 million (σ 1.5%), ρ = 0.5: = USD 51,962. One-tailed 95% parametric VaR = 1.645 × 51,962 = USD 85,477.
- 30000x²×3=√x 51,961.52
- ×1.645= 85,476.71
x² square · √x square root
- 30000ENTER×3×g√x 51,961.52
- 1.645× 85,476.71
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Bootstrapping: simulating from the data you have
Quick example
Start at 45.00; three draws of log returns 0.9%, −1.5% and 2.2% sum to 1.6%. = 45.73.
- 0.9+1.5+|-+2.2=÷100=2NDe^x×45= 45.73
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.9ENTER1.5CHS+2.2+100÷ge^x45× 45.73
ENTER enter (on the HP, puts the number on the stack) · CHS change sign · g blue shift key · e^x e to the power x
Monte Carlo simulation
Quick example
Price 80.00, σ = 25%, = 3%, a half-year step, = 1.2. Drift ; shock ; = 98.84.
- 0.25x²÷2=+|-+0.03=×0.5=STO1 −0.000625
- 0.5√x×0.25×1.2+RCL1= 0.2115
- 2NDe^x×80= 98.84
x² square · +|- change sign · STO store · √x square root · RCL recall a stored number · 2ND second function (the shifted label above a key) · e^x e to the power x
- 0.03ENTER0.25ENTER×2÷−0.5×0.5g√x0.25×1.2×+ 0.2115
- ge^x80× 98.84
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root · e^x e to the power x
Quick example
Final price 41.00, average over the life 38.50: payoff = 2.50. A path ending below its average pays 0.
Quick example
Five payoffs at a six-month expiry: 1.86, 0, 0.87, 0, 2.50; average 5.23 ÷ 5 = 1.046; = 4%: = 1.03. A real run uses thousands.
- 1.86+0.87+2.5=÷5=×0.02+|-2NDe^x= 1.0253
+|- change sign · 2ND second function (the shifted label above a key) · e^x e to the power x
- 1.86ENTER0.87+2.5+5÷0.02CHSge^x× 1.0253
ENTER enter (on the HP, puts the number on the stack) · CHS change sign · g blue shift key · e^x e to the power x
Module 10 Simple Linear Regression in Finance
The regression line: slope, intercept and least squares
Quick example
Revenue growth (Y, %) on marketing spend (X, % of sales): Ŷ = 1.39 + 1.29X. A retailer spending 4% of sales is fitted at 1.39 + 1.29 × 4 = 6.55%; the gap to its actual growth is its residual.
- 1.29×4+1.39= 6.55
- 1.29ENTER4×1.39+ 6.55
ENTER enter (on the HP, puts the number on the stack)
Quick example
Cov(X, Y) = 0.0036 and Var(X) = 0.0045. Slope = 0.0036 ÷ 0.0045 = 0.80.
- 0.0036÷0.0045= 0.8
- 0.0036ENTER0.0045÷ 0.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
Ȳ = 7, X̄ = 6 and slope 0.80. Intercept = 7 − 0.80 × 6 = 2.20.
- 7−(0.8×6)= 2.2
- 7ENTER0.8ENTER6×− 2.2
ENTER enter (on the HP, puts the number on the stack)
Quick example
Correlation 0.50, standard deviation of Y 8%, of X 5%. Slope = 0.50 × 8 ÷ 5 = 0.80.
- 0.5×8÷5= 0.8
- 0.5ENTER8×5÷ 0.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
A lender's mean annual default rate was 1.8% before a rule change and 1.1% after. With AFTER = 1 after the change, the fitted line is Y = 1.8 − 0.7 × AFTER: the slope −0.7 is the change in the mean.
- 1.1−1.8= −0.7
- 1.1ENTER1.8− −0.7
ENTER enter (on the HP, puts the number on the stack)
The four regression assumptions and what residual plots reveal
Quick example
Residual variance about 4 in the first half of the sample and about 4 in the second: homoskedastic. About 1, then about 9: heteroskedastic, often two regimes pooled into one regression.
Goodness of fit and testing the regression coefficients
Quick example
SST = 200 and SSE = 52, so SSR = 148. R² = 148 ÷ 200 = 0.74: the model explains 74% of the variation in Y.
- 200−52=÷200= 0.74
- 200ENTER52−200÷ 0.74
ENTER enter (on the HP, puts the number on the stack)
Quick example
R² = 0.81 and a negative slope: r = −√0.81 = −0.90.
- 0.81√x+|- −0.9
√x square root · +|- change sign
- 0.81g√xCHS −0.9
g blue shift key · √x square root · CHS change sign
Quick example
s_e = 2.0 and Σ(X − X̄)² = 64. s_b̂₁ = 2.0 ÷ √64 = 2.0 ÷ 8 = 0.25.
- 2÷64√x= 0.25
√x square root
- 2ENTER64g√x÷ 0.25
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
Slope 1.35, standard error 0.20, testing H₀: B₁ = 1. t = (1.35 − 1) ÷ 0.20 = 1.75. With a critical value near 2.0 you fail to reject.
- 1.35−1=÷0.2= 1.75
- 1.35ENTER1−0.2÷ 1.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
s_e = 2.0, n = 25, X̄ = 3, Σ(X − X̄)² = 100: 2.0 × √(0.04 + 0.09) = 2.0 × √0.13 = 0.72.
- 3x²÷100+251/x=√x×2= 0.7211
x² square · 1/x reciprocal · √x square root
- 3ENTER×100÷251/x+g√x2× 0.7211
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · g blue shift key · √x square root
The ANOVA table and the standard error of the estimate
Quick example
SSR = 36 and SSE = 50 give SST = 86. Degrees of freedom split the same way: n − 1 = 1 + (n − 2).
Quick example
SSR = 36 with one independent variable: MSR = 36.
Quick example
n = 27 and SSE = 50. MSE = 50 ÷ 25 = 2.00.
- 50÷(27−2)= 2
- 50ENTER27ENTER2−÷ 2
ENTER enter (on the HP, puts the number on the stack)
Quick example
MSE = 2.00, so s_e = √2.00 = 1.41, in the units of Y.
- 50÷(27−2)=√x 1.4142
√x square root
- 50ENTER27ENTER2−÷g√x 1.4142
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
SSR = 36, SSE = 50, n = 27. MSR = 36, MSE = 2.00, so F = 36 ÷ 2.00 = 18.0.
- 36÷(50÷25)= 18
- 36ENTER50ENTER25÷÷ 18
ENTER enter (on the HP, puts the number on the stack)
Quick example
SST = 150 and n = 22: 150 ÷ 21 = 7.14.
- 150÷21= 7.1429
- 150ENTER21÷ 7.1429
ENTER enter (on the HP, puts the number on the stack)
Predicting Y and building a prediction interval
Quick example
Intercept 2.0, slope 0.75, forecast X = 6. Ŷ = 2.0 + 0.75 × 6 = 6.5.
- 0.75×6+2= 6.5
- 0.75ENTER6×2+ 6.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
s_e = 3.0, n = 25 and X_f = X̄. s_f = 3.0 × √(1 + 1/25) = 3.06, just above s_e.
- 3×(1+251/x)√x= 3.0594
1/x reciprocal · √x square root
- 251/x1+g√x3× 3.0594
1/x reciprocal · g blue shift key · √x square root
Quick example
s_e = 1.5, n = 31, s_X = 2.0 and X_f is 3 above X̄: s_f = 1.5 × √(1 + 1/31 + 9 ÷ 120) = 1.5 × 1.0523 = 1.58.
- 9÷120+311/x+1=√x×1.5= 1.5784
1/x reciprocal · √x square root
- 9ENTER120÷311/x+1+g√x1.5× 1.5784
ENTER enter (on the HP, puts the number on the stack) · 1/x reciprocal · g blue shift key · √x square root
Quick example
Ŷ = 8.4, t_c = 2.04, s_f = 1.4. Interval = 8.4 ± 2.04 × 1.4 = 8.4 ± 2.86 = 5.54 to 11.26.
- 2.04×1.4=STO1 2.856
- 8.4−RCL1= 5.544
- 8.4+RCL1= 11.256
STO store · RCL recall a stored number
- 2.04ENTER1.4×STO1 2.856
- 8.4RCL1− 5.544
- 8.4RCL1+ 11.256
ENTER enter (on the HP, puts the number on the stack) · STO store · RCL recall a stored number
Functional forms: log-lin, lin-log and log-log models
Quick example
ln Y = 1.0 + 0.10X. At X = 3, ln Y = 1.30, so Y = e^1.30 = 3.67. The slope says Y grows about 10% per unit of X.
- 0.1×3+1=2NDe^x 3.6693
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.1ENTER3×1+ge^x 3.6693
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Quick example
Y = 4 + 2 ln X. X rises from 50 to 60. Y changes by 2 × ln(60 ÷ 50) = 2 × 0.1823 = 0.36.
- 60÷50=LN×2= 0.3646
LN natural logarithm
- 60ENTER50÷gLN2× 0.3646
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · LN natural logarithm
Quick example
Price elasticity of demand b₁ = −1.2. A 5% price rise goes with a change in quantity of about −1.2 × 5% = −6%.
- 1.2+|-×5= −6
+|- change sign
- 1.2CHSENTER5× −6
CHS change sign · ENTER enter (on the HP, puts the number on the stack)
Quick example
b̂₁ = 0.04 and X rises by 5: e^0.20 − 1 = 22.14% (0.04 × 5 = 20% is only the approximation).
- 0.04×5=2NDe^x−1= 0.2214
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.04ENTER5×ge^x1− 0.2214
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Quick example
ln Y = 2.0 + 0.05X. At X = 20: ln Y = 3.0, so Y = e^3.0 = 20.09.
- 0.05×20+2=2NDe^x 20.0855
2ND second function (the shifted label above a key) · e^x e to the power x
- 0.05ENTER20×2+ge^x 20.0855
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · e^x e to the power x
Estimating beta with a CAPM regression
Quick example
r_f = 2.0%, E[r_m] = 7.5%, β = 0.9: 2.0 + 0.9 × 5.5 = 6.95%.
- 7.5−2=×0.9+2= 6.95
- 7.5ENTER2−0.9×2+ 6.95
ENTER enter (on the HP, puts the number on the stack)
Quick example
A stock returns 1.8% in a month, the index 1.1% and the bill 0.3%: Z_i = 1.8 − 0.3 = 1.5%, Z_m = 1.1 − 0.3 = 0.8%.
- 1.8−0.3= 1.5
- 1.1−0.3= 0.8
- 1.8ENTER0.3− 1.5
- 1.1ENTER0.3− 0.8
ENTER enter (on the HP, puts the number on the stack)
Quick example
Regress 60 monthly stock excess returns on the index's: the slope b̂₁ is the beta estimate, here 1.24.
Quick example
β̂ = 0.75, standard error 0.10, t_c = 2.01: 0.75 ± 0.201 = 0.55 to 0.95.
- 2.01×0.1=STO1 0.201
- 0.75−RCL1= 0.549
- 0.75+RCL1= 0.951
STO store · RCL recall a stored number
- 2.01ENTER0.1×STO1 0.201
- 0.75RCL1− 0.549
- 0.75RCL1+ 0.951
ENTER enter (on the HP, puts the number on the stack) · STO store · RCL recall a stored number
Quick example
β̂ = 0.8 and the market risk premium falls by 1.0 point: 0.8 × (−1.0) = −0.8 point.
- 0.8×1+|-= −0.8
+|- change sign
- 0.8ENTER1CHS× −0.8
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
No formulas match these filters.