Pricing barrier options with simulations and sensitivity analysis with Greeks

Pricing barrier options with simulations and sensitivity analysis with Greeks

Shengyu ZHENG

In this article, Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023) explains the pricing of barrier options with Monte-Carlo simulations and the sensitivity analysis of barrier options from the perspective of Greeks.

Pricing of discretely monitored barrier options with Monte-Carlo simulations

With the simulation method, only the pricing of discretely monitored barrier options can be handled since it is impossible to simulate continuous price trajectories with no intervals. Here the method is illustrated with a down-and-out put option. The general setup of economic details of the down-and-out put option and related market information are presented as follows:

General setup of simulation for barrier option pricing

Similar to the simulation method for pricing standard vanilla options, Monte Carlo simulations based on Geometric Brownian Motion could also be employed to analyze the pricing of barrier options.

Figure 1. Trajectories of 600 price simulations.

With the R script presented above, we can simulate 6,000 times with the simprice() function from the derivmkts package. Trajectories of 600 price simulations are presented above, with the black line representing the mean of the final prices, the green dashed lines 1x and 2x standard deviation above the mean, the red dashed lines 1x and 2x derivation below the mean, the blue dashed line the strike level and the brown line the knock-out level.

The simprice() function, according to the documentation, computes simulated lognormal price paths with the given parameters.

With this simulation of 6,000 price paths, we arrive at a price of 0.6720201, which is quite close to the one calculated from the formulaic approach from the previous post.

Analysis of Greeks

The Greeks are the measures representing the sensitivity of the price of derivative products including options to a change in parameters such as the price and the volatility of the underlying asset, the risk-free interest rate, the passage of time, etc. Greeks are important elements to look at for risk management and hedging purposes, especially for market makers (dealers) since they do not essentially take these risks for themselves.

In R, with the combination of the greeks() function and a barrier pricing function, putdownout() in this case, we can easily arrive at the Greeks for this option.

Barrier option R code Sensitivity Greeks

Table 1. Greeks of the Down-and-Out Put

Barrier Option Greeks Summary

We can also have a look at the evolutions of the Greeks with the change of one of the parameters. The following R script presents an example of the evolutions of the Greeks along with the changes in the strike price of the down-and-out put option.

Barrier option R code Sensitivity Greeks Evolution

Figure 2. Evolution of Greeks with the change of Strike Price of a Down-and-Out Put

Evolution Greeks Barrier Price

Download R file to price barrier options

You can find below an R file (file with txt format) to price barrier options.

Download R file to price barrier options

Why should I be interested in this post?

As one of the most traded but the simplest exotic derivative products, barrier options open an avenue for different applications. They are also very often incorporated in structured products, such as reverse convertibles. It is, therefore, important to be equipped with knowledge of this product and to understand the pricing logics if one aspires to work in the domain of market finance.

Simulation methods are very common in pricing derivative products, especially for those without closed-formed pricing formulas. This post only presents a simple example of pricing barrier options and much optimization is needed for pricing more complex products with more rounds of simulations.

Related posts on the SimTrade blog

   ▶ All posts about Options

   ▶ Shengyu ZHENG Barrier options

   ▶ Shengyu ZHENG Pricing barrier options with analytical formulas

Useful resources

Academic articles

Broadie, M., Glasserman P., Kou S. (1997) A Continuity Correction for Discrete Barrier Option. Mathematical Finance, 7:325-349.

Merton, R. (1973) Theory of Rational Option Pricing. The Bell Journal of Economics and Management Science, 4:141-183.

Paixao, T. (2012) A Guide to Structured Products – Reverse Convertible on S&P500

Reiner, E.S., Rubinstein, M. (1991) Breaking down the barriers. Risk Magazine, 4(8), 28–35.

Rich, D. R. (1994) The Mathematical Foundations of Barrier Option-Pricing Theory. Advances in Futures and Options Research: A Research Annual, 7:267-311.

Wang, B., Wang, L. (2011) Pricing Barrier Options using Monte Carlo Methods, Working paper.

Books

Haug, E. (1997) The Complete Guide to Option Pricing. London/New York: McGraw-Hill.

Hull, J. (2006) Options, Futures, and Other Derivatives. Upper Saddle River, N.J: Pearson/Prentice Hall.

About the author

The article was written in June 2022 by Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023).

Pricing barrier options with analytical formulas

Pricing barrier options with analytical formulas

Shengyu ZHENG

As is mentioned in the previous post, the frequency of monitoring is one of the determinants of the price of a barrier option. The higher the frequency, the more likely a barrier event would take place.

In this article, Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023) explains the pricing of continuously and discretely monitored barrier options with analytical formulas.

Pricing of standard continuously monitored barrier options

For pricing standard barrier options, we cannot simply apply the Black-Sholes-Merton Formula for the particularity of the barrier conditions. There are, however, several models available developed on top of this theoretical basis. Among them, models developed by Merton (1973), Reiner and Rubinstein (1991) and Rich (1994) enabled the pricing of continuously monitored barrier options to be conducted in a formulaic fashion. They are concisely put together by Haug (1997) as follows:

Knock-in and knock-out barrier option pricing formula

Knock-in barrier option pricing formula

Knock-in barrier option pricing formula

Pricing of standard discretely monitored barrier options

For discretely monitored barrier options, Broadie and Glasserman (1997) derived an adjustment that is applicable on top of the pricing formulas of the continuously monitored counterparts.

Let’s denote:

Knock-in barrier option pricing formula

The price of a discretely monitored barrier option of a certain barrier price equals the price of a continuously monitored barrier option of the adjusted price plus an error:

Knock-in barrier option pricing formula

The adjusted barrier price, in this case, would be:

Knock-in barrier option pricing formula

Knock-in barrier option pricing formula

It is also worth noting that the error term o(·) grows prominently when the barrier approaches the strike price. A threshold of 5% from the strike price should be imposed if this approach is employed for pricing discretely monitored barrier options.

Example of pricing a down-and-out put with R with the formulaic approach

The general setup of economic details of the Down-and-Out Put and related market information is presented as follows:

Knock-in barrier option pricing formula

There are built-in functions in the “derivmkts” library that render directly the prices of barrier options of continuous monitoring, such as calldownin(), callupin(), calldownout(), callupout(), putdownin(), putupin(), putdownout(), and putupout (). By incorporating the adjustment proposed by Broadie and Glasserman (1997), all barrier options of both monitoring methods could be priced in a formulaic way with the following function:

Knock-in barrier option pricing formula

For example, for a down-and-out Put option with the aforementioned parameters, we can use this function to calculate the prices.

Knock-in barrier option pricing formula

For continuous monitoring, we get a price of 0.6264298, and for daily discrete monitoring, we get a price of 0.676141. It makes sense that for a down-and-out put option, a lower frequency of barrier monitoring means less probability of a knock-out event, thus less protection for the seller from extreme downside price trajectories. Therefore, the seller would charge a higher premium for this put option.

Download R file to price barrier options

You can find below an R file (file with txt format) to price barrier options.

Download R file to price barrier options

Why should I be interested in this post?

As one of the most traded but the simplest exotic derivative products, barrier options open an avenue for different applications. They are also very often incorporated in structured products, such as reverse convertibles. It is, therefore, important to understand the elements having an impact on their prices and the closed-form pricing formulas are a good presentation of these elements.

Related posts on the SimTrade blog

   ▶ All posts about options

   ▶ Shengyu ZHENG Barrier options

   ▶ Shengyu ZHENG Pricing barrier options with simulations and sensitivity analysis with Greeks

Useful resources

Academic research articles

Broadie, M., Glasserman P., Kou S. (1997) A Continuity Correction for Discrete Barrier Option. Mathematical Finance, 7:325-349.

Merton, R. (1973) Theory of Rational Option Pricing. The Bell Journal of Economics and Management Science, 4:141-183.

Paixao, T. (2012) A Guide to Structured Products – Reverse Convertible on S&P500

Reiner, E.S., Rubinstein, M. (1991) Breaking down the barriers. Risk Magazine, 4(8), 28–35.

Rich, D. R. (1994) The Mathematical Foundations of Barrier Option-Pricing Theory. Advances in Futures and Options Research: A Research Annual, 7:267-311.

Wang, B., Wang, L. (2011) Pricing Barrier Options using Monte Carlo Methods, Working paper.

Books

Haug, E. (1997) The Complete Guide to Option Pricing. London/New York: McGraw-Hill.

Hull, J. (2006) Options, Futures, and Other Derivatives. Upper Saddle River, N.J: Pearson/Prentice Hall.

About the author

The article was written in July 2022 by Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023).

Barrier options

Barrier options

Shengyu ZHENG

In this article, Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023) explains barrier options which are the most traded exotic options in derivatives markets.

Description

Barrier options are path dependent. Their payoffs are not only a function of the price of the underlying asset relative to the option strike, but also depend on whether the price of the underlying asset reached a certain predefined barrier during the life of the option.

The two most common kinds of barrier options are knock-in (KI) and knock-out (KO) options.

Knock-in (KI) barrier options

KI barrier options are options that are activated only if the underlying asset attains a prespecified barrier level (the “knock-in” event). With the absence of this knock-in event, the payoff remains zero regardless of the trajectory of the price of the underlying asset.

Knock-out (KO) barrier options

KO barrier options are options that are deactivated only if the underlying asset attains a prespecified barrier level (the “knock-out” event). In the presence of this knock-out event, the payoff remains zero regardless of the trajectory of the price of the underlying asset.

Observation

The determination of the occurrence of a barrier event (KI or KO conditions) is essential to the ultimate payoff of the barrier option. In practice, the details of the KI or KO conditions are precisely defined in the contract (called “Confirmations” by the International Swaps and Derivatives Association (ISDA) for over-the counter (OTC) traded options).

Observation period

The observation period denotes the period where a barrier event (KI or KO) can be observed, that is to say, when the price of the underlying asset is monitored. There are three styles of observation period: European style, partial-period American style, and full-period American style.

  • European style: The observation period is only the expiration date of the barrier option.
  • Partial-period American style: The observation period is part of the lifespan of the barrier option.
  • Full-period American style: The observation period spans the whole period from the effective date to the expiration date of the barrier option.

Monitoring method

There are two typical types of monitoring methods in terms of the determination of a knock-in/knock-out event: continuous monitoring and discrete monitoring. The monitoring method is one of the key factors in determining the premium of a barrier option.

  • Continuous monitoring: A knock-in/knock-out event is deemed to take place if, at any time in the observation period, the knock-in/knock-out condition is met.
  • Discrete monitoring: A knock-in/knock-out event is deemed to occur if, at pre-specific times in the observation period, usually the closing time of each trading day, the knock-in/knock-out condition is met.

Barrier Reference Asset

For the most cases, the Barrier Reference Asset is the underlying asset itself. However, if specified in the contract, it can be another asset or index. It can also be other calculatable properties, such as the volatility of the asset. In this case, the methodology of calculating such properties should be clearly defined in the contract.

Rebate

For knock-out options, there could be a rebate. A rebate is an extra feature and it corresponds to the amount that should be paid to the buyer of the knock-out option in case of the occurrence of a knock-out event.

In-out parity relation for barrier options

Analogous to the call-put parity relation for plain vanilla options, there is an in-out parity relation for barrier options stating that a long position in a knock-in option plus a long position in a knock-out option with identical strikes, barriers, monitoring methods and maturity is equivalent to a long position in a comparable vanilla option. It could be stated as follows:

Knock-in knock-out barrier option parity relation

Where K denotes the strike price, T the maturity, and B the barrier level.

It is worth noting that this parity relation is valid only when the two KI and KO options are identical, and there is no rebate in case of a knock-out option.

Basic barrier options

There are four types of basic barrier options traded in the market: up-and-in option, up-and-out option, down-and-in option, and down-and-out option. “Up” and “down” denotes the direction of surpassing the barrier price. “In” and “out” depict the type of barrier condition, i.e. knock-in or knock-out. These four types of barrier features are available for both call and put options.

Up-and-in option

An up-and-in option is a knock-in option whose barrier condition is achieved if the underlying price arrives higher than the barrier level during the observation period.

Figure 1 illustrates the occurrence of an up-and-in barrier event for a barrier option with full-period American style and discrete monitoring (the closing time of each trading day).

Figure 1. Illustration of an up-and-in barrier option
Example of an up-and-in call option

Up-and-out option

An up-and-out option is a knock-out option whose barrier condition is achieved if the underlying price arrives higher than the barrier level during the observation period.

Figure 2. Illustration of an up-and-out option

Example of an up-and-out call option

Down-and-in option

A down-and-in option is a knock-in option whose barrier condition is achieved if the underlying price arrives lower than the barrier level during the observation period.

Figure 3. Illustration of a down-and-in option
Example of a down-and-in call option

Down-and-out option

A down-and-out option is a knock-out option whose barrier condition is achieved if the underlying price arrives lower than the barrier level during the observation period.

Figure 4. Illustration of a down-and-out option
Example of a down-and-out call option

Download R file to price barrier options

You can find below an R file to price barrier options.

Download R file to price barrier options

Trading of barrier options

Being the most popular exotic options, barrier options on stocks or indices have been actively traded in the OTC market since the inception of the market. Unavailable in standard exchanges, they are less accessible than their vanilla counterparts. Barrier options are also commonly utilized in structured products.

Why should I be interested in this post?

As one of the most traded but the simplest exotic derivative products, barrier options open an avenue for different applications. They are also very often incorporated in structured products, such as reverse convertibles. Knock-in/knock out conditions are also common features in other types of more complicated exotic derivative products.

It is, therefore, important to be equipped with knowledge of this product and to understand the pricing logics if one aspires to work in financial markets.

Related posts on the SimTrade blog

   ▶ All posts about options

   ▶ Shengyu ZHENG Pricing barrier options with analytical formulas

   ▶ Shengyu ZHENG Pricing barrier options with simulations and sensitivity analysis with Greeks

References

Academic research articles

Broadie, M., Glasserman P., Kou S. (1997) A Continuity Correction for Discrete Barrier Option. Mathematical Finance, 7:325-349.

Merton, R. (1973) Theory of Rational Option Pricing. The Bell Journal of Economics and Management Science, 4:141-183.

Paixao, T. (2012) A Guide to Structured Products – Reverse Convertible on S&P500

Reiner, E.S., Rubinstein, M. (1991) Breaking down the barriers. Risk Magazine, 4(8), 28–35.

Rich, D. R. (1994) The Mathematical Foundations of Barrier Option-Pricing Theory. Advances in Futures and Options Research: A Research Annual, 7:267-311.

Wang, B., Wang, L. (2011) Pricing Barrier Options using Monte Carlo Methods, Working paper.

Books

Haug, E. (1997) The Complete Guide to Option Pricing. London/New York: McGraw-Hill.

Hull, J. (2006) Options, Futures, and Other Derivatives. Upper Saddle River, N.J: Pearson/Prentice Hall.

About the author

The article was written in July 2022 by Shengyu ZHENG (ESSEC Business School, Grande Ecole Program – Master in Management, 2020-2023).