instruction stringlengths 15 26.1k |
|---|
does anybody have experience with the Entropy Pooling Approach by Meucci in R?
I am currently trying to do a portfolio optimization with Stocks & Bonds, where a 101 example would be very helpful. The published examples unfortunately did not help me.
I am very grateful for every advice or help.
Regards. |
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}dW \sim N(0,dt) \text{ increment of Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
From it we can derive the PDE for the value of an option on a commo... |
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}dW \sim N(0,dt) \text{ increment of Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
From it we can derive the PDE for the value of an option on a commo... |
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}dW \sim N(0,dt) \text{ increment of Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
From it we can derive the PDE for the value of an option on a commo... |
A few years back in an interview I remember being asked to derive the Sharpe ratio from the correlation between a pre-open daily signal and the open-close returns. I think you had to make some assumptions regarding the risk/reward and accuracy but you could start with a correlation of say 0.05 and back out a sharpe rat... |
The classical approach to deriving Ito's Lemma is to assume we have some smooth function $f(x,t)$ which is at least twice differentiable in the first argument and continuously differentiable in the second argument. We then perform a Taylor series expansion as follows:
$$df = \frac{\partial f}{\partial t} dt + \frac{\p... |
The classical approach to deriving Ito's Lemma is to assume we have some smooth function $f(x,t)$ which is at least twice differentiable in the first argument and continuously differentiable in the second argument. We then perform a Taylor series expansion as follows:
$$df = \frac{\partial f}{\partial t} dt + \frac{\p... |
Just a few notes
----------------
- How to make sense of $\text dW_t$ is the entire point of [stochastic calculus][1]. It's far beyond the scope of any answer here. You should read some introductory lecture notes/books on stochastic calculus. You could start [here][2].
- The idea: [Riemann-Stieltjes integral... |
Just a few notes
----------------
- How to make sense of $\text dW_t$ is the entire point of [stochastic calculus][1]. It's far beyond the scope of any answer here. You should read some introductory lecture notes/books on stochastic calculus. You could start [here][2].
- The idea: [Riemann-Stieltjes integral... |
I am trying to figure of if there are free sources or inexpensive sources to get this type of data.
I see sites using BATS data, but BATS seems to have been bought out by CBOE and doesn't seem to have a free api anymore?
What about 15 min delayed quotes? Are there any free resources? I am assuming it's really expe... |
Real-time stock data/15 mins quotes for US stock exchanges? |
Do highly liquid (blue chip) stocks exhibit positive skewness more than negative skewness? If so, would positive, rather than negative, skewness be an appropriate and intuitive prior when estimating return distributions? |
Do stock returns show positive skewness? |
does anybody have experience with the Entropy Pooling Approach by Meucci in R?
I am currently trying to do a portfolio optimization with Stocks & Bonds, where a 101 example would be very helpful. The published examples (demos in Meucci package & one example with the edhec-Data) unfortunately did not help me.
I wo... |
I think most people agree that aggregate (index) stock returns have negative skewness. However, this is less clear for individual stock returns. At least this paper argues that average skewness of individual stock returns is positive (https://academic.oup.com/rfs/article-abstract/25/5/1630/1568307?redirectedFrom=fullte... |
A few years back in an interview I remember being asked to derive the Sharpe ratio from the correlation between a pre-open daily signal and the open-close returns. I think you had to make some assumptions regarding the risk/reward and accuracy but you could start with a correlation of say 0.05 and back out a sharpe rat... |
I wanted to calculate the number of trading days between 2 given days. There is a discussion in https://stackoverflow.com/questions/62292979/using-quantlib-in-python-how-do-i-get-the-number-of-days-between-two-dates.
However this considers the day-count convention from the Bond coupon's calculation perspective using... |
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}WW = \text{ Standard Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
Consider the forward contract with price at delivery $F(S,T)$ where $T$ is the exp... |
I was reading a paper from Richard Bass about Brownian functionals, and came across the following passage :
Let $X_t$ be a Brownian motion, $F_t$ its filtration and $g$ a real-valued function. We first assume that $g$ is bounded, has compact support, and is in $C^2$.
By Clark's formula applied to the functional $g(... |
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}WW = \text{ Standard Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
Consider the forward contract with price at delivery $F(S,T)$ where $T$ is the exp... |
I was reading a paper ([link][1]) from Richard Bass about Brownian functionals, and came across the following passage :
---
Let $X_t$ be a Brownian motion, $F_t$ its filtration and $g$ a real-valued function. We first assume that $g$ is bounded, has compact support, and is in $C^2$.
By Clark's formula applied to t... |
> Objective: Implement the Euler Explict Method for solving the PDE for option
> prices under the Schwartz mean reverting model.
The price evolution of a commodity can be described by the Schwartz SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}WW = \text{ Standard Brownian motion} \\ \alpha = ... |
Let's say I am predicting the realised volatility of a stock index. I am buying or selling straddles based on whether the predicted vol is higher or lower than the implied ATM volatility for the maturity. I am delta hedging along the way and potentially rolling the strikes if my options are moving too far away from ATM... |
How to get exposure to realised volatility while being vega neutral? |
> Objective: (1) Implement the Euler Explict Method for solving the PDE for option prices under the Schwartz mean reverting model. (2) Compare with a Monte Carlo simulation.
I'm stuck with point 1 (see this [question][1]) so in the meanwhile I'm working on point 2. Basically, I have 200 monthly spot prices of a comm... |
How to perform Monte Carlo simulations to price a Forward contract under the Schwartz mean reverting model? |
Just a few notes
----------------
- How to make sense of $\text dW_t$ is the entire point of [stochastic calculus][1]. It's far beyond the scope of any answer here. You should read some introductory lecture notes/books on stochastic calculus. You could start [here][2].
- The idea: [Riemann-Stieltjes integral... |
Are there any public LIBOR Data sources? |
The classical approach to deriving Ito's Lemma is to assume we have some smooth function $f(x,t)$ which is at least twice differentiable in the first argument and continuously differentiable in the second argument. We then perform a Taylor series expansion as follows:
$$df = \frac{\partial f}{\partial t} dt + \frac{\p... |
Do highly liquid (blue chip) stocks exhibit positive skewness more than negative skewness? If so, would positive, rather than negative, skewness be an appropriate and intuitive prior when modeling return distributions? |
I think that I understand how leverage works if one had a long strategy in equities
and had some (roughly) fixed market value invested over time.
Suppose that an investor has 10 million invested in the above strategy. Then 2 times leverage means that the strategy runner borrowed 10 mill and also used it on the s... |
does anybody have experience with the Entropy Pooling Approach by Meucci in R?
I am currently trying to do a portfolio optimization with Stocks & Bonds, where a 101 example would be very helpful. The published examples (demos in Meucci package & one example with the edhec-Data) unfortunately did not help me.
I wo... |
I think most people agree that aggregate (index) stock returns have negative skewness. However, this does not appear to be the case for individual stock returns. These two papers find that average skewness of individual stock returns is positive though time-varying: [Paper 1][1], [Paper 2][2]. The second paper also has... |
I think most people agree that aggregate (index) stock returns have negative skewness. However, this does not appear to be the case for individual stock returns. These two papers find that average skewness of individual stock returns is positive though time-varying: [Paper 1][1] R. Albuquerque, *Skewness in Stock Retur... |
I'm currently working on a project using S&P 500 index options(European) data. I haven't done any empirical experiments before, so I'm confused how to find the corresponding risk-free rate and the dividend rate.
1. For risk-free rate, currently I'm using the 3-month Treasury yield curve rates. Here is the link: http... |
How to find the risk-free rate and dividend rate for S&P 500 index options? |
The Fundamental Theorem of Asset Pricing states that:
\begin{align*}
\frac{X_0}{N_0} &= \mathbb{E}^N{ \left[ \frac{X(t)}{N(t)}|\mathcal{F}_0 \right] }
\end{align*}
The usual conditions apply (both $ N(t) $ and $ X(t) $ are traded assets, markets are complete, etc.)
**Question**: **does the equation above sti... |
In Gatheral's book, in the derivation of local volatility in terms of implied volatility, we use the regular Dupire formula
$$
\frac{\partial C}{\partial T} = \frac{1}{2} \sigma^{2}K^{2}\frac{\partial^{2}C}{\partial^{2}K} + (r_{T}-q_{T}) \left ( C - K \frac{\partial C}{\partial K} \right ) - r_{T}C
$$
and repar... |
I've a series of ROIs: $R(n) = [r_1, r_2, ... r_n]$ generated from taking $n$ trades. Each ROI value is in percent $[0, 1]$. How do I generate cumulative return $C(n)$ from this data?
My understanding is that the cumulative return for $n^{th}$ trade will be $C(n) = -1 + \Pi_{i=1}^n (r_i + 1)$.
However, this leads... |
I was just reading [Quantitative Trading: How to Build Your Own Algorithmic Trading Business][1] and it suggests annualizing Sharpe ratio in order to compare performance of strategies:
$$\text{Annualized Sharpe Ratio} = \sqrt{N_T} \frac{\bar{R_s} - R_{b}}{\sigma_{R_s}}$$
where $\bar{R_s}$ are strategy returns for... |
Is scaled Sharpe ratio a t-statistic? |
I have a question on Feynman-Kac formula but can I ask the community if I have done it correctly? If no, may you point out to where I went wrong? Thanks!
The original FK formula states: Assume $f(t,x)$ satisfies $$\frac{\partial f}{\partial t}(t,x) + \mu(t,x)\frac{\partial f}{\partial x} + \frac{1}{2}\frac{\partial... |
I have a question on Feynman-Kac formula but can I ask the community if I have done it correctly? If no, may you point out to where I went wrong? Thanks!
The original FK formula states: Assume $f(t,x)$ satisfies $$\frac{\partial f}{\partial t}(t,x) + \mu(t,x)\frac{\partial f}{\partial x} + \frac{1}{2}\frac{\partial... |
Under the Black-Scholes framework, there is a closed form formula for the price of a compound options, as first derived by Geske (1979). However, the analytical formula refers to a critical stock price, which is the value of the stock at expiration date of the compound option such that the (underlying) option is at the... |
Under the Black-Scholes framework, there is a closed form formula for the price of a compound options, as first derived by Geske (1979). However, the analytical formula refers to a critical stock price, which is the value of the stock at expiration date of the compound option such that the (underlying) option is at the... |
I have a question on Feynman-Kac formula but can I ask the community if I have done it correctly? If no, may you point out to where I went wrong? Thanks!
The original FK formula states: Assume $f(t,x)$ satisfies $$\frac{\partial f}{\partial t}(t,x) + \mu(t,x)\frac{\partial f}{\partial x} + \frac{1}{2}\frac{\partial... |
I would like to know whether my raisonning is correct or not.
Let $\pi_t$ be the price of a financial product $P$.
The forward associated to a forward contract on $P$ that settles at time $T$ is given by :
$$F_{t}=\mathbb{E}^{T}\left(\left.\pi_{T}\right|\mathbb{F}_{t}\right)\\ =\mathbb{E}^{T}\left(\left.\frac{\... |
I would like to know whether my reasoning is correct or not.
Let $\pi_t$ be the price of a financial product $P$.
The forward associated to a forward contract on $P$ that settles at time $T$ is given by :
$$F_{t}=\mathbb{E}^{T}\left(\left.\pi_{T}\right|\mathbb{F}_{t}\right)\\ =\mathbb{E}^{T}\left(\left.\frac{\p... |
> Objective: (1) Implement the Euler Explicit Method for solving the PDE for option prices under the Schwartz mean reverting model. (2) Compare with a Monte Carlo simulation.
I'm stuck with point 1 (see this [question][1]) so in the meanwhile I'm working on point 2. Basically, I have 200 monthly spot prices of a com... |
> Objective: (1) Implement the Euler Explicit Method for solving the PDE for option prices under the Schwartz mean reverting model. (2) Compare with a Monte Carlo simulation.
I'm stuck with point 1 (see this [question][1]) so in the meanwhile I'm working on point 2. Basically, I have 200 monthly spot prices of a com... |
I have a data set with index fund quotes, and I'm trying to compute the efficient portfolio frontier for it.
But some data points are missing. In some cases there are few funds that trading even on holidays, while for the rest there is no data on that day. Sometimes there is a single day of data missing here and the... |
I have a data set with index fund quotes, and I'm trying to compute the efficient portfolio frontier for it.
But some data points are missing. In some cases there are few funds that trading even on holidays, while for the rest there is no data on that day. Sometimes there is a single day of data missing here and the... |
>But if p≥130, then your 130 call is ITM! So what "risk"? How's the "risk" "larger"?
$p \to 130^{-}$ means that p _approaches_ 130 from below but never _reaches_ it. So the 130 strike option is never ITM. And as p increases, there is a greater possibility that the 110 option finishes ITM (less change that the underl... |
I know how to down-sample **daily returns (large-sample data)** to **monthly returns (small-sample data)** by using rolling windows, which feels like estimating a sub-sample from the population (something that makes sense based on what's given), but for some reason don't think it's as easy to go the reverse direction i... |
How to up-sample monthly returns into daily returns? |
In a GARCH(1,1) model for time intervals of length $k\delta$,
$$h(t,t+k\delta) = c+a\,r(t-k\delta,t)^2 +b\,h(t-k\delta,t) \tag1$$
where $h(t-k\delta,t)$ is the estimated variance for the and $r(t-k\delta,t)$ is the return for time interval $(t-k\delta,t)$. Suppose the prices are observed at shorter time intervals of... |
In a GARCH(1,1) model for time intervals of length $k\delta$,
$$h(t,t+k\delta) = c+a\,r(t-k\delta,t)^2 +b\,h(t-k\delta,t) \tag1$$
where $h(t-k\delta,t)$ is the estimated variance for the and $r(t-k\delta,t)$ is the return for time interval $(t-k\delta,t)$. Suppose the prices are observed at shorter time intervals of... |
**Edited to include VBA code for comparison**
**Also, we know the analytical value of the simple Call option, which is 8.021, towards which the Monte-Carlo should converge, which makes the comparison easier.**
**Excel VBA gives 8.067 based on averaging 5 Monte-Carlo simulations (7.989, 8.187, 8.045, 8.034, 8.075)... |
Can you provide a reference to the transition density of the scalar *geometric Brownian Motion with time-dependent drift and volatility*, i.e. the scalar process $X = (X_t)_{t\geq 0}$ defined by the SDE
$\mathrm{d}X_t = X_t\cdot(b(t)\,\mathrm{d}t + \sigma(t)\,\mathrm{d}B_t)$
for (sufficiently smooth) functions $b... |
When modeling Non-maturity deposits (NMDs) the Basel Committee suggests the following
(see 31.109 of the [guidelines][1]):
> Banks should distinguish between the stable and the non-stable parts
> of each NMD category using observed volume changes over the past 10
> years. The stable NMD portion is the portion tha... |
Upon close reading, this appears to be 3 (interesting) questions, not one. I'm not sure if the mods have the tools needed to split it up, so I'm just going to write down the three questions as I see them and then deal with them one by one. Note, it is simpler for me to talk about variance instead of volatility. This ha... |
Shown below is a snippet from a research paper on volatility by Dr. Gatheral.
Is the first line basically saying "The partial derivative of theta with respect to t is always greater than equal to zero"?
In the second line what is the middle condition? Is that "Partial derivative of (theta * phi(theta) with respe... |
> Is formula (1) correct?
Yes, follows from first definition - floater with deterministic spread is composed (sum) of two components: (1) pure floater and (2) deterministic coupon strip via contractual spread payment.
> Is formula (2) correct?
Yes, by taking the derivative of an exponential function.
> what... |
Can somebody explain (and give examples) of "signals" in quant investing? What are those? What does this word mean? |
What is "signal" in quant investing? |
does anybody have experience with the Entropy Pooling Approach by Meucci (2008) in R?
I am currently trying to do a portfolio optimization with Stocks & Bonds, where a 101 example would be very helpful. The published examples (demos in Meucci package & one example with the edhec-Data) unfortunately did not help me.
... |
Assume I have a bond that pays 5% coupon anually on the last day of the year. The day count method used to calculate accrued interest over time is "days actual / 360". The day before the coupon payment, accrued interest would be something like (364/360) * 5% which is (obviously) more than 5%.
When I receive my coupo... |
Do you have an actual example of this ?
In practice I don't think you'll find bonds that have day count conventions that give an accrual factor > 1. Most Treasury bonds across the world are quoted using 30/360 or Actual/Actual so the accrual factor is always less than or equal to 1.
Conventions that give accrual... |
quite long text incoming, sorry for that: While reading a corporate finance textbook, i came across a section describing the effect of diversification as well as the systematic and unsystematic risk. The book provides an example in order to show the effect of diversification:
A city where there is a 1% chance of a h... |
Why is standard error used to show diversification effect for unsystematic risk? |
In the definition available [here][1]
It seems that both
1. Interest-only/principal-only securities.
2. Collateralized Mortgage Obligation Strips.
are types of Stripped Mortgage-Backed Securities (SMBS). However, it seems that somehow the first is also known by mortgage strips. While the second in the same w... |
what is the difference between Interest-only/Principal-only securities and CMO strips? |
(i) Are USD OIS Swaps indexed to SOFR (Secured Overnight Funding Rate), EFFR (Effective Federal Funds Rate) or the FFTR (Federal Funds Target Rate).
(ii) If USD OIS Swaps exist on multiple benchmarks, which ones are the most liquid ones?
(iii) What are the exact mechanics of these swaps? (For example, EONIA-ind... |
I'd like to get my degree in mathematical finance, or eventually in quantitative finance. Could you give me some (original) ideas, maybe transversal between the two, on which to focus my thesis?
Thanks in advance. |
I am pretty new to Quant field and QuantLib and have been having the following problem when trying to model a very simple fixed rate bond using Python.
It looks like the library does not use the discounting curve provided to the DiscountingEngine if I am using the dirtyPrice() method to calculate the IRR. It does af... |
How to determine what's driving the VaR? |
Shown below is a snippet from a research paper (https://arxiv.org/pdf/1204.0646.pdf) on volatility by Dr. Gatheral.
The formulae shown below are on page 12, Theorem 4.1.
Is the first line basically saying "The partial derivative of theta with respect to t is always greater than equal to zero"?
In the second li... |
In a GARCH(1,1) model for time intervals of length $k\delta$,
$$h(t,t+k\delta) = c+a\,u(t-k\delta,t)^2 +b\,h(t-k\delta,t) \tag1$$
where $h(t-k\delta,t)$ is the estimated variance for the and $r(t-k\delta,t)$ is the return for time interval $(t-k\delta,t)$. Suppose the prices are observed at shorter time intervals of... |
It sounds like the P&L's you are given are not really the historical P&L's.
Rather, you have some portfolio and market data currently; you have 260 days of historical market data changes; and you calculate what the P&L of the present portfolio would have been if the market moved as it did on that historical date fro... |
It sounds like the P&L's you are given are not really the historical P&L's.
Rather, you have some portfolio and market data currently; you have 260 days of historical market data changes; and you calculate what the P&L of the present portfolio would have been if the market moved as it did on that historical date fro... |
**I am unsure how a typical "matching engine" handles overlapping orders** (in my case, Deribit). I would be just as interested in how any crypto exchange handles the situation. The user has self-trading set to disabled (like most users).
**Given the following very simple orderbook...**
SELL $504.... amount=2... |
How Crypto Exchanges handle overlapping orders when self trading is disabled? |
**I am unsure how a typical "matching engine" handles overlapping orders** (in my case, Deribit). I would be just as interested in how any crypto exchange handles the situation. The user has self-trading set to disabled (like most users).
**Given the following very simple orderbook...**
SELL $504.... amount=2... |
I have to build an operational risk model and to be compliant with Basell II and III regulations I thought of using AMA (Advanced measurement approach) or COM (change of measurement).
The goal is to estimate the losses of my company so I want in the end a number in Euros, and in addition also the distribution of thi... |
Shown below is a snippet from the paper *Arbitrage-free SVI volatility surfaces* by Jim Gatheral and Antoine Jacquier (2013) (https://arxiv.org/pdf/1204.0646.pdf) .
The formulae shown below are on page 12, Theorem 4.1.
Is the first line basically saying "The partial derivative of theta with respect to t is always... |
I am currently modelling a category 2 PRIIP in Excel based on some share price datas provided by a client. The calculations yield a MRM of 5. Now, the client wants us to conduct an analysis on how they could get a MRM of 2. The question is, how would you do that?
MRM is determined by VeV, which is determined by VaR.... |
Shown below is a snippet from the paper *Arbitrage-free SVI volatility surfaces* by Jim Gatheral and Antoine Jacquier (2013) (https://arxiv.org/pdf/1204.0646.pdf) .
The formulae shown below are on page 12, Theorem 4.1.
Is the first line basically saying "The partial derivative of theta with respect to t is always... |
The square root law is shown here: https://quant.stackexchange.com/questions/41937/market-impact-why-square-root
Let's say I want to execute 100 lots. But I have never executed before so I have no idea what n is historically. How would I determine what C is?
|
Can someone explain to me the square root law of market impact? |
The square root law is shown here: https://quant.stackexchange.com/questions/41937/market-impact-why-square-root
Let's say I want to execute 100 lots. But I have never executed before so I have no idea what n is historically. How would I determine what C is? Or is there a way to get a historical n?
|
For most fixed-coupon **bonds** in most markets, the convention is that the daycount is only used to calculate the accrued coupon in the middle of the coupon period. If the complete coupon is paid at the end of the coupon period, then this is the quoted coupon.
There are exceptions to this, for example, Mexico MBONO... |
For most fixed-coupon **bonds** in most markets, the convention is that the daycount is only used to calculate the accrued coupon in the middle of the coupon period. If the complete coupon is paid at the end of the coupon period, then this is the quoted coupon.
There are exceptions to this, for example, Mexico MBONO... |
The price of a commodity can be described by the Schwartz mean reverting SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}.W = \text{ Standard Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
From it is possible to derive the PDE for the price of the forward contract h... |
Accuracy of Explicit Euler method (finite difference) decreases as Δx decreases, shouldn't it increase? |
I have to build an operational risk model and to be compliant with Basell II and III regulations I thought of using AMA (Advanced measurement approach) or COM (change of measurement).
We have no historical data in the sense that what my company does is spreading around a questionnaire where the heads of the department... |
The price of a commodity can be described by the Schwartz mean reverting SDE
$$dS = \alpha(\mu-\log S)Sdt + \sigma S dW, \qquad \begin{array}.W = \text{ Standard Brownian motion} \\ \alpha = \text{ strength of mean reversion}\end{array}$$
From it is possible to derive the PDE for the price of the forward contract h... |
Sheldon Natenburg in his book Option Volatility and Pricing in the chapter on Risk Management is trying to explain the effect of interest rates on options.
He says
> The value of a stock option will also depend on whether the trader has a long or short stock position. If a trader's option also includes a short s... |
Do option values depend on whether a trader hedges with a long stock or short stock position? |
Why is it that, if options are subject to futures-settlement and the underlying futures themselves are also subject to futures settlement, then these options are insensitive to interest-rate changes? |
Why are options on futures that are subject to futures settlement insensitive to changes in interest rates? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.