instruction stringlengths 35 27.7k |
|---|
I watched every documentary on the financial crisis and CDOs, tried to understand Wikipedia etc.. but still not getting the full picture as examples seem to be limited (or complicated).
Say Local-Bank-A starts providing mortgages to US subprime, big marketing campaign and sweet offer 100% mortgage, offer start 1 Jun a... |
Ladies and Gents,
Im writing a quick routine to calculate implied vols for options on EUR$ futures with Bloomberg data. My question concerns the part where I have all my inputs and am ready to pass them to my implied vol function. Assume we have the following market quotes (example ticker: EDK1C 98.750 Comdty):
Strik... |
I'm reading Natenberg's book, and he says that all options trades should be delta neutral.
I understand that this prevents small changes in the underlying price from changing the price of the option, but couldn't there be a case where you would want that?
I (think I) also understand that if you're betting against just ... |
Say I'm given I set of monthly returns over 10 years on a monthly basis. What is the correct way to find the geometric returns of this data? I ask because a classmate and I are on different sides of the coin.
I found the cumulative returns of each year, then found the geometric mean of the 10 years. He found the cumula... |
I'd like to expand on the Data Sources Online question. I found this site for a German convertible bond, all free and not requiring a sign-up.
Börse Stuttgart
German Google
I am looking for similar information for a Norwegian bond.
|
Totally new to the world of quant finance, so perhaps this is an odd question...
Does there exist an American equivalent to the German style "knock out zertifkate"? (The name might be slightly wrong.)
Not even exactly sure what they are, but from what I did learn about their behavior, the nearest thing I could find o... |
In my quest for simulated data, I am trying to generate prices for Total Return Swaps by calculating the NPVs of the fixed and floating leg. My problem: Given the fixed leg, how do I set the spread on the floating leg so that the value of the swap at the beginning equals Zero?
On a more technical side: Using RQuantLib... |
Suppose I want to build a linear regression to see if returns of one stock can predict returns of another. For example, let's say I want to see if the VIX return on day X is predictive of the S&P return on day (X + 30). How would I go about this?
The naive way would be to form pairs (VIX return on day 1, S&P return on ... |
From Optimal Trading Strategies :
There are two main reasons why traders
execute orders using a VWAP trading
strategy. First, a VWAP strategy is
the trading strategy that minimizes
market impact cost. Traders executing
orders utilizing VWAP strategies are
interested in participating with
market volumes ... |
Reading from "www.nadex.com" - the copy reads "Binaries are similar to traditional options but with one key difference: their final settlement value will be 0 or 100. This means your maximum risk and reward are always known and capped.".
Isn't that true when you are using traditional options? (Assuming the markets are ... |
Is there a quantitative method in monitoring trades to reduce the possibility of correlated trades?
|
in their paper "European Real Options: An intuitive algorithm for the Black and Scholes Formula" Datar and Mathews provide a proof in the appendix on page 50, which is not really clear to me. It's meant to show the equivalence of their formula $E_{o}(max(s_{T}e^{-\mu T}-xe^{-rT},0))$ and Black and Scholes.
They refer t... |
Let the Black-Scholes formula be defined as the function $f(S, X, T, r, v)$.
I'm curious about functions that are computationally simpler than the Black-Scholes that yields results that approximate $f$ for a given set of inputs $S, X, T, r, v$.
I understand that "computationally simpler" is not well-defined. But I mean... |
I tried it in several symbols and timeframes with the same result:
$$\frac {mean(HIGH-LOW)}{mean(|CLOSE-OPEN|)}$$
Symbol Result
------ ------
EURUSD:W1 1.9725
EURUSD:D1 2.0023
EURUSD:H1 2.1766
USDJPY:W1 1.9949
USDJPY:D1 2.0622
USDJPY:H1 2.2327
SAN.MC:D1 2.0075
BBVA.MC:D1 2.... |
I have recently seen a paper about the Boeing approach that replaces the "normal" Stdev in the BS formula with the Stdev
\begin{equation}
\sigma'=\sqrt{\frac{ln(1+\frac{\sigma}{\mu})^{2}}{t}}
\end{equation}
$\sigma$ and $\mu$ being the "normal" Stdev and Mean, respectively. (Both in absolute values, resulting from a si... |
In the paper "Why We Have Never Used the Black-Scholes-Merton Option Pricing Formula" (Espen Gaarder Haug, Nassim Nicholas Taleb) a couple of model-free arbitrage conditions are mentioned which limits the degrees of freedom for an option trader.
The four conditions mentioned in the paper are:
Put-call parity (obviousl... |
Put-call parity is given by $C + Ke^{-r(T-t)} = P + S$.
The variables $C$, $P$ and $S$ are directly observable in the market place. $T-t$ follows by the contract specification.
The variable $r$ is the risk-free interest rate -- the theoretical rate of return of an investment with zero risk.
In theory that's all very si... |
Assume a stock Foo with a single share class.
Furthermore, assume a dual class stock Bar with classes I and II with different voting rights.
The shares in the different classes have equal cash flow rights.
The market for shares in class I are substantially more liquid than the market for shares in class II.
Why would a... |
I am looking at closed-form options approximations, in particular the Bjerksund-Stensland model.
I have run into a very basic question. How should I scale the input variables in regard to time? My assumptions would be:
r (riskless interest rate) should be an annual rate, so if the 3-month T-bill yields 0.03%, then I s... |
Recently I started working in an algotrading company as a programmer.
After I studied that subject a little in the university and read a book or two in that field I gained a little knowledge in that area.
But apparently very little.
I mean, when I studied it at the beginning from books I learnt about options and fu... |
We all know it does mean revert. The question is why. What's making volatility mean-revert? Is it some sort of cyclical behaviour of option traders? The way it's calculated? Why?
|
I have a one year transition matrix for three consecutive years. Multiplying these three matrices together yields the three year transition matrix. I want to obtain the average transition matrix for the three years (average^3 = 3yrtransition)
What is the procedure to be used? Is this possible at all? (I kind of realize... |
Assume a scalper/market maker who is operating on an exchange with $N$ stocks with different characteristics such as current market value, average bid-ask spread, average daily volume and historical volatility.
Due to constraints imposed on this market maker he can only engage in $n$ of the $N$ stocks on the exchange,... |
Trying to develop a new strategy, but I need to find reliable economic data on China. It's well known that the official figures there don't tell you everything (to put it nicely), so I was wondering if anyone knows of reliable sources on key macro data such as:
Credit
Raw materials production and demand (e.g. copper)
... |
I'm hoping someone could help me understand this subject better.
Basically I am reading a book and it shows a table
Coupon Rate | 10 yrs | 20 yrs | 30 yrs | 50 yrs
3% | 7.894 | 11.744 | 12.614 | 11.857
6% | 7.030 | 9.988 | 10.952 | 11.200
9% | 6.504... |
I'd like to calculate the local volatility surface for a series of option strikes, similar to the surface described in this paper:
http://www.ederman.com/new/docs/gs-local_volatility_surface.pdf
This is the image I am referring to in the aforementioned paper:
I know QuantLib has the ability to do this - but what is th... |
I'd like a library to calculate the options local volatility surface, i.e. the options implied volatility surface for a collection of strikes and their bid/ask prices.
Here are the libraries I've looked at:
QuantLib (Quote: "from memory, the function qlBlackVol will interpolate vols making sure that the surface is ar... |
I'm looking for an implementation of Arbitrage-Free Smoothing of the Implied Volatility Surface - Matthias R. Fengler.
Does anyone know of any existing libraries that have implemented this paper? Any method is ok (Excel, C++, Matlab, Mathematica, C#, etc).
In fact, any method that implements arbitrage free smoothing of... |
My current project requires large amounts of historical and real-time market data (1m or 5m bars for various products, mostly US futures for as far back as available). This data will be analyzed by software, so accessing the data through the internet for each price is not going to cut it, we need local data for speed.
... |
Are there any free/cheap sources for historical data on company earnings and valuations? I can get historical price data from Google and Yahoo, and it looks like I can get about five years of historical balance sheet data from Google using quantmod in R. Are there any longer-term sources of for these kind of data?
Bo... |
Trying to be concise:
I am interested in the most popular indices (SP500, FTSE100, DAX30, CAC40, SMI30, etc).
For each index I want to know its constituents in a monthly basis.
For each constituent (each month) I would like to know its price.
Since it's monthly data I believe it is easier to find but I haven't been v... |
Assume a class LimitOrderBook which represents a limit order book in a trading system.
To be able to represent the limit order book a data handler reads a feed which adds data to the representation of the limit order book using the following three methods:
public OrderReference add(Order order)
public boolean cancel(O... |
Lets say that I have an imaginary model that always gives me a 10% edge over straight 50/50 odds, one day in advance, for an index (i.e. 60% chance of winning / 40% chance of losing).
How would I calculate the ideal position size to maximize long term portfolio gain, given a chosen risk threshold?
|
Lets say I want to find out the area under the graph of normal distribution curve, between X1=standard deviation of -0.5 and X2 = standard deviation of 0.5. Is there a formula for this?
Case study: find the percentage chance of a stock remaining within +0.5 and -0.5 standard deviations within one trading day, given the... |
Does anyone know of a utility that can download historical Implied Volatility (IV) data from Interactive Brokers' Trader Workstation?
|
Consider a market maker that has decided to try to make a round-trip trade in stock A in order to capture the bid-ask spread.
Assume furthermore that he has no current inventory in the stock A. To further simplify things assume that he wants to trade only one share in stock A.
The market maker now has to choose in whic... |
VIX (spot) has very nice features, including mean reversion. We all know that we can't trade VIX (spot). The closest we can get is using front-month future contracts. The problem I have with that is that, in practice, VIX futures are not great at tracking VIX. Is there a way to replicate tradable VIX?
|
Say you have a trading system that works best when markets are most volatile. What would be the best way to hedge against lack of volatility ? For example, 2008, 2009 was highly volatile and it has been trending down since. What's the best way to hedge and if VIX is the best one ?
|
Do you have historical market/pricing ticket data that you would like to donate to the Open Source Trader project (OST)??
Please: upload your files! Once we gather some data, we'll do our best to help create an excellent web-service (RESTFul API) based repository of free market tick data. If we can afford the services... |
I need suggestions for some good books on the following topics:
Credit Value Adjustment (CVA) / Credit Risk
Probability of Default / Loss-Given-Default / Exposure-At-Default modeling
Any pointers on good research papers? I would prefer anything from after the 2008 crisis.
|
I am running a mean reversion strategy. I have question with regards to half-life; I have heard of OU process to determine the half-life but it's not giving me that kind of result.
Can anyone advise another way to identify half-life or else any other indicator that I can use to trade to support my Z score?
|
How do the two modelling frameworks compare? I spent some time developing PD LGD and EAD models for banking portfolios... But I never did insurance modelling project which I suspect is based on Solvency II?
|
I am looking for the S&P 500 index list of stocks for each day since January 1, 1960. Does anyone know where I can find these lists?
|
What are practically useful ways of modelling the effect of liquidity on options?
|
I want to try out the Vickrey auction for a project of mine, but I'm not sure that I understand it completely. The thing is that I have several consumers and several providers trading one resource type on the market. If I have just one provider and several consumers, the things are pretty straight forward. But what hap... |
What are the exceptions set by the CFTC which exempt Commodity Pool Operators (CPO) from registering as such?
|
I am experimenting with Monte Carlo methods. I'd like to measure/estimate convergence with a graph/chart.
How do I do that? Can anyone please direct me to relevant documentation/links or even give me tips or general guidelines?
Thanks in advance,
Julien.
|
I know what random variables are but I don't understand what a linear combination of gaussian random variables is. Can anyone please give me an explanation or clues?
Thanks in advance,
Julien.
|
Say I have two risk factors $X_1$ and $X_2$. Standard deviation for $X_1$ is $\sigma_1$ and $\sigma_2$ for $X_2$. Furthermore, $X_1$ has a mean of $\mu_1$ and $X_2$ has a mean of $\mu_2$. Correlation between $X_1$ and $X_2$ is $\rho$.
The system is as follows:
$$\begin{eqnarray}
X_1 & = & \mu_1 + \lambda_{11} U_1 \\
... |
What would be an ideal way to estimate the covariance of an index with a basket of stocks? For example, should I use one-tail ANOVA test or an individual stock & index F-test?
|
Can any one help me with some R code to run Ornstein-Uhlenbeck process?
|
I'm backtesting a trading strategy, using free OHLC data from yahoo or google. I'm simulating friction by lopping a flat percentage (say 0.5%) off my returns for each day that I make a trade. Whats a good way to simulate slippage? I tried 'torturing' my returns, by pretending that I always buy at the day's high and ... |
As in the subject, I'm interested in a math puzzle of sorts:
If stock A has a 60% chance of rising, and stocks A and B have an 80% correlation, what is the chance of stock B rising?
Would it be possible to extend this concept so that if we know the probabilities of stocks A,B,C,D rising, we can work out the probability... |
I have two stocks, A and B, that are correlated in some way.
If I know (hypothetically) that stock A has a 60% chance of rising tomorrow, and I know the joint probability between stocks A and B, how do I calculate the probability of stock B moving tomorrow?
For bonus upvotes - do you know of any standard libraries that... |
Back in the "old days" (ie 5-10 years ago) when we wanted to be long or short an emerging currency (say the ZAR, BRL, or TRY) we simply did everything against the pre-eminent currency of the day, the dollar. So for example to be long the Turkish Lira, we sold USDTRY. Short the rand, we bought USDZAR. Most of the return... |
Consider a market participant $A$ who is mechanically following an automated liquidity providing algorithm (HFT) in a number of large cap stocks on a specific exchange.
Assume furthermore that we are able to observe all orders placed by $A$ and that we know that the algorithm used by $A$ takes only public market data a... |
Suppose quantified duration (like Macaulay duration with changing intervals) $Dur = \frac{\sum t_{i} PV_{i}}{\sum PV_{i}}$ and two funds having durations $D_{a}$ and $D_{b}$. You own them in the proportion $w_{a}=0.4$ and $w_{b}=0.6$.
What is the duration of your portfolio?
Is it the following? $C_{newDur}=A_{fundDur}... |
I'm wondering what API methods there are to determine a company's market cap, i.e. (number of shares issued) * (price per share).
I know IQfeed and perhaps Yahoo will do this - does anyone know of any other API's that will do the job?
|
Since I began thinking about portfolio optimization and option pricing, I've struggled to get an intuition for the risk premium, i.e. that investors are only willing to buy risky instruments when they are compensated by an add-on above $r$ (the risk free interest rate).
On the one hand this is understandable and backed... |
what would you suggest are the starting points for comparing, in an easy, visual way, implied and delivered volatility surfaces? I'd like to see what the differences are between the historic surfaces, and the implied surfaces.
Implieds are easy enough, for example USDBRL:
But how would you go about taking a set of th... |
If we know the options Implied Volatility (IV) skew for an equity, is it possible to calculate the probability of the equity moving, given a move in the IV?
We can define IV skew as the difference between IV at delta 0.25 compared to IV at delta 0.75.
|
I read in a book that the distance to default of a company is "2.978".
Can anyone please tell me what is the unit implied behind this measure? Are they "years" for instance?
|
How do I specify the GARCH/TARCH equation in Eviews 6 in the variance regressors frame, if I want to find out whether there are volatilty spillovers from stock markets A and B to stock market C?
P.S. I know I have to set threshold order to 1 ;)
|
I'm trying to come up with the implied volatility skew adjusted delta for SPY options. I'm working with the following formula:
Skew Adjusted Delta = Black Scholes Delta + Vega * Vol Skew Slope.
I fitted a cubic polynomial to the volatility data, but I am not sure at which points to measure the slope.
|
I'm interested in investing some money in the stock market, and I have the math background that will make following the math used in quantitative finance possible (with some work). What are the resources necessary to apply quantitative finance methods (algorithmic analysis and portfolio management) toward making money... |
I am currently working on my research paper and trying to explain a two-dimensional variable: volume and instrument of corporate debt financing.
Independent variables that I believe must be included in the model are:
specific characteristics (capitalization of the company, debt to equity ratio, maybe rating)
market co... |
I understand that by applying Ito's lemma to the following SDE
$$dX=\mu\,X\,dt+\sigma\,X\,dW$$
one obtains a solution to the above SDE which is as follows:
$${X}\left( t\right) =\mathrm{X}\left( 0\right) \,{e}^{\sigma\,\mathrm{W}\left( t\right) +\left( \mu-\frac{{\sigma}^{2}}{2}\right) \,t}$$
I have been told that I ca... |
There is much in the literature about time-series and the problem of auto-correlation. Unfortunately the issue of why auto-correlation is actually troublesome is glossed over, and methods for testing a time-series for auto-correlation are presented. Basically, it is assumed that auto-correlation is bad for purposes of ... |
Other than Kelly (or fractional derivatives), are there other money management strategies in wide use among quant funds? Certainly Kelly is mathematically optimal, but perhaps there are other approaches that take into account factors beyond optimized return (lower risk, less exposure to X, etc.)?
|
I have implemented a monte carlo pricer for an option. I simply don't know how many decimals I need to include in the quoted price. Can anyone please provide guidelines?
|
I have implemented a monte carlo simulation for a plain vanilla European Option and I am trying to compare it to the analytical result obtained from the BS formula.
Assuming my monte carlo pricer is correctly implemented, am I supposed to get the very same result with both methods (Monte Carlo and BS analytical formula... |
I am trying to implement a vanilla European option pricer with Monte Carlo and compare its result to the BS analytical formula's result.
I noticed that as I increase (from 1 million to 10 millions) the number of simulations, the MC result starts to diverge.
Note that I deliberately only use only one variance reduction ... |
I would like to know how stressful this work can be and where the stress could come from. How to avoid it? Does it really depend on the company you are working? Is there a way to know in advance if work in a particular company is stressful or not?
|
A simple interest rate model in discrete time is the autoregressive model,
$$
I_{n+1} = \alpha I_n+w_n
$$
where $\alpha\in [0,1)$ and $w_n\geq 0$ are i.i.d. random variables. When working with ruin probabilities in a model which incorporates this interest rate model, I've faced that $I$ can reach any positive value w... |
Further to my question asked here: prior post
and which left some points unanswered, I have reformulated the question as follows:
What is Ito's lemma used for in quantitative finance? and when is it applicable?
I don't understand for instance if Ito's lemma is used for obtaining a SDE from a stochastic process or the c... |
I am learning about quantitative finance, and I am struck by how different it is from the techniques that make it into magazines and TV, particularly technical analysis. Specifically, if they say an indicator (RSI, TRIX, etc.) can predict even short term future prices, then you should be able to run some analysis to s... |
If a large sell order hits many bids from the book, is the order filled at once? Or is it filled one bid at a time with a chance for any new orders to come in between each trade?
|
Pseudorandom number generators are often tested using e.g. a test suite like Diehard tests or Dieharder. If one would run these tests e.g. on stock market time series or other financial data, would you expect your financial data to qualify as being a good random number generator or would it fail in many of these tests?... |
While liquidity is one of the key figure of financial markets, It seems to be very difficult to measure. Volume is sometime used as a proxy but can sometimes be completly irrelevant.
Could you point to relevant research on what data to use and how to compute the measure?
|
When the risk is defined by a discrete random variable, is CVaR a coherent risk measure? I stick to the following definition of CVaR:
$$ CVaR_\alpha(R) = \min_v \quad \left\{ v + \frac{1}{1-\alpha} \mathbb{E}[R-v]^+ \right \}$$
where $R$ is the DISCRETE random variable for the loss and $\alpha$ is the confidence level.... |
The bid-ask bounce is the bouncing of trade prices between the bid and ask sides of the market. It introduces a systematic bias to the data which can cause serious problems in analysis.
What methods can be used to control for the bid/ask bounce when using high-frequency data? One approach is to use the bid/ask midpoi... |
Suppose I have a random walk $X_{n+1} = X_n+A_n$ where $A_n$ is an iid sequence, $\mathsf EA_n = A>0$. How to construct a martingale measure for this case?
|
I have found many financial authors making generalizations about the geometric mean (GM) and arithmetic mean (AM) but they are wrong in certain circumstances. Could someone explain their reasoning?
My fact why they are wrong is based Jensen inequality:
$\sum^{n}_{i=1} p_{i} f(x_{i}) \geq f( \sum_{i=1}^{n} p_{i} x_{i})$... |
Let's say I have two call option liabilities that I want to statically hedge with a single call option.
Liabilities:
Liab_Call_1:
Strike: 100
Notional: 1000
DaysToExpiration: 20
Liab_Call_2:
Strike: 100
Notional: 1000
DaysToExpiration: 30
Assets:
Asset_Call_1:
Strike: 100
Notional: 2000
DaysToExpiration: 25
... |
Let's say you have a dependent variable and many independent variables. What are the preferred metrics for sorting and selecting variables based on explanatory power? Let's say you are not concerned with correlation among your inputs.
My thoughts are below. Let me know if I'm missing anything obvious, or if there is a... |
It is a not so well known fact that the Kelly criterion is only optimal in a nice and well-behaved Merton-world. It is far from optimal when things are getting non-(log)normal (i.e. more realistic!).
My question
My question is simply: Why is this so? What are the reasons and is there some intuition for this fact.
|
I need to implement a reverse stress testing model (definition here)
I have searched around and cannot find anything substantial on the topic. Does anyone know of any good papers/references regarding actual implementation? Please don't post links to Basel docs.
|
I have 10 years of backtested simulated performance of some trading strategy (using historical prices), and N months of actual trading performance. What statistical test can I do find out if I'm on target with the backtesting numbers? (both, in terms of expected annual returns and expected annual Sharpe ratio)
|
I'm working on implementing a 'LOB' and I'm being very careful about choosing my data-structures so as to maximize performance.
Using F# as an example, I need to consider a List versus Array for holding 'Bids' and 'Asks'.
Because these lists are constantly being updated very rapidly, and the orders that need to be remo... |
I am missing tools to investigate this issue. I am trying to solve this question here. What kind of issues should you acknowledge over the naive diversification/rebalancing with normal distribution? You could have a different return distribution curve so does the distribution affect the benefits? If you know how to inv... |
Can you please recommend good reads on statistical analysis related to online fraud detection and prevention of account abuse?
|
Can someone suggest a topic or some reasonably narrow area in financial time series analysis (e.g. statistical, machine learning, etc.) which can make a good topic for a master thesis? By 'good' I mean that it's perspective i.e. can be extended to PhD-level studies, but still manageable in 3-4 month time for an applied... |
I am looking for all kinds of research concerning option trading strategies. With that I mean papers that publish results on different option trading strategies properly backtested with real-world data.
|
I am wondering if anyone has used NoSQL (mongodb, cassandra, etc.) to store and analyze data.
I tried searching the web but was not able to see if the financial firms had gotten in to using nosql storage.
So far even on this site i have only seen talks of using SQL DBs. I would imagine that NoSQL would be much faste... |
I am testing my model and I am interested in options prices on EUR|USD for Jan, 2011.
The history can be even daily - but I have never had a deal with fx options, so I don't know where start to look for such history.
Could you advise me?
|
I am at the moment writing a program focusing on asset allocation and I am thinking about how I should represent my constraints in the data model.
The first approach that came to mind was to define some categories to classify the constraints so that they could be stored in a table according to their "category" (for exa... |
I've recently started reading some books on asset allocation and portfolio theory but I don't work in the field and don't have much knowledge yet.
So I've been reading up on mean-variance analysis and my question is regarding the computation of the expected returns for a particular asset. From what I understand histori... |
Inputs are most important to any decision making.
For strategy backtesting, the OHLC data is one of the most inputs.
So to ensure the correctness and integrity of OHLC data, we have checks on the following OHLC issues:
Outlier Price
Negative Price
Corrupted Price (High < Low, etc)
Missing minute ticks in 1-min timefra... |
I've just downloaded quantlib and started playing around with it, and it looks like it's designed primarily to use Euler discretizations for everything -- so far as I can tell, there's not even a method provided to exactly simulate geometric Brownian motion. Am I missing an obvious feature? If not, is there a fundame... |
Where can I find the standard discount curves for the standard CDS model?
In particular I'm keen to see if ZAR is a supported currency yet...
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.