instruction
stringlengths
15
26.1k
Since you are looking to BUY a bond, can I assume your existing position that your are trying to hedge is a SHORT credit risk of an entity? Assuming you are SHORT the credit risk of an entity, I outline 2 scenarios: (A) You are SHORT the bonds If you are SHORT the bonds, why not just BUY the bonds back? Th...
Since you are looking to BUY a bond, can I assume your existing position that your are trying to hedge is a SHORT credit risk of an entity? Assuming you are SHORT the credit risk of an entity, I outline 2 scenarios: (A) You are SHORT the bonds If you are SHORT the bonds, why not just BUY the bonds back? Th...
Since you are looking to BUY a bond, can I assume your existing position that your are trying to hedge is a SHORT credit risk of an entity? Assuming you are SHORT the credit risk of an entity, I outline 2 scenarios: (A) You are SHORT the bonds If you are SHORT the bonds, why not just BUY the bonds back? Th...
I am working through the Brigo/Mercurio book on Interest Rate Models (Second Edition) and I am having some trouble with the change of numeraire in chapter 3.2.1, page 59 to be exact, formula 3.9. It is about the Vasicek model with dynamic $dr(t) = k[\theta -r(t)]dt + \sigma dW(t)$ and $P(t,T) = A(t,T) exp(-B(t,T)r(t))$...
I am reading "volatility trading" by Euan Sinclair. In the derivation of BSM process in Chapter 1, formula 1.2 confused me. [![This is the scriptshot][1]][1] [1]: https://i.stack.imgur.com/5DC6F.jpg It means that the value change of a heaged call position (1 Call $C_t$ and $\Delta$ short stocks.) the la...
I am working on a project to build an implied volatility curve for SPX options. But I am stuck with finding interest rate and dividend rate data for all maturity. Any recommended resources? Thanks!
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - dY (t) = Y (t)(r(t)dt + η(t)dW (t)) Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dim...
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - dY (t) = Y (t)(r(t)dt + η(t)dW (t)) Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dim...
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - $dY(t) = Y(t)(r(t)dt + η(t)dW(t))$ Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dime...
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - $dY(t) = Y(t)(r(t)dt + η(t)dW(t))$ Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dime...
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - $dY(t) = Y(t)(r(t)dt + η(t)dW(t))$ Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dime...
I am looking to find an expression for the standard deviation log returns of a stock price process. I have a stock price which follows the following dynamics: - $dY(t) = Y(t)(r(t)dt + η(t)dW(t))$ Here, W (t) is a two–dimensional vector–valued Brownian motion with independent components and η(t) is a two–dime...
Why do exchanges apply a fixed interest rate as part of the funding rate for perpetual futures?
I am reading "Volatility Trading" by Euan Sinclair. In the derivation of BSM process in Chapter 1, formula 1.2 confused me. [![This is the scriptshot][1]][1] [1]: https://i.stack.imgur.com/5DC6F.jpg It means that the value change of a hedged call position (1 Call $C_t$ and $\Delta$ short stocks). The la...
I am working on a project to build an implied volatility curve for SPX options. But I am stuck with finding interest rate and dividend rate data for all maturities. Any recommended resources? Thanks!
I see that Libor $L(t,S,T)$ is a martingale under $T-$forward measure. Where we used argument that zero-coupon bonds are martingales under $T$-forward measure, as zero-coupon bond is a traded security. We also have arguments that "money account discounted no divident, tradable security is martingale under risk neutr...
Money account discounted libor rate is it a martingale under risk neutral measure?
I want to understand conceptually the expected effect of the number of monitoring points used during the average calculation on Asian options pricing and the reason of such effect. Asian Options depend on the average of the underlying stock price. The average can be computed with all the available stock prices, or o...
I am looking at pricing VIX options and futures using Monte Carlo simulation. Most papers recognise that VIX can be written in terms of the S&P500 index itself, namely as: $$ VIX_t = \sqrt{-\frac{2}{\Delta}\mathbb{E}^{\mathbb{Q}}\Big[\ln \frac{S_{t+\Delta}}{S_t}\Big | \mathcal{F}_t \Big]}, $$ if we disregard in...
I am trying to decompose option prices into various greeks and trying to see if I can recover option prices from various of its greeks. At the start of certain time `t(0)`, I calculate option option `delta`, `vega`, `gamma`. Now, I have the underlying prices and option prices at every second sampled from a tick da...
In Basel III, FRTB SA includes different market risk capital requirements for interest rate (GIRR) and credit spread risk (CSR) exposures. These are different risks, as credit spreads and risk-free rates can change independently. As to the first approximation for those risks - delta - sensitivities are PV01 and CS01...
In Basel III, FRTB SA includes different market risk capital requirements for interest rate (GIRR) and credit spread risk (CSR) exposures. These are different risks, as credit spreads and risk-free rates can change independently. As to the first approximation for those risks - delta - sensitivities are PV01 and CS01...
In volatile markets only a small number of factor are sufficient for factor based statistical arbitrage to work well. This is an empirical observation. Why would this be? Have others noticed it as well?
When the market is volatile, relatively fewer factors suffice for a productive stat -arb signal. Have you noticed it, and why would that be?
Can anyone guide me to links or literature regarding onshore vs offshore curve construction? What kind of instruments do you use? for example CNH, or BRL... Thanks!
I realize that this question may be verging on asking for the proprietary/"secret", so if suggestion of a general approach that doesn't divulge details isn't really possible, I understand. From what I've seen of the literature, the usual approach to profiting off of modeling options seems to be of a sell-side/market...
Is there a general approach to predicting future (vanilla) option prices in practice?
In Basel III, [FRTB SA][1] includes different market risk capital requirements for interest rate (GIRR §21.19) and credit spread risk (CSR §21.20) exposures. These are different risks, as credit spreads and risk-free rates can change independently. As to the first approximation for those risks - delta - sensitivitie...
I was just wondering whether it was possible for long payer swaps to have a negative dv01 and vice versa for a short payer to have a positive dv01? Intuitively by definition of payers and receivers I didnt think this was possible, but I was recently pricing some payers/receivers on Bloomberg and saw that this was in fa...
I was just wondering whether it was possible for long payer swaps to have a negative dv01 and vice versa for a short payer to have a positive dv01? Intuitively by definition of payers and receivers I didnt think this was possible, but I was recently pricing some payers/receivers on Bloomberg and saw that this was in fa...
A formula for computing the discount margin of a floater is provided in this [answer][1]. However, no precise definition or formula is provided for $L_{\operatorname{stub}}$. I believe that on the Bloomberg YAS page this is the Index To (next coupon date) and that it is an interpolated rate. But which LIBOR rates (matu...
A formula for computing the discount margin of a floater is provided in an image displayed in this [answer][1] as well as below. However, no precise definition or formula is provided for $L_{\operatorname{stub}}$. I believe that on the Bloomberg YAS page this is the Index To (next coupon date) and that it is an interpo...
Can anyone guide me to links or literature regarding onshore vs offshore curve construction? What kind of instruments do you use? Take for CNH (offshore) (vs) CNY (onshore curves) for example: For CNY onshore curves, when are the curves used for what products? Also, what are the instruments used under what colla...
We see in the market that a implied volatility surface is not flat. Based on this observation different models were developed to capture the structure, e.g. CEV / SABR. A measure often used for the skew is a risk reversal, i.e. $$\sigma_{25,c}-\sigma_{25,p}$$ and butterfly $$\frac{\sigma_{25,c}+\sigma_{25,...
A formula for computing the discount margin of a floater is provided in an image displayed in this [answer][1] as well as below. The image below comes from page 14 of the paper "[Credit Spreads Explained](http://www.sfu.ca/~rjones/bus864/readings/OKane_2004_CreditSpreadsExplained.pdf)" by O'Kane and Sen in 2004. How...
Fix $T > 0$ a finite time horizon. Let $H$ be an adapted (or progressively measurable, if needed) continuous process and S be a continuous semi martingale, both on $[0,T]$. Under what conditions is the stochastic integral $H \cdot X$ a martingale ? For example is it enough to ask that \begin{equation} \Bbb{E}[\int_...
How can I compute the derivative of the payoff function for an American put option? In the paper ["Smoking adjoints: fast Monte Carlo Greeks" by Giles and Glasserman (2006)][1] they compare two methods to calculate pathwise derivatives: 1. Forward method 2. Adjoint method Both of these methods requires the...
I have learnt that the Sharpe ratio is a measure of the annualized return rate mean over the annualised standard deviation of return rate distribution. I also learnt that when compounding, the mean of the return rate distribution does not correspond to the overall return rate at the end of the test period (the classic...
Why isn't the Sharpe Ratio computed on the cumulative return rather than return mean?
From what I understand, orders in some dark pools are typically matched at the midpoint price, and often prioritized in size, price, time. Given the aforementioned criteria, consider the following dark pool orderbook... | Buy Qty | Buy Px | Sell Px | Sell Qty | | --------|--------|----------|-----------| | 20...
I am trying to evaluate the present value of some cashflows and QuantLib does not return the discount factors that I am expecting. I have a Risk Free (Zero Coupon Bond) Yield curve: ``` import QuantLib as ql dates = [Date(1,12,2022), Date(2,12,2022), Date(1,1,2023), Date(1,2,2023), Date(1,3,2023), Date(1,4,20...
From what I understand, orders in some dark pools are typically matched at the midpoint price, and often prioritized in size, price, time. Given the aforementioned criteria, consider the following dark pool orderbook... | Buy Qty | Buy Px | Sell Px | Sell Qty | | --------|--------|----------|-----------| | 20...
From what I understand, orders in some dark pools are typically matched at the midpoint price, and matching prioritized in size, price, time. Given the aforementioned criteria, consider the following dark pool orderbook... | Buy Qty | Buy Px | Sell Px | Sell Qty | | --------|--------|----------|-----------| |...
From what I understand, orders in some dark pools are typically matched at the midpoint price, and matching prioritized in size, price, time. Market orders execute at the midpoint. Limit orders execute at the midpoint only if the midpoint is equal to or better than the specified limit price. Given the aforeme...
I'm new to quantitative finance and interested in performing a PCA on the implied volatility surface. However, my dataset displays certain point changes over time. As a result, I need to interpolate the data to obtain fixed points on the surface with fixed moneyness and maturity. How do I do this for each calendar day ...
If I am testing a trend-following strategy, should I detrend the data before applying the rules or should I generate signals based on the original price series but use detrended data? If I use a trend-following strategy with detrended data, it may not generate signals as it would with real price series.
If I am testing a trend-following strategy, should I detrend the data before applying the rules or should I generate signals based on the original price series but use detrended data for performance evaluation ? If I use a trend-following strategy with detrended data, it may not generate signals as it would with real p...
From what I understand, orders in some dark pools are typically matched at the midpoint price, and matching prioritized in size, price, time. Market orders execute at the midpoint. Limit orders execute at the midpoint only if the midpoint is equal to or better than the specified limit price. Given the aforeme...
I was wondering why ```RangeAccrualFloatersCoupon``` is not accessible through SWIG QuantLib. I am currently using QuantLib python. Can anyone help ? Regards.
I am trying to decompose option prices into various greeks and trying to see if I can recover option prices from various of its greeks. At the start of certain time `t(0)`, I calculate option option `delta`, `vega`, `gamma`. Now, I have the underlying prices and option prices at every second sampled from a tick da...
Are there errata in the Brigos's text of Interest Rate Models in chapter 16 when it is defined the YYIIS payoff? In formula (16.3) is defined Party A's payoff as: \begin{align} \\ N\psi_i\left[\frac{I\left(T_i\right)}{I\left(T_{i-1}\right)}-1\right] \\ \end{align} Where $\psi_i$ is the floating-leg year fract...
If the discounted price of any asset is a martingale under risk neutral measure, why is E_Q[e^-rT (ST-K)^+ | Ft] not merely e^-rt (St-K)+?
Are there errata in the Brigos's text of Interest Rate Models in chapter 16 when it is defined the YYIIS payoff? In formula (16.3) is defined Party A's payoff as: \begin{align} \\ N\psi_i\left[\frac{I\left(T_i\right)}{I\left(T_{i-1}\right)}-1\right] \\ \end{align} Where $\psi_i$ is the floating-leg year fract...
If the discounted price of any asset is a martingale under risk neutral measure, why is $E^Q[e^{-rT} (S_T-K)_+ | F_t]$ not merely $e^{-rt} (S_t-K)_+$?
$$\frac{dX_t}{X_t}=\alpha\frac{dS_t}{S_t}+(1-\alpha)\frac{dS^0_t}{S^0_t}$$ where $\alpha$ is proportion of the investment in the risky asset $S_t$ , and $S^0_t$ is the risk-free asset. $S_t$ follows a geometric Brownian motion, $$\frac{dS_t}{S_t}=\mu{dt}+\sigma{dW_t}$$ $$\frac{dS^0_t}{S^0_t}=rdt$$ Substitutin...
Did I derive the Kelly criterion correctly?
Very simplistically, ERISA rules require corporate pension plans to use market rates to discount their liabilities. If interest rates go up, the value of their pension liabilities goes down. Since asset values are also marked to market using market rates, their assets have similar treatment and therefore it is self h...
It might be a very simple question but for some reason I’m a bit confused. Let’s say we enter a long SOFR vs fix interest swap at par. Say 5 year swap with annual coupons (the rfr is daily compounded and paid at each annual reset). The swap rate will be the average forward rates weighted by the DFs (5 periods so 5 s...
It might be a very simple question but for some reason I’m a bit confused. Let’s say we enter a long SOFR vs fix interest swap at par. Say 5 year swap with annual coupons (the rfr is daily compounded and paid at each annual reset). The swap rate will be the average forward rates weighted by the DFs (5 periods so 5 s...
It might be a very simple question but for some reason I’m a bit confused. Let’s say we enter a long SOFR vs fix interest swap at par. Say 5 year swap with annual coupons (the rfr is daily compounded and paid at each annual reset). The swap rate will be the average forward rates weighted by the DFs (5 periods so 5 s...
It might be a very simple question but for some reason I’m a bit confused. Let’s say we enter a long SOFR vs fix interest swap at par. Say 5 year swap with annual coupons (the rfr is daily compounded and paid at each annual reset). The swap rate will be the average of forward rates weighted by the DFs (5 periods so ...
I'm looking for some general reasons why Value-at-risk estimations over- or underestimate the Value-at-risk. And what would be some source to look that up?
VaR backtesting. Reasons for over- and underestimation of Value-at-Risk estimates?
$$\frac{dX_t}{X_t}=\alpha\frac{dS_t}{S_t}+(1-\alpha)\frac{dS^0_t}{S^0_t}$$ where $\alpha$ is proportion of the investment in the risky asset $S_t$ and $S^0_t$ is the risk-free asset. $S_t$ follows a geometric Brownian motion, $$\begin{aligned} \frac{dS_t}{S_t} &= \mu{dt} + \sigma{dW_t} \\ \frac{dS^0_t}{S^0_t} &= ...
Why do we need an ex-dividend date? What is the problem with the ex-dividend date being the same as the payment date? Why are they separate? What problem does having a separate ex-dividend date solve? For example, at the moment - a company announces a \$1 dividend on 12 May with ex-div date of 12 June and a payment ...
Why do we need an ex-dividend date?
If the discounted price of any asset is a martingale under risk neutral measure, why is $E^Q[e^{-rT} (S_T-K)_+ | F_t]$, not merely $e^{-rt} (S_t-K)_+$? This is something I wanted to clarify, since that's the definition of a martingale. Instead we use the lognormal distribution of the stock price and solve the expect...
This question about reversibility of time attracted a lot of attention of econophysicists. Laws of physics guarantee no time reversion in real life (because of entropic principle): is it the same on financial markets? Somehow, the returns of stocks should reflect the growth of economy and the risk of projects the co...
I'm reading _Option Pricing: A Simplified Approach_ and have a question. Assume the binomial tree model for the stock. So - $n$ discrete time periods - $S$ is stock - $C$ is call - $K$ is strike - $u$ is upward move - $d$ is downward move - $r$ is total return $1+R$ where $R$ is the interest rate - no arb: $d...
Suppose I have two Geometric Brownian motions and a bank account: $$dB_t=rB_tdt$$ $$ dS=S(\alpha dt + \sigma dW_t) $$ $$ dY = Y(\beta dt + \delta dV_t) $$ Where $dW_t$ and $dV_t$ are independent Wiener processes. Now suppose that I have a martingale measure $Q$ such that $d(S_t/B_t)$ is a martingale. Then we ...
Suppose I have two Geometric Brownian motions and a bank account: $$dB_t=rB_tdt$$ $$ dS=S(\alpha dt + \sigma dW_t) $$ $$ dY = Y(\beta dt + \delta dV_t) $$ Where $dW_t$ and $dV_t$ are independent Wiener processes. Now suppose that I have a martingale measure $Q$ such that $d(S_t/B_t)$ is a martingale. Then we ...
Should I back-test in a single (original) price series and bootstrap the strategy returns to get statistics of interest? Or should I create bootstrapped price series using bootstrapped returns from the original price series and run the strategy on those? The latter one requires significantly more computational power....
They are not riskless and a TBill is not the right benchmark comparison. While a dollar neutral long/short portfolio does provide enhanced risk management, the extent is dependent upon the composition of the portfolio. For example, if long 10M IBM and short 10M XOM, what have you hedged? What is the relationship betw...
I'm looking for some general reasons why Value-at-risk estimations over- or underestimate the Value-at-risk. And what would be some source to look that up? Edit: What I mean by over- and underestimation is in the sense of this answer: https://quant.stackexchange.com/a/27877/67311
I use an ARMA-GARCH model for univariate distributions and a copula model for the multivariate distribution. For the value at risk (VaR) estimation, I do a Monte Carlo simulation. I'm looking for some general reasons why VaR estimations over- or underestimate the VaR in the sense of [this answer][1]. And what would be ...
VaR backtesting. Reasons for over- and underestimation of value at risk estimates?
That's nice. Starting from $$C = e^{-r T}N_2 (F-K) + (N_1 - N_2) S$$ we can substitute $F= e^{r T}S$ (no dividend case) so we get $$C = e^{-r T}N_2(e^{r T} S-K) + (N_1 - N_2) S =$$ $$= N_1 S -e^{-r T}N_2 K $$ which is just the Black Scholes 1971 formula. The first term $e^{-r T}N_2 (F-K)$ is a new de...
That's nice. Starting from $$C = e^{-r T}N_2 (F-K) + (N_1 - N_2) S$$ we can substitute $F= e^{r T}S$ (no dividend case) so we get $$C = e^{-r T}N_2(e^{r T} S-K) + (N_1 - N_2) S =$$ $$= N_1 S -e^{-r T}N_2 K $$ which is just the Black Scholes 1971 formula. The first term $e^{-r T}N_2 (F-K)$ is a new de...
That's nice. Starting from $$C = e^{-r T}N_2 (F-K) + (N_1 - N_2) S$$ we can substitute $F= e^{r T}S$ (no dividend case) so we get $$C = e^{-r T}N_2(e^{r T} S-K) + (N_1 - N_2) S =$$ $$= N_1 S -e^{-r T}N_2 K $$ which is just the Black Scholes 1971 formula. The first term $e^{-r T}N_2 (F-K)$ is a new de...
There is a folklore white noise hypothesis related to (and equivalent to some forms of) the efficient market hypothesis in finance -see references below. But are there some asset pairs whose return time series (or perhaps some "natural" transforms of those time series) are approximately noises of another color than whi...
What color financial time series are there?
Dear Quant StackExchange I seek some intuition for how my portfolio behaves given constraints. In a universe of say 5 assets, I have a "target portfolio" with weights that are found from risk budgeting, $w_T$. But I also have a benchmark ($w_{BM}$) that I care about minimizing my tracking error volatility towards...
Optimal portfolio as combination of target and minimum tracking error portfolios?
Fatigue with Historic Backtesting - Alternatives?
> Bonus question: Does anyone know how to play/hear a (financial) time series recorded as a pandas series, dataframe, python list, numpy array, csv/txt file,... ? This is kind of fun and has practical applications to quantitative finance. My partners and I have actually been experimenting with this as the basis for ...
I'm reading Antonie Savine's fascinating book Modern Computational Finance AAD and Parallel Simulations. However, I got a bit confused while reading and couldn't make sense of how it works in his work. To be more specific, in the following paragraphs: > We developed, in the previous chapter, functionality to obtain ...
The common stock of the bank is considered to be a part of the Tier 1 capital, but it is also subject to market risk. The [Investopedia](https://www.investopedia.com/terms/c/common-equity-tier-1-cet1.asp) definition distinguishes between Tier 1 and Tier 3 capital by the latter carrying market risk. Why is common sto...
I need to build a Liquidity Risk report at my intern job. There, I consider an MDTV90 (Median Daily Traded Value for 90 days, a measure of liquidity) for each asset we trade to find how many days we spend to sell it (Days to Sell). It is quite easy for equities because historical data is widely known. Although, when ta...
I have bootstrapped a curve using several depo and swap rates and am trying to use that curve to get the NPV of a swap over a period of time. The generation of prices iteratively through time is **incredibly** slow. Given that i'm only pricing over a 4 month period I wouldn't expect it to take 30 minutes. Am I doing...
We know that 2 strategies can give the same Sharpe Ratio, but with different Maximum Drawdown. I computed myself these 2 strategies having the same cumulative return and SR, but with considerably different Max Drawdown to highlight this : <img src="https://i.stack.imgur.com/lFbVF.png" width="500"/> I am curren...
Measure of the "stableness" of the return over time?
I have learnt that the Sharpe ratio is a measure of the annualized return rate mean over the annualised standard deviation of return rate distribution. I also learnt that when compounding, the mean of the return rate distribution does not correspond to the overall return rate at the end of the test period (the classic...
Mixing Max Drawdown and Sharpe Ratio in a single utility function : is there a standard approach?
We know that 2 strategies can give the same Sharpe Ratio, but with different Maximum Drawdown. I computed myself these 2 strategies having the same cumulative return and SR, but with considerably different Max Drawdown to highlight this : <img src="https://i.stack.imgur.com/lFbVF.png" width="500"/> I am curren...
Consider a pair of American and European puts with the same specifications except the former has the continuous early exercise right. Has anyone plotted the Gamma's of both as functions of the underlying price and time to expiry for the underlying greater than the critical exercise price? Is the American put Gamma nece...
Is American put Gamma always greater than the European one?
We know that 2 strategies can give the same Sharpe Ratio, but with different Maximum Drawdown. I computed myself these 2 strategies having the same cumulative return and SR, but with considerably different Max Drawdown to highlight this : <img src="https://i.stack.imgur.com/lFbVF.png" width="500"/> I am curren...
I have a very detailed dataset - for each minute I can see 3 best bid and ask prices with associated quantities. Which measure of volatility would you use in such dataset? Some volatility measures use only the close price; Garman-Klass uses Open, low, high and close; but here it is much more detailed. Here I would l...
Which volatility measure would you use for intraday minute data?
Why not use the Sortino Ratio instead of the Sharpe Ratio? This only uses downside deviation in its calculation and thus directly includes the idea of drawdown only in your loss function. In your given example, the black return line would have a higher Sortino Ratio value than that of the red return line, so you cou...