instruction stringlengths 15 26.1k |
|---|
**When calculating the correlation between two assets, what is the appropriate transform before taking the correlation?**
1. PChg = (P2/P1) - 1.0
2. LChg = Log(P2) - Log(P1)
3. x = Log(P2)
where P2 is the newest price and P1 is the previous price of the asset in question.
Also, is the answer just a matt... |
What is the appropriate transform to take before taking the correlation of two assets? |
What is the appropriate transform before calculating the correlation between two assets? |
I have timeseries for a bunch of currencies. For example, USD_NOK, EUR_USD, EUR_NOK, EUR_SEK and so forth. About 75 of them going back about 20 years in Pandas.
My goal is to isolate each currency separately. In other words I want to get a table with the movement of each currency individually. For example, how has N... |
I am dealing with a mean-reverting Vasicek process defined as:
\begin{equation}
S_t = S_0 e^{-at} + b(1-\exp^{(-at)}) + \sqrt{\frac{\sigma ^2}{2a}} \sqrt{1-\exp^{-2at}} \ U_t
\end{equation}
with a gaussian noise process
\begin{equation}
U_t \sim N(0,\sigma ^2)
\end{equation}
I want to determine ... |
Covariance of mean-reverting Vasicek process? |
Where could I get a mathematical background on circular arbitrage? I am particularly interested in the dependence of profit on the path length (the number of intermediate currencies) and graphical models/algorithms.
I will appreciate tips and reading recommendations. I have no background in finance, but my mathemati... |
I want to create am `LmFixedVolatilityModel` object as defined in http://www.jquantlib.com/en/latest/_static/javadocs/0.2.6-SNAPSHOT/jquantlib/index.html?org/jquantlib/pricingengines/swap/DiscountingSwapEngine.html
Below is my code -
#include <iostream>
#include <cstring>
#include <ql/quantlib.hpp>
... |
due to a calculation I have to make I need the OIS 3 MONTHS for the ECB. I tried searching for data for 3 months EONIA but I could not find anything.
Can someone help me with this? if not can I use the EURIBOR 3 months? |
I've been reading through this [research paper][1] about a method for valuing Autocalls. I've understood everything up to **page 12** where they introduced a rotation matrix in order to *"obtain a (Lipschitz) continuous parameterization of the bounds"*. I've searched for dozens of sources explaining this concept but to... |
Autocall pricing: what does "Lipschitz continuous parameterization" mean? |
I am particularly interested in the dependence of profit on the path length (the number of intermediate currencies) and graphical models / algorithms. More specifically:
1. How can we model currency disequilibrium? Are the paths with more intermediate currencies more likely to be profitable?
2. What graph algorit... |
Where could I get a mathematical background on circular arbitrage? |
Say you have a call option whose current value is $4.73$ and has a $\delta = .43$. Let's say dividend is increased by $.37$. I would expect the option to increase in value by ($.43*.37$) since the stock's price will go up by $.37$.
Sheldon Natenburg in Option Volatility and Pricing Workbook chapter 7, question 6c. e... |
Do European call options increase in value when dividends are increased? |
## Context ##
When pricing options with trees, it is convenient to prove that the asset value at expiry $S_t$ be of log-normal distribution:
$$\log{S_t} = \log{S_0} + \mu T + \sigma \sqrt{\frac{T}{n}} \sum_{j=1}^{n} Z_j$$
where $\mu$ is the mean of the asset value (drift), $\sigma$ its standard deviation (volati... |
## Context ##
When pricing options with trees, it is convenient to prove that the asset value at expiry $S_t$ be of log-normal distribution:
$$\log{S_t} = \log{S_0} + \mu T + \sigma \sqrt{\frac{T}{n}} \sum_{j=1}^{n} Z_j$$
where $\mu$ is the mean of the asset value (drift), $\sigma$ its standard deviation (volati... |
Suppose I want to forecast daily variance of a stock using GARCH(1,1) model while I have high frequency data of 5 minute returns. What is the difference between applying GARCH(1,1) in one-step forecast on the daily returns and applying GARCH(1,1) in multiple-step forecast on the 5 minute returns?
More specifically, ... |
GARCH(1,1) variance forecast in one-step or multi-step? |
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/riWUs.png
a) without a frequency and T note start date how do I find the coupon dates and cash flows?
b) is that calculated semi- annually?
c) how do I find the number of days for the current period?
Thanks
|
I am currently experimenting with various implementations for simulating the standard Heston model.
\begin{eqnarray*}
dS_t &=& \mu S_t \, dt + \sqrt{v_t} \cdot S_t \, dW_t^S \\
dv_t &=& \kappa(\theta - v_t) \, dt + \xi \cdot \sqrt{v_t} \, dW_t^v,
\end{eqnarray*}
where the correlation between the Brownian motions i... |
Simulation of Heston model, best reference? |
Can you point me to any resources about a possible framework to analyse and possibly quantify model uncertainty and -robustness associated with quantitative investment models?
As an example, there might be an obscure trading strategy, which, every 5 years chooses one new stock to invest into. Now, if this inherently... |
Is there a framework to study quantitative model robustness/uncertainty? |
Can you point me to any resources about a possible framework to analyse and possibly quantify model uncertainty and -robustness associated with quantitative investment models?
As an example, there might be an obscure trading strategy, which, every 5 years chooses one new stock to invest into. Now, if this inherently... |
Under a risk-neutral measure $\mathbb{Q}$, the discounted stock price is a $\mathbb{Q}$-martingale. Does it mean that under the actual probability measure $\mathbb{P}$ the discounted stock price is NOT a $\mathbb{P}$-martingale?
Assuming that we are working with a Black-Scholes market model where the stock price $S(t)... |
I noticed that E-mini S&P 500 futures (ES) typically trade with a very narrow bid-ask spread of 1 tick. What contributes to this small bid-ask spread? I can think of two reasons:
* Lots of active market participants competing with each other, which encourages aggressive bids and asks.
* The futures contract's und... |
Why do E-mini S&P 500 futures have small bid-ask spreads? |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
I've been reading through this [research paper][1] (*A Monte Carlo Pricing Algorithm For Autocallables That Allows for Stable Differentiation* by T. Alm, B. Harrach, D. Harrach, M. Keller) about a method for valuing Autocalls. I've understood everything up to **page 12** where they introduced a rotation matrix in order... |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
I noticed that E-mini S&P 500 futures (ES) typically trade with a very narrow bid-ask spread of 1 tick. What contributes to this small bid-ask spread? I can think of two reasons:
* Lots of active market participants competing with each other, which encourages aggressive bids and asks.
* The futures contract's und... |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
As for the book, the best one I have come across is *Pricing and Trading Interest Rate Derivatives* by Darbyshire, although it's a bit pricey (indeed as most finance books are) (https://www.amazon.com/Pricing-Trading-Interest-Rate-Derivatives/dp/099545552X).
I used to trade Xccy Basis Swaps (which is just another na... |
*"Did I miss anything?"*
Size - TOB depth is historically low. |
I'm trying to use the Control Variates technique to reduce the variance of the estimate obtained from a Monte Carlo simulation for option pricing. As suggested in the book by Glasserman I'm using this control variate estimator
$$ \text{"option price at time 0"} \approx \hat Y = \frac 1n\sum_{i=1}^n Z_i $$
where $... |
I am struggling on I think a quite simple issue.
Let's take a portfolio of 100 loans.
If we assume they are independent, each loan’s default is a Bernoulli with parameter $p=0.01$ over a certain time horizon (eg. 1 year) and, of course, the overall portfolio number of defaults is a Binomial with the further param... |
I'm an undergraduate student in finance with a pretty solid knowledge of financial mathematics and I'm currently picking a topic for my research paper this year. I have already decided I will pick something about FX exotic options but I am not sure what exactly to pick as I'm new to the topic and a bit overwhelmed with... |
Right now I am trying to understand how we can use the Fourier theorem in obtaining the formula for option pricing (from Zhu J., "Modular pricing of options").
While modeling the interest rate, he considers two cases: when interest rate and stock returns are correlated and when they are not.
In the second case, t... |
I have a question regarding the marking consistency (from an accounting point of view) between bespoke structured trades and the listed instruments that may be used for their hedging purpose:
- Since there is no market for the structured trade, these are mainly marked through consensus services (Totem, ..) via theor... |
I'll try to give some views on this, I hope it helps bringing some closure to your question.
You seem to relate consensus to "_theoretical prices_". I think this is a bit misleading. I view consensus as nothing more than the average view across the street for market factors, e.g. the correlation between the Korean K... |
I'll try to give some views on this, I hope it helps bringing some closure to your question.
You seem to relate consensus to "_theoretical prices_". I think this is a bit misleading. I view consensus as nothing more than the average view across the street for market factors, e.g. the correlation between the Korean K... |
Would anyone understand how the BSB (cf. eq 33) were deduced? |
I am trying to redemonstrate the dynamical programming equation and the compact formulation of the multiple-payoff problem given in the Appendix of the paper of Avellaneda on pricing and hedging derivative under the Uncertain Volatility Model (UVM).
http://math.cims.nyu.edu/faculty/avellane/UVMfirst.pdf.
Avella... |
Implied volatility is supposed to show volatility of the underlying over next k days where k - maturity of the option. Say our stock price is $S_t$ and percentage return is $r_t$. Then which empirical estimate below should be used to compare with implied vol ?
1. $|(S_t - S_{t-k})/S_{t-k}|$
2. $\sqrt{\sum_{t=2}^{t=... |
if we denote tau_i the sequence of stopping times defined by:
tau_i = inf(t>tau_(i-1) / |B(t)-B(tau_(i-1)| > a), tau_0=0.
if we denote N the number of stopping times below T.
What is the expectation of N (i.e. the average number of stopping times below T)? |
If we denote $\tau_i$ the sequence of stopping times defined by:
$\tau_i = \inf(t>\tau_{i-1} : |B(t)-B(\tau_{i-1})| > a)$, $\tau_0=0$.
If we denote N the number of stopping times below T.
What is the expectation of N (i.e. the average number of stopping times below T)? |
What are the most commonly used models in capital structure arbitrage? |
Implied volatility is supposed to show volatility of the underlying over next k days where k - maturity of the option. Say our stock price is $S_t$ and percentage return is $r_t$. Then which empirical estimate below should be used to compare with implied vol ?
1. $|(S_t - S_{t-k})/S_{t-k}|$
2. $\sqrt{\sum_{t=2}^{t=... |
I'm reading about hedging for pension funds, I understand why we hedge the liabilities but what I don't understand is the concept of nonlinear liabilities ? what do we mean by that ? can someone explain this concept ? |
I am reading paper "Tactical Investment Algorithms" by famous Marcos Lipez de Prado. On the page 7 he writes
>Another possibility is to create a basket of securities with a returns distribution that matches the distribution of a given DGP. Under this alternative implementation, rather than **estimating the probabil... |
I am reading paper "Tactical Investment Algorithms" by famous Marcos López de Prado. On the page 7 he writes
>Another possibility is to create a basket of securities with a returns distribution that matches the distribution of a given DGP. Under this alternative implementation, rather than **estimating the probabil... |
I am reading paper "Tactical Investment Algorithms" ([link][1]) by the famous Marcos López de Prado. On the page 7 he writes
>Another possibility is to create a basket of securities with a returns distribution that matches the distribution of a given DGP. Under this alternative implementation, rather than **estimat... |
I am trying to calculate a yield from a clean price using Quantlib for Bond.
I play a lot with the Quantlib samples (Bonds.java) and succeed but when I change to set today close to maturity, Quantlib throws an Exception telling:
> unable to bracket root in 100 function evaluations (last bracket
> attempt: f[-2.212... |
I am reading paper "Tactical Investment Algorithms" ([link][1]) by the famous Marcos López de Prado. On the page 8 he writes
>Another possibility is to create a basket of securities with a returns distribution that matches the distribution of a given DGP. Under this alternative implementation, rather than **estimat... |
It sounds like you're passing the (clean) prices of 105.58 for a bond that pays 100 (+ some accrued interest) in one month. The simple yield would be somewhere around -50 to -100, pretty nonsensical.
I've seen two philosophical approaches to this situation in libraries. If the program returns a large number that mak... |
For a task at university, I'm simuating European option prices with a Heston Option model, and I want to implement a hedging procedure. Can anyone help me find some papers that describes how to implementing delta hedging (or other types of hedging) in the hestion universe? I have not been able to find anything usefull.... |
It sounds like you're passing the (clean) prices of 105.58 for a bond that pays 100 (+ some accrued interest) in one month. The simple yield would be somewhere around -50 to -100, pretty nonsensical.
I've seen two philosophical approaches to this situation in libraries. If the program returns a large number that mak... |
*"I believe 1st shows k days volatility, since it will be equal to 0 if spot came back to the same value . However, what does 2nd (total variance) actually represent in this case ?"*
Your first formula is simply absolute % change over k-days. This is sometimes used to compare against the breakeven on an options posi... |
Can anyone provide a source that formulates how to generate **multivariate** geometric Brownian motion **returns** using the **Cholesky** method with target correlation matrix, instead of correlated GBM *prices*?
If instead, correlated GBM prices are started, and then transformed to returns, I found that the correla... |
I am dealing with a mean-reverting Vasicek process defined as:
\begin{equation}
S_t = S_0 e^{-at} + b(1-e^{(-at)}) + \sigma e^{(-at)} \int_{0}^{t} e^{(-as)} \ W_t
\end{equation}
I want to determine the following covariance:
\begin{equation}
Cov[(S_{t+i}),(S_{t})]
\end{equation}
Could someone hel... |
Is it true that every tradable asset must have a log-normal dynamics under the risk neutral measure where the drift term is the short rate $r$? I.e., is it true that if $X$ is a tradable asset then
$$\frac{\mathrm{d}X(t)}{X(t)} = r(t)\mathrm{d}t + \sigma(t, X(t))\mathrm{d}W(t),$$
where $W$ is a Brownian motion under... |
Much like this post: https://stats.stackexchange.com/questions/119795/quadratic-programming-and-lasso, I'm trying to integrate RIDGE Penalty in a dedicated quadratic solver. In my case, I am working with *quadprog* from MATLAB. Unlike LASSO where you can eliminate the absolute value in the constrained form and rewrite ... |
Under which conditions is the stochastic process $\{X_t\}_{t=0,1,...,T}$ a martingale? Demonstrate and explain clearly for each case below. If it is not necessarily a martingale, provide a counterexample.
$E_t[X_s] = X_t$ for $0 \leq t \leq s \leq T$
$E_0[X_t] = X_0$ for $0 \leq t \leq T$
$E_t[X_T] = X_t$ f... |
If I want to forecast stock volatility, what would be the best GARCH model and why? (ARCH, GARCH-M, IGARCH, EGARCH, TARCH etc) |
How can I request options:
1. for a certain stock that currently has no options traded?
2. at a more extreme Strike Price? E.g. if I fancy buying OTM options?
2. with a farther expiration?
|
How do I request currently unavailable options to be sold? |
Coming from a market risk background, I am wondering how to validate / backtest a **credit** risk model in practice. Here, I am specifically not asking about the PD/migration validation, but about the default aggregation parameters (, say sector correlations).
In Market Risk applications, I would usually look for tim... |
1 according to http://www.cboe.com/education/getting-started/quick-facts/options-marketplace
> Are there requirements for individual stock issues to underlie
> exchange-listed equity options?
>
> Yes, option exchanges have certain eligibility requirements for stocks
> to become "optionable." Among the criteria ... |
How can I request options:
1. for a certain stock that currently has no options traded?
2. at a more extreme Strike Price? E.g. if I fancy buying OTM options?
2. with a farther expiration?
4. Does the CBOE have a specific email or online form for requesting options? |
1 according to http://www.cboe.com/education/getting-started/quick-facts/options-marketplace
> Are there requirements for individual stock issues to underlie
> exchange-listed equity options?
>
> Yes, option exchanges have certain eligibility requirements for stocks
> to become "optionable." Among the criteria ... |
Assume an underlying random variable $S_T$ which satisfies that $S_T > 0$ and that $\mathbb{P}\{S_T \neq 100 \} > 0$.
Let $X_0$ be the time-0 price of a contract that pays $X_T: -2\log\left(\frac{S_T}{100}\right)$ at time T.
Let $Y_0$ be the time-0 value of a forward contract on $S_T$ with delivery price $100$ an... |
Coming from a market risk background, I am wondering how to validate / backtest a **credit** risk model in practice. Here, I am specifically not asking about the PD/migration validation, but about the default aggregation parameters (, say sector correlations).
In Market Risk applications, I would usually look for tim... |
My t-copula model captures the daily dollar returns of a portfolio of approximately 400 assets. I am curious if there's a generally accepted way to quantify the sensitivity of portfolio movements with respect to the underlying correlation matrix. My first instinct is to try a discrete approximation, such that If C is m... |
My t-copula model captures the daily dollar returns of a portfolio of approximately 400 assets. I am curious if there's a generally accepted way to quantify the sensitivity of portfolio movements with respect to the underlying correlation matrix. My first instinct is to try a discrete approximation, such that If C is m... |
Bachelier Model is dSt = rdt + dWt and can also write to St = S0 + Wt
How can write Wt in terms of normal distribution?[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/KpbDB.png
Basically I want to simulated the underlying asset in the Bachelier Model.
Thank you. |
Under which conditions is the stochastic process $\{X_t\}_{t=0,1,...,T}$ a martingale? Demonstrate and explain clearly for each case below. If it is not necessarily a martingale, provide a counterexample.
$\mathbb{E}_t[X_s] = X_t$ for $0 \leq t \leq s \leq T$
$\mathbb{E}_0[X_t] = X_0$ for $0 \leq t \leq T$
... |
Bachelier Model is $dS_t = rdt + dW_t$ and can also write to $S_t = S_0 + W_t$
How can write $W_t$ in terms of normal distribution?[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/KpbDB.png
Basically I want to simulated the underlying asset in the Bachelier Model.
Thank you. |
My t-copula model captures the daily dollar returns of a portfolio of approximately 400 assets. I am curious if there's a generally accepted way to quantify the sensitivity of portfolio movements with respect to the underlying correlation matrix. My first instinct is to try a discrete approximation, such that If C is m... |
What you are looking for are **order book statistics**, which stand on their own compared to technical indicators. There are several measures introduced based on intraday variables and flows (first derivatives of order book variables and statistics) that deal with volume accumulation and bid/ask-side imbalances/pressur... |
What you are looking for are **order book statistics**, which stand on their own compared to technical indicators because they can be calculated down to specific depths of the LOB (limit order book).
Several measures have been introduced based on intraday variables and flows (first derivatives of order book variabl... |
What you are looking for are **order book statistics**, which stand on their own compared to technical indicators because they can be calculated down to specific depths of the LOB (limit order book).
Several measures have been introduced based on intraday variables and flows (first derivatives of order book variabl... |
I have two different bonds (for e.g. 1yr and 10yr) that have the same DV01. The notional for 1yr bond is definitely more than the 10yr bond. Is the risk same for the bonds the same because DV01 for both the bonds is the same? |
Is the risk the same for two different tenor bonds with the same DV01? |
I am looking for some example to value an `American swaption` using `monte carlo simulation` of `Hull-white short model` with `Quantlib`.
There is a list of various pricing engines available in https://quantlibjl.readthedocs.io/en/latest/pricing_engines.html, although it is with Python. However there is no mention o... |
I'll try to give some views on this, I hope it helps bringing some closure to your question.
You seem to relate consensus to "_theoretical prices_". I think this is a bit misleading. I view consensus as nothing more than the average view across the street for market factors, e.g. the correlation between the Korean K... |
Assume an arbitrage-free market. Let's say that the current price of an asset is $100$, its forward price in 1 month is $110$
Is it possible that the true expected value of the asset is not $110$? Sheldon Natenburg in Option Volatility and Pricing says that
> If we assume that the underlying market is arbitrage-... |
Is there an arbitrage opportunity if the forward price is different from the true expected value of the asset? |
Any reason why you want the valuation using Monte Carlo instead of trees?
Here is an example using python. After you setup you swaption:
import QuantLib as ql
calendar = ql.TARGET()
today = ql.Date().todaysDate()
yts = ql.YieldTermStructureHandle(ql.FlatForward(today, 0.01, ql.Actual360()... |
Coming from a market risk background, I am wondering how to validate / backtest a **credit** risk model in practice. Here, I am specifically not asking about the PD/migration validation, but about the default aggregation parameters (, say sector correlations), i.e. those components of the model that operate on the **cr... |
It is not clear that this allocation would be useful or even possible.
Suppose you had a portfolio of two assets and that the optimal weights you had derived, based on a mean-variance approach were 0.4, 0.6.
These are independent of the 3rd and 4th moments, suggesting that whatever the 3rd and 4th moments were in... |
I want to calculate monthly returns for a time series of 4000 companies between 2014 and 2019.
This is how my dataset looks like
[![enter image description here][1]][1]
I'm using the following code to calculate the returns
nyseamex <- mutate(nyseamex, mon_return=`adjprice`/lag(adjprice)-1)
So far so good... |
How to calculate monthly returns for every company in a dataset of 4000 companies? |
Given a set of returns, say 500 days, and a fixed portfolio construction, you can derive the 500 daily portfolio valuation changes.
You can easily measure the mean and variance of these valuation changes. Since this is a sample you are interested in the confidence of your estimators (i.e. the mean and variance).
... |
How to calculate monthly returns in R for every company in a dataset of 4000 companies? |
I am reading paper "Tactical Investment Algorithms" ([link][1]) (NOTE: you can download the paper without registration, just press "Download" and then "Download without registration") by the famous Marcos López de Prado. On the page 8 he writes
>Another possibility is to create a basket of securities with a returns... |
What are the kind of post trade analysis (EOD analysis) that an options market making desk does? First few things that comes to my mind are slippages and breaking the pnl into various greeks. Any other ideas or experiences? |
I am reading paper "Tactical Investment Algorithms" ([link][1]) (NOTE: you can download the paper without registration, just press "Download" and then "Download without registration") by the famous Marcos López de Prado. On the page 8 he writes
>In practice, it takes only a few recent observations for the estimated... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.