instruction
stringlengths
35
27.7k
What is meant by a structural short in this context: "First lesson: Valuation shorts are pretty difficult. Look for structural shorts instead." Link
In the Black (1976) model: We should use the settlement prices of the underlying futures contract in order to estimate the volatility, right? Or can we also use the spot prices? Because the behaviors of these series of prices are quite different. Should the volatility always be annualized?
In the electricity sector, what should be the shape of the volatility smile? a behavior similar to other commodities with a convex curve, decreasing first and then growing to the initial level. or a volatility skew with volatilities elevated for higher strike prices ??
I am interested in calibrating a Hull-White model to the market. I do not, however, have data on anything except the market zero curves, as all derivatives are being traded OTC. My plan is to calibrate the model to the zero curve. Will this produce a sensible calibration of the model in respect of derivatives? If not...
I have constructed a simple HMM (Hidden Markov Model) with 2 states on the Vol (stdev) of a time series of currency returns. The state vector I produce looks reasonable, in the sense that it appears to have identified periods of high or low vol. However, I appear to be able to generate a very similar state vector just ...
Could anyone point me to detailed literature about "Partial Least Squares Discriminant Analysis"? Intuition, methodology and examples.. Thanks,
Is there any other historical end-of-day CME option data provider rather then CME DataMine? I've searched all the internet and found only CBOE traded options.
What is the correct methodology to compute constant maturity futures price. I've met in some papers that do the following. To create constant maturity synthetic futures prices with maturity $m = 30, 60,...,180$ days. We should take a pair of futures that straddle the chosen maturity $m$ with maturities $s<m<l$ measured...
Let's assume the usual state-space linear model without constant term for simplicity: $y_{t}=\beta_{t} X_{t}+\epsilon_{t}$ If we apply Gaussian Kalman filter to estimate $\beta_{t}$ we get $P_{t}$, which is the covariance matrices of predicted states, and $v_{t}$, which is the prediction error. The following simple R c...
Forgive me I am not good at economics, I have following values. amount I want to lend. the current bank interest rate. the amount of years the loan will be for Please tell me the formula to calculate how much interest only amount that I will have to pay back over the life of the loan.
If you look at instrument name for listed on various futures exchange you often see Gold Only1214 Gold Full1214 What is "Full" and "Only" mean? The price listed is the same and I cannot find a reference to this convention anywhere? (Please and Thank you.)
I'm interested in testing my trading strategy using the Interactive Brokers API for Trader Workstation. A demo account is provided to play with TWS for free, but if I fund a real account I will be provided with a paper trading account to use. I believe that the demo account uses simulated or old market data, whereas a...
In terms of Merton credit risk model need to find the initial value of counterparty's assets and the volatility of the assets. Both value are not directly observable thus we have to approximate them by solving the system of equations, one of which is $$ \sigma_E E_0 = N(d_1) \sigma_V V_0 $$ I found the derivation of th...
What is the industry consensus (if it exists) about implied volatility calculation for options on VSTOXX (OVS)? I've experimented with the following approach: Standard Black-Scholes VSTOXX futures as underlying prices for respective option maturities Assuming $q=r$ and I wasn't quite happy with the difference between...
I am currently testing whether three proprietary factors - Valuation, Size and Momentum - explain cross-sectional returns. A sample of 3000 securities was tested using Fama-MacBeth two-pass regressions over the period 1988-2013. In order to mitigate any thorny estimation problems due to time-varying regression slopes,...
Consider a log-normal model, $dx / x = \mu dt + \sigma dW$, where $W(t)$ is a Wiener process. Let's say $\mu$ and $\sigma$ change with time, slowly, so we note them by $\mu(t)$ and $\sigma(t)$. Consider $dx / x$, where the drift rate is $\mu$, and the volatility is $\sigma \sqrt{dt}$. Here, $\mu(t)$ and $\sigma(t)$ is ...
I am having a problem understanding discounted cash flows. I appreciate your patience and help. Lets say I have a bond that I want to price. Par: $1000 Coupon Rate: %5.0 YTM: %5.0 Frequency: Semi-Annual – 2 (Paid on: 6/30/20XX,12/31/20XX) Settlement Date: 8/15/2013 Maturity Date: 12/31/2014 12/31/2013 6/30/2014 12...
Does the Black (1976) model require the existence of the relation $F(t,T)=S(t)e^{r(T−t)}$? I studied the derivation of the Black-Scholes formula. However, although I know the Black formula, I've never studied its entire derivation process. And probably the easiest way to justify the formula is using that relationship (...
Why is that the covariance of a global minimum variance (GMV) portfolio in the efficient frontier with any asset is always the same?
Assume I have a large portfolio of equities spread across three sectors. I am attempting to compute the volatility of these sectors within the portfolio considering the cross correlations among the assets in the other sectors. Further, how might I compute the relevant cross correlations for use in the volatility measur...
This is a basic question. I have three assets, equally weighted, and all the mutual covariances are -1. Then, the covariance matrix looks like - 1 -1 -1 -1 1 -1 -1 -1 1 Now, to calculate the VaR, I need to calculate the portfolio variance. Am I correct in concluding that I can't calculate the portfolio varia...
To price the convertible bond, one of the models is the bond plus equity option method. That is, the value of convertible bonds is evaluated by finding the value of the straight bond and the value of call option on the underlying asset by option pricing model, i.e. Black Scholes Model. Another model is the binomial mod...
Is there any good research on the price elasticity of trading in financial markets? Things like optimal fee structures and the like?
I am looking on literature and models on pricing a bond futures' calendar spread. assuming the basket of deliverable bonds is the same and the ctd is the same, what are the factores determining the price of the spread? Thanks
It looks like the subject of seagull option strategy is not as clearly explained as for other strategies (butterly, bull,bear spread). Thus, can someone provide a clear example of what you buy and sell in this strategy? Also, could you please indicate the ralationship between the strikes of each option that is involved...
Let's suppose we have a futures contract F in a market where the relation $$F(t,T)=S(t)e^{r(T−t)}$$ doesn't hold. What are the the boundary conditions for the derivation of the Black (1976) formula??
I am looking to take a cross sector subset of a larger stock index universe. What steps to I take to assure that sector representation is as equal as possible to help smooth out my variance(while admittedly giving away some return). Thanks.
I am calculating implied interest rates using covered interest rate parity theorem. I am looking at the Australian US currency pair. When evaluating day counts, should I be using Actual/365 for Australia and Actual/360 for US?
I am after a good comprehensive resource on Japanese day count conventions. By that I mean, is actual/360 or actual/365 used for pricing various options, forwards, futures, etc.
When using Reuters, for each listed company there is credit tab that shows relevant information in terms of credit default. There is also rating class as well as one year default probability. It is said they use a structural model - does anyone knows what structural model do they use?
Consider the RQuantLib package function FloatingRateBond(). This takes as inputs gearings and spreads, whose correct definition is unknown to me. Let I have a floating rate bond, e.g. the BACRED Float 06/18/20 (whose ISIN code is IT0004921646): this bond pays annually EURIBOR 3M + $140$ bps. What gearings and spreads o...
I'm looking to optimize a portfolio maximizing expected return for a particular risk budget, but with absolute constraints on the individual instrument positions. I've been experimenting with QP, but I was wondering if anyone could guide me to a suitable solution?
More specifically, I am looking for recent research papers that have harnessed Mandelbrot's ideas too successfully predict asset prices. I have read many papers about wavelets, and I would like to read what other people (you) consider to be the best work in this field. Are wavelets the only analyses currently in devel...
Is it true that pricing a reinsurance contact is equivalent to pricing an option. Basically a reinsurance just cuts off the risk exposure of the insured institution to a threshold say $K$. So if we assume that the prospective losses of the risky portfolio of the institution can be modelled by a random variable X, then ...
This paper describes an algorithm for computing arbitrage opportunites using a gauge connetion. Has anyone written a python program or C++ or C# program that shows how to follow the steps outlines in the paper, and if so, could you point me to it?
Are there any sure-fire ways to increase market-depth that people have experience with? Has much research been done/published on this subject?
I observe a sample from a distribution that I expect to be the hitting time $$\tau = \inf\{t>0| X(t)>a\}$$ where $X(t)$ is a Lévy process with $X(0)=0$ and $a$ is some constant. $X$ is not a Brownian motion and the experimental fit to the Lévy distribution is poor. However, I do not need to know the exact formula for...
I'm trying to understand how to compute the daily volumes of the Dow Jones Industrial Average but I haven't found the proper formula yet. I thought it was the sum of the price*volume of each constituent but the result doesn't match. For example, on 2012-08-23 the last prices and volumes were: Company | V...
Want to have electronic access to equity options quotes in real-time. Is there anyone offering this service to the individual investor for a reasonable price? Again it must be electronic, in other words, a computer program will analyse the data in real time, not the human eye.
DB has some sample Level 2 market data: http://deutsche-boerse.com/mda/dispatch/en/listcontent/gdb_navigation/mda/200_market_data/650_historical_market_data/35_enbs_hist_data_xetra/EnBS_historical_data_Xetra.htm In particular: http://deutsche-boerse.com/mda/dispatch/en/listcontent/gdb_content_pool/imported_files/public...
When dealing with trade data, for example from TAQ, a common problem is that of determining whether a trade was a buy or a sell. The most commonly used classifier is the Lee-Ready algorithm (Inferring trade direction from intraday data, 1991). Unfortunately, this method is known to be inaccurate: Lee and Radhakrishna (...
Can anyone point me to the expression for the first passage time for a geometric Brownian motion process X(t) as a function of the starting point, threshold, drift and diffusion parameters. I am mainly interested for processes with positive drift and thresholds that are higher than the starting point. I know this is a ...
Excel is likely the most widespread instrument across all not-only-quants desks; in addition, we have to keep in mind that Bloomberg and Reuters allow to easily import real time data in Excel, and this is very handy. Due to these features, I'm wondering what's the easiest and most reliable solution to use QuantLib in E...
I have a question about a option theta. When I evaluate the option theta of near expiry put option using Black-Scholes formula given the data as follow: Index Level = 20,500 Strike Price = 20,000 Interest Rate = 0.14% Dividend Yield = 3.41% Volatility = 23.64% Time to maturity = 0.01 (2 days) Using data as above, the...
I have a quick question about the ETF Roll Yield. As we all know commodity ETF’s have struggled with contango (spot price is below futures prices on the term structure). Look at an ETF like USO which because of the contango in WTI has had negative roll yield even as WTI prices have rebounded since 2008. Here is my ques...
I'm using QuantLibXL to build a discount curve, a zero yield curve and a forward curve of the EURIBOR rate (QuantLibXL is downloadable here). I've built an object of class PiecewiseYieldCurve through the qlPiecewiseYieldCurve() function and the TraitsID argument is set to ZeroRate. When I use the qlPiecewiseYieldCurveD...
I think there are two possible ways: 1. day open, close, high, low, volume separately into array, then I have 5 arrays to work with my calculation 2. Put all of these into one array or linklist to do the calculation. I think the 1. would be more easy to handle all backtest calculations, do you agree? Background informa...
I have a fairly simple problem for an application I am writing currently. How do you calculate the options probability of being in the money or touching a certain strike price. I know there are at least two ways of doing it. One would be to derive it from the options pricing and the Black Scholes formula, but the other...
I have several assets, each with different return histories. Some of the assets have 75 days of return history, others have 40 or so days. In calculating a robust covariance matrix, should I be using a resampling with replacement technique or should I be using an expectation maximization algorithm? I was thinking of tr...
The following link contains a file containing CME Level 2 FIX Market/Orderbook data for Corn futures: ftp://ftp.cmegroup.com/datamine_sample_data/md/mdff_cbt_20130714-20130715_7813_0.zip However, after going through the file the timestamps at tag 52 are all over the place and in no order. Would somebody familiar with F...
I have two questions to ask: What are the best methods to determine stationarity in a financial market (such as stocks) using MATLAB? What methods would you recommend to use in order to change from non-stationary points to stationary points (so as to better predict the market), so that I can use the resulted data for ...
A rights issue is the granting by a corporation to its shareholders of a right to purchase $N$ new shares for each $M$ shares they already hold at a (often discounted) price $K$. Thus, it superficially resembles a call option, but because every shareholder is holding such options, dilution of the stock value is unavoid...
Searching online, i found out that non-stationary cannot be analyzed with traditional econometric techniques as in case of non-stationarity some basic model assupmtions are not met and correct reasoning on relationships between non-stationary time-series is impossible. Is there anyone who can enlighten me what are the ...
I'm currently looking to implement some version of the yield curve modeling techniques in the maximum smoothness framework. The papers I have found so far explains the theory pretty well, but I find them somewhat hard to replicate. Does anyone here know any easy-to-replicate papers on the topic? The ones I have read so...
I have two assets, $S_1$ and $S_2$, which follow geometric Brownian motion processes. This implies that both $S_1$ and $S_2$ have a lognormal distribution. I'm trying to get the exchange option price formula through the risk neutral valuation, or, in other words $$C(t,S_1,S_2)=e^{-r(T-t)}E(\max\{S_1-S_2,0\})$$. How do ...
I've already computed the CVA\DVA and now I would like to compute the bilateral adjustment. Does anyone know the relationship between the CVA\DVA with the bilateral adjustment? I mean a paper, article or whatever; if it talks about that relationship and how to compute the bilateral adjustment, it will be very useful.
The liquidity diversification can be measured by the liquidity score, defined here as the ratio between the pure market P&L CVaR and the market+liquidity P&L CVaR. I have tried to reproduce the results in Meucci's paper A fully integrated liquidity and market risk model, for which the code is available in Matlab, more...
I am wondering what's the most efficient way (i.e. the method which involves the fewest arguments) to price a bond at a specified date, e.g. a future date (as instance, 6 months from now) in QuantLib. Let the object of class Bond is then priced using BondSetCouponPricer() and InstrumentSetPricingEngine() with a non-fl...
Except Zipline, are there any other Pythonic algorithmic trading library I can choose? Especially, for backtesting? Update: Since Quantopian closed, there are some Zipline forks like: https://pypi.org/project/zipline-reloaded/ https://www.quantrocket.com/zipline/ https://zipline-trader.readthedocs.io/en/latest/index.h...
I am looking for academic articles which model the p&L of market makers. I have read the Ho-Stoll (1984) article. Is there any recent article on this subject?
Where does CME store Security IDs for FIX messages? I cannot find them anywhere? So given Security ID XX I can go and work out what product this actually is?
I already use QuickFixN to connect to FX ECNs, and am now looking to branch out into futures. Googling it, it seems as if there are a lot of 3rd party APIs which are written to do this, but is there any reason I wouldn't just use QuickFix and connect directly to the exchange? Obviously cost is one reason to use Quickfi...
One arbitrage strategy involves looking at the price of the Index Futures price compared with the prices of the options contracts for the underlyings. My question is, can this arbitrage strategy still be performed when not all the underlyings have listed options contracts (like on the FTSE100)? Is there anything which ...
I have often seen the following statement in different paper: As $\sigma$ is homogeneous and of degree 1, we use Euler decomposition and write $\sigma(x)=\sum_{i=1}^n x_i \frac{\partial \sigma(x)}{\partial x_i}$ The thing is, I am trying to find on wikipedia where this comes from and I can't quite find it. Could some...
For my master thesis, I need high-frequency data with the market participant ID or which identifies the trading parties, respectively. I don't need the entire orderbook but just the matched orders with a trade direction. I've found LOBSTER so far, which has no MPID though, and tradingphysics, whose Times&Sales dataset ...
Suppose I have a Po with one long, one short positions and some cash (to balance the short + 50% margin) as shown below: Begin$ Weight% Returns % Port Contrib % ABC 6675 2.883182515 -0.29963 -0.008638749 CBA -449680 -194.233635 70.31751 -136.5802588 Cash 67452...
Assume a portoflio $w \in \mathbb{R}^n$, you can get the total risk contribution $\psi_i$ of asset $i$ by doing: $$\psi_i = w_i \frac{\partial \sigma(w)}{\partial w_i}= \frac{1}{\sigma(w)} \left[ w_i^2 \sigma_i^2 + \sum_{j=1}^n w_i w_j \sigma_{i,j} \right]$$ So I can define a function $\Psi(x): \mathbb{R}^n \rightarrow...
Consider the following m regression equation system: $$r^i = X^i \beta^i + \epsilon^i \;\;\; \text{for} \;i=1,2,3,..,n$$ where $r^i$ is a $(T\times 1)$ vector of the T observations of the dependent variable, $X^i$ is a $(T\times k)$ matrix of independent variables, $\beta^i$ is a $(k\times1)$ vector of the regression ...
I am using Pareto distribution to fit a serie of survival rates (with least square). My ultimate goal is to use this fitting curve for prediction. Thus I would mainly focus on the tail of the fitting curve. In other words, I need to define the "tail" first, and in case my survival rate serie is a time serie, I'd call ...
In the paper "Economic Forces and the Stock Market" by Chen, Roll and Ross, unanticipated risk premium (URP) is tested as a potential risk factor for stock returns. This factor is commonly calculated as the difference between the return on a low-grade bond index and the return on a portfolio of long-term government bon...
PCA is sometimes used to estimate components in the rates term structure. Are there any other standard method discussed in the literature or used in practice, what are their advantages and disadvantages ?
I am trying to find whether there is significant volatility transmission between two price series (t=1000). A literature review learned me that the GARCH BEKK model is suitable for this. The SAS package can estimate it, see user guide However, I am getting strange results. Now I am in doubt about whether I am doing thi...
Say for example I have the following company in some specialized industry: A - Company that is about to be listed in Exchange 1, i.e., no price history B - Company that produce similar products as Company A, listed on Exchange 1 as well, however B has very thin volume and price could stay the same for weeks. C - Simil...
Is there a quant model that can help estimate how much slippage one would have to give up in order to get an "option spread" (vertical, butterflies, etc.) order executed? What factors should one look at in building such a model? For instance, some factors that would impact whether a "butterfly spread" would get execute...
I am trying to find out Historical Alphas of a bunch of fund returns ${F_i}$ by Using Regression Model$(stepwise)$ with regressors as its underlying exposure-returns(risk-free rate subtracted) i.e. $$ \mathrm{E_i = X_i-R_f} $$ $$ \mathrm{F_i} = {a_i + \beta_{1i}E_{1}+\beta_{2i}E_{2}...} $$ Here, I assume that this re...
How exactly would I go about investigating whether the S&P 500 stocks were currently over-valued compared with the price of the S&P 500 Index futures contract? Is it just a case of taking each S&P 500 stock price, ratio-ing it down using its S&P 500 constituent weighting and then summing them all up and comparing the n...
In QuantLib an object of class Schedule takes const Period &tenor as argument. I would like to know what that tenor is supposed to be. Let I would like to price a floating rate bond (that is, to use the Schedule object as argument for FloatingRateBond object) which pays quarterly EURIBOR every two months: from what I'v...
Sharpe's Return-Based Style Analysis is an interesting theory but flawed in practice when working with long-short funds or funds that are changing strategies over shorter periods of time due to the limits of linear regression. I have found a few papers looking into improvements to make the calculations more robust Mar...
I know the algorithm used by Excel to calculate the YEARFRAC(startDate, endDate, basis) for basis=1. Excel calls the method "act/act". A Java re-implentation of Excel's algorithm can be found at finmath.net together with a spreadsheet comparing several day count conventions. It appears as if Excel does not implement "A...
Due to the periodic fixing of floating rate bonds's coupon rates, in order to calculate the bond clean price one must tell the pricing engine to account for previous LIBOR rate fixing. If I am right (I'm a very QuantLib noob), here is an example of how it works: in the BONDS TO BE PRICED chapter you can see ... libor3m...
I've been trying to find a formula to obtain the maximum relative error a trinomial model with n timesteps will incur given all other inputs as compared to the standard BSM model. I'm concerned mostly about american options but I'm thinking early exercise of the american options will only lead to more accurate estimate...
I am trying to find out what is the purpose of "repeating groups" in FIX and what exactly do they represent? Are they all related to the same order and if so, why do you need repeated tags? If they aren't related to the first order wouldnt it be easier to send in a separate message? Is it just all orders at that exact ...
We know that, taken every discount curve, it's possible to calculate its forward rates according to our tenor preferences. We know also that it's actually possible to extract an implied term structure from every discount curve simply using the appropriate forward rates. This is indeed true for risk free discount curves...
I took some classes in portfolio theory, and learnt the Markowitz Mean-Variance Analysis. If only two risky assets, the efficient frontier would be a hyperbola passing through the two points; now if added another asset has some correlation with them two, the efficient frontier would be pushed to the left of these three...
It seems like there is a contradiction between the fact the option pricing is risk-neutral and the large amount of option trading that is done for speculation. Since the option is risk-neutral, a trader cannot expect to make a profit. He could use the option as a form of insurance, but in practice a lot of options are ...
I have a question that might be trivial to most of you, but somehow I'm not able to solve it by myself. I have a disagreement with my colleague on the distributional properties of a Geometric Brownian Motion: my point of view is, that if you estimate the parameters $\mu$ and $\sigma$ on log return (and assume that they...
I am unsure as to the exact arguments required for the Schedule function for an amortizing floater - my code is listed below. Specifically, my question pertains to whether the schedule should always start from the issue date of the bond or should it start from the settlement date if the bond is seasoned. I seem to have...
To clarify my heading, I have been searching for a material that consolidates all standard Fixed Income Security Pricing. E.g. Zero Coupon Bond - Pricing Models (Pure discount, with embedded options) - Example - Frequently usage Coupon Bond - Pricing Models(sold before/after coupon dates)) - Example - Frequent usage...
Just want to check whether i understand it correctly: Long Calls have positive delta Long Puts have negative Delta Long stock has 0.01 delta 100 Shares have 1 delta Therefore: Covered Call = 1 minus delta of Call option. Is this correct?
What is a proper (or commonly used/accepted) way of calculating some spot value with tick data? At the moment I can think of two options: Take the latest available best bid, latest available best ask and find mid. (Trade represents both best bid and ask at the same level) Take the latest available trade and consider i...
In a limit book like NASDAQ ITCH, can liquidity suppliers know the demand-side identity of a trader prior or after a trade? Knowing this will help me with my theoretical model that I am trying to develop since I am wondering whether a liquidity supplier that observes say a trade of 90 shares that takes away liquidity u...
The put-call symmetry states that C(S,t;X,r,q) = P(X,t;S,q,r), and that this works for American options. According to my notes, this is 'model dependent' because it depends on the assumption that the underlying price follows geometric brownian motion. However, I don't understand why this would matter: Considering that...
Assuming the returns distribution is normal, then there is a relation between Stutzer index and Sharpe ratio. However, I found in the following paper 2 different equation: Paper I (page 10-11)‎ where it is mentioned Stutzer index (Ip) is half of square of the Sharpe ratio. Paper II (page 8) where it is mentioned Stutz...
the idea is to simulate price returns thus to be normally distributed i 'am trying to use subordinated arithmetic brownian motion subordinated to time activity (volume) stock prices are following GBM then you can say $$ dS_t=μS_tdt+σS_tdW_t $$ where the time considered is not the calendar time but activity time (Ané &...
I am undergoing a focused study of market making theory. So far, I've encountered the following papers: Market Making and Mean Reversion Adapting to a Market Shock: Optimal Sequential Market-Making Rational Market Making with Probabilistic Knowledge Market Maker Inventories and Stock Prices High Frequency Trading and ...
Consider a non-liquid option market with a wide bid-ask spreads across all strikes. Spot: \$52 A snapshot of the \$50 strike shows: Bid - Ask Call: 2 - 4.5 Put: 0.5 - 3.5 Assume 0% interest. Is there a set of rules or a model that could minimize the range of possible IV's by entering the option's bid/ask ...
Let us start from the old times, where markets were less liquid. Suppose I hold some stocks of the company XYZ and I want to sell them. Why shall I expect that their price can rise in the next quarter given that company showed good in the current quarter and is likely to do well in the future? I could name at least thr...
As I understand it this model derived from data for US companies. Is it valid to apply the model as is to UK companies or does it require any modifications? Description of the model: http://www.stockopedia.co.uk/content/the-beneish-m-score-identifying-earnings-management-and-short-candidates-56823
We have built an algorithmic trading software and need to calculate the following parameters for each position in our portfolio. Average Price Cost Realized Profit & Loss Unrealized Profit & Loss These values can be calculated by going through all prior fills for that security. But in a trading system that potentiall...
I decided to recap my knowledge in interest rates, and decided to start with Chapter 4 on interest rates (in 8th edition) of the Hull's book "Options, Futures and Other derivatives". In 4.3 the concept of a zero-coupon rate is briefly introduced, and is further used to price a coupon-bearing bond in 4.4. Procedure is n...