Workshop 1, Hedging Vehicles - Module 2

Author

Alberto Dorantes

Published

November 4, 2025

Abstract
In this workshop we do a review of Forwards, Futures, Options and Swaps. We also do illustrative examples. You have to workout the exercises/challenges at the end.
Code
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

1 What are derivatives?

A derivative is a contract whose value comes from (“derives from”) an underlying asset, which can be: a stock, an index, an interest rate, a currency, or a commodity. The reasons why firms or individuals use derivatives are:

  1. Hedging: reduce or control a risk you already have (e.g., airlines hedge fuel price risk)

  2. Speculation: take a view on where prices might go with limited upfront capital

  3. Arbitrage: lock in a low‑risk profit when prices are out of line (advanced).

Important keywords to keep in mind:

  • Underlying asset: the thing the contract is based on (e.g., a stock or the EUR/USD exchange rate).

  • Long vs. short: long benefits when price goes up; short benefits when price goes down.

  • Payoff vs. profit: payoff is what you get at the end; profit also subtracts what you paid or financed to get it.

In the next sections I review basic derivatives: Forwards, Futures, Options and Swaps.

2 Forwards

A forward is a private (over‑the‑counter) agreement made today to buy or sell an asset at a fixed price on a future date. There is usually no money exchanged when you enter the deal; both sides commit to trade later at the agreed price, called the forward price.

At the delivery date T:

  • The long (buyer) must buy at K; buyer payoff payoff is S_T − K.

  • The short (seller) must sell at K; seller payoff is K-S_T

2.1 Example — Apple farmer hedge

A farmer agrees today to sell 1,000 lbs at K = $2.00 in 3 months.

  • If S_T = $1.60 :

    • Buyer (long) payoff = 1.60 - 2.00 = -$0.40 per lb

    • Seller (short) payoff = +$0.40 per lb

  • If S_T = $2.40:

    • Buyer (long) payoff = +$0.40 per lb

    • Seller (short) payoff = -$0.40 per lb.

Here are 3 scenarios for possible market prices at the end of the contract (3 months):

Market Price S_T Long Forward Payoff (S_T - K) Short Forward Payoff (K - S_T)
$1.60 -$0.40 per lb +$0.40 per lb
$2.00 $0.00 $0.00
$2.40 +$0.40 per lb -$0.40 per lb

2.2 Key ideas (no heavy math)

  • Forward price is today’s price adjusted for the cost and benefits of waiting (interest earned).

  • If the asset pays income (dividends) while you wait, the forward price is typically lower than simply adding interest.

  • At settlement (expiration date), the long (the buyer) must buy and the short (the seller) must sell at the forward price K.

2.3 Illustrative plot — Long & Short forward

Below you can see 2 plots that show the Payoff of a Long and Short Forward at a Forward price K = $100.00 for possible market prices (S_T) of the underlying asset at expiration:

Code
S = np.linspace(50, 150, 401)
K = 100.0
plt.figure()
plt.plot(S, S - K)
plt.title("Long Forward — Payoff at Expiration with K=$100")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Payoff")
plt.show()

plt.figure()
plt.plot(S, K - S)
plt.title("Short Forward — Payoff at Expiration with K=$100")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Payoff")
plt.show()

2.4 When are forwards useful?

• Hedging a known future purchase or sale (e.g., a Mexican firm locking in the USD-MX exchange rate for paying a Foreign supplier).

• Custom terms: exact quantity, date, and asset tailored to the user (because forwards are private contracts).

3 Futures

A futures contract is like a forward but traded on an exchange with standard terms and a clearinghouse between buyers and sellers.

It is standardized (fixed contract size and dates) and is supported by a clearinghouse that reduces credit risk.

You post margin and your position is settled daily (mark-to-market).

3.1 Key differences vs forwards

  • Standardized sizes and dates; exchange-traded with central clearing.
  • Lower counter-party risk due to the clearinghouse.
  • Daily settlement of gains/losses to/from your margin account.

3.2 Important mechanics:

  • Initial margin: a small deposit you post when you open the position.
  • Marking‑to‑Market (daily settlement): each day your account is credited or debited based on that day’s price change.
  • Maintenance margin: if your account falls below this level, you must add funds (a margin call).

3.3 Mini Market-to-Market (MTM) example (1 contract):

Day Futures Price Change
0 100.00 -
1 101.20 +1.20
2 100.70 -0.50
3 102.10 +1.40

3.4 Mini Market-to-Market (MTM) example (2 contracts):

Suppose you go long 2 futures at a price of 100. Each one moves dollar‑for‑dollar with the asset, and each contract is for 1 unit (for simplicity).

Day Settlement Price Daily Change
0 100.00
1 100.50 +0.50
2 101.20 +0.70
3 100.40 -0.80

3.5 Hedging with Futures (Simple example)

Goal: reduce the risk of a future purchase or sale price.

Example — A bakery hedges wheat costs:

  • The bakery will buy 50,000 units of wheat in 2 months.
  • Each futures contract controls 5,000 units (assume).
  • To lock in the price, the bakery goes long futures now.

Approximate number of contracts needed = exposure / contract size = 50,000 / 5,000 = 10 contracts.

3.6 Basis & convergence (intuition)

  • Basis = Spot − Futures.
  • As expiration approaches, futures and spot converge (equal at delivery, ignoring frictions).

3.7 Futures vs. forwards (at a glance)

  • Both lock in a price for the future.
  • Futures are standardized and settled daily; forwards are private and settle at the end.
  • Because of daily settlement, futures can behave slightly differently from forwards when interest rates move with the underlying.

4 Options

An option gives a right, not an obligation. A call option gives the right to buy the asset at a fixed strike price. A put option gives the right to sell the asset at the strike price. You pay an upfront price called the premium for this right.

European options can be exercised only at time T; American options can be exercised at any time up to T.

Payoff at expiration:

  • Call payoff = max(S_T − K, 0).
  • Put payoff = max(K − S_T, 0).

Profit at expiration is payoff minus the premium (ignoring interest for simplicity).

4.1 Option Examples

4.1.1 Example 1 — Call option on a stock:

  • You buy a 3‑month call with K = $100 for a premium of $6.
  • If S_T = $120, payoff = $20 and profit = $20 − $6 = $14.
  • If S_T = $90, payoff = 0 and profit = 0 − 6 = −$6 (you lose only the premium).
  • Break‑even price = K + premium = $106.

4.1.2 Example 2 — Put option on a stock:

  • You buy a 3‑month put with K = $100 for a premium of $5.
  • If S_T = $80, payoff = $20 and profit = $20 − 5 = $15.
  • If S_T = $110, payoff = 0 and profit $ −$5 (you lose the premium).
  • Puts provide downside protection for stockholders (insurance‑like).

4.2 Put–Call Parity (European options, no dividends)

A powerful identity links calls, puts, the stock, and a risk‑free bond. At a high level:

Call − Put = Present value of the stock − Present value of the strike.

Practical takeaway: if you know three of these prices, you can estimate the fourth. If the relationship is violated, arbitrageurs can construct trades to profit and restore balance.

4.3 Illustrative plots — Long call & Long put

Bellow are 2 plots for a Long Call and Long Put with strike price K = $100.00 for different future/market prices S_T at expiration date:

Code
S = np.linspace(50, 150, 401)
K = 100.0

plt.figure()
plt.plot(S, np.maximum(S - K, 0.0))
plt.title("Long Call — Payoff at Expiration")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Payoff")
plt.show()

plt.figure()
plt.plot(S, np.maximum(K - S, 0.0))
plt.title("Long Put — Payoff at Expiration")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Payoff")
plt.show()

4.4 Two Simple Strategies

  • Protective Put (downside insurance): buy the stock and buy a put (long stock + long put). Your losses are limited below K, but you pay the put premium for protection.
  • Covered Call (income with capped upside): buy the stock and sell a call (long stock + short call). You earn premium income but cap your upside above the strike K.

Below are two plots to illustrate these strategies with the following strike prices:

  • Strike price for the Put: K_put = $95.00

  • Strike price for the Call: K_call = $105.00

The payoffs are relative compared to holding the stock at a price S0=$100.00, and considering the premium for both Call and Put = $3.0.

Code
S = np.linspace(50, 150, 401)
S0 = 100.0
K_put = 95.0
K_call = 105.0
premium = 3.0

# Relative payoffs vs holding stock from S0
holding_payoff = (S - S0)

ppayoff = (S - S0) + np.maximum(K_put - S, 0.0)
pprofit = ppayoff - premium 

ccpayoff = (S - S0) - np.maximum(S - K_call, 0.0)
ccprofit = ccpayoff + premium

plt.figure()
plt.plot(S, pprofit, label = "Protective Put")
plt.plot(S, holding_payoff, label="Buy & Hold the Stock")
plt.title("Protective Put — Relative Profit (premium=$3)")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Relative payoff vs S0")
plt.legend()
plt.show()

plt.figure()
plt.plot(S, ccprofit, label ="Covered Call")
plt.plot(S, holding_payoff, label="Buy & Hold the Stock")
plt.title("Covered Call — Relative Profit (premium=$3)")
plt.xlabel("Underlying price at expiration (S_T)")
plt.ylabel("Relative payoff vs S0")
plt.legend()
plt.show()

5 Swaps

A swap is an agreement to exchange cash flows on set dates, based on a notional amount. The most common is an interest rate swap (IRS). In an IRS, one side pays a fixed rate, the other pays a floating rate (like a short‑term benchmark). No principal is exchanged — just the interest differences.

5.1 Why use an IRS?

  • To convert a floating‑rate loan into a fixed‑rate payment (or the reverse).
  • To manage exposure to changing interest rates without refinancing the original loan.

5.2 Simple examples

Example 1

  • Company A has a $1,000,000 floating‑rate loan (it pays benchmark + spread). A prefers certainty.
  • It enters a swap to pay a fixed 4% and receive the same benchmark. Each period, the floating payments largely offset; A effectively locks in ~4% fixed on the notional.

Example 2

3‑year pay‑fixed receive‑float

  • Notional = $1,000,000; pay fixed 4% per year; receive floating each year aligned to market rates.
  • If market rates jump after 1 year, the floating payments increase. The swap’s value to the receiver of floating goes up.

Basic idea of pricing: at the start, the fixed rate is set so that the present value of fixed payments equals the present value of expected floating payments, making the swap’s initial value about zero. Later, when rates move, the swap’s value changes.

5.3 Currency Swaps (Brief)

Two parties exchange interest payments in two different currencies and typically exchange principal at the start and the end. This can help a firm borrow where it is cheapest and then swap into the currency it needs.

6 Quick guide to chose the right derivative

Here are very simple cases as a general guide to chose among the derivatives covered here:

  • If you known future buy/sell price risk (commodity or FX): Forward or Futures.
  • If you want downside protection but keep upside: Buy a Put (protective put with the stock).
  • If you need to turn variable‑rate exposure into fixed (or vice versa): Interest Rate Swap.
  • If you want a short‑term tactical view on price rise/fall with limited cash outlay: Buy Call/Put.

7 Simple recipie for hedging

  1. Define the exposure: what price move hurts you?
  2. Decide whether you need a commitment (forward/futures) or a right (option).
  3. Pick contract size and maturity close to your exposure date/quantity.
  4. For futures, estimate how many contracts you need (exposure ÷ (contract size × futures price)).
  5. Monitor and adjust: hedges reduce risk but rarely make it zero.

8 DICTIONARY - Key terms

Derivative: A contract whose value depends on another asset (the underlying).

Underlying: The asset or rate a derivative references (stock, index, oil, FX, interest rate).

Forward: Private agreement to buy/sell later at a fixed price K; settles at maturity.

Futures: Exchange‑traded forward; standardized with daily settlement and margin.

Strike (K): The fixed price in an option or forward deal (exercise price for options).

Maturity / Expiration (T): When the contract ends or the option must be exercised.

Long / Short: Long benefits when price rises; short benefits when price falls (opposite positions).

Payoff: Value of the contract at expiration, before considering the premium or financing.

Profit: Payoff minus what you paid (e.g., an option premium).

Premium: Upfront price paid for an option. Call Option: Right to buy the underlying at K by T (or at T if European).

Put Option: Right to sell the underlying at K by T (or at T if European). American / European: American: exercise any time up to T; European: only at T.

In‑the‑Money (ITM): Option that would have positive payoff if exercised now (call: S>K; put: S<K).

At‑the‑Money (ATM): S is about equal to K.

Out‑of‑the‑Money (OTM): Option that would have zero payoff if exercised now (call: S<K; put: S>K).

Marking‑to‑Market: Daily settlement of gains/losses on a futures contract.

Initial Margin: Deposit required to open a futures position.

Maintenance Margin: Minimum account balance before a margin call is triggered.

Basis: Spot price minus futures price (S − F); tends to zero at expiration.

Convergence: Futures price approaches the spot price as expiration nears.

Cost of Carry: Costs/benefits of holding the asset to T (financing, storage, income).

Dividend Yield (q): Rate at which an asset pays income (e.g., index dividends).

Convenience Yield: Benefit from physically holding a commodity (e.g., avoiding stockouts).

Hedging: Reducing risk you already have (e.g., lock a future price).

Speculation: Taking a risk to profit from expected price moves.

Arbitrage: Exploiting mispricing to earn low‑risk profit (advanced).

Put–Call Parity: Relationship linking prices of calls, puts, the stock, and a bond.

Volatility (sigma): How much the underlying price tends to move (uncertainty).

Implied Volatility: Volatility number that makes a pricing model match a market option price.

Greeks: Sensitivities of option price to inputs (Delta, Gamma, Vega, Theta, Rho).

Delta: Sensitivity to the underlying price (hedge ratio).

Gamma: Sensitivity of Delta to the underlying price (curvature).

Vega: Sensitivity to volatility. Theta: Sensitivity to time (time decay).

Rho: Sensitivity to interest rates.

Interest‑Rate Swap (IRS): Contract to exchange fixed and floating interest payments.

Fixed Leg: Side of a swap that pays/receives a fixed interest rate.

Floating Leg: Side that pays/receives a rate that resets periodically (e.g., benchmark).

Notional: Reference amount used to calculate swap payments (not exchanged).

Currency Swap: Swap where cash flows are in two different currencies, typically with principal exchange.

Discount Factor: Present value of $1 received at a future date.

Par Swap Rate: Fixed rate that makes the swap’s initial value ~0.

Counterparty Risk: Risk that the other side of a private contract fails to pay.

Clearinghouse: Central counterparty for futures that reduces credit risk.

9 EXERCISES

9.1 Forward / Futures

Go to Chapter 5 of Hull Book and solve the following exercises:

5.3, 5.4, 5.6, 5.9, 5.15

9.2 Option Exercises

Go to Chapter 10 and do the following:

10.1, 10.2, 10.3, 10.9, 10.11