instruction stringlengths 15 26.1k |
|---|
Good day. I am looking to understand how the portfolio construction process is actually done in the industry. Now, I do not know if there are too many resources on how things are currently being done (I would imagine not many are sharing their secrets), but I would like to get a practical understanding (i.e. implementa... |
Every package I have used of the QL's python package thus far have been slower than my own local python functions. From what I understand, it's running C++ underneath, but if you are running loops/iterations in python, it will be doing the C++ operations separately and thus isn't well optimised. (I've never used C++ so... |
When is the Quantlib's C++ to python package faster than just coding natively in python? |
If no-arbitrage exists, then the law of one price holds, but the existence of the law of one price does not always imply that no-arbitrage exists." To prove this, what is an example where the law of one price holds, but no-arbitrage does not? Additionally, how is this concept applied in financial engineering? And what ... |
I'm thinking about a generalization of the following case: for 2 assets, there is a diversification effect as soon as i obtain a positive weight for the minimum-variance portfolio in the asset with the higher volatility.
If $\rho_{12}$ is the correlation coefficient and $\sigma_1 < \sigma_2$ then for $\rho_{12}<\fr... |
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. I have quite some trouble following his arguments. Here is the essence:
> 1. Example. FF3F.
$$
E(R^{ei}) = \alp... |
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.
> 1. Example. FF3F.
$$
E(R^{ei}) = \alpha_i + b_i\lambda_{rmrf} + h_i\lambda_{hml} + s_i\lambda_{smb} \tag{i}
... |
Does including an additional pricing factor necessarily reduce the pricing errors? |
I have the monthly price data of a stock starting from December 2020 and I am considering a EU style look-back option issued in December 2020. The payoff at maturity of the look-back option is given by max(Smin-K, 0) where Smin is the minimum monthly stock price during the life of the option (the fist and last stock pr... |
For some options such as digital and barriers it is common to use "Fuzzy Logic" to improve estimation of value and greeks. But how / when are different functions used for smoothing the payoff function?
I've seen two common approaches in the form of applying a transformation using a linear and sigmoid function. But w... |
I am slightly confused as to whether I should use price spread or ratio for mean reversion in pair trading. I have seen some work on testing stationarity for the price spread and then use the price ratio instead for entry/exit. For example: [https://medium.com/analytics-vidhya/statistical-arbitrage-with-pairs-trading-a... |
Here's a [list][1] for US OTC markets.
[1]: https://otce.finra.org/otce/dailyList?viewType=Symbol%2FName%20Changes |
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. I have quite some trouble following his arguments. Here is the essence:
> 1. Example. FF3F.
$$
E(R^{ei}) = \alp... |
Dear Stack community,
My question is the following;
If my dependent variable is twelve month returns.
And as independent variables I have fiscal year variables like ROA and log variables like the log of the market value.
Where ROA = Net income / total assets
Should I scale ROA either as a fraction (e... |
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. I have quite some trouble following his arguments. Here is the essence:
> 1. Example. FF3F.
$$
E(R^{ei}) = \alp... |
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... |
On page 300 of Hull's *Options, Futures and Other Derivatives*
> It is tempting to suggest that a stock price follows a generalized Wiener process; that is, that it has a constant expected drift rate and a onstant variance rate. However, this model fails to capture a key aspect of stock prices. This is that the expe... |
Ito Process: How to calculate expected return? |
Why do the Greeks not converge to the strike as the volatility tends to zero? |
This is a classic question and has been asked/well-addressed several times in this forum in prior answers. Suffice it to say, a $K$-strike receiver swaption $\leq$ a $K$-strike floor and this inequality is strict if the underlying fwd rates are uncorrelated, as shown by no-arb arguments going all the way back to Merton... |
What are some of the state of the art time series prediction tool with neural network? |
Dear Stack community,
When doing FM regressions for Size groups similar to
Lewellen, J. (2015). The cross-section of expected stock returns. Critical Finance Review, 4(1), 1–44. https://doi.org/10.1561/104.00000024
Accessible at; https://faculty.tuck.dartmouth.edu/images/uploads/faculty/jonathan-lewellen/Exp... |
Dear Quantitative Stack Community,
When following;
Lewellen, J. (2015). The cross-section of expected stock returns. Critical Finance Review, 4(1), 1–44. https://doi.org/10.1561/104.00000024
Accessible at; https://faculty.tuck.dartmouth.edu/images/uploads/faculty/jonathan-lewellen/ExpectedStockReturns.pdf
... |
When doing FM regressions for size groups similar to [Lewellen (2015)][1] (open access [here][2]), should I obtain the cross sectional rolling return window betas using only the size group? (E.g only use large stocks to estimate the betas that will be used to calculate the expected returns for stocks within this group.... |
When following [Lewellen (2015)][1] (open access [here][2]), I am confused as to whether I need to estimate any lambdas. As I already have values for lagged firm characteristics such as ROA and accruals etc. that I can multiply with their respective betas based on rolling return windows. Do I then need to still regress... |
How to get the fari value for an option with variable strike? |
How to get the fair value for an option with variable strike? |
New to Python and QuantLib library so apologies in advance for any details missed and thank you for your time.
Generated a discount curve, dCurve.PiecewiseLogLinearDiscount() using input par rate for terms (.5Y, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y, 30Y) and output discount curve matching the input term structure. The... |
Generated a discount curve, dCurve.PiecewiseLogLinearDiscount() using input par rate for terms (.5Y, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y, 30Y) and output discount curve matching the input term structure. Then was able to generate a spot rate curve on a .5Y interval to 30Y term structure. Any suggestions on how I may conv... |
Generated a discount curve, dCurve.PiecewiseLogLinearDiscount() using input par rate for terms (.5Y, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y, 30Y) and output discount curve matching the input term structure. Then was able to generate a spot rate curve on a .5Y interval to 30Y term structure. Any suggestions on how to convert... |
Generated a discount curve, dCurve.PiecewiseLogLinearDiscount() using input par rate for terms (.5Y, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y, 30Y) and output discount curve matching the input term structure. Any suggestions on how to output the discount factor curve on a .5Y interval term structure up to 30Y?
|
I'm currently taking a (gentle) intro to derivatives class. One of the exercises asked me to discuss duration as a risk measure and to provide alternative methods of hedging a bond portfolio against interest rate risks (other than using bond futures). While I managed to answer the first part, I'm wondering: what other ... |
Any other ways to hedge a bond portfolio against interest rate risk? |
How are the Effective Dates and Maturity Dates of a forward starting IRS (eg: EURIBOR3M 5Y5Y) handled when the forward starting term ends on a non-business day? And if that date is adjusted, how does that impact the maturity date of the forward starting IRS?
For example if I trade on 6th Jan 2023, the T+2 spot date be... |
It seems to me that : Dirty = sum_i( cashflow_i * exp( - yld * ti ) )
= sum_i( cashflow_i * exp( - ( ois_i + Zsprd ) * ti )
Than should we have some approximation like : Yld = OIS( t = duration ) + Zsprd ?
|
Is there a relationship formula between Bond YTM, ZSpread ( to OIS ) and OIS rate? |
It seems to me that :
$$\begin{aligned}
P_{Dirty} &= \sum_i(\text{cashflow}_i * \exp( - \text{yield} * t_i ) ) \\
&= \sum_i( \text{cashflow}_i * \exp( - ( \text{OIS}_i + \text{Zsprd} ) * t_i )
\end{aligned}
$$
Than should we have some approximation like : $\text{Yld} = \text{OIS}_{t=d... |
Charlie Munger mentioned in Acquired Podcast "the first algorithm was so simple. They sifted all this data for the past and what did they decide? Up, up, which were two closing prices, and down, down were more common than down, up, or up, down.
Once they realized that's the way it was for various reasons deeper than... |
What is the first up date and what exactly first algorithm of Renaissance? |
We know that the hedge ratio ϕ_F that we should use in order to to the duration-hedging through bond futures is:
ϕ_F= -DV01_B / DV01_CTD *CF_CTD
Where:
DV01_B is the dollar duration of the bond i want to hedge divided by 10000, i.e. it is equal to:
(modified duration B * dirty ctv B) /10000
DV01_CTD is the ... |
Charlie Munger mentioned in Acquired Podcast
"Renaissance, the first algorithm was so simple. They sifted all this data for the past and what did they decide? Up, up, which were two closing prices, and down, down were more common than down, up, or up, down.
Once they realized that's the way it was for various re... |
Charlie Munger mentioned in Acquired Podcast
*Renaissance, the first algorithm was so simple. They sifted all this data for the past and what did they decide? Up, up, which were two closing prices, and down, down were more common than down, up, or up, down.
Once they realized that's the way it was for various reas... |
We know that the hedge ratio ϕ_F that we should use in order to to the duration-hedging through bond futures is:
ϕ_F= -(DV01_B / DV01_CTD )*CF_CTD
Where:
DV01_B is the dollar duration of the bond i want to hedge divided by 10000, i.e. it is equal to:
(modified duration B * dirty ctv B) /10000
DV01_CTD is th... |
Suppose that COMPANY A has issued a special bond that does not pay any coupons. At maturity T, the bondholder receives the principal (face value) equal to 1,000 plus an additional payment equal to the maximum of zero or 170 times (O-25), where O is the oil price at the bond's maturity T. However, this... |
Greetings I am looking for data on bonds. When I go into Yahoo Finance and I type in F for Ford it does not bring up anything about bonds just like that other website(firna) it goes straight to stock info about Ford. When I go to market business insider it only shows some info the assignment requires about the bonds. A... |
Where to look for data on bonds? |
This is essentially some form of commodity-linked structured note (this case being oil). In this case, such a structured is a Leveraged Participation note with Cap in industry lingo.
In terms of how to replicate this, it is pretty simple. Consider a call spread, and how many units of this call you need to make to a... |
**This post is Quant Stack Exchange's master list of data sources.**
Please append your links to other data sources to the list below. Note that a source listed under a certain topic may provide extensive data on other types of instruments as well.
## Economic Data ##
See [What are the most useful sources of ... |
**This post is Quant Stack Exchange's master list of data sources.**
Please append your links to other data sources to the list below. Note that a source listed under a certain topic may provide extensive data on other types of instruments as well.
## Economic Data ##
See [What are the most useful sources of ... |
I was discussing with a colleague, but in short, how do you compare a fixed bond vs a loan/frn when it comes to spread? Theoretically, you should get paid more for holding fixed bonds, as you have duration risk, so in my view you need to take the z spread of said fixed bond, substract the equivalent maturity swap rate,... |
Compare Spread On A Fixed Bond Vs A Loan/FRN? |
Traditionally US swap spreads were traded as LIBOR or OIS swaps versus USTs.
In the former case the spread at the short end of the curve was very much a function of LIBOR repo spreads. Further, LIBOR which was a measure of bank credit was fundamentally different from the credit of the US government. Therefore, some ... |
I'm currently going through Lorenzo'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? |
A book that has exercises which closely resembles the content of Lorenzo's Stochastic Volatility Modeling book? |
In binomial tree model, the stock price is modelled in the form of $S_{k\delta}=S_{(k-1)\delta}\exp(\mu\delta+\sigma\sqrt\delta Z_k)$, where $\delta$ is time invertal between two observations $S_{k\delta},S_{(k-1)\delta}$, $Z_k=1,-1$ for upward and downward scenarios of the stock price change.
I noted some illustrat... |
Stock price modelling under binomial tree model? |
Recently (~10 years ago), Kuchler&Tappe have set up a new stochastic process called Bilateral Gamma process. This process is defined through its increments:
$$\forall t\geq s, X_t-X_s\sim \Gamma_{BG}(\alpha_+(t-s), \lambda_+, \alpha_-(t-s), \lambda_-)$$
where:
$$\Gamma_{BG}(\alpha_+, \lambda_+, \alpha_-, \lamb... |
Why is BG porcess a pure jump process? |
My friend was asked this question and I’m curious as to how people would play. There are 15 cards face down on a table. You can draw any number, n, of them at random. You only see the cards you have drawn after drawing all n cards. 14 of the cards will double your money, and one of the cards will multiply your money by... |
How would you approach this positive EV and high variance betting problem? |
In the fixed income space, market makers, such as banks, often utilize platforms like TradeWeb. I'm seeking a clearer understanding of the workflow involved in this process.
From my current understanding, the process unfolds as follows: Suppose Bank A intends to sell one of its 2-year Treasury bonds. Bank A contacts... |
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. I have quite some trouble following his arguments. Here is the essence:
> 1. Example. FF3F.
$$
E(R^{ei}) = \alp... |
Consider the attached discussion from Berk and Demarzo's *Corporate Finance*.
[![enter image description here][1]][1]
I am confused about the calculation of a bond's "clean price". It seems that the procedure described above seems to tacitly "linearly discount" the accrued interest, rather than discounting cash f... |
Is this linear interpolation for clean bond price an approximation? |
It is my first message on this board, I have hesitated a few days before bothering you with my struggles, but I've seen a lot of very knowledgeable and patient people here willing to help out.
I apologize in advance for my bad English as well as my naive questions, I'll try to be as precise and concrete as possible.
... |
We know that the hedge ratio ϕ_F that we should use in order to to the duration-hedging through bond futures is:
$$ϕ_F= -(DV01_B / DV01_{CTD} )\cdot CF_{CTD}$$
Where $\textrm{DV01}_B$ is the dollar duration of the bond I want to hedge divided by 10000, i.e. it is equal to:
$$(\textrm{modified duration B} \cdot ... |
I have a fund where the underlying assets are in USD, and my mutual fund is in CLP. How can i hedge this fx risk without affecting rentability of the fund. I had a previous idea of a zero cost collar, but is this option optimal for my problem?
|
I manage a mutual fund where the underlying assets (or the shares i buys) are in USD, and my mutual fund is in CLP (Chilean Pesos). How can i hedge this fx risk without affecting the return of the fund. I had a previous idea of a zero cost collar, but is this option optimal for my problem?
|
I will try to clarify. Imagine that a European call option is written on $S$ and have maturity $T$. Moreover, imagine it is worth $c_t$ at time $t$. Can $c_t > S_t$? Under the no arbitrage assumption, it can't. To see why, let us build the following trading strategy:
- We sell the call option and gain $c_t$
- We buy ... |
I would like to calculate the VaR for a repo trade using filtered historical simulation incorporating GARCH.
So, for example, in the first leg, 3000 of bond goes out on day 1. In the second leg, 3000 of bond is repurchased, occuring in 12 months time.Between day1 and day250 (12 months), the conditional volatility fore... |
what is a good intro book / course / source of knowledge on the topic of Market Risk for investment banking? I'm IT person cooperating with quants market risk team, and found myself either missing some finance knowledge and or getting confused on a generic terms meaning within market risk context. Tried a few books, bu... |
I am reading Taleb ["Fooled By Randomness"][1], and the author says that a 15% return with 10% volatility translates to 93% success in a year and 50.02% success in any given second.
Could someone help me understand this calculation?
[1]: https://www.randomhousebooks.com/books/176225/ |
I am looking for alternatives or relatively similar information about historical data for yields and/or asset swap spreads for bond indices in major currency. I would like to gather the info by rating (IG and HY) and per duration bucket. I am not looking for real time data, but historical series for statistical analysi... |
Bond indices : where to find yields and asset swap spreads by rating and average duration? |
I know that the more an option is ITM, the more is the implied volatility. I would like to deep dive into the concept, what is the logic that drives this statement? Also comparing an option with a higher delta to one with a lower delta, why the one with higher delta will have a lower vega? |
Using the dupire method:
$$\sigma(T, K)=\sqrt{\frac{\sigma_{\mathrm{imp}}^2+2 \sigma_{\mathrm{imp}} T\left(\frac{\partial \sigma_{\mathrm{imp}}}{\partial T}+(r-q) K \frac{\partial \sigma_{\mathrm{imp}}}{\partial K}\right)}{1+2 d_1 K \sqrt{T} \frac{\partial \sigma_{\mathrm{imp}}}{\partial K}+K^2 T\left(d_1 d_2\left(\fr... |
When getting the local vol surface from the implied vol surface, do we interpolate the strikes? |
<sub>[Crossposted][1] on Mathematics SE</sub>
---
I was able to solve the following problem and find the arbitrage but only after spending a long time on it and trying out different possibilites. Is there a method or technique that can help me find the arbitrage faster and in a more efficient way rather than just... |
How do we find the implied volatility from the price in a call option and apply it to another option without a calculator? Or is there actually a better way?
For example, given a 25-strike 1.0-expiry call option on $S$ has time-0 price 0.90 with $r = 0.03$, with $S_0 = 20$. Find the price of a 16-strike 1.0-expiry put... |
I know that the more an option is ITM, the more is the implied volatility. I would like to deep dive into the concept, what is the logic that drives this statement? Also comparing an option with a higher delta to one with a lower delta, why the one with higher delta will have a lower vega? The explanation that I found ... |
Welcome Kai, I am Kai. Hopefully this answers your question?
A Review on IV Calculations
https://www.sciencedirect.com/science/article/pii/S0377042717300602
I don't think there are exact mathematical solutions, but much rather approximates. If you want exact solutions, they should be numerical. |
for example 2-5-10 year butterfly trade. Butterfly can be constructed via spot swap trades?
I am wondering if it make sense to construct it via forward starting swap trades ? i.e., constructing it from 3 year forward starting 2Y swap and a 5 year forward starting 5 year swap? what are the considerations? |
After having read the article of Trolle & Schwartz regarding their general stochastic volatility term structure model (https://papers.ssrn.com/sol3/papers.cfm?abstract_id=966364), it is not clear how the model becomes Markovian. It is well-known that if and only if HJM model is Markovian, then the forward rate volatili... |
How do we find the implied volatility from the price in a call option and apply it to another option without a calculator? Or is there actually a better way?
For example, given a 25-strike 1.0-expiry call option on $S$ has time-0 price 0.90 with $r = 0.03$, with $S_0 = 20$. Find the price of a 16-strike 1.0-expiry put... |
### Introduction
Discounting a value $X_{T}$ is premised through the presence of a risk-free security with a rate of $r$ per annum that yields the same value at time $T$, in years. That is
\begin{align*}
P(1+r)^{T} &= X_{T} \\ \\
\implies P &= \frac{X_{T}}{(1+r)^{T}}
\end{align*}
$P$ is the present value of... |
I am attempting to gather data for my dissertation on daily closing prices for all 1700ish companies within the US tech sector. Now, doing this one by one through something like datastream is going to take me absolutely forever, hence the question: does anyone know how I could extract all this data in a concise and qui... |
How do we find the implied volatility from the price in a call option and apply it to another option without a calculator? Or is there actually a better way?
For example, given a 25-strike 1.0-expiry call option on $S$ has time-0 price 0.90 with $r = 0$, with $S_0 = 20$. Find the price of a 16-strike 1.0-expiry put op... |
I am trying to price a path dependent option which uses two underlyings (a stock index and an interest rate index). I am using Hull White model for interest rate modelling and local vol for stock index modelling.
\begin{eqnarray}
dr(t) &=& (\theta(t) - kr(t))dt + \sigma_r(t)dw_r(t)\\
\end{eqnarray}
\begin{eqnarra... |
I am trying to price a path dependent option which uses two underlyings (a stock index and an interest rate index). I am using Hull White model for interest rate modelling and local vol for stock index modelling.
\begin{eqnarray}
dr(t) &=& (\theta(t) - kr(t))dt + \sigma_r(t)dw_r(t)\\
\end{eqnarray}
\begin{eqnarra... |
on June 1st 2023, 1 EUR was buying 1.0762 USD spot. In the forward market, one could sell EUR 3m forward for 1.0816 USD.
Forward rate was greater than the spot rate, therefore EUR was trading at a forward premium, and one would expect a positive roll yield (in CFA type questions, such situation means hedging is enco... |
Unexpected negative roll yield on USD/EUR forward? |
I am pricing government bonds ranging from JPN, GERMANY, UK, India to NIGERIA, MXN, ARG, Brazil etc.
What is the better approach to use OIS for each currency or build a curve using government zero coupon rates?
Also, where from I can get OIS rates for different currencies?
Looking for a paid source (BBG, markit... |
Pricing Government Bonds use OIS or Gov. ZC Yields? |
I am not sure what you mean with unexpected negative yield? Who claims covered interest rate parity (CIP) is an unbiased forecast for exchange rates?
Empirically, random-walk (RW) forecasts (which in a nutshell means the best forecast for today is yesterday’s value) outperform economic models of exchange rates FX, ... |
The documentation points to a different approach than the standard linear in log discount factors. The EURIBOR 6M curve 45 is the prime example. Does anyone understand the implementation details of this. In building the anchor chain, how are the discount factors at 18 and 24 months obtained. Are these read from the pre... |
Say we have a stock $S_t$ which pays a cash dividend at $T_D$ of amount $div$. Let us assume rates $r=0$, for simplicity. Then the forward is $F_{T_D} = S_0 - div$, and we can compute the continuous dividend yield of $q_{T_D} = -\log(F_{T_D}/S_0)/T_D$.
If $BS(T,K,q,\sigma)$ is the Black-Scholes call option price and... |
Cash Dividend implies skewed (negative) vol smile? |
I am interested in doing research in price discovery of assets. I came across a measure for price discovery, called the Generalized Information Share (GIS) approach proposed by Donald Lien and Keshab Shrestha in 2009 (See Reference). This is a modified approach of information share (IS) originally proposed by Hasbrouck... |
I am not sure what you mean with unexpected negative yield? Who claims covered interest rate parity (CIP) is an unbiased forecast for exchange rates?
Empirically, random-walk (RW) forecasts (which in a nutshell means the best forecast for today is yesterday’s value) outperform economic models of exchange rates FX, ... |
In this answer, I provide Matlab code for implementing a two-step GMM test of a multi-factor asset pricing model. I closely follow [Cochrane (2005)](https://www.johnhcochrane.com/asset-pricing) which is an amazig book. See also this [short video](https://www.youtube.com/watch?v=sZPk51Uniuc). The code begins from upload... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.