RatMath ShelfCourse guide

University: upper level

Financial mathematics

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

90%

36 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
36 · 90%
Assisted
0 · 0%
Worked by hand
4 · 10%

Using the packages

Finance methods make cash-flow and valuation conventions explicit in code. The financial meaning still depends on payment timing, risk assumptions and whether rates are nominal, effective or continuous.

Calculator interface

Display an editable timeline with dates, signed flows and a rate selector. Show price sensitivity under parallel yield shifts and distinguish a model value from a tradable quote.

Packages used in the lessons

@ratmath/finance (22 days) · @ratmath/core (8 days) · @ratmath/stats (5 days) · @ratmath/symbolic (3 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

36 of 40 days include a checked executable example. On 11 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Time value of money. Ordinary principal amounts, annual rates roughly 0–20%, and about 1–40 annual or up to 360 monthly periods.

Unit benchmark · finance.compound, annual periods. Largest passing sample 10,000 (207 ms, 89.3 MiB peak process RSS). The first sampled passing call above 100 ms used 10,000 (207 ms). The runs did not locate a ceiling for this family.

Days 9–16 · Loans and investment decisions. Cash flows over a few years or up to about 360 loan payments, with positive principal and a stated compounding convention.

Unit benchmark · finance.annuity, payments. Largest passing sample 20,000 (2,553 ms, 89.5 MiB peak process RSS). The first sampled passing call above one second used 20,000 (2,553 ms). The runs did not locate a ceiling for this family.

Days 17–24 · Fixed income. Bonds with tens of coupon dates and yields usually quoted to basis points; align compounding and coupon frequency.

Unit benchmark · finance.annuity, payments. Largest passing sample 20,000 (2,553 ms, 89.5 MiB peak process RSS). The first sampled passing call above one second used 20,000 (2,553 ms). The runs did not locate a ceiling for this family.

Days 25–32 · Risk-neutral pricing. One- and two-step hand trees, about 5–25 steps for classroom computation, or a few option legs. State the model, rate and volatility units.

Unit benchmark · finance.binomialTree, time steps. Largest passing sample 250 (703 ms, 90.7 MiB peak process RSS). Library refusal at 2,001. The first sampled passing call above 100 ms used 250 (703 ms).

Days 33–40 · Planning and model risk. Lifetimes or depreciation horizons of a few to about 100 years, modest cash-flow tables and explicit scenario assumptions.

Unit benchmark · finance.compound, annual periods. Largest passing sample 10,000 (207 ms, 89.3 MiB peak process RSS). The first sampled passing call above 100 ms used 10,000 (207 ms). The runs did not locate a ceiling for this family.

Accuracy notes (1)

Open · Two distinct categorical tuples can merge. A uniform table on the two arrays [‘a,sb’,‘c’] and [‘a’,‘b,sc’] should give each probability 1/2. The table reports one outcome with probability 1 because the composite string keys collide. Use unambiguous scalar IDs for such labels. Ordinary numeric dice faces have distinct keys.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Time value of money

Convert rates, value streams and choose an accumulation convention.

8 direct calculation · 0 assisted · 0 worked by hand

  1. Day 1 Effective rate
  2. Day 2 Compound interest
  3. Day 3 Continuous compounding
  4. Day 4 Annuity-immediate
  5. Day 5 Annuity-due
  6. Day 6 Growing perpetuity
  7. Day 7 Real return
  8. Day 8 Simple interest
Days 9–16 Loans and investment decisions

Compare amortization, extra payments, discounted projects and multiple IRRs.

8 direct calculation · 0 assisted · 0 worked by hand

  1. Day 9 Loan payment
  2. Day 10 Paying extra
  3. Day 11 Net present value
  4. Day 12 Internal rate of return
  5. Day 13 Compound interest
  6. Day 14 Infinite geometric series
  7. Day 15 Multiple IRRs
  8. Day 16 Sinking fund
Days 17–24 Fixed income

Price bonds, infer forward rates and quantify sensitivity to yield.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 17 Bond price
  2. Day 18 Yield at par
  3. Day 19 Duration
  4. Day 20 Forward rates
  5. Day 21 Linear approximation
  6. Day 22 Zero-coupon price
  7. Day 23 Dollar duration
  8. Day 24 Reinvestment risk
Days 25–32 Risk-neutral pricing

Model state-contingent payoffs, replicate positions and value options.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 25 Black–Scholes
  2. Day 26 Put–call parity
  3. Day 27 American put on a tree
  4. Day 28 Option strategies
  5. Day 29 Conditioning
  6. Day 30 Bayes with urns
  7. Day 31 Risk-neutral weight
  8. Day 32 No-arbitrage condition
Days 33–40 Planning and model risk

Value uncertain cash flows, report real returns and test assumptions.

6 direct calculation · 0 assisted · 2 worked by hand

  1. Day 33 Depreciation
  2. Day 34 Life expectancy
  3. Day 35 Expected value
  4. Day 36 Covariance
  5. Day 37 Multiple regression
  6. Day 38 Immunization
  7. Day 39 Survival benefit
  8. Day 40 Stress testing

Start day 1 →