# Closed-form expressions for perpetual and finite-maturity American binary options

In this article, we derive the price of an American binary (a.k.a. digital) call and put options assuming that the underlying asset follows geometric Brownian motion. We handle the case in which a finite expiry time is specified for the option. We obtain results for the corresponding perpetual (i.e., no expiry) options by taking limits.

## American binary option

A binary option is a type of option in which pays off either some fixed amount (e.g., one dollar) or nothing at all.

An American binary put pays the holder exactly one dollar if the asset on which it is written drops below a specific valuation, called the strike. For example, consider owning an American binary put with a strike price of 100 dollars, expiring in a year, and written on AAPL stock (which, for the purposes of this example, we assume trades at some value of greater than 100 dollars today). If at any point in time between now and a year from now AAPL stock drops below 100 dollars, we will receive one dollar by exercising the option.

An American binary call is similar, except that it pays the holder exactly one dollar if the asset on which it is written goes above a specific valuation.

## Mathematical formulation

We assume that, under the pricing measure, the price of the stock (e.g., APPL) at time $t$ is given by

\[S_t = x \exp\biggl( \left(r - \delta - \frac{1}{2} \sigma^2 \right) t + \sigma W_t \biggr)\]where the initial price $x$ and volatility $\sigma$ are positive, the interest rate $r$ is real, and the dividend rate $\delta$ is nonnegative. $W$ is a standard Wiener process.

Let $K$ denote the (nonnegative) strike price.
If $x \leq K$, the American binary put should be exercised immediately and is thus worth exactly one dollar.
We call this the *trivial case*.
Analogously, if $x \geq K$, the American binary call is worth one dollar.
Therefore, we proceed assuming the nontrivial case (i.e., $x > K$ for puts and $x < K$ for calls).

Let $\tau$ be the first time the asset hits level $K$. It follows that, for each realization, $\tau$ is either infinite or satisfies

\[\log s + \left( r - \delta - \frac{1}{2} \sigma^2 \right) \tau + \sigma W_\tau = \log K.\]We can rewrite the above equation as $\mu \tau + W_\tau = a$ where

\[\mu = \frac{r - \delta - \frac{1}{2} \sigma^2}{\sigma} \quad \text{and} \quad a = \frac{\log s - \log K}{\sigma}.\]In other words, $\tau$ is the first time a Wiener process with drift $\mu$ hits the level $a$.

The density of the first time a Wiener process with drift $\mu$ hits the level $a$ is well-known:

\[f(t) = \frac{\left| a \right|}{\sqrt{2 \pi t^3}} \exp \biggl( -\frac{\left( a - \mu t \right)^2}{2t} \biggr).\]Let $T \leq \infty$ be the expiry time of the option. The fair price of either instrument (in the nontrivial case) is

\[\mathbb{E} e^{-r \tau} \chi_{[0, T]}(\tau) = \int_0^T e^{-r t} f(t) dt.\]where $\chi_A$ is the indicator function on a set $A$. The notation above reveals that this is none other than the Laplace transform of $f \cdot \chi_{[0, T]}$ evaluated at $r$.

**Lemma.**
$\mu^2 + 2r$ is nonnegative.

*Proof*.
If $r$ is nonnegative, the result is trivial.
If $r$ is negative, then since $\delta$ is nonnegative,

## Laplace transform

In this section, we give an expression for the Laplace transform. We do not assume particular forms for $a$ and $\mu$. Below, we use $\operatorname{erf}(\cdot)$ and $\operatorname{sgn}(\cdot)$ to denote the error and signum functions, respectively.

**Theorem.**
Let $b = \sqrt{\mu^2 + 2r}$ and $0 < T < \infty$.
If $b$ is real, then

*Proof*.
Denote by $F(T)$ the expression on the right-hand side of the above equation.
Noting that

it follows that $\lim_{T \downarrow 0} F(T) = 0$. If we can establish $F^\prime(t) = e^{-r t} f(t)$ for all $0 < t < \infty$, then by the fundamental theorem of calculus,

\[F(T) = F(T) - \lim_{T \downarrow 0} F(T) = \int_0^T e^{-r t} f(t) dt,\]as desired. This is accomplished with SageMath below:

```
var("t a r μ")
assume(t > 0)
assume(a, "real")
assume(r, "real")
assume(μ, "real")
b = sqrt(μ^2 + 2 * r)
F = 1/2 * exp(a * (μ - b)) * (
1 + sign(a) * erf((b * t - a) / sqrt(2 * t)) + exp(2 * a * b) * (
1 - sign(a) * erf((b * t + a) / sqrt(2 * t))))
f = sign(a) * a / sqrt(2 * pi * t^3) * exp(- (a - μ * t)^2 / (2 * t))
delta = diff(F, t) - exp(-r * t) * f
assert delta.canonicalize_radical() == 0
```

The infinite horizon case ($T = \infty$) follows by taking the limit $T \rightarrow \infty$ and applying the dominated convergence theorem to the above:

**Corollary.**
Let $b = \sqrt{\mu^2 + 2r}$.
If $b$ is real, then $\mathbb{E} e^{-r \tau} = e^{a \mu - |a| b}$.

## Implementation

```
from scipy.special import erf
import numpy as np
def american_binary(asset_price,
dividend_rate,
expiry_time,
risk_free_rate,
strike,
volatility):
"""Computes the value of an American binary option.
Parameters
----------
asset_price: The price of the asset at the initial time (x).
dividend_rate: The dividend rate (δ).
expiry_time: The option's time-to-expiry (T).
risk_free_rate: The risk-free rate of return (r).
strike: The strike price (K).
volatility: The volatility (σ).
Returns
-------
The value of an American binary put if the asset price is greater than the strike.
The value of an American binary call otherwise.
"""
r = risk_free_rate
T = expiry_time
a = np.log(asset_price / strike) / volatility
μ = (r - dividend_rate - 0.5 * volatility**2) / volatility
b = np.sqrt(μ**2 + 2. * r)
return 0.5 * np.exp(a * (μ - b)) * (
1 + np.sign(a) * erf((b * T - a) / np.sqrt(2. * T)) + np.exp(2. * a * b) * (
1 - np.sign(a) * erf((b * T + a) / np.sqrt(2. * T))))
```