scieee AI-readable full text Open interactive document viewer

Best-arm identification using extreme value theory estimates of the CVaR

Troop, Dylan,Godin, Frédéric,Yu, Jia Yuan

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Troop, Dylan; Godin, Frédéric; Yu, Jia Yuan Article Best-arm identification using extreme value theory estimates of the CVaR Journal of Risk and Financial Management Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Troop, Dylan; Godin, Frédéric; Yu, Jia Yuan (2022) : Best-arm identification using extreme value theory estimates of the CVaR, Journal of Risk and Financial Management, ISSN 1911-8074, MDPI, Basel, Vol. 15, Iss. 4, pp. 1-15, https://doi.org/10.3390/jrfm15040172 This Version is available at: https://hdl.handle.net/10419/274694 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/   Citation: Troop, Dylan, Frédéric Godin, and Jia Yuan Yu. 2022. Best-Arm Identification Using Extreme Value Theory Estimates of the CVaR. Journal of Risk and Financial Management 15: 172. https:// doi.org/10.3390/jrfm15040172 Academic Editors: Maciej Augustyniak and Alexandru M. Badescu Received: 16 February 2022 Accepted: 3 April 2022 Published: 8 April 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Journal of Risk and Financial Management Article Best-Arm Identification Using Extreme Value Theory Estimates of the CVaR Dylan Troop 1,*, Frédéric Godin 2and Jia Yuan Yu 1 1Concordia Institute of Information System Engineering, Concordia University, Montréal, QC H3G 1M8, Canada; [email protected] 2Department of Mathematics and Statistics, Concordia University, Montréal, QC H3G 1M8, Canada; [email protected] *Correspondence: dylantr[email protected] Abstract: We consider a risk-aware multi-armed bandit framework with the goal of avoiding catastrophic risk. Such a framework has multiple applications in financial risk management. We introduce a new conditional value-at-risk (CVaR) estimation procedure combining extreme value theory with automated threshold selection by ordered goodness-of-fit tests, and we apply this procedure to a pure exploration best-arm identification problem under a fixed budget. We empirically compare our results with the commonly used sample average estimator of the CVaR, and we show a significant performance improvement when the underlying arm distributions are heavy-tailed. Keywords: sequential decision making; multi-armed bandits; conditional value-at-risk; extreme value theory; heavy-tailed distributions; risk-aware reinforcement learning 1. Introduction In the stochastic multi-armed bandit (MAB) problem, a learning agent is presented with the repeated task of selecting from a number of choices (arms), each providing independent and identically distributed rewards/costs. The agent has no prior knowledge of the underlying arm distributions. Through a combination of exploration and exploitation, the agent attempts to identify the arm with the most favorable reward/cost distribution as quickly as possible; see Lattimore and Szepesvári (2020) for a description of such a setting, which has many applications, such as these detailed in Bouneffouf et al. (2020). In the traditional MAB framework, the most favorable distribution maximizes the expected reward. Recent generalizations of this problem replace the expectation objective with other metrics aimed at measuring risk. For example, Bhat and Prashanth (2019); David et al. (2018); Galichet et al. (2013); Kagrecha et al. (2019); Sani et al. (2012); Torossian et al. (2019); Yu and Nikolova (2013) addressed the MAB problem with a risk-averse (risk-aware) agent. Such a framework is better suited to applications in finance where a risk-reward tradeoff is sought rather than pure profit maximization. Example of applications of risk-aware multi-armed bandits in finance include portfolio optimization as in Hoffman et al. (2011), Shen et al. (2015), Moeini et al. (2016) and Huo and Fu (2017), cryptocurrency investing as in Yu et al. (2018), hedging as in Cannelli et al. (2020) and energy markets trading as in Costa and Oliveira (2008) and Ariffin et al. (2016). Often, the risk measure of interest is the conditional value-at-risk (CVaR). Given a continuous random variable X representing a cost (i.e., where larger values are less desirable), the CVaR at a confidence level α∈( 0, 1 ) measures the expected value of X given that X exceeds the quantile at level α . This quantile is referred to as the value-at-risk (VaR). Compared to the VaR, the CVaR captures more information about the weight of a distribution’s tail, making it a more useful object of study in risk-averse decision making. J. Risk Financial Manag. 2022,15, 172. https://doi.org/10.3390/jrfm15040172 https://www.mdpi.com/journal/jrfm J. Risk Financial Manag. 2022,15, 172 2 of 15 In previous papers on the risk-averse MAB problem, the CVaR is usually estimated by averaging observations above the estimated VaR. When α is close to 1, these observations can be very scarce in small samples, leading to imprecise estimates. This is particularly apparent in heavy-tailed distributions, where extreme events correspond to very large values that are not readily observed. This is in contrast to light-tailed distributions, where similar low probability events are closer to the mean and not as catastrophic. In this paper, we seek to address the CVaR estimation problem described above within the MAB framework, which has applications in any scenario where the primary goal of the agent is to avoid a severely unfavourable outcome, such as financial ruin, patient deaths in clinical trials or the adverse impact of a natural disaster. The MAB problem with heavy-tailed underlying arm distributions has been analyzed in, for example, Bubeck et al. (2013) and Prashanth et al. (2020). As in the latter, we consider the problem of identifying the arm with the lowest CVaR value in a fixed budget (pure exploration) MAB problem. This paper considers the CVaR for single stages at a time, i.e., not the CVaR on aggregates of rewards across various stages. Instead of estimating the CVaR by sample averaging, we consider an alternative estimator based on extreme value theory (EVT), e.g., (McNeil et al. 2005, Section 7.2.3). EVT has numerous applications in risk management (see for instance Embrechts et al. 1999 and Embrechts et al. 2013), and the present work is an attempt to incorporate its benefits to the MAB problem, reinforcement learning and the machine learning literature. By selecting a threshold lower than the VaR, it is possible to approximate the tail distribution of a random variable by using a generalized Pareto distribution (GPD) and extrapolating beyond the available observations. The major difficulty of this approach is the bias-variance tradeoff that results from threshold selection: too high of a threshold results in limited data availability causing high variance, whereas too low of a threshold can cause a large bias between the GPD and true tail distribution. Traditionally, threshold selection methods often rely on the visual inspection of graphical plots and apply to a fixed dataset, making them unsuitable for the online learning framework of the MAB problem. Recently, the work of Bader et al. (2018) presented a solution to threshold selection by automating the process using ordered goodness-of-fit tests. This method has recently shown promising experimental results in VaR estimation, i.e., Zhao et al. (2018), and we propose to use this method in an algorithm for the CVaR in MABs. The main contribution of this paper is the design of a CVaR estimation algorithm that combines the EVT method with automated threshold selection and application of this algorithm in the MAB context. Such an algorithm is crucial (typo) from a practical standpoint since it allows rigorously tackling risk-aware MAB problems requiring avoiding catastrophic risk, a class of problems for which the existing methodologies are ill-adapted due to the scarcity of data related to extreme outcomes. The present paper also bridges the gap between the MAB literature and the extreme value theory one which, to the best of the authors knowledge, have never been previously combined. In our simulation study, this estimation procedure outperformed the commonly used sample average estimator in heavy-tailed distributions. The remainder of this paper is organized as follows. In Section 2, the VaR and CVaR are formally defined, and the sample average estimator of the CVaR is given. Needed background from EVT is discussed, and we introduce approximate formulas for the VaR and CVaR. We present our CVaR estimation procedure using EVT and automated threshold selection in Section 3, and we introduce the risk-averse successive rejects algorithm for best-arm identification in Section 4. Numerical experiments are presented in Section 5, and we conclude in Section 6. J. Risk Financial Manag. 2022,15, 172 3 of 15 2. Preliminaries 2.1. Risk Measures Let X denote a random variable and F its corresponding cumulative distribution function (CDF). In this paper, we adopt the convention that X represents a cost to the agent, and thus larger values of Xare less desirable. Definition 1 (Value-at-Risk).The value-at-risk of X at level α∈(0, 1)is VaRα(X) = inf{x∈R|F(x)≥α}. (1) VaRα(X) is equivalent to the quantile at level α of F . If the inverse of F exists, VaRα(X) = F−1(α) . The VaR can be estimated in the same way as the standard empirical quantile. Let X1 , . . . , Xn be i.i.d. random variables with common CDF F . Denote by X(1,n)≤X(2,n). . . ≤X(n,n) the set of order statistics for the sample of size n , i.e., the sample sorted in non-decreasing order. An estimator for the VaR is d VaRn,α(X) = minnX(i,n)|i=1, . . . , n;ˆ FnX(i,n)≥αo=X(m,n), where ˆ Fn denotes the empirical CDF and m=dαne with dxe denoting the smallest integer greater or equal to x . Such an estimate corresponds to the α -level VaR of the empirical distribution of X based on the sample of size n . We now define the CVaR as in Acerbi and Tasche (2002). Definition 2 (Conditional Value-at-Risk) . The conditional value-at-risk of a continuous random variable X at level α∈(0, 1)is CVaRα(X) = E[X|X≥VaRα(X)] = 1 1−αZ1 αVaRγ(X)dγ. (2) Typical values of α are 0.95, 0.99, 0.999, etc. Without loss of generality, the current work only considers continuous random variables. For simplicity of notation, we refer to CVaRα(X) and VaRα(X) by cα and qα , respectively, for the remainder of this paper. Typically, the CVaR is estimated by averaging observations above d VaRα(X) . This estimator is given by \ CVaRn,α(X) = ∑n i=1Xi1{Xi≥d VaRn,α(X)} ∑n j=11{Xj≥d VaRn,α(X)} , (3) which would coincide with E[Z|Z≥VaRα(Z)] under the assumption that the distribution of Z is the empirical distribution of X . The CVaR risk measure has proven extremely popular in the risk management literature due to its favorable theoretical properties. For instance, it is a coherent risk measure as defined by Artzner et al. (1999), since it satisfies the monotonicity, translation invariance, subadditivity and positive homogeneity properties. The use of Equation (3) can be problematic when the confidence level α is high due to the scarcity of extreme observations. We now provide tools from extreme value theory to address this problem. 2.2. Extreme Value Theory and Heavy Tails Let Fn(x) = P(max(X1 , . . . , Xn)≤x) denote the CDF of the sample maximum. Suppose there exists a sequence of real-valued constants an> 0 and bn , n= 1, 2, . . . , and a nondegenerate CDF Hsuch that lim n→∞Fn(anx+bn)=H(x), (4) for all x , where nondegenerate refers to a distribution not concentrated at a single point. The class of distributions F that satisfy (4) are said to be in the maximum domain of attraction J. Risk Financial Manag. 2022,15, 172 4 of 15 of H, denoted F∈MDA(H) . The Fisher–Tippett–Gnedenko theorem (see De Haan and Ferreira (2006, Theorem 1.1.3)) states that H must then be a generalized extreme value distribution (GEVD), which is given in the following definition. Definition 3 (GEVD) . The generalized extreme value distribution (GEVD) with single parameter ξ∈Rhas the CDF Hξ(x) = (exp−(1+ξx)−1/ξif ξ6=0, exp(−e−x)if ξ=0, over its support, which is [−1/ξ,∞)if ξ>0,(−∞,−1/ξ]if ξ<0or Rif ξ=0. If F∈MDA(H) , then there exists a unique ξ∈R such that H=Hξ . It is important to note that essentially all common continuous distributions used in applications are in MDA (Hξ) for some value of ξ , and this value characterizes the speed of the tail decay. When ξ> 0, then F is a heavy-tailed distribution, which means that moments of order greater than or equal to 1 /ξ do not exist. The tail decreases like a power law, and very large observations can occur with a non-negligible probability. Otherwise, F is light-tailed with a tail with exponential decay ( ξ= 0), or the right endpoint of F is finite ( ξ< 0). If ξ≥ 1, then F has infinite mean, and therefore the true CVaR, Equation (2) , is also infinite. For the remainder of this paper, we assume that the following condition is satisfied. Assumption 1. F∈MDA(Hξ)with ξ∈[0, 1). When F∈MDA(Hξ) , there exists a useful approximation of the distribution of sample extremes above a high threshold. Definition 4 (Excess distribution function) . For a given threshold u>ess inf X , the excess distribution function is defined as Fu(y) = P(X−u≤y|X>u) = F(y+u)−F(u) 1−F(u),y>0. The y -values are referred to as the threshold excesses. Given that X has exceeded some high threshold u , this function represents the probability that X exceeds the threshold by at most y . For large values of u , the Pickands–Balkema–de Haan theorem states that Fu can be well-approximated by the GPD. We recall this theorem now. Theorem 1 (Balkema and De Haan 1974;Pickands III et al. 1975) . Suppose Assumption 1is satisfied. Then, there exists a positive function σ=σ(u)such that lim u→∞sup 0≤y≤∞|Fu(y)−Gξ,σ(y)|=0, (5) where Gξ,σis the CDF of the generalized Pareto distribution, given by Gξ,σ(y) =    1−1+ξy σ−1/ξ,ξ6=0, 1−e−y/σ,ξ=0, (6) over its support, which is [0, ∞)if ξ≥0or [0, −σ/ξ]if ξ<0. Using Theorem 1, it is quite straightforward to derive approximate formulas for the VaR and CVaR using the definition of the excess CDF and Equations (1) and (2) ; for example, see McNeil et al. (2005, Section 7.2.3). J. Risk Financial Manag. 2022,15, 172 5 of 15 Corollary 1 (EVT approximations) . Suppose that Assumption 1is satisfied. Fix u>ess inf X and let σ=σ(u) be a function satisfying Equation (5) . Then, the EVT approximations for the VaR and CVaR at level α>F(u)are given by, respectively, qu,α=(u+σ ξsξ u,α−1,ξ6=0, u+σlog su,α,ξ=0, (7) cu,α=   u+σ 1−ξ1+sξ u,α−1 ξ,ξ6=0, u+σ(log su,α+1),ξ=0, (8) where su,α= (1−F(u))/(1−α). The accuracy of the EVT approximations depends on how high of a threshold is used. When these approximations are used in statistical estimation, a lower threshold is preferable to make use of as much data as possible; however, this can induce a significant bias. In the next section, we introduce our algorithm for estimating the CVaR with the EVT approximations and automated threshold selection. 3. Estimating the CVaR through EVT 3.1. Maximum Likelihood Estimation of the GPD Parameters In this section, we discuss the estimation of cu,α using Corollary 1and the maximum likelihood. This can be done by first selecting a threshold u and then estimating the GPD parameters using the threshold excesses above u . For brevity, we only present the maximum likelihood estimators (MLEs) for ξ6= 0; for the ξ= 0 case, see De Haan and Ferreira (2006, Section 3.4). For an i.i.d. sample X1 , . . . Xn , the threshold excesses are given by {Xi−u|i= 1, . . . , n ; Xi>u} , and we denote them as Y1 , . . . , Yk . Assuming k> 0, the MLEs are obtained by maximizing the approximate log-likelihood function with respect to ξand σ, (ˆ ξ(n) u,ˆ σ(n) u) = arg max ξ,σ k ∑ i=1 log gξ,σ(Yi), (9) where (ξ,σ)∈(−1/2, ∞)×(0, ∞)and gξ,σis the probability density function of the GPD, which, for ξ6=0, is given by gξ,σ(y) = 1 σ1+ξy σ−1/ξ−1 . Based on partial derivatives of the log-pdf with respect to parameters, the resulting maximum likelihood first-order conditions are given by 1 k k ∑ i=1 log1+ξYi σ=ξ,1 k k ∑ i=1 Yi σ+ξYi =1 ξ+1. (10) A closed-form solution to Equation (10) does not exist; however, the MLEs can be obtained numerically through standard software packages, e.g., scipy.stats.genpareto in Python. Using Equation (8) with the MLEs and an appropriate selection of threshold leads to the following estimator of the CVaR. J. Risk Financial Manag. 2022,15, 172 6 of 15 Definition 5 (EVT CVaR estimator) . Suppose that (ˆ ξ(n) u , ˆ σ(n) u) are obtained from the excesses above a chosen threshold u. Then, for α>ˆ Fn(u), an estimator for the CVaR is ˆ c(n) u,α≡u+ˆ σ(n) u 1−ˆ ξ(n) u 1+1 ˆ ξ(n) u 1−ˆ Fn(u) 1−αˆ ξ(n) u −1  , (11) with a similar interpretation based on the second line of Equation (8)when ˆ ξ(n) u=0. Note that estimates (ˆ ξ(n) u , ˆ σ(n) u) exhibit asymptotic bias as explained in Troop et al. (2021). The estimation procedure from the latter paper allowing to remove asymptotic bias could be explored in the context of multi-bandits in subsequent work. 3.2. Choosing the Threshold The selection of a suitable threshold u is a difficult problem that has been well-studied in the EVT literature. For a survey of approaches for setting the threshold, see Scarrott and MacDonald (2012). Many such approaches involve applying judgment to ultimately select a value of u . Typically, sensitivity analyses are performed by altering the threshold values and ensuring results are robust to the choice of u . However, a challenging aspect of threshold selection in the machine learning context of the current paper is that u must be decided automatically. We apply the recently developed method of Bader et al. (2018), which uses a combination of ordered goodness-of-fits tests and a stopping rule to choose the optimal threshold. This method provides some assurance that the excesses above the chosen threshold are sufficiently well-approximated the GPD. The method of Bader et al. (2018) is as follows. Consider a fixed set of thresholds u1<. . . <ul , where, for each ui , we have ki excesses. The sequence of null hypotheses for each respective test i,i=1, . . . , l, is given by H(i) 0: The distribution of the kiexcesses above ui follows the GPD. For each threshold ui , let ˆ θi= ( ˆ ξ(n) ui , ˆ σ(n) ui) denote the MLEs computed from the ki excesses above ui . The Anderson–Darling (AD) test statistic comparing the empirical threshold excesses distribution with the GPD is then calculated. Let y(1)<. . . <y(ki) denote the ordered threshold excesses for test i and apply the transformation z(j)=Gˆ θi(y(j)) , j=1, . . . ki, where Gis from Equation (6). The AD statistic for test iis then A2 i=−ki−1 ki ki ∑ j=1 (2j−1)hlogz(j)+log1−z(ki+1−j)i. (12) Corresponding p -values for each test statistic can then be found by referring to a lookup table (e.g., Choulakian and Stephens 2001) or computed on-the-fly. In the present work, such p-values are obtained with the eva package in R . Using the p -values p1 , . . . , pl calculated for each test, the ForwardStop rule of G’Sell et al. (2016) was used to choose the threshold. This is done by calculating ˆ wF=max w∈I−1 w w ∑ i=1 log(1−pi)≤γ, (13) where γ is a chosen significance parameter and I⊆ { 1, . . . , l} , I6=∅ . Under this rule, the threshold uv is chosen, where v=min{w∈I|w>ˆ wF} . If ˆ wF does exist, then no rejection is made and umin(I) is chosen. If ˆ wF=max(I) , then umax(I) is chosen. The overall CVaR estimation procedure is summarized in Algorithm 1. J. Risk Financial Manag. 2022,15, 172 7 of 15 Remark 1. In the threshold selection procedure of Bader et al. (2018), ˆ wF is given with I={1, . . . , l} ; however, we make the modification that I is an arbitrary index set in view of CVaR estimation: since ˆ c(n) u,α tends to infinity when ˆ ξ(n) u tends to 1, in order to ensure reasonable estimates of the CVaR, we use a cutoff parameter ξmax < 1, where the MLE ˆ ξ(n) ui and corresponding threshold ui are discarded if ˆ ξ(n) ui>ξmax. Remark 2. Instead of choosing the candidate thresholds u1 , . . . , ul directly, it is usually more convenient to choose threshold percentiles q1 , . . . , ql and compute u values via the empirical quantile function, i.e., ui=ˆ F−1 n(qi). Remark 3. It may happen that Algorithm 1fails if I=∅ , in which case no suitable estimates of ξ are found. This is an indication that the underlying data distribution does not satisfy the condition ξ< 1and that the CVaR does not exist. To make Algorithm 1robust, the sample average estimate is used as a fallback when the latter occurs. Algorithm 1: EVT CVaR estimation with automated threshold selection Input: An i.i.d. sample X1, .., Xn. CVaR level α, significance parameter γ, threshold percentiles 0 <q1, . . . , ql<α, cutoff ξmax <1. Output: ˆ c(n) u,αif I6=∅, otherwise return the sample average CVaR estimate using Equation (3) I←∅ for i=1, . . . ldo Set ui=ˆ F−1 n(qi) Compute (ˆ ξ(n) ui,ˆ σ(n) ui)from kithreshold excesses if ˆ ξ(n) ui≤ξmax then Compute A2 iusing Equation (12) Set pito p-value for A2 iusing lookup table I←I∪{i} end end if I6=∅then Set W={w∈I| − 1 w∑w i=1log(1−pi)≤γ} if W6=∅then Compute ˆ wFusing Equation (13) if ˆ wF=max(I)then v=max(I) else v=min{w∈I|w>ˆ wF} end u=uv else u=umin(I) end Compute ˆ c(n) u,αusing Equation (11) end In the next section, we combine Algorithm 1with an algorithm for best-arm identification in the risk-averse MAB framework. 4. Algorithm for Risk-Averse MABs The MAB framework of this paper involves a finite horizon multi-stage decision setting, where an agent makes decisions at stages t= 1, . . . , n . Let { 1, . . . , K} denote a J. Risk Financial Manag. 2022,15, 172 8 of 15 set of arms, which are possible actions that can be taken at each stage. In the risk-averse setting, we consider the outcome of each draw from an arm to be a cost to the agent. Define the K -dimensional random vector Xt≡(Xt 1 , . . . , Xt K) , where Xt j denotes the cost incurred if the arm j is selected at stage t . Vectors X1 , . . . , Xn are assumed to be independent and identically distributed. Therefore, for all arms i= 1, . . . , K , cost variables X1 i , . . . , Xn i are i.i.d. copies of some random variable Xi . Let {F1 , . . . , FK} denote the respective CDFs of X1 , . . . , XK ; these distribution functions are unknown to the agent. Throughout the rest of the paper, it is assumed that each arm’s cost distribution satisfies Assumption 1. The integrability assumption that ξi< 1, i= 1, . . . , K is equivalent to the bounded moment condition often seen when analyzing bandit algorithms under risk criteria in the heavy-tailed domain (e.g., Bhat and Prashanth 2019), which is required for the CVaR to be finite. We consider the problem of identifying the arm with the lowest CVaR value (at a prespecified value of α ) in a fixed budget of n stages, where the CVaR is measured on single stage losses instead of on an aggregate of rewards across various stages. The sequence of selected arms is denoted by a≡(a1 , . . . , an) , where at∈ { 1, . . . , K} . When an arm at is selected at stage t , its associated cost Xt at is observed; however, the costs associated with all other arms {Xt i|i6=at} remain unobserved. Let i∗=arg mini=1,...,KCVaRα(Xi) , i.e., the arm with the lowest CVaR value. At the end of n stages, the bandit algorithm outputs an arm selection ˆ i∗∈ {1, . . . , K}, which is perceived to be optimal by the learning agent. The best-arm identification algorithm we consider is based on the successive rejects (SR) algorithm of Audibert and Bubeck (2010), modified to select the arm with lowest CVaR value as in Prashanth et al. (2020). The novel aspect of the proposed algorithm is it inclusion of the EVT-based estimation of CVaR. The steps of our original algorithm are presented in Algorithm 2. The algorithm proceeds through K− 1 phases, eliminating the arm with the highest estimated CVaR value at each phase. The number of samples taken from each arm at each phase is designed such that the total arm samples does not exceed the given fixed budget n at the end of K− 1 phases. For arms i= 1, . . . , K , we denote CVaR estimates using Algorithm 1by ˆ c(m) u,α(i)(at a sample of size m). Algorithm 2: EVT CVaR-SR algorithm Initialize: A1={1, . . . , K}, logK=1 2+∑K i=21 i,n0=0, nk=l1 logK n−K K+1−km. Output: The single unique element in AK for k=1, . . . K−1do Sample nk−nk−1costs from each arm in Ak. Compute CVaR estimates ˆ c(nk) u,α(i)for each arm iin Akusing Algorithm 1. Set Ak+1=Ak\arg max i∈Ak ˆ c(nk) u,α(i), i.e., remove the arm with the highest CVaR estimate (ties broken arbitrarily). end 5. Numerical Experiments In this section, two estimation methods for the CVaR are compared within a simulation study: the sample average estimator of Equation (3) and the EVT estimator of Algorithm 1, which we denote in this section by CVaR-SA and CVaR-EVT, respectively. First, we consider a pure statistical estimation problem where i.i.d. costs from a single arm are sequentially observed, and the cost distribution CVaR estimates are updated at every stage. This allows evaluating the statistical accuracy of both methods. The second experiment embeds the two respective CVaR estimation methods within the MAB problem of Algorithm 2so as to assess their suitability for sequential action selection. All code to reproduce our results is provided on the following GitHub repository: https://github.com/dtroop/evt-bandits, accessed on 1 April 2022. J. Risk Financial Manag. 2022,15, 172 15 of 15 Cannelli, Loris, Giuseppe Nuti, Marzio Sala, and Oleg Szehr. 2020. Hedging using reinforcement learning: Contextual k -armed bandit versus q-learning. arXiv, arXiv:2007.01623. Choulakian, Vartan, and Michael A. Stephens. 2001. Goodness-of-fit tests for the generalized Pareto distribution. Technometrics 43: 478–84. [CrossRef] Costa, Manuel L., and Fernando S. Oliveira. 2008. A reinforcement learning algorithm for agent-based modeling of investment in electricity markets. Researchgate Net 1–30. Daouia, Abdelaati, Stéphane Girard, and Gilles Stupfler. 2018. Estimation of tail risk based on extreme expectiles. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 80: 263–92. [CrossRef] David, Yahel, Balázs Szörényi, Mohammad Ghavamzadeh, Shie Mannor, and Nahum Shimkin. 2018. PAC bandits with risk constraints. Ppper present at the ISAIM, Fort Lauderdale, FL, USA, January 3–5. De Haan, Laurens, and Ana Ferreira. 2006. Extreme Value Theory: An Introduction. New York: Springer. [CrossRef] Embrechts, Paul, Claudia Klüppelberg, and Thomas Mikosch. 2013. Modelling Extremal Events: For Insurance and Finance. Berlin and Heidelberg: Springer Science & Business Media, vol. 33. Embrechts, Paul, Sidney I. Resnick, and Gennady Samorodnitsky. 1999. Extreme value theory as a risk management tool. North American Actuarial Journal 3: 30–41. [CrossRef] Galichet, Nicolas, Michèle Sebag, and Olivier Teytaud. 2013. Exploration vs. exploitation vs. safety: Risk-aware multi-armed bandits. Paper presented at the fifth Asian Conference on Machine Learning, Canberra, Australia, November 13–15, pp. 245–60. G’Sell, Max Grazier, Stefan Wager, Alexandra Chouldechova, and Robert Tibshirani. 2016. Sequential selection procedures and false discovery rate control. Journal of the Royal Statistical Society Series B 78: 423–44. [CrossRef] Hoffman, Matthew, Eric Brochu, and Nando de Freitas. 2011. Portfolio allocation for bayesian optimization. Paper presented at the UAI, Barcelona, Spain, July 14–17, pp. 327–36. Huo, Xiaoguang, and Feng Fu. 2017. Risk-aware multi-armed bandit problem with application to portfolio selection. Royal Society Open Science 4: 171377. [CrossRef] [PubMed] Kagrecha, Anmol, Jayakrishnan Nair, and Krishna Jagannathan. 2019. Distribution oblivious, risk-aware algorithms for multi-armed bandits with unbounded rewards. In Advances in Neural Information Processing Systems 32. Edited by Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Edward A. Fox and Roman Garnett. Red Hook: Curran Associates, pp. 11272–81. Kumar, Devendra. 2017. The singh–maddala distribution: Properties and estimation. International Journal of System Assurance Engineering and Management 8: 1297–311. [CrossRef] Lattimore, Tor, and Csaba Szepesvári. 2020. Bandit Algorithms. Cambridge: Cambridge University Press. [CrossRef] McNeil, Alexander J., Rüdiger Frey, and Paul Embrechts. 2005. Quantitative Risk Management: Concepts, Techniques and Tools. Princeton: Princeton University Press, vol. 3. Moeini, Mahdi, Oliver Wendt, and Linus Krumrey. 2016. Portfolio optimization by means of a chi-armed bandit algorithm. Paper presented at the Asian Conference on Intelligent Information and Database Systems, Da Nang, Vietnam, March 14–16, pp. 620–29. Norton, Matthew, Valentyn Khokhlov, and Stan Uryasev. 2019. Calculating CVaR and bPOE for Common Probability Distributions With Application to Portfolio Optimization and Density Estimation. Annals of Operations Research 299: 1287—315. [CrossRef] Pickands, James, III. 1975. Statistical inference using extreme order statistics. The Annals of Statistics 3: 119–31. Prashanth, L. A., Krishna Jagannathan, and Ravi Kolla. 2020. Concentration bounds for CVaR estimation: The cases of light-tailed and heavy-tailed distributions. Paper presented at International Conference on Machine Learning, Virtual, July 12–18, pp. 5577–86. Sani, Amir, Alessandro Lazaric, and Rémi Munos. 2012. Risk-aversion in multi-armed bandits. Advances in Neural Information Processing Systems 25: 3275–83. Scarrott, Carl, and Anna MacDonald. 2012. A review of extreme value threshold estimation and uncertainty quantification. REVSTAT– Statistical Journal 10: 33–60. Shen, Weiwei, Jun Wang, Yu-Gang Jiang, and Hongyuan Zha. 2015. Portfolio choices with orthogonal bandit learning. Paper presented at the Twenty-fourth International Joint Conference on Artificial Intelligence, Buenos Aires, Argentina, July 25–31. Torossian, Léonard, Aurélien Garivier, and Victor Picheny. 2019. X-armed bandits: Optimizing quantiles, CVaR and other risks. Paper presented at the Asian Conference on Machine Learning, Nagoya, Japan, November 17–19. Troop, Dylan, Frédéric Godin, and Jia Yuan Yu. 2021. Bias-corrected peaks-over-threshold estimation of the cvar. Paper presented at the Uncertainty in Artificial Intelligence, online, July 27–29, pp. 1809–18. Yu, Jia Yuan, and Evdokia Nikolova. 2013. Sample complexity of risk-averse bandit-arm selection. Paper presented at the IJCAI, Beijing, China, August 3–9, pp. 2576–82. Yu, Xiaotian, Han Shao, Michael R. Lyu, and Irwin King. 2018. Pure exploration of multi-armed bandits with heavy-tailed payoffs. Paper presented at the UAI, Monterey, CA, USA, August 6–10. Zhao, Xu, Weihu Cheng, and Pengyue Zhang. 2018. Extreme tail risk estimation with the generalized Pareto distribution under the peaks-over-threshold framework. Communications in Statistics—Theory and Methods 49: 827–44. [CrossRef]