instruction stringlengths 15 26.1k |
|---|
From Aikin, convexity is determined by comparing the zero rate on a swap with an equivalent set of futures. For example, using futures, the calculation is shown as:
(1+2.0%×0.25)×(1+2.5%×0.25)×(1+2.2%×0.25)×(1+2.3%×0.25)=2.167%
Aikin suggests comparing this with the zero rate on a swap. What does the zero rate on... |
How do I calculate implied convexity from futures vs swaps? |
I think your answer is actually misleading. Using standard Black Scholes (Garman Kohlhagen) will not give you the values for either premium or delta, using the inputs and trade parameters you provided.
See the following screenshot from Bloomberg's `OVML`, where the 3rd screenshot has 25D as an input and solves ... |
They are three levels of sophistication of order book models (there is a book on the topic: Abergel, Frédéric, Marouane Anane, Anirban Chakraborti, Aymen Jedidi, and Ioane Muni Toke. [Limit order books](https://books.google.ae/books/about/Limit_Order_Books.html?id=eHmLDgAAQBAJ) Cambridge University Press, 2016)
1. **Z... |
They are three levels of sophistication of order book models (there is a book on the topic: Abergel, Frédéric, Marouane Anane, Anirban Chakraborti, Aymen Jedidi, and Ioane Muni Toke. [Limit order books](https://books.google.ae/books/about/Limit_Order_Books.html?id=eHmLDgAAQBAJ) Cambridge University Press, 2016)
1. **Z... |
Using as weights the probability of execution (or indeed the probability that the price reaches the considered level) makes sense. In essence, you would like to assign weights that reflects how much this limit is "meaningful" in contributing to the price formation process.
In Huang, Weibing, C-A L, and Mathieu Rosen... |
I think your answer is actually misleading. Using standard Black Scholes (Garman Kohlhagen) will not give you the values for either premium or delta, using the inputs and trade parameters you provided.
Since FX is all OTC,yzou can never be sure about the details unless you ask your broker. Generally though, in order... |
I initially voted to close this question because I think asking about risk free rates is off topic on quant se (and answered several times). However, I do not think there is a good alternative where one can ask questions that are deemed to be too basic here. Therefore, I will try to answer and go beyond just interest r... |
I am reading a paper$^\color{magenta}{\dagger}$ on market-making and having trouble understanding a point. Towards the end of section 2, the authors stated that:
$$\sup_{(\delta_t^a)_t, (\delta_t^b)_t \in \mathcal A} {\Bbb E} \left[ - \exp \left( - \gamma \left( X_T + q_T S_T \right) \right) \right]$$
where $\ma... |
How can the payoff f = min(max(S - K1, 0), K2) be interpreted? |
Greek “phi” for a derivative f is defined as its sensitivity to the changes in dividend
yield q : $$\phi = \frac{\partial f}{\partial q}$$
HOW CAN I FIND PHI WITHOUT THE CORRELATION? |
Out of curiosity, I'm wondering what the highest resolution of stock data there is out there. Is there stock trading data for every nanosecond, picosecond, or even lower? And how is this limit determined?
Do high frequency institutions typically use data at such a high resolution? |
Highest resolution of stock data? |
>Is there stock trading data for every nanosecond, picosecond, or even lower?
The topic of picoseconds is quite interesting. There a few physical limits that determine this:
- Most matching engines have enough variance in their topology that the marginal engineering cost of getting faster by a few hundred picose... |
you are right, the choice of $\Delta T$ is subtle, and as suggested by Joaquin, it is important to preserve the (relative) independence between
1. the **price formation process**, that corresponds to the "liquidity game" market participants are involved into when trying to get liquidity at the best possible price (o... |
In general, having an algorithm's logic based on "best bid" and "best ask" is not robust to manipulation. In general it is better to reason in term of "distance to the adjusted mid".
- first you have your own recipe to **compute the adjusted mid-price** $p^*$; an basic example is to use the imbalance;
- second you... |
Order Execution is addressing the way to interact optimally with other market participants.
- in **Limit Orderbook**, the challenge is when to insert, cancel, reassess an order in the book? at which limit price? and when to decide to **cross the bid-ask spread and pay for immediacy (and certainty) of execution**?
-... |
The beta of an investment strategy corresponds to its relation with the systematic moves of the prices, i.e. the one driven by very common factors. Typically market indexes are benchmarks used to measure the beta against.
The more beta, the more **directional risk** the portfolio is taking, as opposed to the "alpha"... |
I am familiar with the basic idea of the dispersion trade i.e. index vol vs constituent vol and implied correlation. I am wondering if there are any standard resources (pdfs, books, presentations) that discuss the [concept][1] more in depth. Is there any standard literature in the area?
[1]: https://thetatitans... |
The characteristic function of $x=ln(S_T)$ in the framework of Heston model is guessed to be: $$f_j(\phi,x,v)=e^{C_j(\tau,\phi)+D_j(\tau,\phi)+i\phi x}$$
The call price is guessed to have the form: $$C_T(K)=e^{x_t}P_1(x,v,\tau)-e^{r \tau}KP_2(x,v,\tau)$$
where $P_1$ and $P_2$ are probabilities that an option exp... |
Goal: I want to run a portfolio, daily or weekly rebalanced, with a target idio vol %. Thus I will be market neutral, sector neutral and maintain some style exposure at 70-80% idio overall.
Okay, this is easy with my stock universe, expected returns for each stock, and covariance of each stock's returns to the marke... |
Should I resolve factor collinearity before hedging? |
Goal: I want to run a portfolio, daily or weekly rebalanced, with a target idio vol %. Thus I will be market neutral, sector neutral and maintain some style exposure at 70-80% idio overall.
Okay, this is easy with my stock universe, expected returns for each stock, and covariance of each stock's returns to the marke... |
I am familiar with the basic idea of the dispersion trade i.e. index vol vs constituent vol and implied correlation. I am wondering if there are any standard resources (pdfs, books, presentations) that discuss the concept more in depth. Is there any standard literature in the area? |
@databento provided a really good answer, but missed out a very high level concept which is closer to I think the spirit of your question:
At some point *tick* data is what is interesting - a series of every individual trade, rather than a series of Open/High/Low/Close/Volume per timestamp. Only very liquid securit... |
I need to calculate the PFE for vanilla swap. I wonder if it makes sense to simulate the MC scenarios with a 1-factor Hull white model. In my opinion, this model only allows parallel curve deformations and future MTMs would not be representative of reality!
I would like to know what market practice is? |
Market impact corresponds to price moves due to the intensity of trading in one direction. As you mention: when a market participant trades in size in one direction, the price usually follows.
They are two reasons:
1. the first one is **informational**: the trader is right to buy (or sell), he or she understood the... |
Suppose we have a callable bond in the market. The problem is to find out the probability of being called and the probability of being held until the maturity. My approach for this problem is the following: from the price of the underlying call option derive implied distribution of the bond. This should give insights h... |
Will be callable bond called or not? Estimating probabilities |
Suppose I have a strategy with a mean return and defined Sharpe. Given a preset stop loss, I want to calculate the probability of the stop being hit.
In the example below I use the following parameters,
- Sharpe ratio = 1.3
- Annual return = 10%
- Stop loss threshold = 5%
I *think* the following code is bu... |
Let $F_t(T_1, T_2)$ be the forward swap rate at time $t$ from $T_1$ to $T_2$.
Consider a swap that fixes at time $T$, with effective date at time $T + 2D$, and payment date 6 months later at $T + 2D + 6M$.
That is, the swap fixes two days prior to being effective.
My question is, which of the following determ... |
How to read off a fixing from a swap curve? |
I have completed a class that mirrors these lecture notes except for chapter 5: https://www.maths.ed.ac.uk/~dsiska/LecNotesSCDAA.pdf
In chapter 5, they use stochastic control and the Hamiltonian Jacobi Bellman (HJB) equation in attempt to measure bid-ask spreads and optimal portfolio allocation. Is there any practic... |
Is stochastic control with the HJB equation used in market making/algo trading at institutions? |
In chapter 5 of https://www.maths.ed.ac.uk/~dsiska/LecNotesSCDAA.pdf, they use stochastic control and the Hamiltonian Jacobi Bellman (HJB) equation in attempt to measure bid-ask spreads and optimal portfolio allocation.
Is there any practical relevance that is used in industry, or is it another case of finance acade... |
Market impact corresponds to price moves due to the intensity of trading in one direction. As you mention: when a market participant trades in size in one direction, the price usually follows.
They are two reasons:
1. the first one is **informational**: the trader is right to buy (or sell), he or she understood the... |
Tomorrow is the last trading day of 2023. Compared to last week, I noticed that $SPY ATM or close-to ATM options for the end of month/quarter (Dec-29) exp experienced a spike in IV since yesterday, however, the opposite effect (downward pressure) happened on the IV of same-strike options for the first week of Jan-2024.... |
>**Exercise 3.11** (Approximation of an Itô Integral).
> In this example, the stochastic integral $\int^t_0tW(t)dW(t)$ is considered. The expected value of the integral and the expected value of the square of the integral are estimated using $M=1,000,000$ sample paths. The number of intervals used on $[0,1]$ is $N$ wh... |
>**Exercise 3.11** (Approximation of an Itô Integral).
> In this example, the stochastic integral $\int^t_0tW(t)dW(t)$ is considered. The expected value of the integral and the expected value of the square of the integral are estimated using $M=1,000,000$ sample paths. The number of intervals used on $[0,1]$ is $N$ wh... |
>**Exercise 3.11** (Approximation of an Itô Integral).
> In this example, the stochastic integral $\int^t_0tW(t)dW(t)$ is considered. The expected value of the integral and the expected value of the square of the integral are estimated using $M=1,000,000$ sample paths. The number of intervals used on $[0,1]$ is $N$ wh... |
>**Exercise 3.11** (Approximation of an Itô Integral).
> In this example, the stochastic integral $\int^t_0tW(t)dW(t)$ is considered. The expected value of the integral and the expected value of the square of the integral are estimated using $M=1,000,000$ sample paths. The number of intervals used on $[0,1]$ is $N$ wh... |
>**Exercise 3.11** (Approximation of an Itô Integral).
> In this example, the stochastic integral $\int^t_0tW(t)dW(t)$ is considered. The expected value of the integral and the expected value of the square of the integral are estimated using $M=1,000,000$ sample paths. The number of intervals used on $[0,1]$ is $N$ wh... |
Recently I started dealing with the xVA and the associated EPE and ENE concepts.
In a numerical example of an FX Forward, after simulating the underlying FX spot $S_t$ using GBM ($S_{t} = S_{t-1}e^{(\mu-\frac{\sigma^{2}}{2})dt +\sigma\sqrt{dt}Z_{t-1}}$) the present value of the FX Forward contract for each time poi... |
I am calculating Value-at-Risk (VAR) with the Circular block bootstrap (CBB) method.
How do I complete the circle and join $P_{10}$ and $P_1$ so that I do not get -70% yield?
If I proceed with CBB VAR without any adjustments, my .99 percentile VAR becomes -70%! That observation is not even real.
[![enter image d... |
An answer has already been provided in this discussion: [How to price the FX forward contract under stochastic interest rates?][1]
Here is a summary of the (backward) derivation of equation (1):
$$ V_{t} = S_{t}e^{-r_{for}(T-t)}-Ke^{-r_{dom}(T-t)} \Leftrightarrow$$
$$ V_{t} = \underbrace{\underbrace{(\underbrace... |
Recently I started dealing with the xVA and the associated EPE and ENE concepts.
In a numerical example of an FX Forward, after simulating the underlying FX spot $S_t$ (units of domestic per unit of foreign) using GBM ($S_{t} = S_{t-1}e^{(\mu-\frac{\sigma^{2}}{2})dt +\sigma\sqrt{dt}Z_{t-1}}$) the present value of t... |
My question probably is the result of my lack of knowledge of the English language. I am located in Germany and have an account with FXCM, a company that enables private people to participate at forex / CFD markets (currencies, indices, commodities). They provide a yearly state summary that I use as a basis for my tax ... |
In a forex statement summary, what does "posted at statement period of time" mean? |
I'm reading about this correlation breakout strategy, whose pnl is proportional to
$$E[PnL] \sim (\rho_{1D} - \rho_{2D})\sigma_1 \sigma_2$$
where $\rho_{1D}$ is the correlation of daily returns, and $\rho_{2D}$ is the correlation of 2day returns.
How to actually achieve this with, if the two assets are commo... |
How to design a strategy whose PnL is proportion to correlation? |
When creating the implied volatility surface using $\left(T,log\left(\frac{K}{S_0}\right)\right)$ as $(x,y)$ axis, do the inputs for the implied vol calculation need to be logged too? In other words, when using `py_vollib` to calculate the IV, does the K input need to be changed? Or is it only scaled afterwards for plo... |
The annual rate of return in year $t$, denoted as $1+i_t$, where $i_0$ represents the percentage rate from $t=0$ to $t=1$, follows a log-normal distribution with an expected value 108% and a standard deviation of 20%.Returns in consecutive years are independent. How much money must be invested at $t=0$ in ordrer to hav... |
The annual rate of return in year $t$, denoted as $1+i_t$, where $i_0$ represents the interest rate from $t=0$ to $t=1$, has a log-normal distribution with an expected value $108\%$ and a standard deviation $20\%$. Return rates in consecutive years are independent. How much money must be invested at $t=0$ in order to h... |
This question came out of the Kelly rule. Curious how returns are calculated when allocated investment is changing on the course.
Let's say an investment start with $100, if the investment hasn't changed over time, then its return would be just be based on the $100. However, what if there is new fund deposited or w... |
How to get returns when investment capital is changing? |
This question came out of the Kelly rule. Curious how returns are calculated when allocated investment is changing on the course.
Let's say an investment start with \$100, if the investment hasn't changed over time, then its return would be just be based on the \$100. However, what if there is new fund deposited or... |
TBH your explanation is still a bit confusing, are you saying that an initial investment of \$100 grows to \$200? (this is 100% return not 200% btw). After that, there is an additional \$100 deposited? This results in the final \$300 I suppose?
Unless you are saying that you are attributing the 200% return to both t... |
I am trying to minimize tracking error ex-ante for a 150 / 50 portfolio, eg. it is 150 units long, 50 units short and market exposure of 100 units. It uses all 500 stock in the S&P500.
I've gathered 2 years of daily returns for each stock to create a correlation matrix for all 500 stocks. Now I use an optimizer to m... |
From *STIR Futures - Trading Euribor and Eurodollar futures*
by Stephen Aikin, convexity is determined by comparing the zero rate on a swap with an equivalent set of futures. For example, using futures, the calculation is shown as (top of Page 39):
(1+2.0%×0.25)×(1+2.5%×0.25)×(1+2.2%×0.25)×(1+2.3%×0.25)=2.167%
... |
Assuming I am making a long/short portfolio of S&P500 stocks and I would like to use the historical correlations to minimize ex-ante portfolio volatility. I can think of two ways of doing this:
First method
1. Calculate covariance matrix based on some look-back period.
2. Use optimizer to find weights that minimi... |
Under risk neutral measure, we use replicating portfolio to mimic the value of derivative (for example European options).
Many literatures use the word "hedging" to describe the replicating portfolio which confuses me.
As the replicated portfolio's value mimics the value of an option, how can such portfolio be hed... |
This question came from an actual trade occurred in about 2014 when PIMCO sold very large positions in SPX 1840 put/1920 call strangle. It was reported the premium alone was worth \$100 million (they opened another similar but smaller strangle position). According to the book Bond King, everyone was talking about this ... |
How were very large short volatility positions hedged? |
This question came from an actual trade occurred in about 2014 when PIMCO sold very large positions in SPX 1840 put/1920 call strangle. It was reported the premium alone was worth \$100 million (they opened another similar but smaller strangle position). According to the book Bond King, everyone was talking about this ... |
In a simple setup, let's say $(w_1,w_2)$ are weights invested in assets $1$ and $2$ with prices $S_1$, $S_2$.
I only saw discussions when $w_1 + w_2 = 1$, even if short selling is allowed.
Suppose $S_1(0) = S_2(0) = 100$. I short the first assed and long the second one.
My initial investment is $0$.
$\bullet$... |
Unlike under the Expectation Hypothesis (for which the forwards are perfect predictors of the expected short rates), for the LPH forward=expected short rates + LP and consequently the expected short rates (from which we back up the yield curve)=forward - LP. Below I leave two practical questions on which my doubts aris... |
Welcome to the forum. I read these two answers where @nbbo2 was a great reference as usual:
1. https://quant.stackexchange.com/questions/19352/market-neutral-weights-and-cash-values
2. https://quant.stackexchange.com/questions/55528/how-to-compute-portfolio-returns-when-constructing-a-dollar-neutral-portfolio
The ... |
Welcome to the forum. I read these two answers where @nbbo2 was a great reference as usual:
1. https://quant.stackexchange.com/questions/19352/market-neutral-weights-and-cash-values
2. https://quant.stackexchange.com/questions/55528/how-to-compute-portfolio-returns-when-constructing-a-dollar-neutral-portfolio
The ... |
lets say an inflation bond has inflation adjusted coupons and nominal. Wrt dirty and clean price, is the accrued inflation of the nominal usually included in the clean quote? For example, this inflation indexed bond https://www.deutsche-finanzagentur.de/en/federal-securities/factsheet/isin/DE0001030583?cHash=3fb6241442... |
Welcome to the forum. I read these two answers where @nbbo2 was a great reference as usual:
1. https://quant.stackexchange.com/questions/19352/market-neutral-weights-and-cash-values
2. https://quant.stackexchange.com/questions/55528/how-to-compute-portfolio-returns-when-constructing-a-dollar-neutral-portfolio
The ... |
Unlike under the Expectation Hypothesis (for which the forwards are perfect predictors of the expected short rates), for the LPH forward=expected short rates + LP and consequently the expected short rates (from which we back up the yield curve)=forward - LP (where LP= liquidity premium). Below I leave two practical que... |
Welcome to the forum. I read these two answers where @nbbo2 was a great reference as usual:
1. https://quant.stackexchange.com/questions/19352/market-neutral-weights-and-cash-values
2. https://quant.stackexchange.com/questions/55528/how-to-compute-portfolio-returns-when-constructing-a-dollar-neutral-portfolio
The ... |
Apparently if we assume that each underlying CMS rate is normally distributed then a formula for the CMS Spread Option price can be evaluated analytically in the absence of any contingency due to the fact that the difference in two normally-distributed random variables is also normally distributed. However, wherever I ... |
I am reading section section 14.6 of John Cochrane's [lectures notes][1] for the course *Business 35150 Advanced Investments*. On p. 239-240, he discusses testing one asset pricing model against another. Here is the essence:
> 1. Example. FF3F.
$$
E(R^{ei}) = \alpha_i + b_i\lambda_{rmrf} + h_i\lambda_{hml} + s_i\l... |
In accademia people often analyze portfolios where there are an equal size long and short positions, so the weights add up to zero. Such portfolios are usually referred to as "arbitrage portfolios" or "zero net investment portfolios". An example of a well known academic paper in this area is Jegadeesh and Titman (1993)... |
In accademia people often analyze portfolios where there are an equal size long and short positions, so the weights add up to zero. Such portfolios are usually referred to as "arbitrage portfolios" or "zero net investment portfolios". An example of a well known academic paper in this area is Jegadeesh and Titman (1993)... |
In accademia people often analyze portfolios where there are an equal size long and short positions, so the weights add up to zero. Such portfolios are usually referred to as "arbitrage portfolios" or "zero net investment portfolios". An example of a well known academic paper in this area is Jegadeesh and Titman (1993)... |
In accademia people often analyze portfolios where there are an equal size long and short positions, so the weights add up to zero. Such portfolios are usually referred to as "arbitrage portfolios" or "zero net investment portfolios". An example of a well known academic paper in this area is Jegadeesh and Titman (1993)... |
I'm currently going through Lorenzo Bergomi's book *Stochastic Volatility Modeling*. The one issue I have is that it does not contain exercises to test your knowledge and learn. Is there a textbook that is very similar so I can test my knowledge? |
Let's say an inflation bond has inflation adjusted coupons and nominal. With respect to dirty and clean price, is the accrued inflation of the nominal usually included in the clean quote? For example, this inflation indexed bond
Germany 0.10% inflation-linked Federal bond 2021 (2033), ISIN DE0001030583
https://w... |
I initially voted to close this question because I think asking about risk free rates is off topic on quant se (and answered several times). However, I do not think there is a good alternative where one can ask questions that are deemed to be too basic here. Therefore, I will try to answer and go beyond just interest r... |
Just graduated from my undergraduate, and only really has my experience just begun, but I had a big question about data slicing for Time-Series model fitting. In university, since I wasn't a stats major, I didn't do much model fitting for data, other than my ML class.
In that class, I was (and am still building) a ... |
Data separation for Time Series Models? (both Statistical and ML) |
I had a big question about data slicing for Time-Series model fitting. In university, since I wasn't a stats major, so I didn't do much model fitting for data, other than my ML class, and have *ZERO education on time-series*
In that class, I was (and am still building) a model to predict trading signals (buy = upwar... |
I had a big question about data slicing for Time-Series model fitting. In university, since I wasn't a stats major, so I didn't do much model fitting for data, other than my ML class, and have *ZERO education on time-series*
In that class, I was (and am still building) a model to predict trading signals (buy = upwar... |
The below formula is used to convert the implied vol into the local volatility,
my question is, once I have converted it into the LV ( and have built the full surface), what models do I use to calculate the option price? Do I simulate the underlying price using Monte Carlo?
Using the LV in the BS formula would give... |
The below formula is used to convert the implied vol into the local volatility,
my question is, once I have converted it into the LV ( and have built the full surface), what models do I use to calculate the option price? Do I simulate the underlying price using Monte Carlo and just calculate the average PV of the payo... |
We know that Covid Recession lasted during the months of `March & April 2020`. Using [Fama French data][1], how do you calculate returns for factors such as `Value, Size, Profitability, Momentum, & LowVol`?
Solution 1: use `Fama/French 5 Factors (2x3)` for Value, Size, Profitability, and `Momentum Factor (Mom)` for... |
How to calculate Fama French & Momentum factor returns during Covid recession using their data website? |
Let's say the valuation date is 08/24/2023. The effective date and maturity date of the swap are 03/12/2022 and 01/10/2024. I want to apply the given historical fixing rates till the valuation date and thereafter apply the forwards from the valuation date till maturity using discount factor data. I want to compute the ... |
# Context #
I'm a beginner quant and I'm trying to calibrate an vol surface using SPX Implied Vol data. The model is from Jim Gatheral and Antoine Jacquier's paper https://www.tandfonline.com/doi/full/10.1080/14697688.2013.819986. I'm testing the model for just one expiry date just for proof of concept. An area where ... |
How to calibrate a volatility surface using SSVI with market data? |
# Context #
I'm a beginner quant and I'm trying to calibrate an vol surface using SPX Implied Vol data. The model is from Jim Gatheral and Antoine Jacquier's paper https://www.tandfonline.com/doi/full/10.1080/14697688.2013.819986. I'm testing the model for just one expiry date just for proof of concept. An area where ... |
# Context #
I'm a beginner quant and I'm trying to calibrate an vol surface using SPX Implied Vol data. The model is from Jim Gatheral and Antoine Jacquier's paper https://www.tandfonline.com/doi/full/10.1080/14697688.2013.819986. I'm testing the model for just one expiry date just for proof of concept. An area where ... |
Ambiguity in quant finance is defined as the uncertainty in the probabilities of the return distribution, whereas risk is defined as the uncertainty in the returns of the asset.
There are various measures of ambiguity such as the volatility of volatility (historical, IV), volatility of the mean, volatility of probab... |
Ambiguity in quant finance is defined as the uncertainty in the probabilities of the return distribution, whereas risk is defined as the uncertainty in the returns of the asset.
There are various measures of ambiguity such as the volatility of volatility (historical, IV), volatility of the mean, volatility of probab... |
The below formula is used to convert the implied vol into the local volatility,
my question is, once I have converted it into the LV ( and have built the full surface), what models do I use to calculate the option price? Do I simulate the underlying price using Monte Carlo and just calculate the average PV of the payo... |
# Context #
I'm a beginner quant and I'm trying to calibrate an vol surface using SPX Implied Vol data. The model is from Jim Gatheral and Antoine Jacquier's paper https://www.tandfonline.com/doi/full/10.1080/14697688.2013.819986. I'm testing the model for just one expiry date just for proof of concept. An area where ... |
What are the "best practice" models that quant firm that trades options would use to "predict" (let's say SP500) implied vol, that they integrate into their decision making?
Do they look at the VIX futures curve? There are a couple of papers claiming that it has significant predictive power.
Do they use GARCH or ... |
Do options/prop trading firms put any effort into predicting (the direction of (implied)) volatility? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.