Skip to content

Credit Products Playground

A course in quantitative finance, from cash flows and discounting to bonds, options, credit risk, and credit default swaps. Build intuition first, then check it with toy models, worked examples, and knowledge checks.

This course teaches the valuation of fixed-income and credit products. It starts from signed cash flows, rates, and discounting. It then values fixed-rate bonds, forwards, and European options, and it ends with options on a bond and with credit default swaps (CDS). The seven parts build on each other, and each part states which earlier parts it uses.

The chapters work in toy models. A toy model has stated inputs, and the chapter states what the model simplifies or leaves out. A chapter states what you will be able to do, explains the idea before the formula, and works a numerical example. Most chapters end with a knowledge check and a model boundary. Some chapters add an interactive lab, in which you change the inputs and see the result change.

The course is an educational draft. It is not a pricing system, and it uses no live market data.

Every part is a starting point. Start at Part 1 if the course is new to you. The two learning paths go through the course in a fixed order. Both paths assume only basic algebra, percentages and decimal notation, and integer exponents, and both begin with the same chapter: Cash-flow timelines and perspective.

Credit products path

From discounting to the value and the market quote of a CDS.

  1. Foundations: all seven chapters.
  2. Rates and curves: the discount curve.
  3. Bonds: the contract, the price, the yield to maturity, and the price-yield relationship.
  4. Credit risk: default, survival, and recovery.
  5. CDS: the two legs, the market quote and upfront, the credit curve, and quote risk.

To start at a later part, first read the parts that it requires, and the parts that those parts require. The curriculum map shows the same requirements chapter by chapter.

Each part opens with an overview page that states what the part covers, how it builds on the earlier parts, and the argument that runs through its chapters. Equations, tables, diagrams, knowledge checks, and worked examples are numbered by part and chapter, and each kind starts again in every chapter, so equation (1.5.1) is the first numbered equation of the fifth chapter of Part 1. Section headings are numbered the same way.

7 parts27 chapters

Foundations

Part 1 · 7 chapters

  1. Cash-flow timelines and perspective

    Place signed payments on one time axis before valuing them.

  2. Events, conditional probability, and expectation

    Calculate expected values from disjoint events, including values that vary inside an event.

  3. Rate quotes, compounding, and basis points

    Separate an annualized quote from its periodic rate and its units.

  4. Discount factors

    Convert one deterministic future unit into its value at time zero.

  5. Present value of a cash-flow schedule

    Discount each signed dated amount and then add the comparable values.

  6. No-arbitrage and replication

    Match every dated state-contingent cash flow before using one portfolio to value another.

  7. Risk-neutral pricing is not a risk-free probability

    Separate real-world forecasts from no-arbitrage pricing weights, then discount a finite-state expected payoff.

Bonds

Part 2 · 6 chapters

  1. Fixed-rate bond contract and cash flows

    Translate face value, coupon rate, frequency, and maturity into promised payments.

  2. Bond price from discount factors

    Apply one discount factor to each promised payment before adding.

  3. Yield to maturity as a single-rate summary

    Interpret the rate that reproduces a toy bond price, then calculate the price from an input yield.

  4. The bond price-yield relationship

    Explain why the price of fixed positive cash flows decreases when the yield increases, and why the price-yield curve is not linear.

  5. Settlement, accrued interest, and clean versus dirty price

    Calculate actual/actual coupon-period accrual and keep quoted and cash bond prices on one basis.

  6. Bond forwards

    Apply cash-and-carry to a coupon bond while keeping coupon ownership and dirty-price units explicit.

Rates and curves

Part 3 · 1 chapter

  1. Discount curve and forward discounting

    Move from one discount factor to a dated deterministic curve and derive future-to-future discount factors.

Derivative foundations

Part 4 · 5 chapters

  1. Forward contracts, delivery price, and value

    Separate a forward's obligation, fair delivery price, and changing signed contract value.

  2. European option contracts and payoffs

    Separate call and put rights from expiry payoff, current value, premium, and profit.

  3. Put-call parity and synthetic forwards

    Match European call and put portfolios state by state before solving a missing value.

  4. One-period binomial option valuation

    Price two-state option payoffs by both exact replication and risk-neutral weighting.

  5. Multi-period lattice valuation

    Extend one-period risk-neutral valuation to node-by-node backward induction with local discount factors.

Bond options

Part 5 · 2 chapters

  1. European bond options

    Define a standalone option on a bond, put its prices on one cash-price basis, and value expiry payoffs on an input lattice.

  2. Issuer-default knockout bond options

    Value a bond option that is extinguished by issuer default while keeping bond recovery separate.

Credit risk

Part 6 · 2 chapters

  1. Default, hazard, and survival

    Read an input survival curve, calculate interval default probabilities, and use a constant-hazard toy model.

  2. Recovery and one-period risky present value

    Value a narrowly defined recovery-of-par claim whose survival and default-state payments both occur at maturity.

CDS

Part 7 · 4 chapters

  1. CDS premium and protection legs

    Build exact default-time expectations for the two CDS legs and solve the zero-upfront par spread.

  2. CDS market-standard quote and upfront

    Distinguish a conventional CDS spread quote from a fixed running coupon, identify which quantity is observed and which is solved, calculate the signed upfront amount, and reverse the simplified conversion.

  3. Credit curve and market observables

    Separate what the CDS market shows from what a pricing model assumes or solves, read a credit curve as tenor marks plus a fitted survival curve, and distinguish transforming quotes from fitting the curve.

  4. Equivalent notional and quote risk

    Measure a CDS position's sensitivity to the liquid tenor's quote by bump and reprice, then size the liquid-tenor equivalent notional and equivalent ratio that offset it.

Prerequisite-aware

Each chapter declares the exact competencies that it requires and teaches. A validator rejects a missing reference and a cycle.

One meaning per symbol

Each symbol in the rendered math resolves to one notation entry. The notation glossary collects the shared entries.

Tested numbers

Each worked number comes from the course’s tested calculation code or from a cited source. The models state their units, signs, and conventions.

Draft until reviewed

The material was drafted with AI assistance. Each chapter stays marked draft until a person checks its prose, sources, formulas, and numbers.

Educational use only. This site is not investment, legal, tax, accounting, valuation, or trading advice.