On this page
Book
17 Finance
In the financial market, a market that is gaining more and more prominence is the derivatives market. It is in the derivatives market that contracts are negotiated that aim to protect the economic agent against the risk of market fluctuation.
Related to derivatives trading, two questions naturally arise
- What is the fair price of the derivative?
- What to do with the money received from the sale of the derivative?
In the finance book, we will study different models to answer such questions, but first we will present the types of market and the main contracts traded in the derivatives market.
17.1 Financial Market
The financial market is the market where the economy’s surplus resources (savings) are directed to financing companies and new projects. In the traditional financial market, the money deposited in the bank is used by financial institutions to finance some sectors of the economy. For this intermediation, banks charge the borrower a fee (spread) to cover transaction costs and the risk involved in the loan.
The capital market is part of the financial market. In the capital market, savers' resources are destined to promote economic development directly, that is, projects and companies. It is in the capital market that companies in need of resources obtain financing through the issuance of bonds, sold directly to savers and investors, without bank intermediation.
The transfer of resources from savers and investors to companies can be done in two ways:
- Debts: Investors buy bonds issued by companies that need money. These bonds give investors the right to receive the borrowed amount plus interest. The bonds are called debt securities and the market is known as the fixed income market.
- Stocks: Investors buy bonds issued by companies that need money. Securities do not guarantee fixed remuneration to investors. The remuneration of securities are dividends, part of the profit that a publicly traded company has.
The capital market is fundamental to a country’s growth, as without it many projects would not be able to get off the ground due to lack of financing. Many companies would lose their competitiveness and would find it difficult to develop.
The initial placement of securities on the market is called primary market launch. These securities are traded after the initial offering on specific secondary markets. In Brazil we have:
- The stock exchange for shares.
- Cetip (Central for Custody and Financial Settlement of Private Securities) for corporate debt securities.
- The Selic (Special Settlement and Custody System) for public securities.
The Capital Market in Brazil can be schematized as follows:

Variable income market
Shares are traded in the variable income market. A share is the smallest portion of a company’s capital. It is a security that does not guarantee predetermined remuneration to investors. The remuneration of the share is determined by the company’s ability to generate profits. Anyone who buys a share in a specific company becomes a partner in that company.
There are two basic types of actions:
- Ordinary: gives the holder the right to vote at meetings, but the company’s dividends may not be a priority for this type of share.
- Preferred: the shareholder does not participate in the company’s strategic decisions, on the other hand, they have priority in receiving dividends.
The share price is closely related to its supply and demand. When the company’s profit outlook is good, demand for the share increases, and there is a causal relationship with the increase in the share price. When the company’s profit outlook is low, demand for the share falls, which causes a decrease in the share price.
In Brazil, the Stock Exchange that trades shares is Bovespa.
Fixed income market
The fixed income market is characterized by the negotiation of debt securities, which allow the receipt of the loaned amount plus previously determined interest. Fixed income securities guarantee predetermined returns, such as a pre-fixed or post-fixed interest rate.
Investing in fixed income securities is a safe form of investment. The explanation for this fact is that fixed income securities are linked to interest rates and interest rates are normally less volatile than stocks.
Bonds are called private when issued by private institutions and public when issued by the municipal, state or federal government. Federal public bonds are negotiated between banks and financial institutions through the Selic rate. Private securities are traded and settled through Cetip.
Foreign Exchange Market
The foreign exchange market is the environment where exchange operations (foreign currency trading) take place between agents authorized by the Central Bank and between them and their customers. Buyers and sellers are typically exporters, importers, tourists and investors.
The regulatory body for this market is BACEN. He is the one who authorizes who can trade foreign currencies.
A concept of fundamental importance in this market is the exchange rate. The exchange rate is expressed in units of one currency in relation to units of another currency.
If the number of units of a certain currency needed to acquire another currency increases, that currency is said to have devalued or depreciated in relation to the other; if this quantity is reduced, it is said that the currency has appreciated or valued in relation to the other.
The exchange rate variation can be influenced by domestic factors, such as the position of foreign exchange reserves, the balance of payments situation, the conduct of economic policy, etc. External factors can also affect the exchange rate, such as the evolution of international interest rates (compared to domestic interest rates), as they can determine the flow of investors' currency.
Investment Fund Market
An investment fund is a form of financial investment, formed by the union of several investors to make a financial investment. It is constituted like a condominium, where investors aim for a specific objective or a common expected return.
The administration and management of the fund is carried out by hired specialists. The administrators deal with the legal and legal aspects of the fund, the managers of the strategy for putting together the fund’s asset portfolio, aiming for the highest possible profit with the lowest level of risk.
Investment funds provide the investor with better remuneration conditions in the market, due to professional management, and because they deal with an extremely significant volume of resources. It is an alternative for investors to obtain profitability from fixed income assets and shares without necessarily knowing the market.
Funds also dilute the risk of large losses, since the portfolio can be made up of different assets.
17.2 Derivatives
Definition 2.1
Derivatives are financial instruments whose value depends (or derives) from the value of other variables. Derivatives can depend on “almost anything” for example, the price of pigs or the amount of snow that falls at a ski resort.
Assets: Goods or rights owned by a company or investment fund. For investment funds, it represents all the securities (public bonds, private bonds, shares, commodities) that make up the portfolio.
In this chapter, we will present the main examples of derivatives.
Forward contract
The forward contract is a type of derivative. It is an agreement to buy or sell an asset at a future (pre-specified) time for a certain (pre-specified) price.
The forward contract is negotiated on the over-the-counter market, generally this contract is carried out between two financial institutions or between a financial institution and a client. When a forward contract is signed, one of the parties assumes the long position, that is, agrees to buy the assets on a certain date for a certain price. The other party assumes the short position, that is, agrees to sell the assets for a certain price on a certain date.
Example 2.1

Definition 2.2
We call the profit (or compensation) of a derivative payoff.
For forward contracts, the payoff is the difference between the agreed value and the real value of the asset on the delivery date.
The payoff of a long forward contract for one unit of the asset is
$$S_T - K$$
where
$ S_T $: is the strike price (or exercise price) is the price of the asset at maturity
$ K $ : is the price agreed in the contract
Below we present the payoff graph of a long forward contract
(image missing)
Considering the previous example, if the exchange rate on 12/22/2010 is $ (reais) 1,750 $, the payoff value of the forward contract will be
$$(reais) 2.800,00 (= (reais)175.000,00 - (reais)172.200,00).$$
The payoff of a short forward contract is
$$K-S_T$$
Below we present the payoff graph for a short forward contract
(image missing)
Future contract
Future contract is another type of derivative, but this is only traded on the Stock Exchange. It is very similar to the forward contract, one of the differences is that the future contract is standardized, that is, the quantity of asset traded per contract, the delivery period, the strike price and the maximum quantity that a speculator can have of the asset are specified. The objective of standardization is to guarantee greater contract liquidity.
In the future contract, one of the parties assumes a long future position (buyer) and the other assumes a short future position (seller).
The payoff of a future contract is the same as the payoff of the forward contract.
Example 2.2
A coffee producer located in Ribeirão Preto is interested in selling $ 1000 $ bags of coffee in three months. A manufacturer located in Recife will need to buy 1000 bags of coffee in three months. Both look for brokers on the stock exchange and enter into a futures contract. Each coffee futures contract negotiates 100 bags, so both parties will have to sign 10 contracts. Suppose the exercise price is $ (reais) 340,00 $.
The coffee producer assumes a short future position in the contract while the manufacturer assumes a long future position.
Suppose that on the day the contract is exercised, coffee is priced at $ (reais) 335,00 $. The producer’s payoff is
$$10\times ~ ( (reais) 34 000,00 - (reais) 33 500,00 ) = (reais) 5 000,00 $$
Options
Options are also examples of derivatives. Options are traded on stock exchanges and in financial institutions. An option provides the buyer with a right. If it is a right and not an obligation, the buyer can choose not to exercise the right and allow the option to expire. The buyer must pay to purchase the option.
There are two types of options: the call option (right to buy) and the put option (right to sell).
The price specified in the contract is called the exercise price or Strike Price and the date specified in the contract is called the expiration or maturity date.
A Call option gives the buyer the right to purchase an asset at a pre-fixed price (Strike price or K) during the contract period.
Suppose the option is exercised in time $ t\in (0,T] $,
- Se $ S_t> K $, the buyer gets the difference $ S_t-K $;
- Se $ S_t< K $, the buyer does not exercise the option.
Thus, the payoff function of a call option is:
$$\max (0 ,S_t-K)$$
Below we present the call option payoff graph
The put option gives the buyer the right to sell the specified asset for a pre-fixed price during the contract period. The buyer pays a price for this right. Suppose the option is exercised in time $ t\in (0,T] $,
- Se $ S_t< K $, the buyer gets the difference $ K-S_t $;
- Se $ S_t> K $, the buyer does not exercise the option.
Thus, the payoff function of a put option is
$$\max(0,K-S_t).$$
Below we present the payoff graph for a long put option
We have several types of existing options. The two most used are
- American Option: can be exercised at any time before the expiration date;
- European Option: can only be exercised on the expiration date;
We have 4 types of participants in the options market:
- Buyer of a call option;
- Seller of a call option;
- Buyer of a put option;
- Seller of a put option;
Example 2.3
Consider a situation where the investor buys a “European call option” with a “Strike price” of $ (reais) 60 $ to buy 100 shares of Microsoft. Suppose the current value is $ (reais) 58 $, that the expiration date is four months and the call option price is $ (reais) 5 $. The initial investment is $ (reais) 500 $. As we have a European option, the buyer can only exercise on the expiration date. If the share price on the expiration date is less than $ (reais) 60 $, the investor will not exercise his right. In this case the investor loses his initial investment. If the share price is above $ (reais) 60 $ on the expiration date, the investor exercises his right and buys the share. Suppose the stock is worth $ (reais) 75 $ on the expiration date. When exercising the option, the investor purchases 100 shares per $ (reais) 60 $ and immediately sells them for $ (reais) 75 $.
17.2.1 Specification of a contract
In contracts carried out outside the Exchange (e.g. forward contract), it is the participants who decide which conditions must be met in the negotiation. In futures contracts and options, certain specifications are imposed on the contract by the stock exchange, for example:
- Active
- Contract size
- Delivery location
- Dividends
- Limit position
- Minimum pricing variation
The purpose of these specifications is to facilitate contract liquidity
Active
The stock exchange specifies what type of asset is being traded in the contract, share, treasury bond, commodity, among others.
When the asset is a commodity, there may be a variation in the quality of the asset, which is evaluated in the market. Therefore, when the asset is specified, it is important that the Exchange stipulates the degrees of acceptance of the commodity.
Example 2.1.1
In an export-type soybean futures contract, BM&F specifies that the maximum acceptance limits for the underlying asset are a maximum of 14% moisture, 1% foreign matter and impurities, 30% broken, 8% greenish, 8% damaged and 18.5% oil content.
Example 2.1.2
In a Gold futures contract, BM&F specifies that each standard lot trades 250 grams of gold, the minimum trading variation is $ (reais) 0,001 $, the purity content is 999.0 parts of fine gold for every 1,000 parts of metal and the assets accepted as margin are cash, gold, public and private bonds and shares.
Financial assets are generally well defined. For example, there is no need to specify the degrees of acceptance of the Japanese currency yen. However, there are interesting features in Bonds and Treasury notes in futures contracts. A characteristic of the Treasury bond is that it has a maturity greater than 15 years.
Contract size
Contract size specifies the quantity of asset that will be delivered per contract. Contract size is an important decision for the stock exchange. If the contract size is too large, many investors who want to protect themselves from small exposures will be unable to use the exchange. On the other hand, if the size of the contract is small, negotiating them will be expensive as each negotiation has an associated cost.
Example 2.1.3
In an export-type soybean futures contract, each contract negotiates 450 bags of 60 kilos each.
Example 2.1.4
In an Arabica Coffee futures contract, each contract trades 100 bags of 60 kilos each.
Delivery location
The delivery location is an important factor for the future contract because for commodities there is a transportation cost involved in the negotiation. So the stock exchange specifies a suitable location for delivery of the asset.
Example 2.1.5
In the Arabica Coffee futures contract, delivery must be made to warehouses registered by BM&F. In the case of delivery to locations other than the city of São Paulo, the shipping cost will be deducted to determine the settlement value.
Dividends
Dividends are a portion of the profit earned by a corporation, distributed to shareholders at the end of the fiscal year.
Limit position
The limit position is the maximum number of contracts a speculator can own.
17.3 Interest rate
Before determining the price of an option, it is important to know how to work with the interest rate. The statement that the interest rate on bank deposits is 10% per year may not seem ambiguous, but we need to know how this rate is composed. Consider the following illustrative example.
In an investment of $ (reais) 100,00 $ The interest rate is compounded annually, that is, one year from now the value of the investment will be,
$$(reais) 100,00 \times 1,1 = (reais) 110,00 $$
Now, suppose the same amount is invested at an interest rate compounded semi-annually. The final value of the investment will be,
$$(reais) 100,00 \times 1,05 \times 1,05 = (reais) 110,25 $$
Therefore, it is important to know the way in which the interest rate is compounded, as for different ways we have different values. Observe the table below and see the final investment value for different frequencies

To generalize the result, suppose that an amount A is invested for n years at rate R per year. The final value of the investment is
$$A(1+R)^n $$
If the rate is compounded m times per year, the final value of the investment is
$$A(1+\frac{R}{m})^{nm} $$
Continuous composition
When m tends to infinity, we say that the rate is of continuous composition. It can be proven that for an investment A, with continuous compounding rate in n years with rate R, increases to
$$Ae^{Rn}$$
where e = 2.71828
17.4 One-period model
In this section, we will present the model of $ 1 $ period. This is the simplest model for pricing options. However, it is fundamental because many of the concepts presented here will be used in more complex models such as, for example, the Black and Scholes model.
In the 1-period market, we will work with two base assets. Consider the set of times $ T=(0,1) $, that is, we only have a starting time and an ending time.
Risk-free asset (Bond)
Be $ B_t $ the time value of the risk-free asset $ t $. We define $ B_t $ how
$$B_t=(1+r)^t\ \ \ \ t\in T$$
The rate $ r $ represents how much the risk-free asset grows in a unit of time.
Risk asset (Share)
Be $ \bar{S}_t $ the time value of the risk asset $ t $. We assume that the price of the risky asset over time $ t=1 $ takes only two values
$$\bar{S}_1/S_0\in (u, d)$$
with respective probabilities
$$\mathbb{P}(\bar{S}_1/S_0=u)=p\ \ \ \mathbb{P}(\bar{S}_1/S_0=d)=1-p,$$
in which $ S_0 $ is the initial share price.
In the one-period model, the risk asset is a random variable over a probability space $ (\Omega, \mathcal{F}, \mathbb{P}) $ which can take on only two values in time $ t=1 $, that is, in one unit of time or the price of the asset rises at a rate $ u $ or a rate drops $ d $.
For this market model to make sense, let’s make the following assumption,
$$d< (1+r)< u.$$
The justification for this assumption is: if e.g. $ (1+r)< d $, it would not make sense to invest in the Bond since no matter how small the share’s yield is, it is still greater than the Bond’s yield.
The objective of this section is to calculate the price and hedging of an option, in particular the price and hedging of a European call option. In order to be able to price and hedge a derivative, we need to know how much it yields at maturity. We call the payoff function the yield of the derivative at maturity time. Next we formally define the payoff function.
Definition 4.1
The payoff function $ C $ of a derivative, is a random variable $ \mathcal{F} $-measurable.
As already presented in the derivatives section, the payoff function for a european call option at maturity time $ t=1 $ is given by
$$C=(\bar{S}_1-K)^{+}$$
Question
The payoff function of the european call option is a random variable that can only take two values. Why to calculate the initial value of the option, we simply do not calculate the average of the random variable $ C_1 $ and discount to present value?
The reason for not using this method is that the average option price directly depends on the probability of the asset’s price rising and falling. Thus, for different probabilities we have different prices for the option. We want an approach that avoids this type of problem and to achieve this objective, the following concepts are fundamental.
In the one-period market, we can work with two assets. Thus, the concept of strategy is necessary.
Definition 4.2
A strategy is a pair $ \phi_t=(\alpha_t, \beta_t) $ such that
- $ \alpha_t $ : represents the amount invested in the action over time $ t $;
- $ \beta_t $: represents the amount invested in the bond over time $ t $.
By investing in these two assets, we are creating a portfolio. A question of interest is knowing the value of the portfolio over time $ t\in T $, which motivates the definition below.
Definition 4.3
Be $ \phi $ a one-period market strategy. The value of the portfolio $ V_0(\phi) $ in time $ t=0 $ is defined by
$$=\alpha_t\bar{S}_t+\beta_tB_t, \ \ \ t\in T$$
(there are missing elements in the equation above)
Given the value of the portfolio and the strategy $ \alpha $, we can obtain the strategy $ \beta $ by
$$\beta_t=\frac{V_t-\alpha_tS_t}{B_t}$$
Definition 4.4
A strategy $ \phi_t = (\alpha_t, \beta_t) $ is self-financing, if

$$=\alpha_{t}\bar{S}_t+\beta_{t}B_t-\alpha_{t-1}\bar{S}_{t-1}-\beta_{t-1}B_{t-1}-\alpha_{t-1}\bar{S}_t+\alpha_{t-1}\bar{S}_t\beta_{t-1}B_t-\beta_{t-1}B_t$$
$$=\alpha_{t-1}\Delta\bar{S}_t+\beta_{t-1}\Delta B_t+\bar{S}_t\Delta\alpha_t+B_t\Delta\beta_t$$
The strategy $ \phi $ is self-financing, if
$$\bar{S}_t\Delta\alpha_t+B_t\Delta\beta_t=0.$$
In other words, a strategy $ \phi $ It is self-financing if there is no investment or withdrawal of money from the portfolio.
We define the discounted portfolio value as
$$=\frac{\bar{V}_t(\phi)}{B_t}$$
(there are missing elements in the equation above)
Proposition 4.1
Be $ \phi $ a self-financing strategy. So
$$V_1(\phi)=V_0(\phi)+\alpha_{t-1}\Delta S_t$$
proof:
$$\Delta V_t(\phi)=V_t(\phi)-V_{t-1}(\phi)=\alpha_tS_t+\beta_t-\alpha_{t-1}S_{t-1}-\beta_{t-1}$$
$$=\alpha_t S_t+\beta_t-\alpha_{t-1}S_{t-1}-\beta_{t-1} -\alpha_{t-1}S_t+\alpha_{t-1}S_t$$
$$=\alpha_{t-1}\Delta S_t + S_t\Delta \alpha_t +\beta_t-\beta_{t-1}$$
As the strategy is self-financing, it is worth
$$S_{t}\Delta \alpha_t + \beta_t-\beta_{t-1}=0,$$
then
$$V_1(\phi)= V_0(\phi) + \alpha_0 (S_1-S_0)$$
$ \square $
Note that the discounted portfolio price depends only on the strategy $ \alpha $ now.
To calculate hedging, let’s assume that there is a self-financing strategy $ \phi $ such that the value of the payoff $ C $ discounted
$$B_t^{-1}C=V_1(\phi)$$
.
Thus, we have the following system of equations
$$B_1^{-1}C_1^u=V_0(\phi)+\alpha_0(S_1^u-S_0)$$
$$B_1^{-1}C_1^d=V_0(\phi)+\alpha_0(S_1^d-S_0)$$
Solving the system of equations in the variable $ \alpha $, we have to
$$\alpha_0=\frac{C_1^u-C_1^d}{\bar{S}_1^u-\bar{S}_1^d}.$$
and
$$V_0(\phi)=B^{-1}_1\left(C^u\frac{1+r-d}{u-d}+C^d\frac{u-1-r}{u-d}\right).$$
If we denote
$$\frac{1+r-d}{u-d}=\hat{p} \ \ \ e \ \ \ \frac{u-1-r}{u-d}= 1-\hat{p},$$
we have
$$V_0(\phi)=B^{-1}_1\left( C^u\hat{p}+C^d(1-\hat{p})\right).$$
If we consider a probability $ \hat{\mathbb{P}} $ in such a way that
$$\hat{\mathbb{P}}(S_1/S_0 = u) = \hat{p} \ \ e \ \ \hat{\mathbb{P}}(S_1/S_0 = d)=1-\hat{p}.$$
So,
$$V_0(\phi)=\mathbb{E}_{\hat{\mathbb{P}}}[B_1^{-1}C].$$
We call the probability $ \hat{\mathbb{P}} $ neutral risk probability.
Price and hedging of the European Call Option
Example 4.1
We assume that the current price of an asset and $ (reais)280 $, and after three months the price of the asset may rise to $ (reais)320 $ or decline to $ (reais)260 $. What is the fair price and hedging for a European Call Option with a maturity time of 3 months, strike price $ K = (reais)280 $ and a 5% interest rate for the three months?
Suppose the investor works with a probability of 80% for the asset’s value to fall and 20% for the asset’s value to rise. With this probability in hand, the final price of the asset $ S_T $ can be seen as a random variable that takes on two values $ S_d = 260; S_u = 320 $ and has a probability function
$$\mathbb{P} (S_T = S_d = 260 ) = 0.8 ~~ \mathbb{P} ( S_T = S_u = 320 ) = 0.2 $$
With this, we have the following payoff function

Thus, the expected value of the payoff function discounted the interest rate is given by
$$ \mathbb{E} [(1+ r)^{-1} C_T] = 0,2 \ast 40 \ast (1,05)^{-1} = 7,62 $$
Obviously, the expected value above depends on the probability associated with the payoff. As mentioned above, this pricing strategy is not convenient for the market. Below, we calculate the strategy and initial price with the results obtained throughout this chapter.
First let’s get the growth rate and the decline rate of the asset
$$u=\frac{320}{280}=1,1428 \ \ \ e \ \ \ d=\frac{260}{280}=0,9285.$$
The value of strategy $ \alpha_0 $ is
$$\alpha_0=\frac{40-0}{320-260}=\frac{2}{3}$$
that is, we need to buy two-thirds of the share.
With the growth rate and the decline rate, we can calculate the risk-neutral probability
$$\hat{p}=\frac{1,05-0,92}{1,1428-0,9285}=0,5666 \ \ e \ \ 1-\hat{p}=\frac{1,1428-1,05}{1,1428-0,9285}=0,4334.$$
The initial price of the european call option is
$$V_0(\phi)= (1,05)^{-1}(40\times 0,5666)=21,59$$
17.5 n-period model
Also known as the Cox-Ross-Rubistein model, this model is a direct extension of the one-period model. In this model, we discretize the interval $ [0,T] $ in $ n $ moments $ 0=t_1< t_2<\dots< t_n=T $ and then we calculate the price and hedging of the derivative at each time $ t_i $ for $ i\in(2,\dots,n) $. Below, we present the composition of the Cox-Ross-Rubistein market.
In the Cox-Ross-Rubistein model, we work with two base assets, they are: a risky asset (Share) and a risk-free asset (Bond).
- Risk-free asset (Bond)
The value at time t of a Bond is given by
$$B_t = (1+r)^t\ \ \ \forall t\in\underline{T}$$
with $ r $ positive constant. Please note that $ B_t $ is deterministic.
- Risk asset (Share)
For every time $ t\in (t_2, t_3,\dots,t_n) $, the share price is a random variable of the form
$$\frac{S_t}{S_{t-1}}\in (u,d)$$
that is, at each instant the price at a rate $ u $ or a rate drops $ d $
with odds
$$\mathbb{P}(S_t=uS_{t-1}|S_{t-1},\dots,S_0)=p\ \ e \ \ \mathbb{P}(S_t=dS_{t-1}|S_{t-1},\dots,S_0)=1-p.$$
The way we define share price dynamics, the process of share price evolution is a binomial tree. The name binomial tree is related to the branches that the share price can take at each time. The image below explains why this process is called a binomial tree.
To proceed, we will need to define what a strategy is.
Definition 5.1
A strategy $ \phi $ is a process composed of two predictable processes $ \alpha_t $ and $ \beta_t $ respectively specified
- $ \alpha_t $ : number of shares owned over time $ [t,t+1) $
- $ \beta_t $: amount invested in a bond in the period $ [t,t+1) $
To calculate the option price, we will use a regressor method, which adjusts the dynamics of the portfolio at the beginning of each period. Thus, we will be able to replicate the payoff in time $ T $.
Definition 5.2
The process of portfolio value over time $ t $ is defined as
$$V_t(\phi)=\alpha_{t-1}S_t+\beta_{t-1}(1+r)$$
Given a fixed maturity $ T $, let’s start the analysis considering the last period, $ [T-1,T] $. Let us assume that the payoff replicating portfolio is established in $ T-1 $ and remains fixed until the time $ T $. In other words, we will establish a strategy $ \phi=(\alpha,\beta) $ at the beginning of the period $ [T-1,T] $ so that the value of the portfolio $ V_T(\phi) $ in time $ T $
$$V_T(\phi)=\alpha_TS_T+\beta_T(1+r)$$
replicate the payoff $ C_T $, that is, $ V_T(\phi)=C_T $.
In this line of reasoning, we have to
$$\alpha_{T-1}S_T+\beta_{T-1}(1+r)=(S_T-K)^{+}$$
From the assumption that $ S_t=uS_{t-1} $ or $ S_t=dS_{t-1} $, we have the system of equations below

17.6 Black and Scholes Model
One way to protect yourself from future risks in the financial market is derivatives. Among derivatives, the option market is one of the most important. Related to an option we have the following questions:
- What is the fair price of an option?
- What is the hedging strategy?
The first problem is of interest to both parties to the contract. The buyer wants to pay as little as possible and the seller wants to receive as much as possible. The second problem is of total interest to the seller of the option: with money in hand, which strategy allows him to have enough money at the expiration of the option to pay the buyer?
In this section, we will work on these problems in the Black and Scholes market. In this market model we have two types of base assets. Risk-free assets (money market account) and risk-bearing assets (shares). In this sense, consider $ B_t $ as the value of the money market account over time $ t $. The money market account price dynamics follows the ordinary differential equation of the form
$$dB_t = rB_t dt \quad \text{e} \quad B_0 = 1$$
which has a unique solution given by
$$B_t = e^{rt}.$$
We can note that the model for the money market account price is deterministic, that is, the price is known for every instant of time. Therefore, there is no risk related to the money market account.
Next, we will model the share price. Consider $ \bar{S}_t $ as the time value of the action $ t $. The share price dynamics follows the stochastic differential equation
$$d\bar{S}_t = \mu \bar{S}_t dt + \sigma \bar{S}_t dW_t$$
such that the initial price is $ S_0 $ and $ W_t $ is the Wiener process (Brownian motion). We also assume that $ \mu $ and $ \sigma $ are known constants. We can note that the term $ \sigma \bar{S}_t dW_t $ it works as noise in the model, that is, it associates uncertainty with the share price at time t, which implies that the final price of the risky asset (share) is unknown. The term $ \mu \bar{S}_t dt $ represents a linear growth in the price of the risky asset. In this case, $ \mu $ is known as the average rate of return and $ \sigma $ is the volatility of the asset.
To guarantee the existence and uniqueness of the solution to the stochastic differential equation for price, we simply note that the functions $ f(t,x)=\mu x $ and $ g(t,x)=\sigma x $ satisfy the Lipschitz and polynomial growth conditions. For more details on the existence and uniqueness of solutions to stochastic differential equations, see Stochastic differential equation.
The next result provides us with an analytical solution to the risky asset stochastic differential equation.
Proposition 6.1
The only process that satisfies the stochastic differential equation for share price is given by
$$\bar{S}_t = S_0\exp\left(\left(\mu -\frac{\sigma^2}{2} \right)t + \sigma W_t\right).$$
The verification of this result can be found in Example 10.5.1 and follows directly from the application of the Itô Formula. In order to simulate the pricing process, we can use the algorithm composed of the steps below.
- We simulate Brownian motion $ W_t $, according to the algorithm presented in Section Brownian Motion.
- We calculate
$$\bar{S}_t = S_0\exp\left(\left(\mu-\frac{\sigma^2}{2}\right)t+\sigma W_t\right).$$
In the following figure, using the values $ S_0 = 100 $, $ \mu = 0,1 $ and $ \sigma = 0,4 $ and the time interval $ [0,1] $ partitioned into equal size intervals $ h = \frac{1}{500} $, we simulated some trajectories for the price process.
(image missing)
Definition 6.1
We say that $ C_T $ is the payoff function associated with a derivative with maturity $ T $ and underlying asset (or, base) $ \bar{S}_t $, if
$$C_T=g(\bar{S}_t, \ \forall \ t\in[0,T]),$$
for some function $ g $.
We say that a payoff function is path independent if $ C_T=g(\bar{S}_T) $, that is, if the payoff depends only on the final instant of the underlying asset. Below we present examples of payoff functions.
Example 6.1
The payoff function of a European call option is given by
$$C_T=(\bar{S}_T-K)^{+}$$
We can note that the payoff of a European call option is independent of the trajectory, as the function $ C_T $ it only depends on the price of the asset at the moment $ T $.
Example 6.2
The payoff function of a barrier type option is given by

The payoff function of a barrier-type option is dependent on the trajectory of the price process of the risky asset, as if for some time $ t\in [0,T] $ the price $ \bar{S}(t) $ exceed the barrier value $ B $ then $ C_T = 0 $.
Next, we present the concepts of trading strategy and self-financing strategy, necessary for calculating the option price.
Definition 6.2
A trading strategy is a pair $ \phi(t)=(\alpha_t,\beta_t) $ of progressively measurable stochastic processes over the probability space $ (\Omega ,\mathcal{F},\mathbb{P}) $, in which
- $ \alpha_t $: represents the amount of risky assets (shares) over time $ t $;
- $ \beta_t $: amount of risk-free assets (money market account) over time $ t $.
From the trading strategy $ \phi $, we will define the investor capital associated with the strategy $ \phi $.
Definition 6.3
Be $ \phi_t=(\alpha_t,\beta_t) $ a trading strategy. We define the process $ V_t(\phi) $ how
$$V_t(\phi)=\alpha_t\bar{S}_t+\beta_tB_t, \quad 0 \leq t \leq T$$
which represents the value of the portfolio composed of the risk asset and the money market account over time $ t $.
Definition 6.4
A trading strategy $ \phi_t=(\alpha_t,\beta_t) $ about the break $ [0, T] $ is self-funding, if the portfolio process satisfies the following equality:
$$V_t(\phi)=V_0(\phi)+\int_0^t\alpha_ud\bar{S}_u+\int_0^t\beta_udB_u$$
To understand the above definition, let’s derive the portfolio process heuristically in the variable $ t $
$$\frac{dV_t(\phi)}{dt}=\alpha_t\frac{d\bar{S}_t}{dt}+\frac{d\alpha_t}{dt}\bar{S}_t+\frac{dB_t}{dt}\beta_t+\frac{d\beta_t}{dt}B_t.$$
The strategy $ \phi $ is self-financing if the condition below is met
$$\frac{d\alpha_t}{dt}\bar{S}_t=-\frac{d\beta_t}{dt}B_t.$$
What the definition is saying is that there is no investment or withdrawal of money from the portfolio process, that is, if we increase the amount invested in the share, we decrease the amount invested in the money market account.
Next, we will verify that there is a probability $ \mathbb{Q} $ which makes the discounted asset price a martingale. It is $ S_t=B^{-1}_t\bar{S}_t $ the process that represents the stock price discounted over time $ t $. Thus, we obtain that
$$\frac{\bar{S}_t}{B_t} = S_0 \exp\left[\left( (\mu-r)-\frac{\sigma}{2}\right)t+\sigma W_t \right].$$
Thus, the stochastic differential equation for the discounted share price is given by:
$$dS_t=(\mu-r)S_tdt+\sigma S_tdW_t.$$
Now define the stochastic process $ W^{*}_t $ how
$$W^{*}_t=W_t+\frac{(\mu-r)}{\sigma}.$$
So, we have to
$$dW^{*}_t=dW_t+\frac{\mu-r}{\sigma}dt.$$
Girsanov’s Theorem guarantees that there is a single probability $ \mathbb{Q} $ given by
$$\mathbb{Q}(A)=\int_A\exp\left(-\frac{\mu-r}{\sigma}dW_t - \frac{(\mu - r)^2}{2\sigma^2}dt \right) d\mathbb{P}$$
such that the stochastic process $ W^{*}_t $ be a martingale about $ \mathbb{Q} $.
So,

and therefore $ S_t $ It’s a martingale under probability $ \mathbb{Q} $.
Lemma 6.1
Consider $ \phi=(\alpha,\beta) $ a self-financing strategy. Define the discounted portfolio process as
$$V^{*}_t(\phi)=B^{-1}_tV_t(\phi).$$
So, the discounted portfolio process is a martingale under the probability $ \mathbb{Q} $, in the form

Demo
Using the integration by parts formula, we have
$$dV_t^{*}(\phi)=V_t(\phi)dB^{-1}_t+B^{-1}_tdV_t(\phi)$$
$$=\left(\alpha_t\bar{S}_t+\beta_tB_t\right)dB^{-1}_t+B^{-1}_t\left(d\bar{S}_t\alpha_t+\beta_tdB_t\right)$$
$$=\alpha_t\left(\bar{S}_tdB^{-1}_t+B^{-1}_td\bar{S}_t\right)+\beta_t\left(B_tdB^{-1}_t+B^{-1}_tdB_t\right).$$
How $ \beta_t\left(B_tdB^{-1}_t+B^{-1}_tdB_t\right) = \beta_td\left(B^{-1}_tB_t\right)=0 $, we have to
$$dV_t^{*}(\phi)=\alpha_t\left(\bar{S}_tdB^{-1}_t+B^{-1}_td\bar{S}_t\right)$$
$$=\alpha_tdS_t,$$
which implies that

Definition 6.5

$$C_TB^{-1}_T = V^{\ast}_T(\phi)=V^{\ast}_0(\phi)+\int_0^T\alpha_udS_u.$$
Now, we will present a fundamental result of the stochastic calculation, which will be extremely important for option pricing. This result is known as the Martingales Representation Theorem.
Theorem 6.1 (Martigales Representation Theorem)

$$X_T=\mathbb{E}[X]+\int_0^T\theta_tdW_t.$$
Theorem 6.2
Be $ C_T $ the payoff function of an option. Suppose $ C_T $ be attainable. Then, the fair price of the option is given by

and its hedging strategy is given by
$$\alpha_t=\frac{\theta_t}{S_t\sigma}$$
in which $ \theta $ is the integrand of the Martingales representation theorem.
Demo
From Lemma 6.1, we have that
$$V^{\ast}_T(\phi) = V^{\ast}_0(\phi) + \int_0^T\alpha_udS_u = V^{\ast}_0(\phi) + \int_0^T\alpha_u\sigma S_udW^{\ast}_u.$$
As, by hypothesis, the payoff is attainable, we have $ V^{\ast}_T(\phi) = C_TB^{-1}_T $ from which it follows that the fair price of the option is $ V^{\ast}_0(\phi) $ and the hedging strategy is given by $ \alpha $. However, as $ C_TB^{-1}_t $ is, by hypothesis $ \mathbb{Q} $-integrable square and $ \mathbb{F} $-measurable, it follows from the Martingales Representation Theorem that there is a single predictable process $ \theta $ such that

$$\alpha_t = \frac{\theta_t}{\sigma S_t}$$
completing the demonstration.
$ \square $
Corollary 6.1
If the function $ C_T \in C^2 $. Then the hedging strategy is given by
$$\alpha_t = \frac{\partial C_t}{\partial S_t} = \frac{\partial V^{\ast}_t(\phi)}{\partial S_t}.$$
Demo
The objective now is to determine the predictable process $ \theta $. Suppose $ V^{\ast}_t(\phi) $ be a continuous function of $ t $ and $ S_t $ and, in addition, that it has continuous partial derivatives up to second order. We remind you that the process of the discounted price of the asset $ S $ is given according to the stochastic differential equation
$$dS_t = S_t\sigma dW^{\ast}_t,$$
Therefore, it is an Itô process. Applying Itô’s formula to the function $ V^{\ast}_t(\phi) $, we have to
$$V^{\ast}_t(\phi) = V^{\ast}_0(\phi) + \int_0^t\sigma S_u\frac{\partial V^{\ast}_u(\phi)}{\partial S_u}dW^{\ast}_u + \int_0^t\left[\frac{\partial V^{\ast}_u(\phi)}{\partial u} + \frac{1}{2}\frac{\partial^2V^{\ast}_u(\phi)}{\partial S^2_u}\sigma^2S^2_u\right]du.$$
But, from Lemma 6.1, we have $ V^{\ast}_t(\phi) = V^{\ast}_0(\phi) + \int_0^t\alpha_u\sigma S_udW^{\ast}_u $, therefore, we have to
$$\theta_t = \sigma S_t\frac{\partial V^{\ast}_u(\phi)}{\partial S_u}$$
and the hedging strategy is given by
$$\alpha_t=\frac{\partial V^{\ast}_t(\phi)}{dS_t},$$
as we wanted to demonstrate.
$ \square $
The method mentioned above consists of finding a probability $ \mathbb{Q} $ so that the stochastic process $ W^{*}(t)=W(t)+\frac{(\mu-r)}{\sigma}t $ be a Brownian motion on $ \mathbb{Q} $, and then calculate the expected value of the payoff discounted on $ \mathbb{Q} $. This method is commonly called the $ \textit{Medida Martingale Equivalente} $.
Example 6.3
Consider a European call option, whose payoff function is given by

In this case, the option price is given by
$$\mathbb{E}_{\mathbb{Q}}\left[C_TB_T^{-1}\right] = S_0\Phi(d_1) - Ke^{-rT}\Phi(d_2)$$
in which
$$d_1 = \frac{\ln\left(\frac{S_0}{K}\right)+\left(r+\frac{\sigma^2}{2}\right)T}{\sigma\sqrt{T}}$$
and
$$d_2 = d_1 - \sigma\sqrt{T}.$$
Furthermore, the hedging strategy, at the initial moment, is given by
$$\alpha_0= \Phi(d_1).$$
In fact, we have to

(there are missing elements in the equation above)
Initially, we will calculate $ \mathbb{J}_2 $.

from which we conclude that
$$\mathbb{J}_2 =\mathbb{Q}\left[ -\sigma W^{\ast}_T\leq\ln \left(\frac{S_0}{K}\right)+\left(r - \frac{\sigma^2}{2}\right)T\right]=\mathbb{Q}\left[ - \frac{W^{\ast}_T}{\sqrt{T}}\leq\frac{\ln \left(\frac{S_0}{K}\right)+\left(r - \frac{\sigma^2}{2}\right)T}{\sigma\sqrt{T}}\right].$$
How $ -\frac{W^{*}_T}{\sqrt{T}} \sim N(0,1) $, we have to
$$\mathbb{J}_2=\Phi\left(\frac{\ln\left(\frac{S_0}{K}\right)+\left(r-\frac{\sigma^2}{2}\right)T}{\sigma\sqrt{T}}\right)$$
in which $ \Phi $ is the cumulative distribution of the normal. In order to calculate $ \mathbb{J}_1 $, it is necessary to make a new probability change. For this, consider
$$\mathbb{Q}^{\ast}(A) = \int_A\exp\left(\sigma W^{*}_T - \frac{\sigma^2}{2} \right) d\mathbb{Q}$$
As before, we have to $ \hat{W}_t=W^{*}_t-\sigma t $ is a $ \mathbb{Q}^{\ast} $-Brownian motion and then

from which we conclude that
$$\mathbb{J}_1=S_0\Phi\left(\frac{\ln{S_0/K}+(r+\frac{\sigma^2}{2})T}{\sigma\sqrt{T}}\right)$$
Therefore the price of a European call option is given by
$$C_0 = S_0\Phi(d_1) - KB^{-1}_T\Phi(d_2),$$
with
$$d_1=\frac{\ln{S_0/K}+(r+\frac{\sigma^2}{2})T}{\sigma\sqrt{T}} \ \ \text{e} \ \ d_2=d_1-\sigma\sqrt{T}.$$
To calculate the hedging strategy at the initial moment, we have to
$$\alpha_0 = \frac{\partial}{\partial S_t}\mathbb{E}_{\mathbb{Q}}\left[(\bar{S}_T-K)^{+}B_T^{-1}\right] = \frac{\partial}{\partial S_t}\left(S_t\Phi(d_1) - Ke^{-rT}\Phi(d_2)\right) = \Phi(d_1) + S_t\Phi^{\prime}(d_1) - Ke^{-rT}\Phi^{\prime}(d_2)$$
whence it follows that
$$\alpha_0 = \Phi(d_1) + S_t\frac{1}{\sqrt{2\pi}}e^{-\frac{d_1^2}{2}}\frac{\partial d_1}{\partial S_0} - Ke^{-rT}\frac{1}{\sqrt{2\pi}}e^{-\frac{d_2^2}{2}}\frac{\partial d_1}{\partial S_0} = \Phi(d_1) + \left(S_t\frac{1}{\sqrt{2\pi}}e^{-\frac{d_1^2}{2}}-Ke^{-rT}\frac{1}{\sqrt{2\pi}}e^{-\frac{d_2^2}{2}}\right)\frac{\partial d_1}{\partial S_0}.$$
However, we have to
$$Ke^{-rT}e^{-\frac{d_2^2}{2}} = Ke^{-rT}e^{-\frac{\left(d_1+\sigma\sqrt{T}\right)^2}{2}}=Ke^{-rT}e^{-\frac{d_1^2}{2}}e^{\sigma\sqrt{T}d_1-\frac{\sigma^2T}{2}} = Ke^{-rT}e^{-\frac{d_1^2}{2}}e^{\ln S_t/K + \left(r+\frac{\sigma^2}{2}\right)T-\frac{\sigma^2T}{2}}$$
and therefore
$$Ke^{-rT}e^{-\frac{d_2^2}{2}} = Ke^{-rT}e^{-\frac{d_1^2}{2}}\frac{S_t}{K}e^{rT} = S_te^{-\frac{d_1^2}{2}}$$
and, therefore, we conclude that $ \alpha_0 = \Phi(d_1) $.
We emphasize that, in a similar way, from a simple translation argument, we can calculate the price of the option $ \mathbb{E}_{\mathbb{Q}}[C_TB_T^{-1}|\mathcal{F_t}] $ and the hedging strategy $ \alpha_t $ at any moment $ 0\leq t \ < \ T $, respectively, by

in which
$$d_1^{ast} = \frac{\ln\left(\ln\frac{S_t}{K}\right)+\left(r+\frac{\sigma^2}{2}\right)(T-t)}{\sigma\sqrt{T-t}} \quad \ \text{e} \ \quad d_2 = d_1 - \sigma\sqrt{T-t}.$$
Black and Scholes Partial Differential Equation
Let us assume that the option price satisfies
$$C_t=v(S_t,t)$$
for some function $\mathbb{R}_{+}\times[0,T]\rightarrow\mathbb{R} $.
(there are missing elements in the equation above)
Definition 6.5
We say that a strategy $ \Gamma_t=(\alpha_t ,\beta_t) $ about the break $ [0,T] $ is self-financing, if the portfolio process $\ V_t(\Gamma) $, defined as
$$V_t(\Gamma)=\alpha_t S_t+\beta_tB_t,\ \ \forall t\in [0,T],$$
satisfies the following condition
$$V_t(\Gamma )=V_0(\Gamma)+\int_0^t\alpha_u dS_u+\int_0^t\beta_udB_u,\ \ \forall t\in [0,T].$$
Let us also assume that the replication strategy $ \Gamma_t $ has the following form.
$$\Gamma_t=(\alpha_t, \beta_t)=(g(S_t,t),h(S_t,t))$$
for $ t\in[0,T] $ and $\mathbb{R}_{+}\times [0,T]\rightarrow\mathbb{R} $ functions.
(there are missing elements in the equation above)
The portfolio process is given by
$$V_t(\Gamma) = g(S_t,t)S_t+h(S_t,t)B_t$$
So
$$dV_t(\Gamma)=g(S_t,t)dS_t+h(S_t,t)dB_t$$
Using the EDE of the share price and the EDO of the money market account, we have
$$dV_t(\Gamma)=g(S_t,t)(\mu S_t dt+\sigma S_t dW_t)+h(S_t,t)rB_t dt$$
$$=g(S_t,t)(\mu S_tdt+\sigma S_tdW_t)+h(S_t,t)rB_tdt+rg(S_t,t)S_tdt-rg(S_t,t)S_tdt$$
$$= (\mu-r)g(S_t,t)S_tdt+\sigma S_tg(S_t,t)dW_t+rv(S_t,t)dt$$
Isolating $ h(S_t,t) $ of $ v(S_t,t)=g(S_t,t)S_t+h(S_t,t)B_t $ we have to
$$\beta_t=h(S_t,t)=B_t^{-1}(v(S_t,t)-g(S_t,t)S_t)$$
Let us assume that the function $ v $ is a function differentiable up to second order and its derivatives are continuous. Thus, we can apply Itô’s formula.

Define the process $ Y_t $ how
$$Y_t = v(S_t,t)-V_t(\Gamma)$$
Combining the differences, we have

$$-((\mu-r)g(S_t,t)S_tdt+\sigma S_tg(S_t,t)dW_t+rv(S_t,t)dt)$$
as the processes are identical, $ Y_t = 0 $ for everyone $ t\in[0,T] $. From the uniqueness of the Doob-Meyer decomposition, we have that
$$\int_0^t\sigma S_u(g(S_u,u)-v_s(S_u,u))dW_u = 0$$
From Itô isometry, the previous equation is equivalent to:
$$\int_0^t\sigma S_u^2(g(S_u,u)-v_s(S_u,u))^2du=0,$$
Since the integrand is positive, we have
$$g(S_t,t) = v_s(S_t,t),\ \ \forall (S_t,t)\in\mathbb{R}_{+}\times[0,T]$$

$$v_t(S_t,t)+\frac{\sigma^2}{2}S_t^2v_{ss}(S_t,t)+rS_tv_s(S_t,t)-rv(S_t,t)$$