instruction stringlengths 15 26.1k |
|---|
(1) Does the rolling of bond payment from non-business days to the next or previous business day affect the coupon payment and the accrued interests within the coupon period? In other words, are the `adjusted` (bumped) or the `unadjusted` (unbumped) payment days used in the calculations?
(2) Is there a correspondenc... |
You could make use of two ingredients:
- make sure your discretization in time respects the forward by adjusting the discrete rates properly (see [Exact Forward in Monte-Carlo][1])
- use the forward price as control variate to make sure the forward of the simulation matches the market forward.
With those two,... |
The screenshot below from the paper "[Short-Term Variations and Long-Term Dynamics in Commodity Prices](https://pubsonline.informs.org/doi/epdf/10.1287/mnsc.46.7.893.12034)" by Schwartz and Smith (2000) shows the formula for the covariance matrix $V_n$ based on an initial matrix of brownian motion variances and correla... |
How to implement computation of a certain covariance matrix? |
For stocks when there is cash dividend, the Dupire formula should still hold according to Bergomi. In his book, he says
"In the presence of cash-amount dividends, while the Dupire formula (2.3) with
option prices is still valid, its version (2.19) expressing local volatilities directly as a
function of implied vo... |
Whenever you are not fully invested, you'll need to make assumptions. Simple example: You have USD 100 and
invest 20% of it. Should you compute returns with a
notional of only USD 20 (the actual notional invested),
or on the total USD 100? In practice, these
assumptions are rarely made explicit, but neither are
... |
For stocks when there is cash dividend, the Dupire formula should still hold according to Bergomi. In the book "Stochastic Volatility Modeling", he says:
> In the presence of cash-amount dividends, while the Dupire formula
> (2.3) with option prices is still valid, its version (2.19) expressing
> local volatiliti... |
I'm a newby on this topic so please bear with me. My question is:
I've a strike by strike / listed products volatility surface, and I was asking how can I recalibrate my surface during the day considering the new prices.
Any help please?
Thanks |
How is volatility surface re-calibrated with new inputs? |
Assuming I am pricing a AUDcUSDp 1w 0.6630, 0.6576 spot, how do get convert the premium in % from USD to AUD? I also realise the premium differs when I select it as AUD and USD in Bloomberg. Is it supposed to differ? |
For stocks when there is cash dividend, the Dupire formula should still hold according to Bergomi. In the book "Stochastic Volatility Modeling", he says:
> In the presence of cash-amount dividends, while the Dupire formula
> (2.3) with option prices is still valid, its version (2.19) expressing
> local volatiliti... |
I'm tying to reconcile the delta value for an FX option. I'm comparing the results to Bloomberg to verify our calculation is correct.
I've looked at this - https://quant.stackexchange.com/questions/70258/quantlib-greeks-of-fx-option-in-python but it doesn't show where Rd (domestic interest rate) Rf (foreign interest... |
For stocks when there is cash dividend, the Dupire formula should still hold according to Bergomi. In the book "Stochastic Volatility Modeling", he says:
> In the presence of cash-amount dividends, while the Dupire formula
> (2.3) with option prices is still valid, its version (2.19) expressing
> local volatiliti... |
I have a portfolio of equities with a cross-sectional score as expected return (mean=0) and am using mean-variance optimization. However, the question is how one selects the risk aversion parameter. The Grinold-Kahn book says that risk-aversion = sharp/(2* target volatility) and the same in the Barra guidelines.
This... |
Warning upfront: I have NO experience with crypto currencies. I believe I do have a relatively decent experience with options in general though. What follows will be a generic explanation, largely copy pasted from existing stuff I wrote for other answers.
You should not use HV in option pricing. Especially not for ... |
Warning upfront: I have NO experience with crypto currencies. I believe I do have a relatively decent experience with options in general though. What follows will be a generic explanation, largely copy pasted from existing stuff I wrote for other answers.
You should not use HV in option pricing. Especially not for ... |
Let's say I have three products that are correlated (e.g. AAPL, MSFT, and AMZN). I would like to construct a spread between these products and trade the mean-reverting spread. Specifically, sell the spread when it exceeds the fair value and buy the spread when it becomes cheap.
Now, depending on how I develop the he... |
I am given some preliminary data with a goal to estimate the `probability of default`. This data consists of Market premium for different tenors.
One such example read that, Market `Premium (Running and Up-front)` for tenor 5 years are 1.40% and 0%. Similarly the `Market Premium (Running and Up-front)` for tenor 8 y... |
I have come across a response to a previous post that caught my attention in https://quant.stackexchange.com/questions/74011/cross-currency-swap-a-combination-of-2-interest-rate-swap
There it is commented that,
*If you substitute the basis swap for the FX forward [..]*
What does it mean actually? Is a Basis swa... |
I have come across [a response](https://quant.stackexchange.com/a/74024/47484) to the question titled "[Cross currency swap a combination of 2 Interest rate swap](https://quant.stackexchange.com/questions/74011/cross-currency-swap-a-combination-of-2-interest-rate-swap)" on this site. There, it is stated the following:
... |
I having an issue with interpolation in QuantLib Python. Please see the code below for a minimum working example
```
myCurve = ql.ZeroCurve([ql.Date(2,3,2024),ql.Date(2,8,2024)],
[0.05,0.09],
ql.Actual365Fixed(),
ql.NullCal... |
In Sec. 3.2 [here](https://www.math.fsu.edu/~dmandel/Primers/Understanding%20Market%20Price%20of%20Risk.pdf), Mandel deduces the price $P$ of a derivative on an interest rate $r$ obeys a PDE of the form$$\frac{\partial P}{\partial t}+\frac{1}{2}\beta^{2}\frac{\partial^{2}P}{\partial r^{2}}+\left(\alpha-\beta\lambda\rig... |
I have come across [a response](https://quant.stackexchange.com/a/74024/47484) to the question titled "[Cross currency swap a combination of 2 Interest rate swap](https://quant.stackexchange.com/questions/74011/cross-currency-swap-a-combination-of-2-interest-rate-swap)" on this site. There, it is stated the following:
... |
I having an issue with interpolation in QuantLib Python. Please see the code below for a minimum working example
```
myCurve = ql.ZeroCurve([ql.Date(2,3,2024),ql.Date(2,8,2024)],
[0.05,0.09],
ql.Actual365Fixed(),
ql.NullCal... |
I have come across [a response](https://quant.stackexchange.com/a/74024/47484) to the question titled "[Cross currency swap a combination of 2 Interest rate swap](https://quant.stackexchange.com/questions/74011/cross-currency-swap-a-combination-of-2-interest-rate-swap)" on this site. There, it is stated the following:
... |
While attempting to model the SPX index over time, I found a source [here][1] that purportedly has historical daily SPX data going back to 1789 which very likely seems to be backcasted since the ~500 stock version only came into being around 1957.
What I am more uncertain about is if the daily data from this source ... |
Is there daily SPX level data going back to 1927? |
Consider the HJM model for instance. According to [Wikipedia](https://en.wikipedia.org/wiki/Heath%E2%80%93Jarrow%E2%80%93Morton_framework#Mathematical_formulation), the price $P(t,T)$ of a ZCB at time $t$ with maturity time $T$ is of the form
$$
{\displaystyle {\frac {dP(t,T)}{P(t,T)}}=\mu\left(t,T\right)dt-{{\sigm... |
How can a bond price that follows an Ito process possably have value 1 at maturity? |
In Natenburg's *Options Volatility and Pricing* he argues that the forward price of an underlying security is essentially the market's consensus expected value for that security otherwise an arbitrage opportunity exists.
So if the two month forward price for a stock with a spot value of $100 with interest rates at 1... |
In Natenburg's *Options Volatility and Pricing* he argues that the forward price of an underlying security is essentially the market's consensus expected value for that security otherwise an arbitrage opportunity exists.
So if the two month forward price for a stock with a spot value of `$100` with interest rates at... |
In Natenburg's *Options Volatility and Pricing* he argues that the forward price of an underlying security is essentially the market's consensus expected value for that security otherwise an arbitrage opportunity exists.
So if the two month forward price for a stock with a spot value of `$100` with interest rates at... |
In Natenburg's *Options Volatility and Pricing* he argues that the forward price of an underlying security is essentially the market's consensus expected value for that security, otherwise an arbitrage opportunity exists.
So if the two month forward price for a stock with a spot value of `$100` with interest rates a... |
In his book *Option Volatility and Pricing*, Natenburg argues that the forward price of an underlying security is essentially the market's consensus expected value for that security, otherwise an arbitrage opportunity exists.
So if the two month forward price for a stock with a spot value of `$100` with interest rat... |
In his book *Option Volatility and Pricing*, Natenburg argues that the forward price of an underlying security is essentially the market's consensus expected value for that security, otherwise an arbitrage opportunity exists:
> "In a sense, the marketplace must think that the forward price is the
> most likely fut... |
In page 59 of his book *Option Volatility and Pricing*, Natenburg argues that the forward price of an underlying security is essentially the market's consensus expected value for that security, otherwise an arbitrage opportunity exists:
> In a sense, the marketplace must think that the forward price is the
> most ... |
In page 59 of his book *Option Volatility and Pricing*, Natenberg argues that the forward price of an underlying security is essentially the market's consensus expected value for that security, otherwise an arbitrage opportunity exists:
> In a sense, the marketplace must think that the forward price is the
> most ... |
I have daily quotes for the new york and london fixings of fx options on EURUSD. On Bloomberg I can choose between two sources: BGN and CMPN. Apparently these are based on slightly different methods of aggregating the OTC quotes. I found that there are some pretty significant differences even though these two sources a... |
Objective
-------------
I wish to estimate an approximate reasonable return (a) for a project, given its inherent risk and risk-free rate, and compare that to the anticipated project return (b).
Such that, all else being equal, a <= b or b >= a means the investment is appropriately compensated for the risk. Or, i... |
Can i check here if convexity adjustments are needed for zero coupon swaps?
|
I have read many different approaches in rolling and adjusting futures contract to build a continuous time series. However, all of the examples I have seen are on daily data. While that is relatively straightforward to understand, how should I handle minute level data for example?
Take difference-adjustment for exam... |
futures roll - how is it applied to intraday data, e.g. minute level? |
I've found a ton of sources that mention the classic rule of
"If the Sharpe ratio of the new asset is greater than the Sharpe ratio of the existing portfolio times the correlation of the existing portfolio with the new asset, then you should include it."
My question is WHY?... I understand the logic behind it but... |
As per the user guide of Python's RATESLIB package (https://rateslib.readthedocs.io/en/latest/i_guide.html#guide-doc), below example is provided to construct a Curve
from rateslib.curves import Curve
usd_curve = Curve(
nodes={
dt(2022, 1, 1): 1.0,
dt(2022, 7, 1): 0.9... |
I am trying to estimate a carbon risk premium according to the Fama & Mac Beth methodology using a cross-sectional regression approach.
Therefore, I regress the excess return in period t+1 on the size, B/M, and carbon intensity in period t.
Now, I have the problem that my carbon intensity(=carbon emissions/revenue) ... |
I am trying to estimate a carbon risk premium according to the Fama & MacBeth methodology using a cross-sectional regression approach.
Therefore, I regress the excess return in period t+1 on the size, B/M, and carbon intensity in period t.
Now, I have the problem that my carbon intensity(=carbon emissions/revenue)... |
I have started a quant strategy that buys and sells thousands of stocks. Each trade represents <1% of average daily trading volume. On average, the trades represent around 0.1% of ADTV.
What is a reasonable expectation for slippage given how small the orders are? I measure slippage as fill price compared to the mid... |
I want to estimate the implied volatility of an asset which has not historical implied volatility data. I do have the historical realized volatility ( I have the historical prices). What would be some of the basic ways to estimate the IV and hence price an option using black scholes? |
I have developed a strategy based, among other things, on the Fama-French model. For the backtest I used the factors from Ken French web side. But there are only historical factors calculated until the end of June 23. In order to implement strategies based on this model in practice, one would of course need the data up... |
Let's suppose we're interested in the pricing of a very simple index, with two stocks A and B. Both A and B have 2 outstanding (or floating) shares, and A is priced at $1 per share while B is priced at $9 per share.
By market cap, the weights of A and B in the index should be `w_A = 0.1` and `w_B = 0.9`, so the pri... |
Let's suppose we're interested in the pricing of a very simple index, with two stocks A and B. Both A and B have 2 outstanding (or floating) shares, and A is priced at $1 per share while B is priced at $9 per share.
By market cap, the weights of A and B in the index should be `w_A = 0.1` and `w_B = 0.9`, so the pri... |
Let's suppose we're interested in the pricing of a very simple index, with two stocks A and B. Both A and B have 2 outstanding (or floating) shares, and A is priced at 1 dollar per share while B is priced at 9 dollars per share.
By market cap, the weights of A and B in the index should be `w_A = 0.1` and `w_B = 0.9... |
I'm a mathematician and I'm newish to trading.
Is it possible to separate or decouple the two currencies in a trading pair?
That is, given the GBP/USD pair, is it possible to create a graph of the GBP value and a graph of the USD value to then attempt to predict movements in the GBP/USD pair based of movements in... |
Let's say we have 2 pairs of currencies: EUR/USD and GBP/USD. The cross-asset (or synthetic asset) would be (EUR/USD) / (GBP/USD) = EUR/GBP.
Is there any relationship between the covariance(EUR/USD, GBP/USD) and the variance of EUR/GBP? |
Is there any relationship between the Covariance(A, B) and the variance of the synthetic asset A/B? |
I have noticed that many (also paid) market data Apis provide incomplete or sometimes even completely wrong market data. Now I have noticed that almost all providers write in the terms and conditions that they do not give any guarantee on the correctness of the market data. Does this really let the providers off the ho... |
Is market data api subject to regulatory controls? |
I'm following along this article:
https://www.richmondquant.com/news/2021/9/21/shannons-demon-amp-how-portfolio-returns-can-be-created-out-of-thin-air
The main premise is a fair coin flip. If heads, you gain 50%, if tails, you lose 33.3%. They present this equation:
Average Arithmetic Return - Volatility Drag ≈ ... |
I'm following along an article called
"[SHANNON’S DEMON & HOW RETURNS CAN BE CREATED OUT OF THIN AIR](https://www.richmondquant.com/news/2021/9/21/shannons-demon-amp-how-portfolio-returns-can-be-created-out-of-thin-air)".
The main premise is a fair coin flip. If heads, you gain 50%, if tails, you lose 33.3%. They p... |
Person alpha owns asset A.
Person beta owns asset B.
Alpha and beta wish to swap their assets A and B and settle the net cash of agreed price of A and B.
What's the best mechanism to agree on price A and price B?
Assume there is no third-party pricing A and B. The price is reached iteratively in a "bi-lateral nego... |
Analysing a backtest of a strategy i.e., a series of returns of a defined period we can consider various metrics such as the Sharpe-ratio or more exotic ones like the Omega-ratio. What I was wondering: is there an encyclopedia that covers (really many) of these ratios? E.g., the R package [`AssetAllocation`](https://cr... |
Is there an encyclopedia of peformance/risk measures for backtests of strategies? |
Analysing a backtest of a strategy i.e., a series of returns of a defined period we can consider various metrics such as the Sharpe-ratio or more exotic ones like the Omega-ratio. What I was wondering: is there an encyclopedia that covers (really many) of these ratios? E.g., the R package [`AssetAllocation`](https://cr... |
In the procedure Grinold outlines in his [Signal Weighting](https://baixardoc.com/preview/signal-weighting-by-richard-grinold-5cc218ca43c93) paper for optimally combinining $J$ raw alphas, $\mathbf{a}_j$, he first assumes each $\mathbf{a}_j$ has been scaled so its information ratio (IR) is $1$, i.e., $\mathbf{a}_j' \ma... |
In the procedure Grinold outlines in his 2010 paper "[Signal Weighting](https://baixardoc.com/preview/signal-weighting-by-richard-grinold-5cc218ca43c93)" for optimally combinining $J$ raw alphas, $\mathbf{a}_j$, he first assumes each $\mathbf{a}_j$ has been scaled so its information ratio (IR) is $1$, i.e., $\mathbf{a}... |
I am interested in downloading price data for individual futures contracts. For example, the price of the CBOT (CME) Wheat future ZWU3, which is the September 2023 contract for wheat, which will stop trading on 25 Aug 2023. So in general Exchange code + contract month + year, although specification is different per exc... |
Does Quandl offer raw futures data? |
Any recommendations for books/resources/videos/on-demand courses for in-depth IRRBB-related risk metrics calculation etc?
Yield Curve Risk, Basis Risk, Repricing Risk, Optionality Risk, Value at Risk, Embedded Gain/Loss, Forecasting, Stress Scenarios, Curve Construction, Transfer Pricing, etc.?
Would be great if ... |
I wanted to make sure my calculation of the treasury note/bond price is correct. Since T-notes and bonds pay coupons twice a year, let
\begin{eqnarray}
F &=& \rm{face\_value} = 100 \\
y &=& \frac{ \rm{yield} }{ 2 } \\
c &=& \frac{ \rm{coupon\_rate} }{ 2 } \\
n &=& 2 \cdot \rm{maturity\_years} \\
a &=& \frac{ \r... |
I wanted to make sure my calculation of the US treasury note/bond price is correct. Since T-notes and bonds pay coupons twice a year, let
\begin{eqnarray}
F &=& \rm{face\_value} = 100 \\
y &=& \frac{ \rm{yield} }{ 2 } \\
c &=& \frac{ \rm{coupon\_rate} }{ 2 } \\
n &=& 2 \cdot \rm{maturity\_years} \\
a &=& \frac{... |
I had a couple of questions about carry:
1. $-Carry for a bond: Coupon Income - Financing Costs, if I want to convert this to bps running, would I just divide by the fwd Dv01?
2. My understanding is, the above doesn't contain pull to par effects, therefore, it is more typical to use (YTM - Repo) as a measure of b... |
I am reading the following article.
- [Shannon’s Demon & how returns can be created out of thin air][1], Richmond Quantitative Advisors, September 29, 2021.
The main premise is a fair coin flip. If heads, you gain $50\%$. If tails, you lose $33.3\%$. They present the following equation
```
Average Arithmetic ... |
How to calculate the variance of this coin flip? |
I am reading the article “[Shannon’s Demon & How Returns Can Be Created Out of Thin Air][1]” by Richmond Quantitative Advisors (2021).
The main premise is a fair coin flip. If heads, you gain 50\%. If tails, you lose 33.3\%. They present the following equation
```
Average Arithmetic Return - Volatility Drag ≈ Ge... |
I had a couple of questions about carry:
1. $-Carry for a bond: Coupon Income - Financing Costs, if I want to convert this to bps running, would I just divide by the fwd Dv01?
2. My understanding is, the above doesn't contain pull to par effects, therefore, it is more typical to use (YTM - Repo) as a measure of b... |
I am preparing for an interview with a prop trading firm and wanted to discuss potential strategies for the classic market making games. I have seen similar posts on the forum, but a lot of the answers do not feel complete, so wanted to discuss on here. Here is a proposed game.
1) Game #1 : Make a market on the sum ... |
As a practitioner I struggle with the idea of choosing a model based on analytical tractability. For most commodity markets that I am aware of (I work in power markets), GBM is the benchmark model. Especially given that you are looking at the evaluation of contingent claims, you will need market data on price volatilit... |
Your wrote
ON : Does it mean I could buy today 100,000 USD at 20.4579 MXN,
but tomorrow I would have to sell those 100,000 USD ... ?
No, it is the opposite. By convention a swap moves the base currency from an earlier date to a later date. If you "do" or "buy" the ON spread you will be *selling* the USD... |
Yes, I believe it is possible and I have more or less done something similar to what you ask. Here is [a link][1] to a post on my blog which gives Octave code and in this post there are links to other posts on my blog which discuss the rationale behind the code. You can also click on the "currency strength" label at th... |
I'm reading the paper ["Enhancing Trading Strategies with Order Book Signals"][1] by Alvaro Cartea, Ryan Donnelly, Sebastian Jaimungal. And I have the following questions:
1. Assume that I empirically estimated $\lambda^{l}, \lambda^{\pm}, \epsilon^l, \epsilon^{\pm}, T_{JK}^l, T_{JK}^{\pm}$ in way proposed in parag... |
I'm reading the paper “[Enhancing Trading Strategies with Order Book Signals][1]” by Cartea et al (2015). And I have the following questions:
1. Assume that I empirically estimated $\lambda^{l}, \lambda^{\pm}, \epsilon^l, \epsilon^{\pm}, T_{JK}^l, T_{JK}^{\pm}$ in way proposed in paragraph 4.1. Estimating Model Par... |
I have come across below `CDS` data based on different Rating, Industries, and Regions,
[![enter image description here][1]][1]
I am wondering where can I get more complete data i.e. such data for all different rating categories etc. current as well as historical time series.
Does `Bloomberg` offer similar kin... |
CDS data for different industries/rating? |
I'm looking to understand the approach for calculating volatility (σ^2) within the context of the Avellaneda and Stoikov market-making model. I have a few specific questions on this topic:
Return Type: Should I be using log returns or simple returns for this calculation? What's the standard practice in this context?... |
I was reading here: https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/ab2cb3cae60b45dd861f79c60f4cbdcc/327fab41fca2444a9f0b82f62039a9fb.html
> The option Linear Interpolation of Log( Discount Factor ) means the
> system keeps instantaneous or differential forward rates constant
> between the grid points. This metho... |
Why is the log of the discount curve used? |
I just have come across some relation between `Interest rate swap` and strike of `Cap` as below
$K_{Cap Strike} = \frac{1}{1 + r \times \left(T_2 - T_1 \right)}$
Where $r$ is the Swap rate and the `caplet` is defined between time interval $\left[T_2, T_1 \right]$
I wonder if above relation is technically valid... |
Relation (approximate??) between Swap rate and Cap strike |
I was reading here: [SAP S/4HANA Software Documentation][1]
> *Calculation Methods for Interpolating the Yield Curve*
>
> The option Linear Interpolation of Log( Discount Factor ) means the
> system keeps instantaneous or differential forward rates constant
> between the grid points. This method is very robus... |
Is TBA still called TBA after the pool is announced? Can it be said that TBAs are still traded after the announcement or are all those trades effectively in MBS? I am looking to understand market for both instruments a bit better |
Does TBA become MBS after pool is announced? |
So I am working on strategies that depends on the difference between Actual market price of option and price derived using black and scholes model.
For eg: Spot 19000 , strike 19200 . It is OTM call option where market price is 50. But using Model price is 57.20. That means price is at 7.2 discount. So people are less... |
Difference Between Option market price and Theoretical price? |
I have come across below `CDS` data (index values) based on different Rating, Industries, and Regions,
[![enter image description here][1]][1]
I am wondering where can I get more complete data i.e. such data for all different rating categories etc. current as well as historical time series.
Does `Bloomberg` of... |
I'm new to R but experienced in Stata. I'm working on a research project involving 39 countries, each with 100+ years of daily financial data (date, high, open, close, return), along with USD exchange rates in separate CSV files. I need to create plots, summary statistics, and perform bootstrapping. My main concerns a... |
Not sure if still relevant for the OP, but as I lack modesty I'd like to say that it is possible, to a good approximation, to hedge varswaps dynamically using 3 delta-hedged options only. This is something I found out relatively recently, and explained in the following note:
https://papers.ssrn.com/sol3/papers.cfm?a... |
Not sure if still relevant for the OP, but as I lack modesty I'd like to say that it is possible, to a good approximation, to hedge varswaps dynamically using 3 delta-hedged options only. This is something I found out relatively recently, and explained in the following note:
https://papers.ssrn.com/sol3/papers.cfm?a... |
I am attempting a portfolio optimization model and ended up generating negative portfolio variance using 2Wa*Wb*σa*σb*correl(a,b) or 2WaWb*Cov(a,b)
From reading the linked article where other users had an issue, I’m seeing that it is because the covariance matrix is not semi definite positive:
https://quant.stack... |
I am attempting a portfolio optimization model and ended up generating negative portfolio variance using 2*Wa*Wb*σa*σb*correl(a,b) or 2WaWb*Cov(a,b)
From reading the linked article where other users had an issue, I’m seeing that it is because the covariance matrix is not semi definite positive:
https://quant.stac... |
I am attempting a portfolio optimization model and ended up generating negative portfolio variance using 2Wa*Wb*σa*σb*correl(a,b) or 2WaWb*Cov(a,b)
From reading the linked article where other users had an issue, I’m seeing that it is because the covariance matrix is not semi definite positive:
https://quant.stack... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.