instruction stringlengths 15 26.1k |
|---|
If I am given a return prediction and factor exposures for say 50 stocks, as well as the factor covariance matrix, what is the process to determine the weightings of the minimum variance portfolio, assuming shorting is possible?
If someone could point me in the right direction that would be much appreciated.
|
I was recently attempting to replicate a part of the paper - DeMiguel, Plyakha, Uppal and Vilkov (2013), where they compute a model-free implied volatility (MFIV) quantity.
In the paper, the MFIV is computed as the root of the variance contract, which according to Bakshi et al. (2003), is the discretized sum of sca... |
Let's say that for a single asset, we have a data stream from which we receive both level 2 order book updates (price level/quantity updates) as well as time & sales updates (grouped recent trades).
I realize that what is done with this data to inform trading decisions becomes proprietary quite quickly, but is there... |
I'm trying to obtain a parallel shift in my efficient frontier based on the Merton 1972-parameters. As i think a picture tells you more than 1000 words here is what i tried:
The setting of my problem is the following:
Correlation Matrix:
[![enter image description here][1]][1]
Std.and Mean vector:
[![ent... |
How to change the covariance matrix for a parallel-shift of the efficient frontier? |
I'm trying to obtain a parallel shift in my efficient frontier based on the Merton 1972-parameters. As i think a picture tells you more than 1000 words here is what i tried:
The setting of my problem is the following:
Correlation Matrix:
[![enter image description here][1]][1]
Std.and Mean vector:
[.
Recently I reproduced their example in Python; you can read my code at <ht... |
Suppose an option payoff function max(min(S-1, 2-S), 0). To value such an option, one would decompose this function, for example, as follows: max(S-1, 0) - max(2S-3, 0) + max(S-2, 0). Now, it can be valued using the Black-Scholes formula.
How is this decomposition (or any other solution for that matter) obtained?
... |
I was reading the paper https://www.researchgate.net/publication/373170469_Generalized_Method_of_Moments_Estimation_of_Realized_Stochastic_Volatility_Model and I have some doubts regarding it
The realized Stochastic Volatility Model is expressed as follows:
$y_t = \exp(\frac{h_t}{2})\epsilon_t $ where $\epsilon_t\... |
I was reading [Zhang and Wang 2023](https://www.researchgate.net/publication/373170469_Generalized_Method_of_Moments_Estimation_of_Realized_Stochastic_Volatility_Model) and I have some doubts regarding it. The realized Stochastic Volatility Model is expressed as follows:
$$\begin{matrix}
y_t = \exp \big( \frac{h_t... |
Suppose an option payoff function $$max(min(S-1, 2-S), 0)$$ To value such an option, one would decompose this function, for example, as follows: $$max(S-1, 0) - max(2S-3, 0) + max(S-2, 0)$$ Now, it can be valued using the Black-Scholes formula.
How is this decomposition (or any other solution, for that matter) obtai... |
I was reading [Zhang and Wang 2023](https://www.researchgate.net/publication/373170469_Generalized_Method_of_Moments_Estimation_of_Realized_Stochastic_Volatility_Model) and I have some doubts regarding it. The realized Stochastic Volatility Model is expressed as follows:
$$\begin{matrix}
y_t = \exp \big( \frac{h_t... |
I'm just a beginner and third-year statistics major student. Based on what I read in some journal, most common model that used to calculate VaR or CVAR is GARCH. Is there any possibility that I can use Heston volatility model instead? Thank you. |
Can heston volatility model be used to calculate VaR or CVaR? |
When pricing derivatives using Monte Carlo methods, we take outset in the risk neutral pricing formula which states that we need to calculate the *expected value of the discounted cashflows*. To do this, we simulate the market variables which - depending on the model and the product of consideration - might require tha... |
When pricing derivatives using Monte Carlo methods, we take outset in the risk neutral pricing formula which states that we need to calculate the *expected value of the discounted cashflows*. To do this, we simulate the market variables which - depending on the model and the product of consideration - might require tha... |
There's something I've been trying to understand for a while now, and I just can't quite understand, with regards to skew. In the same month, why can't you buy a option that has low implied vol on the skew and sell another option that has a high implied vol and dynamically hedge? For instance, let's say XYZ is trading ... |
Assuming positive skew premium, is selling OTM strangle always a superior strategy than selling ATM straddles ( given daily delta hedged), since OTM IV is higher?
Thanks. |
Let's say that for a single asset, we have a data stream from which we receive both level 2 order book updates (price level/quantity updates) as well as time & sales updates (grouped recent trades).
I realize that what is done with this data to inform trading decisions becomes proprietary quite quickly, but wanted t... |
Assuming positive skew premium, is selling OTM strangle always a superior strategy than selling ATM straddles ( given continuously delta hedged, and the P&L is theoretically simplified as 0.5 * Gamma * Spot ^2 * (IV^2 - RV^2)), since OTM IV is higher?
Thanks. |
Assuming positive skew premium & continuously delta hedged, is selling OTM strangle always a superior strategy than selling ATM straddles (hence P&L is theoretically simplified as 0.5 * Gamma * Spot ^2 * (IV^2 - RV^2)), since OTM IV is higher?
Thanks. |
Can Heston volatility model be used to calculate VaR or CVaR? |
Posting my comment as an answer :):
Could you post an example of your problem? If you have positive volatilities and interpolate between them, then the interpolated values should be positive too (also using cubic spline interpolation). So: no, your implied vols should always be positive. |
I'm working with a fixed-rate bond in QuantLib, and I have set the day count convention to ISMA, but I would like to understand how this specific day count convention is used in the calculation of the bond's first cashflow I have gone through the link https://www.isda.org/a/pIJEE/The-Actual-Actual-Day-Count-Fraction-19... |
I'm working with a fixed-rate bond in QuantLib, and I have set the day count convention to ISMA, but I would like to understand how this specific day count convention is used in the calculation of the bond's first cashflow I have gone through the link https://www.isda.org/a/pIJEE/The-Actual-Actual-Day-Count-Fraction-19... |
I am looking at the difference if you calibrated the heston from market data using objective function minimisation.
In scenario 1, I calibrate all the parameters from market data
In scenario 2, I calculate the implied volatility using market data for strikes close to ATM and 1-2 weeks expiry, then I use that as my ... |
Using the ATM implied vol of short term options is indeed a common practice for $v_0$ as in your Scenario 2. Linear interpolation should be enough, given that 1 week is somewhat arbitrary anyway. In Scenario 1, you will want to use this for the initial guess of the minimization.
Of course, it is not much more costly... |
I am looking at the difference if you calibrated the heston from market data using objective function minimisation.
In scenario 1, I calibrate all the parameters from market data
In scenario 2, I calculate the implied volatility using market data for strikes close to ATM and 1-2 weeks expiry, then I use that as my ... |
I am a beginner who recently found a job in the FICC sector. My superior gave me this question to think about: 'We have a bond with a 5% coupon rate and a maturity of 10 years, and the discount rate refers to the IRS rate. Represent the value of this bond using a method other than the DCF method; a hint is that this bo... |
Is there another method besides DCF to evaluate a fixed-rate bond? |
How to calculate weighted return of two stock prices? |
I've recently been trying to work on and understand the concepts around CDS. By making simplifications (flat hazard rate, flat forward rate), I wanted to compare the values I could obtain by calculation for the NPV of the couponsLeg and the protectionLeg with the one I could obtain by calculation.
I got exactly the ... |
I've recently been trying to work on and understand the concepts around CDS. By making simplifications (flat hazard rate, flat forward rate), I wanted to compare the values I could obtain by manual calculations for the NPV of the couponsLeg and the protectionLeg with the one I could obtain by using QuantLib.
I got e... |
Welcome to the forum. I assume your returns in the list are ordered by time?
You can simply add 1 to both lists such that the returns become:
[![enter image description here][1]][1]
The final portfolio return is just the cumulative product of 'Port Returns'.
PS. I am not sure why the table formatting is not w... |
Welcome to the forum. I assume your returns in the list are ordered by time?
You can simply add 1 to both lists (while multiplying the short position by a minus '-' sign BEFORE adding the 1) such that the returns become 'A Return' and 'B Return' columns:
[![enter image description here][1]][1]
The 'Portfolio Ret... |
There is a paper from Gary Kennedy precisely about this question:[A Reduction Algorithm for a Class of Payoff Formulae][1] (2010)
[1]: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1645275 |
What are some factually incorrect quantitative finance answers generated by AI? |
Question: "How do you convert annual yield quote to semi-annual?"
Wrong answer: "To convert an annual yield quote to semi-annual, you simply divide the annual yield by two. This is because semi-annual yields are calculated based on two compounding periods per year.
For example, if a bond has an annual yield of 5%... |
Posting my comment as an answer :):
Could you post an example of your problem? If you have positive volatilities and interpolate between them, then the interpolated values should be positive too (also using cubic spline interpolation). So: no, your implied vols should always be positive.
EDIT:
This is an edit a... |
Question: "How do you convert annual yield quote to semi-annual?"
### Wrong answer:
> To convert an annual yield quote to semi-annual, you simply divide the annual yield by two. This is because semi-annual yields are calculated based on two compounding periods per year.
>
> For example, if a bond has an annual... |
If a financing company has a new funding program, is there a statistical method that can be used to construct a probability of default (PD) for IFRS 9 ECL calculation purposes? Considering that historical data is very minimal, less than one year.
Thanks for your input! |
How to construct the probability of default (PD) with not much historical data (<1 year)? |
Suppose that we have an estimated Information Ratio $IR^*$ calculated from the relative returns between a portfolio and a benchmark.
I am looking for a way to quantify the uncertainty of this calculated value by either testing for significance of the value or by estimating a confidence interval.
I've read that th... |
My teacher said that the payoff of a put is $\mathrm{max}(K-S_T, 0)$, where $K$ is the strike price and $S_T$ is the spot price at maturity. Why isn't it $K$ if $K-S_T > 0$ and $0$ otherwise (i.e. $K*\mathbf{I}_{K-S_T>0})$? If you exercise the option when $K-S_T>0$, then you make $K$ by selling it and otherwise make $0... |
True or false.
A mean-variance investor, when deciding between multiple portfolios to add to an already well diversified portfolio, should pick the portfolio with the highest sharpe ratio.
This is false. It should be the one with the highest appraisal ratio. AI always says it's true.
Edit: @Dimitri just tried,... |
A classic:
> Does Modern Portfolio Theory as proposed by Markowitz assume normality of returns?
ChatGPT:
> Yes, Modern Portfolio Theory (MPT) as proposed by Markowitz does assume normality of returns. It assumes that the returns of individual assets are normally distributed, which means that they follow a bell-s... |
I have come across below link on how to calculate the `delta` sensitivity for interest rate product
https://ibkrcampus.com/ibkr-quant-news/delta-sensitivity-of-interest-rate-swap-part-i/
According to above link, the `delta` sensitivity calculation can be done using the formula,
[![enter image description here... |
**Asking ChatGPT 3.5:**
> How is the CBOE VIX calculated?
**Answer:**
> The CBOE Volatility Index, often referred to as the VIX, is calculated
> using a formula that involves the prices of a specific set of options
> on the S&P 500 index. The VIX is a measure of implied volatility, or
> expected market vola... |
**Question for ChatGPT 3.5:**
> Is 50 delta ATM?
**Answer**
> Yes, a 50 delta option is considered "at-the-money" (ATM). Delta is a
> Greek letter used in options trading to measure the sensitivity of an
> option's price to changes in the underlying asset's price. It
> represents the probability that the op... |
Question:
> Can a portfolio that is efficient (meaning that it lies on the Capital
> Market Line) be undervalued (i.e. having a positive alpha)?
Answer by ChatGPT:
> ChatGPT
>
> Yes, it is possible for a portfolio that lies on the Capital Market
> Line (CML), also known as the efficient frontier, to be unde... |
An urn contains **20** balls colored each of the **7** colors of the rainbow (**140** total balls). We select balls one-by-one without replacement. Given that in the first **70** draws we selected **5** more red balls than yellow, find the probability the **71**st ball drawn is yellow.
[Question Source][1]
## My ... |
## Question
How do I calculate the OAS spread of a bond?
## Chat-GPT 3.5 Answer
The Option-Adjusted Spread (OAS) of a bond is a measure that takes into account the embedded options, such as call options or put options, in a bond's structure. It represents the additional yield over the risk-free benchmark (typi... |
This is my general approach for analysing repo specific bonds, or bonds that gone "special" on repo.
### The Spot Price
Suppose firstly that we have 3 bonds, a 1y, 2y and 5y with different coupons and different YTMs currently. We can use this information to construct a bond curve that will value these bonds.
... |
The problem is to calculate the cash flow schedule for a simple fixed rate loan where principal amortization periodicity is not equal to interest payment periodicity. For example, amortization is every 6 months and interest is paid every month.
The key difficulty in implementing this via TradeType = Bond is that the ... |
I am trying to replicate mechanism behind SWPM function of Bloomberg.
[![enter image description here][1]][1]
[![enter image description here][2]][2]
[![enter image description here][3]][3]
[![enter image description here][4]][4]
[1]: https://i.stack.imgur.com/mrXWZ.png
[2]: https://i.stack... |
I am studying a previous post on how to build `SOFR` discount curve here https://quant.stackexchange.com/questions/61838/libor-transition-building-sofr-discount-curve
However, I struggle to understand the below formula
[![enter image description here][1]][1]
What is the reason of having LHS as 100 i.e. the Pri... |
Here's an attempt at a more intuitive argument, at the risk of losing some rigor, based on the solution I wrote out in the section after the dividing bar.
Assume that in the first 70 draws, we saw 5 more red balls than yellow balls. Let's answer two questions about our 71'st draw:
#### 1) How much more likely are... |
I am attempting back test the performance of a model - namely the Musiela equation used to model instantaneous forward rates with constant time to maturity:
$$r(t,x)=r(0,x)+\int_0^t\left(\frac{\partial}{\partial x}r(u,x)+\sigma(u,u+x)\int_0^x\sigma(u,u+s)ds\right)du+\int_0^t\sigma(u,u+x)dW_{\beta}(u)$$
Define instant... |
I need to calculate the schedule of a fixed rate mortgage and an adjustable rate mortgage.
Is there an open source library, preferable in python, that already makes these calculations? I tried `quantlib` but it doesn't support mortgages. |
Problem Statement
A jar contains 140 balls with 7 different colors, 20 balls for each color. A total of 70 balls are removed. Among these 70, the number of red balls is 5 greater than the number of yellow balls. The question is: if one more ball is drawn, what is the probability that it will be yellow?
Solutions
A... |
A1: Volatility implied by what model? :)
A2: Check what the volatility smile is and how it affects your model.
**UPD:**
As @frido insisted, I would add more details.
### "Why not 1 year IV"
Because processes are different. CIR distribution (Heston) is different from brownian motion with constant IV (Black-... |
You have 2 instruments: X in which you are quoting 35 @ 40 and product Y in which you are quoting 15 @ 30. We want to make a market on the product X+Y. What is the bid-ask spread you will quote?
Got this in an interview for a quant firm. |
I'm trying to price a CSO on Soyoil. The instrument is extremally illiquid.
To proceed, I simulate both leg by Monte Carlo, using the historical correlation over the 75past days and their respective ATM Implied Volatility. For each simulations of both leg in a row, I impose the correlation with a Cholesky decompositio... |
My understanding is that HF that short the US Treasury will need to buy the spot in order to deliver at the maturity date. Won't that increase the demand for UST and reduce yield instead? |
How does the recent increase in shorting of US Treasury futures explain the spike in yield for US Treasury? |
With rates rising, certain contracts, such as the USZ3, are prone to frequent CTD switches with sometimes large differences in the DV01 of an underlying CTD. Does anyone know of any resources for calculating the DVO1 for a treasury future that is prone to CTD change risk or alternatively any off the shelf solutions tha... |
- Problem Statement
Hi, I am trying to calibrate SABR on a new asset, which is not 'forward swap rate'. While using the vanillaSABR calibration, I find the parameter 'sigma' (one of model parameters, sigma, alpha, rho, beta) hugely depends on the absolute value of strike/forward-price. That is, if I feed the model w... |
I have a fixed-float swap valuation to realize. The floating leg is referenced to SOFR with a 10 days lookback. The first coupon has already started, on 01/09/2023, and ends on 01/12/2023. The first coupon fixing is realized on 15/11/2023.
How do I evaluate the first floating coupon interest rate if I want to evalu... |
Any particular situations which can lead to this? |
Some US AAA Corp are borrowing below UST for 10yr paper. What could be the reasons for this? |
I wouldn't give these explanation much credence. You can always concoct some explanation ex post. For ex. if we see increased shorting and a spike in yield you could say "the futures traders are the smart money, they predicted a spike in yield and sure enough it happened". Sounds intelligent but who knows if it is true... |
I wouldn't give these explanations much credence. You can always concoct some explanation ex post. For ex. if we see increased shorting and a spike in yield you could say "the futures traders are the smart money, they predicted a spike in yield and sure enough it happened". Or "it's the Global Macro funds again, shorti... |
Has ML based stock-clustering been practically adapted by the industry in arbitrage trading strategies like pairs trading for forming pairs instead of other traditional techniques like cointegration? |
I am interested in *optimal* portfolios in a multi-period setting
To be more precise, say I have an investment horzion over $T$ periods and the market consists of $N$ assets. I simulated future asset returns and have a total of $K$ scenarios.
Let
$$
r_{n, t, k} \quad \ n \leq N, \ \ t \leq T, \ \ k \leq K,
$$
... |
Let's assume you can calibrate just as well using $\beta = 1$. Then you'd have
$$
dF = \alpha \sqrt F dW
$$
and
$$
dF = \tilde\alpha F dW = (\tilde\alpha \sqrt F) \sqrt F dW
$$
So you can make the identification
$$
\alpha \sim (\tilde\alpha \sqrt F)
$$
In your example $\alpha = 13.71$ and $\tilde \alpha = ... |
Let's assume you can calibrate just as well using $\beta = 1$. Then you'd have
$$
dF = \alpha \sqrt F dW
$$
and
$$
dF = \tilde\alpha F dW = (\tilde\alpha \sqrt F) \sqrt F dW
$$
So you can make the identification
$$
\alpha \sim (\tilde\alpha \sqrt F)
$$
In your example $\alpha = 13.71$ and $\tilde \alpha = ... |
Indeed, algorithmic trading is a very hidden subject.
All I can help you with are some industry-specific terms which might speed up your search for relevant papers and information:
- [Risk of ruin tables](http://2ndskiesforex.com/trade-signals/forex-strategies/money-management-and-the-risk-of-ruin/)
- (Peak-to... |
I know it has nice properties relating to Roger Lee's moment formula and the Heston model asymptotics, but I am just curious how Jim Gatheral came up with this formula in the first place. I read a post somewhere saying the motivation for JG was that he might want to have a linear slope for the put wing and a square roo... |
How did Jim Gatheral come up with the SVI parameterization? |
I am trying to recreate the Mean-Variance-Skewness-Kurtosis-based Portfolio Optimization work done by Lai et Al. (2006).
I reached the part where in order to run the PGP model, you need to feed the aspired levels of the first four moments. The steps to calculate the aspired levels are the following:
[![enter imag... |
I am trying to recreate the Mean-Variance-Skewness-Kurtosis-based Portfolio Optimization work done by Lai et Al. (2006) ([link][1]).
I reached the part where in order to run the PGP model, you need to feed the aspired levels of the first four moments. The steps to calculate the aspired levels are the following:
[... |
I've spoken to one or two persons at some market making shops, and I'm under the impression that for modelling tick data, aside from the rise of ML, a pure jump process such as the variance gamma model is preferred certainly over diffusion models, and sometimes even over jump-diffusion models.
Question:
This [the ... |
I've spoken to one or two persons at some market making shops, and I'm under the impression that for modelling tick data, aside from the rise of ML, a pure jump process such as the variance gamma model is preferred certainly over diffusion models, and sometimes even over jump-diffusion models.
*Question*:
This [... |
Apologies in advance if this problem is somewhat ill-posed. But I was thinking given the price of a call option can be formulated in terms of a implied probability density function at time $T$, would it be possible to price a call option given a non-lognormal distribution of *daily* returns?
My question would be how... |
Is it possible to price a call option given a daily underlying returns distribution? |
I am a bit confused about the definition of basis risk, and how it applies to a zero dividend stock.
A study manual that teaches me about that mentioned basis risk happens when there are mismatches in underlying asset price and future price, e.g. for a t+k year mature future, the basis risk at the time of sales is
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.