instruction
stringlengths
15
26.1k
Assume that on today's date as of `11/22/2020` the 1 year `forward exchange rate` for `EUR/USD` is 1.5 for maturity `11/22/2021`. Current `RFR` for EUR and USD is flat `0.5% and 0.1%`. With this information, can I calculate the expected Forward exchange rate for same maturity for some future date, say `03/22/202...
In the model [here][1] described, Bertsimas says that we can use the Robust Optimization to find the replicating portfolio the value of which is such that minimize the difference $|P(\widetilde{S},K)-W_T|=\epsilon$ in the face of all possible realizations of returns of the underlying included in the uncertainty set $U\...
In the model [here][1] described, Bertsimas says that we can use the Robust Optimization to find the replicating portfolio the value of which is such that minimize the difference $|P(\widetilde{S},K)-W_T|=\epsilon$ in the face of all possible realizations of returns of the underlying included in the uncertainty set $U\...
The fair value of Eurodollar future contracts is calculated using the no arbitrage pricing and the spot curve for LIBOR. How does one compute the theoretical fair value of 1M and 3M SOFR Future contracts?
Theoretical fair value of SOFR 1M and 3M Future contracts?
The following assumptions are part of the paper and I can not solve for the statistic that is denotes as $\phi$ in the sequel. I would be glad if anyone could help me. Suppose that in the market, thera are $N\geq 1$ inforemd agents, who trade a risky asset continuousely in the time interval $[0,1)$. Each agent $i$ r...
The following assumptions are part of the paper and I can not solve for the statistic that is denotes as $\phi$ in the sequel. I would be glad if anyone could help me. Suppose that in the market, thera are $N\geq 1$ inforemd agents, who trade a risky asset continuousely in the time interval $[0,1)$. Each agent $i$ r...
In the model [here][1] described, Bertsimas says that we can use the Robust Optimization to find the replicating portfolio the value of which is such that minimize the difference $|P(\widetilde{S},K)-W_T|=\epsilon$ in the face of all possible realizations of returns of the underlying included in the uncertainty set $U\...
The frequency is static indicative data. It does not normally change during the life of a bond. If the frequency changed in a debt restructuring, then it would be highly unlikely that the frequency would be the most material change or that we could isolate its effect, I recall Indonesian (USD-denominated) floater...
The following assumptions are part of the paper and I can not solve for the statistic that is denotes as $\phi$ in the sequel. I would be glad if anyone could help me. Suppose that in the market, thera are $N\geq 1$ inforemd agents, who trade a risky asset continuousely in the time interval $[0,1)$. Each agent $i$ r...
I am not sure if this is the right place to ask or if I should head over to [HSM](https://hsm.stackexchange.com/) (where they may object, too), anyhow: What is the origin of the names of [the Greeks](https://en.wikipedia.org/wiki/Greeks_(finance))? Who introduced those weird names, and why did they take over instead...
What is the origin of the names of the Greeks?
Good evening, I am studying the CAPM and I have a doubt regarding the variance $σ_i^2$ of the expected return of an asset $i$. In particular, how can I derive the following formula? $σ_i^2 = β_i^2 σ_M^2 + var(\epsilon_i)$ In my book, I read that the formula derives from the correlation of $r_i = r_f + ...
## Recursive Utility ## The traditional approach to consumption-based asset pricing includes **time separable (additive) expected utility** functions, $$U(C_t,C_{t+1})=u(C_t)+\beta \mathbb{E}_t[u(C_{t+1})],$$ where $\beta<1$ measures impatience (subjective discount factor). That's the first equation in Chapter 1.1. ...
Good evening, I am studying the CAPM and I have a doubt regarding the variance $σ_i^2$ of the expected return of an asset $i$. In particular, how can I derive the following formula? $$σ_i^2 = β_i^2 σ_M^2 + var(\epsilon_i)$$ In my book, I read that the formula derives from the correlation of $$r_i = r_f...
**Vine copulas** are a sequential cascade of bivariate copulas meant to capture the hierarchical structure in the dependence structure of random variables. How does this relate or differ from the concept of **hierarchical copulas**? In *Dynamic copula methods in finance*, hierarchical copulas are premised on the fa...
*"what is the actual use of mathematical models in finance?"* Some are descriptive, some are predictive. An example of a descriptive model would be the [NY Fed Oil Price Dynamics report][1]. An example of a predictive model would be the use of the current Shiller CAPE to forecast forward returns ([example here][2])....
I work with tick level time-series univariate prices data. Tick level means that there are hundreds to thousands observations per second. The observations are timestamped, so one can use both wall clock and event time (or whatever you want). Most of the price changes are very small (1e-5 of %), but the small changes ad...
You may want to read [this paper][1] for GBM with discrete dividend. [1]: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1141877
In his paper "Smile Dynamics IV" (https://www.fields.utoronto.ca/programs/scientific/09-10/finance/derivatives/bergomi.pdf) as well as in his book "Stochastic Volatility Modeling" (Chapter 9.10) Lorenzo Bergomi proposes a "Skew Arbitrage Strategy". As I understand his logic, he is saying that for short maturities the s...
Does anyone know if there is any link between the Value at Risk of risk-neutral distribution and of the real-world distributions of asset rate of returns?
So I am confused as to what the look-back period should be when calculating Cointegration. By this I mean when running for example a Johansen or ADF test, should my look-back period be 6 months?Meaning should I be inputing 3 months? 6 months? a week? of data into the statistical tests. Is there a way to determine this?...
What should the look-back period be when calculating Cointegration?
Hey what is the replication strategy on the binomial tree when I have for example 10 step model and dividend is paid at step 3? I have a well-written price tree but I do not know what the replication strategy looks like because the price is not the same as in the case of using the martingale valuation. How does this on...
Because there is no (publicly accessible?) viable alternative and classical models are good enough. There are models that explicitly address the irregularities of tick data. For example, [Hawkes processes][1] model the irregular time spacing of the observations, event clustering and autocorrelation. However, the mat...
I was proving a very simple strategy with Bollinger Bands for a intraday timeframe (1 minute) that buy on lower band and sell in a higher band (Very common strategy), but in backtesting in E-Mini SP 500 at 1999 I think that it generated interesting results. This the graphic: [![enter image description here][1]][1] ...
Why could form 25 (SEC) has effective date on the next day?
Alternatively you could check this link: https://finance.yahoo.com/quote/%5EGSPC/history?period1=1479945600&period2=1606176000&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true Also this code worked for me. Directly loading data using getSymbols. getSymbols("^GSPC", src = "yahoo", from = as.Dat...
I know that $e^{t\mu_{\operatorname{log}}-\Gamma\sqrt{t}\sigma_{\operatorname{log}}}\leq \widetilde{R}_t^S \leq e^{t\mu_{\operatorname{log}}+\Gamma\sqrt{t}\sigma_{\operatorname{log}}}$, with $\mu_{\operatorname{log}},\sigma_{\operatorname{log}},\Gamma \in \mathbb{R}^+$ and $\widetilde{R}_t^S:=\prod_{i=1}^{t-1}(1+\widet...
I have a situation in which I'd like to calculate a total portfolio return for a portfolio made up of funds with different valuation frequencies and return methodologies. As an example, say I have a portfolio that owns shares in two funds. The first fund is valued monthly with cash flows restricted to month-end. Re...
How to calculate portfolio returns from assets with different valuation frequencies and return methdologies?
I want to simulate a geometric brownian motion and we assume that the volatility of the stock can take just two values sigma1=0.2 and signma2=0.8. We also assume that the jumps up from lower volatility sigma1 to higher volatility sigma2 occur as a exponential process with rate lambda1=2. Likewise, the jumps down from ...
I want to simulate a geometric Brownian motion and we assume that the volatility of the stock can take just two values $\sigma_1=0.2$ and $\sigma_2=0.8$. We also assume that the jumps up from lower volatility $\sigma_1$ to higher volatility $\sigma_2$ occur as a exponential process with rate $\lambda_1=2$. Likewise, t...
You can treat the FR007 swap like this: The fixed-rate leg is the same as the fixed-rate leg of the LIBOR swap, It pays the The floating rate can be treated as the combination of some 3-months maturity compound interest rate bonds. The rate will be reset weekly. I draw a picture and hope this can help me to explain t...
You can treat the FR007 swap like this: The fixed-rate leg is the same as the fixed-rate leg of the LIBOR swap. The floating rate can be treated as the combination of some 3-months maturity compound interest rate bonds. The rate will be reset weekly. I draw a picture and hope this can help me to explain the rule. ...
This is more a conceptual question around calibration. My objective is to calibrate a 1-factor Hull White model, and my question relates to calibrating a and sigma (both constants) to swaptions. Let's say that I have a set of ATM swaption prices (this is my market prices) coming from a model based on OIS discounting...
I've finished a bachelors degree in physics, and I'm thinking of trying to get a Quant job in a few years. I'm aware that an MSc is mandatory, however, in my view the price of the typical Financial Engineering or Quantitative Finance master in a good school is exaggerated, and in almost all job offers, they just as...
Any economical MSc to become a Quant?
With the various crises affecting the financial markets, here a pandemic, this ratio skyrockets almost every time, which limits its interpretability. We know that the [ratio increased during the subprime financial crisis][1], for example, and that it continuously decreased thereafter, until we were affected by Covid...
How to set a portfolio turnover ratio threshold according to volatility?
I want to simulate a geometric Brownian motion and we assume that the volatility of the stock can take just two values $\sigma_1=0.2$ and $\sigma_2=0.8$. We also assume that the jumps up from lower volatility $\sigma_1$ to higher volatility $\sigma_2$ occur as a exponential process with rate $\lambda_1=2$. Likewise, t...
I want to simulate a geometric Brownian motion and we assume that the volatility of the stock can take just two values $\sigma_1=0.2$ and $\sigma_2=0.8$. We also assume that the jumps up from lower volatility $\sigma_1$ to higher volatility $\sigma_2$ occur as a exponential process with rate $\lambda_1=2$. Likewise, t...
What's the time horizon of the probability of default implied from a CDS spread? Given CDS = PD*(1-R), if I use a 5yr CDS spread in the formula, is the implied PD the probability that that name defaults within the next 5 years or 1 year given it represents the annual premium?
What's the interpretation of the probability of default implied from CDS spreads?
Besides a couple of ways you might try to improve your code (which I will not do here); your *jump check* is not working correctly: In a time step $\Delta t$, the process will jump with probability $\approx exp(-\lambda \Delta t) $. Hence, you need to compare ``` if (unifrnd(0,1) > exp(-lambda * dt)) % jump ...
Many articles that I came across use volume time $v$ in their computations since the market activity level varies substantially throughout the day (intraday volume and volatility patterns), which is the cumulative volume function defined by $v=0$ at the open and $v=1$ at the close. Could anyone explain the purpose o...
Why should we rather work with volume time?
There is a good and a bad point in using volume-time in place of calendar-time: - on the one hand, you obtain a more "regular" time series - but on the other hand, you cannot synchronize two time series this way: *what is the the "common volume time" between two stocks*? - I am more familiar with the intraday aspe...
Adding on to Japser's answer, to address the division by 0, we can set a very small value for the lower bound for mu and sigma (e.g. 1x10^-5). To see the algorithm in action, see [this][1] [1]: https://www.quantconnect.com/terminal/processCache/?request=embedded_backtest_14b6c6614134b8af76818387e9e74232.html
I've been reading up on market microstructure models and toyed around with them -- i.e., I got simulations for Roll (1984), Glosten-Milgrom (1985), Kyle (1985), Kyle (1985) with multiple periods. I am wondering, though, what are some current problems in the field?
Should be a simple matter, but perhaps I'm misunderstanding something fundamentally. Look first at the below image of the BVOL surface from Bloomberg, to my understanding from looking at the white paper for the surface construction this surface is based on the implied forward of the underlying, which I have taken to me...
How to interpolate on an implied volatility surface based on forward moneyness?
The following assumptions are part of the paper of Back, Chao and Willard and I can not solve for the statistic that is denoted as $\phi$ in the sequel. I would be glad if anyone could help me. Below i set the assumptions and the equations of interest Suppose that in the market, there are $N\geq 1$ informed agents, ...
I asked this question on MSE recently. https://math.stackexchange.com/questions/3922347/supremum-and-expectation I want to prove this when $\mathcal{M}$ is a set of equivalent martingale measure. **Problem setting** Let $\Omega$ be a finite set, and $\mathbb{M}$ be a non-arbitrage **incomplete** discrete($t...
I asked this question on MSE recently. https://math.stackexchange.com/questions/3922347/supremum-and-expectation I want to prove this when $\mathcal{M}$ is a set of equivalent martingale measure. **Problem setting** Let $\Omega$ be a finite set, and $\mathbb{M}$ be a non-arbitrage **incomplete** discrete($t...
Suppose we have a standard Ito process $dX_{t}=\mu\left(X_{t},t\right)dt+\sigma\left(X_{t},t\right)dW_{t}$. As far as I know, there are two approaches to solve this numerically: to frame it as a PDE and solve it, or to simulate random paths using Monte Carlo methods, and from there calculate expectations value whic...
> But what is the theoretical forward price of a futures contract? The forward price of the futures contract is price of the futures contract. Exactly what the *fair* price of the future might be, is another matter.
I want to simulate a geometric Brownian motion and we assume that the volatility of the stock can take just two values $\sigma_1=0.2$ and $\sigma_2=0.8$. We also assume that the jumps up from lower volatility $\sigma_1$ to higher volatility $\sigma_2$ occur as a exponential process with rate $\lambda_1=2$. Likewise, t...
> But what is the theoretical forward price of a futures contract? The forward price of the futures contract is equal to the current price of the futures contract. Exactly what the *fair* current price of the future might be, is another matter.
It is widely known that repurchase agreements ("_repos_") are regularly used by market participants as a mean to fund long/short positions in a certain asset, in particular for derivative hedging purposes. For example, in page 16 of their white paper [_Understanding repos and the repo market_](https://theotcspace.com/s...
When I was first tasked with implementing VaR using MC in the 1990s, I knew little about MC, and there were no good books. The draft manuscript of Reuven Y. Rubinstein, Dirk P. Kroese. Simulation and the Monte Carlo Method was getting xerocopied like "samizdat". Now this book is in its [3rd edition (2016)][1] already, ...
Alternatively you could check this link: https://finance.yahoo.com/quote/%5EGSPC/history?period1=1479945600&period2=1606176000&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true Also this code worked for me. Directly loading data using getSymbols. getSymbols("^GSPC", src = "yahoo", from = as...
I'm trying to simulate portfolio returns using Norm.inv function in excel. Inputs to the formula: Prob= Rand, Std dev= Historical, Mean= 5 year historical average. Its easy to do this when you're assuming all your investments will receive at least some weight of your monthly installment. See below: [![Simulati...
How do you simulate returns for a portfolio when you have Lumpsum + Monthly investments (SIP) in place?
the call option pricing formula for the plain/vanilla payoff ($S_T-K)^+$) has been resolved, under the Bachelier model here: [Bachelier model call option pricing formula][1] But can anyone help me with with the generalized payoff (with a leverage and a spread): $(L*(S_T+a)-K)^+$ ? For this pay-off, what would be...
I'm trying to simulate portfolio returns using Norm.inv function in excel. Inputs to the formula: Prob= Rand, Std dev= Historical, Mean= 5 year historical average. Its easy to do this when you're assuming all your investments will receive at least some weight of your monthly installment. See below: [![Simulati...
I have a question on the proof of the formula of Sup(S) between 2 simulation points. Do you know how the prove the following formula? Thanks [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/Ggiub.png
The issue has much more to do with the SVI parameterization per se, and not with any arbitrage constraint. The fact that Heston as $T \to \infty$ becomes close to SVI is not very useful either to explain this. It is merely a nice way to make the SVI parameterization have some stochastic root. If you read Timothy Klasse...
It is widely known that repurchase agreements ("_repos_") are regularly used by market participants as a mean to fund long/short positions in a certain asset, in particular for derivative hedging purposes. For example, in page 16 of their white paper [_Understanding repos and the repo market_](https://theotcspace.com/s...
Good morning, I apologize for my poor english, I'm not an expert and I need your help... do you know how daily prices are calculated on Yahoo Finance Historical data? Let me give you an example, if you visit the EURUSD https://finance.yahoo.com/quote/EURUSD%3DX/history?p=EURUSD%3DX Nov 24, 2020 open 1.1842 ...
Let's say that we have a biotech company that awaits FDA approval. In the case of approval the company gets a cash injection and in the case of denial it is pretty much bankrupt. Clearly, this is a very bimodal outcome. According to the this [website][1] the volatility smile looks as follows: [![enter image des...
According to the blog post you cited above, all you have to do is simply back out Black Scholes Implied Volatilities from the prices in the first part of the website. For a given strike $X$, risk-free rate of zero, and jump-level $H$, the present value according to the blog post is: $$PV(H,X)=\mathbb{E}_\mathbf{Q...
Brigo&Mercurio *Interest Rate Models - Theory and Practice, 2nd edition*, when treating not markovian HJM models, says the following "the approximating lattice will not be recombining and the number of nodes in the tree will grow exponentially with the number of steps". I don't see the relation between the Markov p...
Theoretically speaking, if we are to assume the following: - Constant implied volatility throughout all strike prices - The underlying's prices change distribution is log-leptokurtic and symmetric Then graphing the expected return of each strike price should generate some sort of quasi-exponential curve. For cal...
How does a concave up volatility smile correct high kurtosis for ATM option contracts?
I constructed a SabrVolSurface in Quantlibxl. Then I wanted to obtain a volatility smile from the surface using qlSmileSectionFromSabrVolSurface. The problem is that the time input is the year-fraction unit, when I input a number which is 0~1, for example 0.4, it shows error: "negative time(-0.594) given". I went ba...
When using qlSmileSectionFromSabrVolSurface in Quantlibxl, why the Option Time for input cannot be less than 1?
We know that after the big bang from LIBOR to SOFR, LIBOR will eventually disappear. This brings up one question that I do not have a clue to answer: How to evaluate derivative in a consistent manner that is comparable before/after the transition? For example, we are currently using LIBOR zero curve to evaluate e...
I am using TIA package in Python to download an interest rate curve. Using the following script I get the last curve. How do I specify a date in the past to have a curve in the past? import tia.bbg.datamgr as dm curve="YCSW0045 Index" mgr = dm.BbgDataManager() msft=mgr[curve] msft["CURVE_TENOR_RATES"...
Hey I have some questions about [stochastic volatility for Levy processes][1]. If I understand correctly, if we change the time in Levy's process by CIR process, the newly received process is not Levy's process anymore? We model stock price as $$S(t)=S(0)\frac{\exp((r-q)t+Z(t))}{E[\exp(Z(t))]}$$ where $Z(t)$ is stoc...
Any good papers on Fixed Income Option pricing?
I think the easiest way to derive the solution to the GBM is via Ito's Lemma. The GBM: $dS_t = \mu S_t dt + \sigma S_t dW_t$ is a short hand for: $$ S_t = S_0 + \int_{h=0}^{h=t}\left(\mu S_h\right)dh + \int_{h=0}^{h=t}\left(\sigma S_h\right)dW_h $$ Ito process is defined as: $$ X_t = S_0 + \int_{h=0}^{h=...
Hi to denoise the correlation matrix you can use the marcenko pastur distribution. Even without getting into its detail,. its easy, you just use t/n to get the lambda value under which you will discard eigenvalues. But how do you adapt T/N when the matrix is an expotentially weighted one? this paper seems to have it...
I have N stocks, and a covariance matrix that indicates the covariance of these N random variables. Now, if I run PCA on the covariance matrix, what can you tell about the principle component?
I have some confusion regarding forward interest rate. It seems that there are two notions of forward interest rate: 1. The interest rate $f$ agreed at time $t$ for investment over a future time period between $T_1$ and $T_2$. And this interest satisfies $$e^{r_{T_1}T_1}e^{f(T_2-T_1)}=e^{r_{T_2}T_2}$$ 2. The pric...
I have some confusion regarding forward interest rate. It seems that there are two notions of forward interest rate: 1. The interest rate $f$ agreed at time $t$ for investment over a future time period between $T_1$ and $T_2$. And this interest satisfies $$e^{r_{T_1}T_1}e^{f(T_2-T_1)}=e^{r_{T_2}T_2}$$ 2. The pric...
Suppose I have some portfolios which are the result of maximizing the expected utility of different approximations of a utility function, how do you test these portfolio's out-of-sample and how do you compare these results? More specifically, I am trying to compare the MV (mean-variance), MVS (mean-variance-skewness...
How to compare portfolios obtained by expected utility maximization?
[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/M7vTm.png In this numerical example, I can't figure out with which numbers (when using the PV formula) to calculate exposure at default (EAD) as shown in the table. The EAD is the value of the discounted future cashflows (CF) at the tim...
If utility is your measure of performance, then it will still be your measure of performance out of sample, since it is what you care about. You can see utility as a measure of the balance between profit and risk, where risk is some combination of variance, skew, kurtosis... Your wealth is a random variable $X$ that...
I'm trying to simulate portfolio returns using Norm.inv function in excel. Inputs to the formula: Prob= Rand, Std dev= Historical, Mean= 5 year historical average. Its easy to do this when you're assuming all your investments will receive at least some weight of your monthly installment. See below: [![Simulati...
I'm trying to simulate portfolio returns using Norm.inv function in excel. Inputs to the formula: Prob= Rand, Std dev= Historical, Mean= 5 year historical average. Its easy to do this when you're assuming all your investments will receive at least some weight of your monthly installment. See below: [![Simulati...
Can anyone please explain how fixed income ETF are actually replicated by asset managers ? I looked online everyone says they do sampling ( stratified sampling) which makes sense but I would like to read in bit more details. I can see the variables to be considered can be so many Duration, Credit Quality, Coupon,...
I want to convert the payoff of an Asian and a lookback Call option with prices in their corresponding with returns. Example: for an European Call $\varphi(S_T)=(S_T-K)^+$, so knowing that $S_T=S_0(1+r_t)^T=S_0\prod_{i=1}^{T}(1+r_i)=S_0R_T$ I can write that $(S_T-K)^+=(S_0R_T-K)^+$. If an Asian Call payoff is $\varp...
Can anyone please explain how fixed income index are actually replicated ( in ETF) by asset managers ? I looked online everyone says they do sampling ( stratified sampling) which makes sense but I would like to read in bit more details. I can see the variables to be considered can be so many Duration, Credit Qual...
Can anyone please explain how fixed income index are actually replicated (in an ETF) by asset managers ? I looked online, everyone says they do sampling (stratified sampling) which makes sense but I would like to read a bit more details. I can see the variables to be considered can be so many: Duration, Credit Q...
What is the easiest way to price single barrier options using binomial tree? I found [This method][1]. Is this method good or maybe should I use another one? Does this price converge to price from BS model? [1]: http://janroman.dhis.org/stud/I2011/2/Barrier.pdf
Are there any serious drawbacks / weaknesses in the Euler allocation method, when used to allocate VaR capital (and potentially Expected Shortfall) to risk factors in a portfolio? I notice that recently people have started talking about Constrained Aumann Shapley (CAS) allocation approaches - does this offer advantages...
I have 2 fast quastions. Before I begin I want to show you that I found minus before SD of bills in the book Principles of corporate finance(1.screen). I know SD of bills is zero and minus in this concrete example isnt important. But I want to know if I should calculate with minus when I'm selling short risky asset...
Let $B = \{ B(t); t \ge 0\}$ and let $Z = \{ Z(t); t \ge 0 \}$ where $$Z(t) = \int_0^t B^2(s) ds.$$ How do we find $E[Z(t)]$ and $E[Z^2 (t)]$ in order to get the variance $Var [Z^2(t)] = E[Z^2 (t) ] - E[Z(t)]^2$ There have been a number of posts similar to this question https://quant.stackexchange.com/questions/307...