instruction stringlengths 35 27.7k |
|---|
This is a follow-up to my previous question regarding anyone whom wanted to 'donate' data.
So far no one has stepped up (learning more about buying and selling data, I realize that I'm going to have to buy the data if I want to re-sell it, or give it away for that matter - re: licensing agreements?)
So I'm trying to de... |
What do you think of strategies displayed on timelyportfolio.blogspot.com?
I really like the fact that there is some code to reproduce the strategies, but they seem very elementary because he does not control for risk factors.
By that I mean that you can have a super complex strategy with lots of bells and whistles, bu... |
I need to model the market value of CDS in a portfolio. My current approach is to calculate the present value of the future spread payments - does anybody have a better idea to solve the problem?
Edit:
I calculated the spread in the following way (as in Hull-White):
$PV_{surv} = \sum_{i=1}^T {(1−p_d )^i \cdot e^{-y\cd... |
I am preparing a QuantFinance lecture and I am looking for the easiest and most accessible derivation of the Black-Scholes formula (NB: the actual formula, not the differential equation).
My favorite at the moment is
Intuitive Proof of Black-Scholes Formula Based on Arbitrage and Properties of Lognormal Distribution by... |
Two popular ways to measure returns are Arithmetic returns and Log returns. Let's define arithmetic (simple period) returns as: P(t) - P(t-1) / P(t-1). Let's define log return as Ln( P(t)/P(t-1) ) or equivalently Ln(1 + arithmetic return).
The log returns have nice properties -- logarithmic returns prevents security pr... |
Can someone please explain to me how we are in debt with China? Every weblog, article, journal I read have people in the comments going insane about how we "owe China monies" and "China owns the US" or how the world is being taken over by China!!
From my understanding we sell bonds to the open market (like most countri... |
I am looking for papers that would describe asset allocation with geometry, group theory, markov chains or things like that. Keeping asset allocation in a range is easy but to keep it more precisely is harder. I find it often hard to judge things such as evaluation of trading costs and cause-effect -relationship (parti... |
I want to use the following stochastic model
$$\frac{\mathrm{d}S_{t}}{ S_{t}} = k(\theta - \ln S_{t}) \mathrm{d}t + \sigma\mathrm{d}W_{t}\quad (1)$$
using the change in variable $Z_t=ln(S_t)$
we obtain the following SDE
$$\mathrm{d}Z_{t} = k(\theta - \frac{\sigma^2}{2k} - Z_{t}) \mathrm{d}t + \sigma\mathrm{d}W_{t}\quad... |
I'm looking to find a service that will allow me to download historical data on stocks, bonds, options, futures, indices, etc and also to pick up new files either on a daily or weekly basis. I've been a software engineer for a couple of years now but I'm new the world of quantitative finance. I've purchased a few books... |
I've got a quanitative trading model I want to test out in the real stock market. Right now, I'm writing some code to pull "live" quotes from yahoo, feed them to my model, and keep track of the trades my model makes. However, I feel like I'm re-investing the wheel. Sites like Investopedia have free stock trading "sim... |
Call Option S=100 K=100 Payoff=1 (option is not available) How can i replicate this (payoff) with calls and puts with strike prices with multiples of 5$
Thanks for help
|
Arbitrage pricing theory states that expected returns for a security are linear combination of exposures to risk factors and the returns on these risk factors. Betas, or the exposures of the security to a given risk factor, can be estimated via a time-series regression of the excess returns of the security on the exces... |
I saw an article in which the writer had mentioned that he used chaos theory to predict stock prices and ended up with a profit over 30%. Chaos theory is basically about finding patterns called fractals in the data. It is used in various fields such as weather prediction and stock price determination.
How we can for... |
Let's say I have the following two positions:
Buy ATM SPX call, expires in 1 month
Sell ATM SPX put, expires in 1 month
This creates a synthetic futures position. How do I calculate how many futures are required to replicate (or hedge) my options position?
|
I'm struggling to understand why the risk on an equity CFD is not the same as for the corresponding equity. The RiskMetrics FAQ mentions two ways to model a CFD, but it does not explain why this is necessary. A good explanation would be appreciated.
|
I am interested in coding a medium frequency (trading over minutes to hours, holding for days to weeks) quantitative trading strategy and trading it with Interactive Brokers.
I have seen many people here mention that they use Matlab (or R, SAS, etc.) for strategy development/backtesting, but that they would prefer to p... |
Suppose you are running a portfolio of quantitative strategies and that you develop a new potential strategy to be added to the mix. Assume for simplicity that the new strategy is independent of the existing strategy. The new strategy relies on data which is available going back X years. You proceed by backtesting a... |
There are many models available for calculating the implied volatility of an American option. The most popular method, employed by OptionMetrics and others, is probably the Cox-Ross-Rubinstein model. However, since this method is numerical, it yields a computationally intensive algorithm which may not be feasible (at... |
Why would an investor trade a variance swap over a volatility swap? Is it simply related to the leverage involved in a Var (i.e. sigma-squared) or is there something else to it?
|
According to my current understanding, there is a clear difference between data mining and mathematical modeling.
Data mining methods treat systems (e.g., financial markets) as a "black box". The focus is on the observed variables (e.g., stock prices). The methods do not try to explain the observed phenomena by proposi... |
The optimal re-balancing strategy takes account of factors including i) objective function, ii) current portfolio weights, iii) expected return vector containing updated views/alpha forecasts, iv) uncertainty in the alpha forecasts, v) transaction costs, vi) risk aversion, and vii) constraints (long-only, turnover, etc... |
The basic principles of convertible bond arbitrage have been clear at least since Thorp and Kassouf (1967). For those who are not familiar, the arbitrage entails purchasing a convertible bond and selling short the underlying stock, creating a delta neutral hedge long volatility position. Arbitrageurs profit from dyna... |
I would like to learn more about the possible ways of doing quantitative research regarding option market making. In particular, while the mainstream index option market may be very liquid, the single stock option market is highly illiquid. I would like to research market making in single stock options while making u... |
What are the advantages of buying basket equity swaps derivative compared to single equity swap? Will correlation play a role in basket equity swap?
Thanks in advance
|
I'd like to use the PerformanceAnalytics R package to view various metrics from a list of trades with profit values. From looking at the documentation from the PerformanceAnalytics package that most functions are set up to use a time series of prices rather than an array of profit values (which of course can be negati... |
What are the standard models used to forecast asset price movements? For example, if I were to trade an option, what model would I use in conjunction with option pricing models to forecast the stock price? Should I use GARCH or one of its variants?
|
Since no one was able to answer my previous question, I am going to try to backtest a modern convertible bond arbitrage strategy myself (perhaps I'll report the results back here, if you're lucky :)). What suite of R packages should I use? Where can I get the data (free or cheap, preferably)?
Updated to add:
The main... |
Suppose funds X and Y are the same but X has 0.25% higher management cost. Suppose we are analyzing a 2 year interval. The simple models with discrete/continuous interval -assumptions are not really right below. I will get more specific in the end.
discrete intervals 0.9975**2
continuous intervals $e^{0.0025*2}$
$\su... |
I currently use the following process for bootstrapping a multivariate time series in R:
Determine block sizes - run the function b.star in the np package which produces a block size for each series
Select maximum block size
Run tsboot on any series using the selected block size
Use index from bootstrap output to reco... |
I'm trying to make up my mind and choose a broker, however much of my choice depends on the trading API offered.
I'm definitely not interested in FIX solutions and I'd very much like a .NET implementation of the client interface.
So far I've looked at MBTrading (poorly implemented, not compatible with modern software s... |
Given this equation, according to the article at this location , which provides the following equation as an argument, the author claims that he predicts "deflation" in the last paragraph of the article.
From what I see, given that his article predicts a fairly constant interest rate, and the fact that we know T-G wil... |
I need to calculate the skewness of a portfolio consisting of 6 assets. I know that for that I would need the co-skewness matrix between the assets. Does anybody know the formula for co-skewness or any simple software to calculate a co-skewness matrix?
Any useful information would be highly appreciated.
|
I am working with a set of covariance matrices evaluated at various points in time over some history. Each covariance matrix is $N\times N$ for $N$ financial time-series over $T$ periods. I would like to explore some of the properties of this matrix's evolution over time, particularly whether correlation as a whole i... |
Can anyone point me to some Hedge Fund index data - daily levels of the HFRX or something similar, that is available for free and has history back to 2007? The data available through my broker seems to only go back to beginning of 2010.
|
I was reading Derman's latest blog post on Vanna Volga pricing, which, according to the linked Wikipedia article, is used mostly for pricing exotic options on foreign exchange (FX). This Willmott thread claims most demand for exotics is by asset-liability, pensions, and insurance firms. But this does not explain why ... |
How does diversification actually lead to less variance in a portfolio? I'm looking for a formal reason why this is the case. There are a number of explanations I have been able to find, but they make the assumption that stocks are wiener processes - that is they assume that the daily changes in a stock's price are nor... |
Let's say we have a predictive distribution of expected returns for N assets. The distribution is not normal. We can interpret the dispersion in the distribution as reflection of our uncertainty (or estimation risk) in the expected returns.
Question - What is the set of optimal portfolio weights that is mean-variance ... |
We already have a list of brokerages that provide apis. What about brokerages that provide web apis?
For example, Collective2 has a url-based web api for entering trades. Are there any brokerages that provide a similar interface for getting data or entering orders?
|
My team will soon be implementing an auto hedger for our bond trading desk which will be integrated tightly with our risk application and I am interested in researching how this may work.
Any advice or information or general thoughts would be appreciated, especially on algorithms used to suggest hedges with bond future... |
As a developer and statistician, I consider value investing to be a statistically sound investment strategy. I've read a few books on the area but I am still not clear on valuation measures. So I would like to hear from experts in quantitative finance about the approach and its methods. For example, I would like know t... |
Does anyone know what time the Bloomberg Open Symbology precanned files are updated every day? I am planning on upating my view of them at 9 AM EST every morning. Furthermore, will the files for equities have any IPOs from the day listed?
|
From a modeling point of view, here are my primary assumptions for Monday:
a) I would expect the US$ to depreciate and crude oil to rise in the long term.
b) Expect crude oil to dip in the short run but rise in the long run
c) Would also expect correlation with Gold to dip in the short run and rise in the long run
How ... |
It is well documented that following the stock market crash in 1987 the prices of options started to demonstrate skew and smile in the distribution of implied volatilities. This feature has been present in equity markets ever since. Could a future event change the shape of the implied volatility distribution again?
|
It is often convenient to parametrize the implied volatility curve to allow easy interpolation of volatility for any strike or maturity. What functional form describes the implied volatility curve for options at varying strikes and fixed maturity?
|
A forward contract has a premium of $ 0$ because it is an obligation to buy or sell something in the future (hence there is more risk). Call and put options, on the other hand, have premiums of $C$ and $P$ respectively where $C,P>0$ because one has the option to exercise it in the future (hence there is less risk). We ... |
I am doing research estimating the value at risk for non-normally distributed assets. I need help in the process of estimating the parameters of Student's t distribution and which method to use. I would highly appreciate any assistance in this issue.
|
In reference to this paper:
Can risk aversion indicators anticipate financial crises?
and the investable UBS Risk Adjusted Dynamic Alpha Strategy:
http://www.ibb.ubs.com/mc/strategyindices/ubsrada/downloads/rada_factsheet.pdf
(see here for their UBS Dynamic Equity Risk Indicator and here for a real track record of this... |
John Hussman has a recession forecasting methodology he often posts about on his blog, and I am trying to replicate it using publicly available data. I would like to assess his accuracy in predicting recessions, and try my own hand at the same problem. Here is Dr. Hussman's criteria for a recession 'warning:'
1: Wide... |
The general problem I have is visualization of the implied distribution of returns of a currency pair.
I usually use QQplots for historical returns, so for example versus the normal distribution:
Now I would like to see the same QQplot, but for implied returns given a set of implied BS volatilities, for example here ... |
In teaching myself about bonds, I am writing some software, one piece of which will calculate the maturity of a bond given the yield curve as a function and a requested duration. The tricky part is that duration depends on interest rates, and the interest rate depends (through the yield curve) on maturity, which depen... |
I am building a global tactical equity allocation model. The model will help determine an optimal allocation amongst a number of major developed and emerging stock markets (represented for my purposes by the MSCI country indices). The model will use inputs such as macroeconomic indicators, local currency yield curves a... |
What are the best sources of quantitative finance research in equities?
I will list a couple and note an asterisk if the research is available by request (i.e. non-clients) or online:
BAC-Merrill Lynch - Savita Subramanian
Deutsche Bank - Yin Luo*
Credit Suisse - Pankaj Patel
Barclay's - Matthew Rothman
HSBC - Ely Kle... |
Someone told me that mean reversion can be implied by the different valuations of bermudan swaptions when using different methods for volatility calibration. Does anyone know what this means?
|
I m recently doing my dissertation and faced with problem in estimation basic rolling GARCh (1,1) process. I have 2500 observation and need to forecast 1 day ahead volatility in rolling form. I will highly appreciate if advanced users provide me assistance in that issue.. I looked guideline but there was no information... |
The old 3-Month Commercial Paper Rate (CP3M) on FRED was discontinued in 1997. I would like to reconstruct this series in a reasonable fashion, so I can use it to analyze more recent events.
I was thinking of using some combination of 3-Month AA Financial Commercial Paper Rate (CPF3M) and 3-Month AA Nonfinancial Commer... |
I'm just trying to determine the appropriate naming convention for a category that holds cap or spread, or in other words, what category can I put cap and spread (in this context) into? Are they "Features" of a monthly sum option, or "Limits" ... I really don't know.
|
I have a very basic data question: how to get a list of all common stocks traded on NYSE, NASDAQ and AMEX? I would need to be able to get the approximate list of common stocks as is available in Telechart... I can not get this data at eoddata, for example...
I would like to calculate market breadth indicators and would... |
I am currently working in a team responsible for maintaining a simple risk application for our bond desk and I am interested in knowing how to provide some sort of basic basis risk metric.
Our desk mainly trades vanilla bonds which are hedged with bond futures. While I will not be implementing this, I am keen to know a... |
Due to the ongoing turmoil in the financial markets a short-selling ban is being considered (again, one has to say, but this time in Europe): http://www.nytimes.com/2011/08/12/business/global/europe-considers-ban-on-short-selling.html
Aside from the point that this seems to serve purely political reasons (since it is ... |
I want a list of all CUSIPs/ISINs. It would be nice if they were also categorized (e.g. Bonds/Funds etc). Where can I get such a data?
|
Various studies have demonstrated the very large and growing influence of high frequency trading (HFT) on the markets. HFT firms are clearly making a great deal of money from somewhere, and it stands to reason that they are making this money at the expense of every other participant in the market. Defenders of HFT wi... |
When researching any sort of predictive model, whether using ordinary linear regression or more sophisticated methods such as neural networks or classification and regression trees, there seems to always be a temptation to add in more explanatory variables/factors. The in-sample performance of the model always improve... |
We know that $$C-P = PV(F_{0,T}-K)$$
When we create a synthetic forward, we buy call and sell a put at the same strike price $K$. When we buy the call why do we assume the premium is positive? When we sell the put, why do we assume the premium is negative?
|
There seems to be increasing interest in risk controlled products such as volatility target indices and derivatives products on these underlyings. From a risk management perspective what are the advantages of these products?
|
I am a PhD student in stochastic analysis/control and had a MSc degree in Financial Mathematics.
I am interested in determining there is a quantitative finance ranking system for universities like this. It's easy to find such a ranking for the Math Universities, though it doesn't hold for the quantitative/financial ma... |
I want to generate synthetic forex data for the purpose of backtesting my trading algorithms. I have some rough ideas in mind on how to do this:
Start with a curve representing a trend, then randomly generate points around the curve according to a Gaussian or some other distribution. Then take the generated points and ... |
In reading about the various practices and strategies of high frequency traders, one of the most mysterious to me is "fleeting orders," or orders that are cancelled almost immediately after they are sent (see Hasbrouck and Saar (2011)). Why do HFTs use these orders? Some of those trying to explain the practice claim it... |
I tried a search with google but I can't find a clear definition of what a Heat Rate Option is.
I would appreciate if someone could explain to me what this type of option is.
My understanding is that it has to do with energy options but I am not sure on the underlying.
|
Jason Perl's book DeMark Indicators details rules for calculating signals developed by Thomas DeMark. These rules are not complex in themselves, but there is no dirth of ifelse structure to incrementing a signal's progression.
An example of a rule from Perl's book:
"A Bearish TD Price Flip occurs when the market recor... |
Competing academic studies, such as Asness's Fight the Fed Model and Lee, Myers, and Swaminathan's What is the Intrinsic Value of the Dow, offer differing answers to the question of whether equity valuation measures (such as P/E in the case of Asness, DDM in the case of Lee et. al.) can be used to predict the direction... |
You need quantmod & tseries in R to run this:
library(quantmod)
library(tseries)
pairs <- c(
"EUR/USD",
"GBP/USD",
"AUD/USD",
"USD/CAD",
"USD/CHF",
"NZD/USD"
)
name <- function(n) {
gsub("/","",n,fixed=TRUE)
}
getFrame <- function(p) {
result <- NULL
as.data.frame(lapply(p, fu... |
I have a trading system that chooses top 10 stocks in Nasdaq 100 ranked on relative strength and some other factors. However, I'd like to take positions in only 5 of these 10 stocks based on how minimally correlated these are to others for diversification effect. How do I resolve this? I do have the correlation/covar... |
There is much speculation to what degree financial series are random (and what kind of randomness prevails).
I want to turn the question on its head and ask:
Is there a mathematical proof that whatever trading strategy you use you cannot beat a random walk (that is the expected value will always be 0 assuming no drift)... |
It is well known that vanilla fixed for floating swaps usually have a bit of gamma, but does a floating for floating (basis) swap have any? For the sake of simplicity, let's assume that both legs of the swaps are in the same currency.
|
I'm just starting to work with QuantLib and wonder if I'm going down a very wrong path.
I'm working on a site that presents the visitor with a table of streamed real-time options data, including Theoretical Value calculated by the stream provider. The visitor, as I envision it, is a normal-type casual retail customer.
... |
I am looking for references on the architecture of automated trading systems and the trading algorithms behind them. I am more interested in system development than analysis. A couple of books I found are Building Automated Trading Systems by van Vliet and Quantitative Trading by Chan. Any other tips or references on... |
I am a postgrad student doing a master in Signal Processing and I have graduated from an engineering school
I was wondering if there are any jobs in finance that are opened to people having this kind of background? I don't know much about finance but I've seen the words "algorithmic trading" or "HF trading" thrown arou... |
A friend of mine who studies game theory suggested that credit ratings from the bond ratings agencies, such as Moody's, S&P, and Fitch, may suffer from a sort of "ratings inflation" similar to the grade inflation seen in many colleges. What are the forces driving grade inflation and how would those same forces apply t... |
Possible Duplicate:
Where to download list of all common stocks traded on NYSE, NASDAQ and AMEX?
Is it possible to download a list of stocks that belong to a specific exchange (e.g. NASDAQ, AMEX, NYSE)? The tseries package has a function to download the price history of a stock, but how to get all the stocks of an ... |
Can the CAPM beta of emerging markets be less than the beta of the developed markets?
As part of my research, I run regressions using market indices. I estimate the beta using a regression of MSCI country/region excess returns on the excess returns of the MSCI ACWI. Excess returns are returns minus the risk-free rate... |
I am trading with standard deviation bands (6 bands) on de-trended data. How can I find the most profitable signals with neural network or GA with standard deviation bands? Should I first find the slope degree of n bars of trend line (for example, 50 bars linear trend line slope is 30 degree) then calculate bands dis... |
What kind of computer hardware, in additional to the 'conventional' fare, is actually used in trading? And what languages is it typically programmed in? I'm interested in ASICs, FPGAs, that sort of thing.
|
Suppose we train on M individuals consisting of T observations (i.e. TxM design matrix). The dependent variable is one-year return for each security (H = horizon of one year). In a factor model specification, we align security characteristics and economic factor exposures observed at time T with the dependent variable ... |
Is there any relationship between the risk aversion coefficient in an individual's utility function (commonly used in portfolio optimization) and the preference for higher moments such as skewness and kurtosis? In what range, approximately, should they be? Logically, a relationship should exist, as they all somehow r... |
I had to ask this question after reading the answers to What programming languages are most commonly used in quantitative finance? I understand that C++ programs can be optimized pretty well and are faster than anything else. But in this era, the performance of a program written in a language based on frameworks such a... |
How can I compute the predicted return from a linear regression that includes a number of different terms. For instance, suppose my equation is:
$r_{future} = \alpha + \beta_1 r_{history} + \beta_2 x_{news} + \beta_3 r_{history} * x_{news} $
Where $r$ is the geometric return, and $x$ is a news dummy variable (0 or 1 d... |
I'm having a problem in which a time series of 24 data points is given to forecast the next 12 data points. This 24 data points might be sparse (many are missing).
Do you have any suggestion on what technique can be used?
Thanks,
ADDED: The series is a transformed data from tabulated dataset which shows a measure of on... |
Many mutual funds sell "asset allocation" products which include appropriately sized investments in a variety of asset classes meant for a prototypical investor. Some of these, such as PIMCO, even include direct commodity investments in the portfolio. Pension funds often base their investments on a model portfolio, w... |
I want to include the QuantLib function for option greeks calculations in my own C++ code.
My question is: can I just include those functions? I don't want to use the rest of their stuff.
I obviously cannot just write:
QuantLib::europeanOption.delta()
I have included the header:
#include <ql/quantlib.hpp>
using names... |
Is there any research on applying state-space or dynamic linear models to forecasting equity risk premia on a security-by-security basis with a medium term horizon (say 3 month to 12 months horizon)?
Markov Models are a special case of state-space models where the states are discrete. There's an avalanche of research o... |
Can one use options on Treasury bond futures to hedge a typical fixed income portfolio? If so, how can one estimate the duration for an option on a Treasury futures contract, and taking this a step further, how would one then use the duration to determine the option's contribution to the overall portfolio duration?
|
High Frequency Trading (HFT) seems to be the big money making mystery machine these days. The purported source of unlimited floods of gelt pouring into the investment shops using it.
For me, HFT is first of all nothing else but trading on a different (i.e. ultra short) time scale. You can make a fast buck, but you can ... |
A question from one of my members.
Anyone have experience hedging a long municipal bond portfolio using BMA / SIFMA swaps? Anything you can share regarding sizing and structuring the swap and monitoring / adjusting it over time? How effective has this swap been in different market scenarios?
|
I am working on calibrating a Heston model from simulated historical stock data.
After obtaining an accurate estimate of the model parameters I found very large 95% confidence intervals for these estimations if the sample size is about 10-15 years.
In view of the graph below, how would you choose the ideal sample siz... |
I have a portfolio allocation strategy I want to backtest, but I need a large "universe" of ETFs for it to choose from at each time period. I was thinking of starting with a criteria such as "all ETFs available in 2000" or something like that to ensure sufficient data for a backtest.
Any suggestions as to where I can ... |
I recently heard the term Sugihara Trading System. I guess it might be some trading strategy or a special model to predict trends in market data, but I couldn't find out anything about it. Does anyone know what's behind this term?
|
When market makers price options on hard-to-borrow equities, they include the cost to borrow the underlying equity that their broker is going to charge them to sell the security short to hedge. I'm trying to back-out this cost. I'm guessing it is similar to implied volatility but I'm solving for the interest rate. Can ... |
In all the classic texts on equities derivatives, there is an assumption of the risk-free rate r. We can immediately dismiss the concept of a fixed rate; all interest rates are variable (and martingale?) in reality.
But also, as is more apparent in the current crisis, currency has a cost of carry, and no counterparty i... |
For a long time, the dominant tenors for money market and FX instruments were 6 months and 3 months, and banks slowly moved to commercial trades at those tenors but funding overnight. If this is a step in the direction of increasingly short-term funding as trade frequencies and volumes increase, could banks move to con... |
I have a portfolio selection algorithm I want to backtest, but I don't want to limit the inputs at any point in time. For example, I don't want to exclude the Japanese stock market, just because it hasn't done well in recent history.
Ideally, I'll have a pool of ETFs that:
1. Cover broad market segments (i.e. "US Stoc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.