A bond's price is a smooth function of yield; markets quote the price and desks solve for the yield. An option expectation is an integral against a density that may lack an elementary antiderivative. This note joins bisection and Newton for scalar roots with one quadrature rule (trapezoid), and lands both on finance readings: yield from price, and an expectation as an integral.
Learning objectives. By the end of this note you should be able to:
- run bisection given a sign-changing bracket;
- derive and apply the Newton update ;
- approximate a definite integral by the trapezoid rule and quote its error order;
- formulate bond yield as a root and an expectation as a numerical integral.
In this lesson
- Root-finding: bisection and Newton
- Numerical integration
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Linear Algebra, Optimisation and Numerical Methods syllabus.