instruction
stringlengths
15
26.1k
Does the random walk theory assume a simple symmetric random walk?
As the volatility process follows a Markov Chain with state-dependent jump probabilities, it seemed (to me) quite cumbersome to come up with something that feels more closed-form-ely. For option pricing, we would need to not only consider the average time the chain is in the low and high vol states (--> limiting distri...
Does the random walk theory assume a simple symmetric random walk? In other words: does the random walk theory assume that the price rises as often as it falls? I've been looking for an answer for a while but I'm still not sure. The question is very simple, but I think that it will then be easier for other people to fi...
Does the random walk theory assume a simple symmetric random walk? In other words: does the random walk theory assume that the price rises as often as it falls? I've been looking for an answer for a while but I'm still not sure. Maybe this question is very simple, but I think that it will then be easier for other peopl...
We are asked to consider a derivative with payoff $C_t = S_{T}^{1/3}$ at maturity $T > 0$ and to use risk neutral pricing to derve the no-arbitrage price process $C_{t}$. Some context: Let $W$ be a standard Browian motion. We are in a financial market consisting of a risky asset $S$ and a money-market account $B...
I'm reading Shreve's *Stochastic Calculus for Finance*. On page 382, he begins talking about exchange rates: > Finally, there is an exchange rate $Q(t)$, which gives units of domestic currency per unit of foreign currency. We assume this satisfies > > $$\mathrm{d}Q(t) = \gamma(t)Q(t)\mathrm{d}t + \sigma_2(t)Q(...
Why would exchange rates follow a geometric brownian motion?
**Preliminary remark:** Under the proposed setup, the volatility follows a (continuous time) Markov Chain on two volatility states with a high-volatility state ($u$) and a low-volatility state ($l$) and jump intensities $\lambda_{l\to u}$, $\lambda_{u\to l}$. Let us simplify a bit and assume a discrete jump process wit...
**Preliminary remark:** Under the proposed setup, the volatility follows a (continuous time) Markov Chain on two volatility states with a high-volatility state ($h$) and a low-volatility state ($l$) and jump intensities $\lambda_{l\to h}$, $\lambda_{h\to l}$. Let us simplify a bit and assume a discrete jump process wit...
**Preliminary remark:** Under the proposed setup, the volatility follows a (continuous time) Markov Chain on two volatility states with a high-volatility state ($h$) and a low-volatility state ($l$) and jump intensities $\lambda_{l\to h}$, $\lambda_{h\to l}$. Let us simplify a bit and assume a discrete jump process wit...
Why the market portfolio is the tangency portfolio in the Mean-Variance Optimization model?
Here is a difficult "real-life" skew / surface options problem that actually occurred in 2018, and is the subject of court cases now. Please help me judge its validity or falsity. In 2018 Tencent was falling, and its proxy on the local exchange realized almost 50% (over 60 working days). Its long-term mean vol was a...
May banks ignore the vol surface for far OTM, distantly-dated options, and made dcisions only on near-term implied ATM vol?
Here is a difficult "real-life" skew / surface options problem that actually occurred in 2018, and is the subject of court cases now. Please help me judge its validity or falsity. In 2018 Tencent was falling, and its proxy on the local exchange realized almost 50% (over 60 working days). Its long-term mean vol w...
May banks ignore the vol surface for far OTM, distantly-dated options, and make risk decisions only on near-term implied ATM vol?
Here is a difficult "real-life" skew / surface options problem that actually occurred in 2018, and is the subject of court cases now. Please help me judge its validity or falsity. In 2018 Tencent was falling, and its proxy on the local exchange realized almost 50% (over 60 working days). Its long-term mean vol w...
NB: I reworked the answer to make use of the sojourn time distribution of CTMCs, see below. ### A sketchy first ansatz **Preliminary remark:** Under the proposed setup, the volatility follows a (continuous time) Markov Chain on two volatility states with a high-volatility state ($h$) and a low-volatility state ($...
I have trouble to understand what implies "conditional heteroskedasticity" term in (G)ARCH models. The residual $\epsilon$ is stationary, hence homoskedastic (unconditional variance is constant). Then, if we assume that residual has (G)ARCH structure, do we assume that it becomes heteroskedastic when it is conditioned ...
I have a European call option with time maturity $T=3$ years,$K=50$, and given that $S(t)$ refers to the derivative is being described by the geometric Brownian motion with $S_{0}=100$ and $r = 0.04$.The volatility of the title is stochastic and deviates between two stages $\sigma_-=0.25$ and $\sigma_+ =0.75.$Those two...
Here is a difficult "real-life" skew / surface options problem that actually occurred in 2018, and is the subject of court cases now. Please help me judge its validity or falsity. In 2018 Tencent was falling, and its proxy on the local exchange realized almost 50% (over 60 working days). Its long-term mean vol w...
Here is a difficult "real-life" skew / surface options problem that actually occurred. Please help me judge its validity or falsity. In 2018 a Chinese communications stock was falling, and its proxy on the local exchange realized almost 50% (over 60 working days). Its long-term mean vol was about 30%. It's proxy...
I'm working on a program that find summary data given all trades during a day. However, for some reason, if I sum all the volume during market hour (9:30 -> 16:00, New York SE time), the total volume is noticeably less than the official values I can find (in this page for example: https://www.nasdaq.com/market-activit...
I was wondering what the most common, or most popular, ways - in both academia, and industry - there were to model the fat tails of volatility in asset prices changes. I am presuming a basic Brownian motion random walk, is not what is used, because it will not replicate fat tails. Is that correct? Or am I wrong, and...
What are the most common methods to model fat tails in the changes of asset prices?
A Wiener process has infinitely many states of the world at any time step. Does that not mean that there are infinitely many EMM's for any model that uses the Wiener process? But then if there is only one EMM for this model, how is it possible that the Esscher transform can be exactly the right transform, out of all...
Why the Esscher transform is the right transform for pricing formula?
I'd like to show that in diffusion models IV is bounded iff instantaneous vol is bounded if there is to be no arbitrage. So, assume a model under the pricing measure of the form $$ dS_u = \sigma_u S_u dW_u, $$ where the notation $\sigma_u$ means any local stochastic volatility. I am going to assume first that $\...
This might be a dumb question, but on a purely understanding level it is hard for me to wrap my head around the basic interpretation of some factor models. With the CAPM the interpretation of the $\beta$ coefficient is that this is nondiversifiable risk. Since we cannot diversify this risk away due to covariance with t...
$\mathbb{P}$ is the true probability measure. Measure $\mathbb{Q}$ is a measure of convenience that allows risk neutral pricing. [Stochastic discount factor $M$ takes you between the two.](https://quant.stackexchange.com/questions/38477/what-is-the-difference-between-risk-neutral-probabilities-and-stochastic-discoun/38...
I would like to to estimate the future returns of some public indeces. I have several of them so it is a multivariate problem. The series are quarterly and the estimation should be of at least 15-20 samples ahead. I have tried so far with a VAR-VARMA model, but although i see great performance in-sample it is very...
A conceptual problem with ESG as a factor is that ESG criteria seem to me about preferences over how firms operate rather than preferences over when cashflows occur? I don't think this is a strong reason not to go down the road of investigating ESG as a factor, but you'll want to think about how you frame your research...
Where to get datasets on stock market events/regimes and dates of them?
Using CRSP data, I tried to compute the historical returns (including dividends) of stocks according to *Total Return = (adjprc + (divamt / cumfacpr / facpr)) / prev_adjprc – 1*, where *divamt* is the dividend amount in period, *cumfacpr* is the cumulative factor to adjust prices over a date range, *facpr* is the...
NB: I reworked the answer to make use of the sojourn time distribution of CTMCs, see below. ### A sketchy first ansatz **Preliminary remark:** Under the proposed setup, the volatility follows a (continuous time) Markov Chain on two volatility states with a high-volatility state ($h$) and a low-volatility state ($...
I'd like to show that in diffusion models IV is bounded iff instantaneous vol is bounded if there is to be no arbitrage. So, assume a model under the pricing measure of the form $$ dS_u = \sigma_u S_u dW_u, $$ where the notation $\sigma_u$ means any local stochastic volatility. I am going to assume first that $\...
I am trying to calculate the yield and trading margin on an AUD FRN in a robust manner. I am hoping someone can help with a few details. I am forecasting cash flows and solving for the discount rate that discount's these cash flows to the current price which will give me the yield. 1. How can I estimate the futu...
How do I calculate yield and trading margin of an Australian Dollar floating rate note?
If you use Python, this set of holidays, early closings and unexpected closings has been well-curated: https://github.com/gerrymanoim/exchange_calendars (and even if you don't use Python, it's open source so you can obtain the data easily enough) Political regimes are more subjective though. When does particular ...
I'd like to show that in diffusion models IV is bounded iff instantaneous vol is bounded if there is to be no arbitrage. So, assume a model under the pricing measure of the form $$ dS_u = \sigma_u S_u dW_u, $$ where the notation $\sigma_u$ means any local stochastic volatility. I am going to assume first that $\...
I'd like to show that in diffusion models IV is bounded iff instantaneous vol is bounded if there is to be no arbitrage. So, assume a model under the pricing measure of the form $$ dS_u = \sigma_u S_u dW_u, $$ where the notation $\sigma_u$ means any local stochastic volatility. I am going to assume first that $\...
https://www.value-at-risk.net/futures-nearbys-and-distortions/ Following this guide for creating a return-adjusted nearby, I'm not sure I understand without an example. Does it mean that returns are created only for each separate contract in a nearby (not from the end of one to the start of another), and then these ...
How is a return-adjusted nearby created?
I am reading *Value-at-Risk* Second Edition – by Glyn A. Holton https://www.value-at-risk.net/futures-nearbys-and-distortions/ From 6.6.1 "The standard means of obtaining continual time series from futures prices is to use *nearby series* or simply *nearbys*." In 6.6.2 (see link above) there is a guide for cre...
The price a digital call and put in the Black-Scholes model is given by $$c^d = \Phi (d_-), \qquad p^d = \Phi (-d_-), \qquad \text{with} \qquad d_- = \dfrac{\log S_t / K}{\sigma \sqrt{T}} - \dfrac{1}{2}\sigma \sqrt{T}.$$ I am assuming $r = 0$, since interest rates are unrelated to the question. It is easy to see...
I am currently using a vectorized backtester where I have a ```strategy_returns``` series which is just a version of the bar-to-bar ```log_returns``` series where all returns that aren't between an entry/exit pair are ```0```. Below is an example illustrating what I mean: ***```log_returns``` Series:*** [-0.01, 0.0...
Compute Sharpe ratio and annualized Sharpe on captured bar returns or trade returns?
I am looking for a quick way to reconstruct the order book at the time of each new limit order creation. The data I have is order creation and completion: | OrderID| time_created | time_completed | price | |:---- |:------:| -----:| -----:| | a | 1 | 2 | 10 | | b | 1 ...
I am looking for a quick way to reconstruct the order book at the time of each new limit order creation. The data I have is order creation and completion: | OrderID| time_created | time_completed | price | |:---- |:------:| -----:| -----:| | a | 1 | 2 | 10 | | b | 1 ...
Has anyone read the paper "Spread of risk across financial markets:better to invest in the peripheries" by F. Pozzi, T. Di Matteo & T. Aste? If so, how do you interpret equation (1) in the dependency measure subsection of the Methods section? It looks like it produces an average correlation figure. That average figure ...
Has anyone read the paper ["Spread of risk across financial markets:better to invest in the peripheries" by F. Pozzi, T. Di Matteo & T. Aste][1]? If so, how do you interpret equation (1) in the dependency measure subsection of the Methods section? It looks like it produces an average correlation figure. That average fi...
QuantLib: How to import indexes from QuantLib?
I am trying to study a **time series**. I have 10-year **daily close prices** for some stocks, so my time series is very simple: each day I have a close price for my company. The question is: how can I want to study **volatility**, so here's what I did: - calculate the log returns - compute volatility From to th...
I've been looking into Asian Options pricing. Part of the process is about looking for the expected value of the average of a time series undergoing e.g. geometric brownian motion. I came across this paper: [*Pricing and hedging of arithmetic Asian options via the Edgeworth series expansion approach*][1]. In the...
Quantlib : Valuation of inflation swaps of EUR-RPI using quantlib python?
The math checks out, and a carefully conducted simulation study will follow the result: For $S_t$ following a geometric Brownian motion with constant parameters $\mu,\sigma$,we know that $$E(S_T|S_t)=S_te^{(\mu+0.5\sigma^2)(T-t)}$$ In this case, the risk neutral drift $\mu_{\mathbb{Q}}=r-\frac{1}{2}\sigma^2$, hen...
I think it is important quants understand what traders are talking about. With that, what does it mean: - "vol is well bid" - "fade the trade" ?
Vocabulary: "Well Bid" and "Fading" Meaning?
I am trying to price USD interest rate caps on 1M rates (e.g., LIBOR, SOFR, etc.). The caps are designed to limit the exposure on non-callable USD Pay Float / Receive fixed positions in interest rate swaps. The swaps legal documentation states that the minimum float rate will alway be zero. If the USD float index...
Which Model Should I Use for Pricing USD Interest Rate Caps (7, 10, 30 year maturities) on 1Month Rates?
I have been working in a predictive ML model that uses financial time-series as predictor variables. In one of the academic papers I used as reference, and to do feature engineering for building the predictors they recommended doing a log diff transformation of the price. In python: import pandas as pd ...
I have been working in a predictive ML model that uses financial time-series as predictor variables. In one of the academic papers I used as reference, and to do feature engineering for building the predictors they recommended doing a log diff transformation of the price. In Python: import pandas as pd ...
I have been working in a predictive ML model that uses financial time-series as predictor variables. In one of the academic papers I used as reference, and to do feature engineering for building the predictors they recommended doing a log diff transformation of the price. In Python: import pandas as pd ...
If CAPM holds, should alpha be zero for all assets?
I would like some confirmation on whether what I came up for buying/selling currency on kraken.com is valid. Right now I get ```{"error":["EGeneral:Internal error"]}``` message from kraken.com, when I run my query. **But I have not yet placed any money in my account**. I prefer to be more confident in my query befor...
Trading currency on Kraken.com platform using their REST API (AddOrder), is this correct?
Imagine you have two time series of audio signals. You run a time lagged cross correlation analysis and find there is a significant correlation between them at lag = 0 and lag = -1. The correlation at lag = 0 is 90%, and -99% at lag = -1. My inclination is to settle with the strongest lag at -1, and conclude the tw...
Two sound waves in phase at different lags with varying signs?
I have two interest rate time series but want to think of this as sound signals for thought purposes. Imagine you have two time series of audio signals. You run a time lagged cross correlation analysis and find there is a significant correlation between them at lag = 0 and lag = -1. The correlation at lag = 0 is 90...
If I have a lot of data points and number of different dependent variables, can I use central limit theorem to assume data is multivariate normal and compute my VaR? Is this the appropriate use of central limit theorem for VaR calculation?
We have constructed a return factor for a Fama-French-Carhart type factor model which adds a "BMG" factor for climate risk exposure (see [open-climate-investing][1]) This BMG factor is orthogonalized based on regression of returns of 2 ETF's against interest rate variables. Periodically the regression coefficients ...
how should I update a return factor's orthogonalization parameters?
Let's say I have two random variables $X$ and $Y$ which each represents the daily returns of two given stocks. I can easy calculate their (total) correlation by finding their covariance matrix $\Sigma[X, Y]$. However, I would like to graph their correlation throughout time; not just a single point. Thus, I would like t...
Have you tried to run it again at a later time of the day? By checking the [kraken documentation](https://support.kraken.com/hc/en-us/articles/360001491786-API-error-messages), it appears that the error is not related to your level of available funds but rather a Kraken system stability issue. > EGeneral:Interna...
As far as I know, **pegged orders are never "pegged" to the same orderbook you add them to**. For instance - you can peg an order to the NBBO, for instance: at the mid of the NBBO - you can peg an order in the dark to the touch of the BBO of an orderbook belonging to the same operator, for instance: at the best bid f...
Your question is indeed on the **stationarity of correlations** between your two instruments $X$ and $Y$. To make it clear from a theoretical viewpoint, let's consider their 2D joint distribution $(X,Y)$: - first you need to decide if you want to consider that they have **autocorrelations** or if they are iid, in ...
I'm reading the Intelligent Investor and I came across a passage where Graham calculates the 'times earnings' of the DJIA. But is it wrong, or am I misreading it? > Since the market value of these issues is well above their book value—**say, 900 market vs. 560 book in mid-1971**—the earnings on current market pric...
The optimization problem is shown below $$ \min_{\boldsymbol{w}}\boldsymbol{w}^T\boldsymbol{Sw}\\ s.t. |\boldsymbol{w}^T\boldsymbol{a}_i|>1, i=1,2,\cdots, n $$ , where $\boldsymbol{w}, \boldsymbol{a}_i$ are vectors and $\boldsymbol{S}$ is a positive-definite matrix. The objective function is convex, but the f...
How to solve a optimization problem with absolute constraint?
I am trying to reproduce the analysis discussed in https://arxiv.org/pdf/cond-mat/9905305.pdf where they use high-frequency data (1minute thick) of S&P500 from 1984 to 1996. In particular, I want to reproduce their Fig. 2(a) showing the autocorrelation of returns, and to see the exponential decay I really need the e...
I am trying to reproduce the analysis discussed in https://arxiv.org/pdf/cond-mat/9905305.pdf where they use high-frequency data (1minute thick) of S&P500 from 1984 to 1996. In particular, I want to reproduce their Fig. 2(a) showing the autocorrelation of returns, and to see the exponential decay I really need the e...
I am trying to study a **time series**. I have 10-year **daily close prices** for some stocks, so my time series is very simple: each day I have a close price for my company. The question is: how can I want to study **volatility**, so here's what I did: - calculate the log returns - compute volatility From to th...
Let's say I have two random variables $X$ and $Y$ which each represents the daily returns of two given stocks. I can easy calculate their (total) correlation by finding their covariance matrix $\Sigma[X, Y]$. However, I would like to graph their correlation throughout time; not just a single point. Thus, I would like t...
# Interpretation: I believe the authors shrink the 6 month average of the exponentially smoothed correlations towards the average sample correlation. **Thus your second formulation seems correct, in the sense that *equation (1)* already contains shrinkage.** *** # Basis of my statement: I will redefine so...
The optimization problem is shown below $$ \min_{\boldsymbol{w}}\boldsymbol{w}^T\boldsymbol{Sw}\\ s.t. |\boldsymbol{w}^T\boldsymbol{a}_i|>1, i=1,2,\cdots, n $$ , where $\boldsymbol{w}, \boldsymbol{a}_i$ are vectors and $\boldsymbol{S}$ is a positive-definite matrix. The objective function is convex, but the f...
How to solve an optimization problem with absolute constraint?
When looking for papers on-line I often find things designed specifically to deal with micro-structure noise. I spent some time trying to understand / implement / test them for results that vary widely. I would be interested to know at below which timestep this micro-structure noise really starts to kick-in. Or convers...
At what time step the mircostructure noise start to kick in?
# Interpretation: The authors shrink the 6 month average of the exponentially smoothed correlations towards the average sample correlation. **Thus your second formulation seems correct, in the sense that *equation (1)* already contains shrinkage.** The basis of my statement comes from the derivations below. Her...
At what time step the microstructure noise start to kick in?
I wanted to calculate the daily return for a long-short position. Say one has **1** unit of stock A (long) and **alpha** units of stock B short. How can one now calculate correctly the daily percentage return? The literature puts different formulas forward, but they reach different values. Two of them are 1) log(P^...
I wanted to calculate the daily return for a long-short position. Say one has **1** unit of stock A (long) and **alpha** units of stock B short. How can one now calculate correctly the daily percentage return? The literature puts different formulas forward, but they reach different values. Two of them are 1) log(P^...
Does anyone have any additional information regarding the new Corporate Tax Futures added to MGEX this year? There isn't many resources out there, any insights would be greatly appreciated!
Notations are consistent with [this answer](https://quant.stackexchange.com/questions/33371/continuous-delta-hedge-formula). Selling and delta hedging the option $V^i$ using the implied volatility $\sigma_i$ while the actual volatility of the underlying asset is $\sigma_r$. Then the portfolio pnl has $$d\Pi=dV^i-\D...
Notations are consistent with [this answer](https://quant.stackexchange.com/questions/33371/continuous-delta-hedge-formula). Selling and delta hedging the option $V^i$ using the implied volatility $\sigma_i$ while the actual volatility of the underlying asset is $\sigma_r$. Then the portfolio pnl has $$d\Pi=dV^i-\D...
From previous research about data curation with research papers, it seems to me that most algorithmic trading systems (at least in regards to day trading) solely use historical price data- but I'd be interested to see if there were other sources that could help gain an edge. When it comes to day trading, do we just ...
What sources of data should be used for day trading?
What sources of data should be curated for day trading?
I am trying to reproduce the analysis discussed in https://arxiv.org/pdf/cond-mat/9905305.pdf where they use high-frequency data (1minute thick) of S&P500 from 1984 to 1996. In particular, they found the log returns for this period follow an exponential decay behavior for the first 20 minutes with a characteristic dec...
What kinds of data should be curated for day trading?
I wanted to calculate the daily return for a long-short position. Say one has **1** unit of stock A (long) and **alpha** units of stock B short. How can one now calculate correctly the daily percentage return? The literature puts different formulas forward, but they reach different values. Two of them are 1) $\log(...