Parameter estimates for the model in Eq. (1) fitted on daily observations from January 2015 to June 2017.

## Abstract

The goal of this chapter is to present recent developments about Bitcoin1 price modeling and related applications. Precisely, we consider a bivariate model in continuous time to describe the behavior of Bitcoin price and of the investors’ attention on the overall network. The attention index affects Bitcoin price through a suitable dependence on the drift and diffusion coefficients and a possible correlation between the sources of randomness represented by the driving Brownian motions. The model is fitted on historical data of Bitcoin prices, by considering the total trading volume and the Google Search Volume Index as proxies for the attention measure. Moreover, a closed formula is computed for European-style derivatives on Bitcoin. Finally, we discuss two possible extensions of the model. Precisely, we investigate the relation between the correlation parameter and possible bubble effects in the asset price; further, we consider a multivariate framework to represent the special feature of Bitcoin being traded on several exchanges and we discuss conditions to rule out arbitrage opportunities in this setting.

### Keywords

- Bitcoin
- market attention
- arbitrage
- option pricing
- bubbles

## 1. Introduction

Bitcoin is a digital currency built on a peer-to-peer network and on the blockchain, a public ledger where all transactions are recorded and made available to all nodes. Opposite to traditional banking transactions, based on trust for counterparty, Bitcoin relies on cryptography and on a consensus protocol for the network. The entire system is founded on an open source software created in 2009 by a computer scientist known under the pseudonym Satoshi Nakamoto, whose identity is still unknown (see [1]). Hence, Bitcoin is an independent digital currency, not subject to the control of central authorities and without inflation; furthermore, transactions in the network are pseudonymous and irreversible.

Bitcoin and the underlying blockchain technology have gained much attention in the last few years. Research on Bitcoin often deals with cybersecurity and legitimacy issues such as the analysis of double spending possibilities and other cyber-threats; recently, high returns and volatility have attracted research toward the analysis of Bitcoin price efficiency as well as its dynamics (see, among others, [2, 3, 4]). Moreover, many contributions claim that Bitcoin price is driven by attention or sentiment about the Bitcoin system itself; see [5, 6, 7, 8]. Possible driving factors for the sentiment about the Bitcoin system are the volume of Google searches or Wikipedia requests as in [5], or more traditional indicators as the number or volume of transactions, as suggested in [6]. In [9], the author suggests a time series model in order to identify the dynamic relation between speculation activity and price.

In this chapter, after having introduced the basic concepts underlying Bitcoin, we sum up and describe to a broader audience the recent outcomes of the research reported in [10], by avoiding unnecessary technicalities. Some new insights are also given by looking at possible extensions in order to take into account the presence of bubble effects or the special feature of Bitcoin being traded in different online platforms (exchanges) that will be further investigated in our future research.

## 2. The Bitcoin network

We recall that Bitcoin was first introduced as an electronic payment system between peers by Satoshi Nakamoto (pseudonym) in [1]. Opposite to traditional transactions, which are based on the trust in financial intermediaries, this system relies on the network, on the fixed rules and on cryptography. Bitcoins can be purchased on appropriate websites that allow to change usual currencies in the cryptocurrency.

The Bitcoin network has several attractive properties for its users:

No central bank authority for money supply and no regulator;

Transactions are 24/7 and without any country border;

Transaction cost are almost negligible with respect to traded amount;

Transaction are anonymous;

The security of each transaction is guaranteed by cryptography and digital signature;

The security of the whole network is guaranteed by construction unless more than 50% of the network nodes agree on a deceptive action.

As a digital payment system, Bitcoins may be used to pay for several online services and goods. Special applications have been designed for smartphones and tablets for transactions in Bitcoins and some ATMs have appeared all over the world (see Coin ATM radar) to change traditional currencies in Bitcoins. Accepting Bitcoins as a payment method is also related to an advertisement opportunity for companies. However, the high returns achieved in the last few years have transformed Bitcoin in a speculative asset affecting its use as a form of payment.

The Bitcoin system has been subject to many cracks but has proven to be very resilient as the value of the cryptocurrency was able to rise again after all the falls. Nevertheless, at the time of writing, Bitcoin was experiencing a fall in its exchange rate with main fiat currencies.

Two of the main crackdowns were China enforcement in December 2013 and Mt. Gox bankruptcy in February 2014.

Besides technical and regulation issues, the Bitcoin system also faces reputational concerns.

In fact, the ambiguity of anonymous transactions has blamed the network of allowing several criminal activities such as buying illegal goods, money laundering or the financing of terrorism actions. As a representative example, we recall that *The Silk Road* was a website that started selling narcotics and illegal drugs in 2011, payable in Bitcoins. The website was finally shutdown by 2013 and the owner was arrested and sentenced to life in prison. Again, anonymous transactions make it possible to use huge quantities of money, exchanged in Bitcoins, without declaring its origin, hence allowing for possible money laundering. However, according to a research performed by the UK government, the highest score related to money laundering is still cash, followed by the bank, accountancy and legal service providers (see

It is worth noticing that while counterparties are represented by secret addresses and are anonymous, all transactions are recorded and might be traced. Investigation is hence favored by this feature of the network.

Despite the flaws in the system, Bitcoin has achieved a notwithstanding rise in recent years.

In Figure 1, we report Bitcoin price and returns from January 2012 to December 2017 (source

## 3. An attention-based model

The model we suggest in what follows is motivated by findings in [5, 6, 8, 11] where it is showed that Bitcoin price is related to investors’ attention measured by the trading volume and/or the number of searches in engines such as Google and Wikipedia. Bitcoin is treated as a financial stock as suggested in [12] and the suggested model may be applied in principle to other assets that are proven to depend on market attention.

### 3.1. The model specification

Consider a probability space

Let us denote the Bitcoin price process as

where

It is well known that the above dynamics for the attention factor is a geometric Brownian motion, the solution of which is given by

### 3.2. Statistical properties and model fitting

We collect in this subsection the properties of the logarithmic returns obtained by the price process defined in Eq. (1).

Consider the discrete process

Theorem 2.1. *The random vector* *, given* *, is normally distributed with mean* *and covariance matrix* *where*

*Proof*. In order to prove the theorem it suffices to remind that, for i = 1, 2, …, n, the random variable

As for the unconditional distribution, it is easy to obtain, for

where

Proposition 2.2. The joint probability density of the vector

where

The proof follows from Bayes’ rule and application of Theorem 2.1.

It is worth to remark that the probability density

Precisely, we have that

We apply the outcomes above in order to estimate model parameters according to the maximum-likelihood method (see for example [14, 15]) where the likelihood is approximated by applying the Levy approximation [13].

Parameter estimates are obtained as

where

### 3.3. Empirical application on Bitcoin prices

The first step in our procedure is to identify possible measures of investors’ attention. As already mentioned in the introduction, we consider the total trading volume on Bitcoin available from

The trading volume of exchange is a classical measure of the attractiveness of a traded asset for an investor; besides, in [16], the authors find evidence that the latter captures the attention of retail/uniformed investors.

We consider daily data from January 1, 2015, to June 30, 2017, for the total volume and the SVI Index. As for the daily value of the Bitcoin, we have considered the average mean across main exchanges represented by the Index in

In Table 1, the outcomes for parameter estimates, obtained by maximizing the approximate likelihood given the observed time series, are summed up.

A = Vol | 0.9571 | 1.1346 | 0.0218 | 0.0829 |

A = SVI | 1.3584 | 1.0687 | 0.0743 | 0.1559 |

## 4. A closed formula for Bitcoin option prices

In this section, we show how to characterize the price of European call options on Bitcoins in the underlying market model. Let us fix a finite time horizon

where

**Lemma 3.1.** *Every equivalent martingale measure* *for* *is characterized by its density process with respect to the initial probability measure* *as follows:*

*where* *is an* *-adapted process such that* *-a.s*.

The proof can be deduced from that of Lemma 1.4 in [10], where they also account for a possible delay between the attention factor and its effect on Bitcoin prices trend. The process *pricing measure*) under which the discounted traded assets are martingales and to compute option prices via expectation under this measure via risk-neutral evaluation formulas. One simple example of a candidate equivalent martingale measure is the so-called *minimal martingale measure* (see [17, 18]), which minimizes the relative entropy, of the objective measure

is an

Equivalently, we can write the discounted Bitcoin price process

Clearly, under the minimal martingale measure

where

**Remark 3.2.** *Note that, under any equivalent martingale measure that keeps the drift of the attention factor dynamics linear in* *(in particular, under the minimal martingale measure), the model proposed in* [10] *nests the Hull-White stochastic volatility model, which corresponds to the particular case where* *; see* [19]*. Indeed, the authors only referred to a risk-neutral framework without describing the dynamics under the physical measure and consequently characterizing the existence of any equivalent martingale measure.*

Now, we compute the fair price of a Bitcoin European call option via the risk-neutral evaluation approach, so it can be expressed as expected value of the terminal payoff under the selected pricing measure, that is, the minimal martingale measure. Let *CT* = (*ST* − *K*)^{+} be the

where

and

Here,

The following result provides the risk-neutral price of the option under the minimal martingale measure

**Proposition 3.3**. *The risk-neutral price* *at time* *of a European call option written on the Bitcoin with price* *expiring in* *and with strike price* *is given by the formula*

*where the function* *is defined in* Eq. (15)*; the functions* *are, respectively, given in* Eqs. (16)*-*(17)*; and* *denotes the density function of* *, for each* *, provided that it exists.*

Hence, the resulting risk-neutral pricing formula when evaluated in

### 4.1. A numerical application

In order to appreciate the performance of the pricing formula in Eq. (19), we compute model prices for option traded on the online platform

T-K | Market bid | Market ask | Model volume | Model Google SVI | Benchmark BS |
---|---|---|---|---|---|

Aug-2200 | 0.1662 | 0.2318 | 0.2029 | 0.2282 | 0.1967 |

Aug-2300 | 0.1670 | 0.2072 | 0.1737 | 0.2032 | 0.1655 |

Aug-2400 | 0.1390 | 0.1845 | 0.1469 | 0.1802 | 0.1369 |

Aug-2500 | 0.1142 | 0.1638 | 0.1228 | 0.1591 | 0.1112 |

Aug-2600 | 0.0922 | 0.1376 | 0.1014 | 0.1399 | 0.0887 |

Aug-2700 | 0.0749 | 0.1202 | 0.0828 | 0.1226 | 0.0695 |

Aug-2800 | 0.0572 | 0.1047 | 0.0684 | 0.107 | 0.0535 |

Aug-2900 | 0.0442 | 0.0983 | 0.0549 | 0.0931 | 0.0405 |

Sept-2200 | 0.1991 | 0.2648 | 0.2546 | 0.3204 | 0.2173 |

Sept-2300 | 0.1766 | 0.2432 | 0.2321 | 0.3019 | 0.1906 |

Sept-2400 | 0.1890 | 0.2230 | 0.2113 | 0.2844 | 0.1662 |

Sept-2500 | 0.1375 | 0.2042 | 0.1919 | 0.2679 | 0.1439 |

Sept-2600 | 0.1207 | 0.1828 | 0.1741 | 0.2523 | 0.1239 |

Sept-2700 | 0.1120 | 0.1668 | 0.1576 | 0.2377 | 0.1060 |

Sept-2800 | 0.0953 | 0.1504 | 0.1463 | 0.2239 | 0.0903 |

Sept-2900 | 0.0848 | 0.1422 | 0.1325 | 0.2109 | 0.0764 |

## 5. The presence of model stock bubbles

Motivated by empirical evidences (see for example [21, 22]), we discuss a generalization of the model introduced in Section 3.1, which is capable to describe speculative bubbles in Bitcoin markets.

Precisely, we fix a finite time horizon

Without loss of generality, we assume that the interest rate is fixed and equal to zero. In this setting, the discounted Bitcoin price trend and the market attention factor dynamics are described by

where we have set

By simulating trajectories for the asset price

Indeed, we will show formally that the possibility of Bitcoin speculative bubbles is related to the sign of the correlation parameter

The mathematical theory of financial bubbles is developed, among others, in [23, 24, 25]. Precisely, we introduce the following definition from [23].

**Definition 4.1.** *The Bitcoin price process* *has a bubble on the time interval* *if* *is a strict* *-local martingale under the chosen risk-neutral measure.*

The term strict

Recall that the absence of arbitrage opportunities is “essentially” equivalent to the existence of a probability measure

**Remark 4.2.** *Note that stock bubbles arise if* *has an equivalent local martingale measure but not an equivalent martingale measure. Arbitrage appears only if no equivalent local martingale measure exists.*

Then, to exclude arbitrage opportunities from the market, we define the process

where

To ensure that

and we can consider the corresponding family of equivalent (local) martingale measures

where the

Now, suppose that the risk perception process is zero, that is,

is a true

**Proposition 4.3.** *In the model outlined in* Eq. (24)*, the Bitcoin price process* *has a bubble on* *if and only if*

The proof is based on the application of some of Sin’s results given in [27], where the existence of risk-neutral measures for the Hull-White stochastic volatility model [19] and for similar frameworks is determined by the possibility of explosion in finite time for solutions of certain auxiliary stochastic differential equations. Precisely, it is possible to show that the martingale property of the discounted stock price

## 6. Toward a multiexchange generalization

Let us generalize the model introduced in Eq. (1) by assuming a possible delay

where

Analogous results as those in Section 2 can be derived by similar computations, and model parameters, for a fixed delay, can be estimated by means of the maximum likelihood method. In order to estimate the delay parameter, we maximize the profile likelihood as defined in [15]. Details of this procedure can be found in [10]. The estimation results of model in Eq. (27) on the same daily data considered in Section 2 are summed up in Table 3.

A = Vol | 1 day | 0.4881 | 1.0459 | 0.0282 | 0.0924 |

A = SVI | 7 days | 1.0964 | 0.9946 | 0.1005 | 0.1885 |

In Figure 3, we plot simulated trajectories of the price process in Eq. (27) by letting the delay parameter vary.

The different delays result in a shift to the south-east between the faster and slower reacting trajectories; in the picture, this behavior is sharp since the other model parameters are kept constant. By looking at the picture, the idea to model the price of Bitcoin in different exchanges by the same model in Eq. (27) but allowing different parameters naturally arises.

In particular, considering for instance two exchanges, we have

where *i =* 1, 2 are constant parameters.

Note that within this model, prices for Bitcoin traded in different exchanges are perfectly correlated. Indeed, this is what happens in observed data; considering daily prices from January 2015 to June 2017 for Bitstamp, Kraken, Cex.io, Gdax, and The Rock exchanges we get cross-correlation values larger than 0.999.

We fit model in Eq. (28) for the Bitstamp and Gdax exchanges on daily observations of Bitcoin price from January 2015 to June 2017 obtaining the outcomes reported in Table 4, when the attention is measured by the trading volume, and in Table 5, when attention is measured by the Google SVI index.

Exchange | |||||
---|---|---|---|---|---|

Bitstamp | 1 | 0.4994 | 1.0461 | 0.0281 | 0.0896 |

Gdax | 2 | 0.4997 | 1.0420 | 0.0326 | 0.1036 |

Exchange | |||||
---|---|---|---|---|---|

Bitstamp | 7 days | 1.0934 | 0.9946 | 0.0992 | 0.1782 |

Gdax | 7 days | 1.0964 | 0.9946 | 0.1160 | 0.2087 |

It is evident from the outcomes in Table 4 that the model parameters are not significantly different while the delay might be quite different as if the reaction to the attention factor is faster for some exchanges and slower for others. On the contrary, when attention is measured by the Google SVI Index, the delay is unchanged, but the difference between estimated parameters for the price dynamics is nonnegligible.

By analyzing the outcomes and considering the shift effect as depicted in Figure 3, it is tempting to conjecture that the faster reaction determines the leader exchanges and that the slower exchange will then follow. If we could forecast that the next day price of the slower exchange will reach the price today for the faster one, we could obtain a profit by suitably investing in the two exchanges. However, it is worth noticing that the estimation of the delay parameter is obtained by maximizing the likelihood over a whole time series and is a product of averaging so arbitrage cannot be achieved in a direct way.

Nevertheless, in a multivariate setting as ours, the theory guarantees that arbitrage opportunities are ruled out if the market price of risk in the market is unique. Without entering technical details and assuming

It is evident that these values are not equal if we plug parameter estimates in Eq. (30); hence, arbitrage opportunities are not ruled out at least from a theoretical point of view. We will address this issue more precisely in future research.

## 7. Conclusion

In this chapter, we have introduced a model in continuous time in order to describe the dynamics of Bitcoin price depending on an exogenous stochastic factor, which represents market attention on the Bitcoin system. Market attention is measured either by the total trading volume in Bitcoins or by means of the Google Search Volume Index, which, as suggested in [16], is a direct measure of the revealed attention for uniformed retail investors. More precisely, the attention factor affects directly the instantaneous mean and volatility of logarithmic returns; in addition, it may be also correlated with the price changes. An estimation procedure to fit the model to observed data is also suggested and, under the assumption of no correlation, a closed formula for standard European option prices on Bitcoin is provided.

By applying outcomes within the mathematical theory of bubbles [23, 24, 25, 27], we are able to show that Bitcoin boosts in a bubble if and only if there is a positive correlation between changes in the price and in the attention factor. This finding is reasonable and claims that a stronger positive dependence between the two processes in Eq. (21) may result in an explosion of the price process.

Finally, we allow for a delay on the effect of market attention on the Bitcoin price, and, based on this generalized model, we introduce a multivariate setting for our model (Eq. (28)) in order to take into account the special feature of multiple exchanges where it is possible to trade in Bitcoins. Preliminary results indicate that arbitrage opportunities may arise in two exchanges that are characterized by different delays.

## Acknowledgments

We gratefully acknowledge Marco Patacca for having provided the routines in Matlab® to develop the empirical sections of the paper and for useful suggestions and comments. We also acknowledge funding from Fondazione Cassa di Risparmio di Perugia (Grant 2015:0459013) and Bank of Italy (Grant 407660/16).

## Conflict of interest

The authors declare no conflict of interest.

## Thanks

Gianna Figà-Talamanca gratefully acknowledges interesting discussions on the topic of this chapter with colleagues of the Department of Finance and Risk Engineering where she was visiting professor while preparing this research. The authors also wish to thank Stefano Bistarelli for having introduced them to the intriguing and worth to explore world of cryptocurrencies.

## Notes

- We use the following rule throughout the paper: the term BitCoin refers to the whole system network while Bitcoin refers to the digital currency.