instruction
stringlengths
35
27.7k
What is the definition of price pressure and what does it imply? In a number of paper I read that the price pressure can influence the portfolio returns; can you explain why and in which way it can do that?
I'm self-studying several questions on Ruey S. Tsay's teaching page. I'm experiencing some difficulty getting the correct answer for final exam 2013 Problem B Question 3. Given a Student-t GARCH (1,1) model, I believe that the correct way to calculate 1-Day $VaR$ would be to take the 1-Day predicted mean ($\mu_t$) and ...
I want to construct some time-varying BBX copulas, however, I found that patron's package does not contain time-varying BBX copula. Anybody know where I can download them?
I have two sub portfolios (lets call them portfolio a & portfolio b - a portfolio is just a vector of weights that sum to 1) that combine to create a total portfolio. I also have a 2 x 2 covariance matrix. | Variance a Covariance ab | | Covariance ab Variance b | By taking the square root of the diagonal...
I have issues with this problem: Let $\{X_t, t\in \Bbb N\}$ be a 2-state stationary Markov chain, with transition $M$ (and $M(1,2)\neq 0 \neq M(2,1)$), let $\{W_t, t\in \Bbb N\}$ be a strong Gaussian white noise. Let $$ Y_t = b_{X_t} + \sigma_{X_t} W_t $$ How to prove that $\{Y_t, t\in \Bbb N\}$ is an ARMA(1,1) process...
I'm looking into modelling monthly stock prices and want to start off by using data from Yahoo Finance. I know that the closing prices given there are adjusted for stock splits and dividends, but I'd like to use the given raw data and adjust it myself. For modelling purposes, should I adjust the past prices for divid...
I read the following statement in the book python for data analysis, chapter 11, and I was wondering if someone could give me intuition about why regression has this effect? The purpose of the exercise was to compare a basic correlation between microsoft and apple versus a dynamic regression. One issue with correlatio...
Assume an individual is a buyer, i.e., long, of one Forward Rate Agreement and a seller, i.e., short, of one Eurodollar Futures contract. Does the collective portfolio have positive or negative convexity? Why?
I ask because those functions are on the TI BA II Plus financial calculator. I saw some interesting answers but I don't think a calculator would be practical in their environment.
I'd like to start automating my trading strategies. I'm not looking for a fast and easy solution, therefore the programming language is not important for me, I am ready to spend an extra year to master the required technologies if needed. I'm very good with R, VBA and SQL, used Python a bit, but don't know any C++/C#/J...
I'm analyzing two financial time series with Johansen method. A high Correlation coefficient using the Pearson method will help me to detect spurious cointegration models to avoid? If this is not the case, which is the best method would provide clue about it? Thank you
I am trying to understand bond-valuation and construction of yield curve. I don't have any exposure to bootstrapping or what-so-ever as of now. So it's appreciated to have an example but not too technical (not too advanced mathematical terms - but straight forward). In Wiki shows that yield curve has three types of rat...
For a bond with market price $P_t$ and fixed payments $c_n$, I'm told the yield to maturity is given by the solution $Y$ to the equation $P_t=\sum_{n=1}^N c_n e^{-Y(t_n-t)}$. Firstly, I'm not great a rearranging such equations to not sure how to find an expression for $Y$ from here. Also could someone explain what ea...
My example is saving for college: assume a start of 0 balance deposits of 200 made monthly, every year they increase by (g) 2% to account for salary increases, first deposit made at the end of the first month Interest Rate (r) is constant at 8% (effective rate) Goes for (n=15) years What is the future value? Even tho...
My question is that when we have autocorrelation in daily volatilities can we scale daily volatility to annual basis using square-root-of-time rule? Does it breach the main assumption of the rule that says volatility is constant across period? Thank you
I am building a service similar to the BullionVault where users can buy and sell bullion. They will be placing their Buy and Sell orders on the service. Matched orders will get executed. My question is this: When there is a matching buy and sell order, where, the selling price is significantly lower than the buy order...
To implement a portfolio generator, I require a set of suitable stocks. Ideally it would use the components of the MSCI World Index and use the index weights for the probability of picking a stock (the system uses heuristics to build a robust portfolio but must be provided with random - but weighted - seed stocks). Cur...
hi question is how to price a long dated option most computationally efficiently? With European, you use Black Shoals (yes assumption constant vol/rates...etc) but it's a simple algebraic formula. With American, then what? If you use binomial tree, each step one day, with 20 days you'd have a million nodes... How do yo...
I'm trying to estimate volatility following Shreve book, so I need observations of $f(t_j,t_j+\tau_k)$ and $f(t_j+\delta,t_j+\tau_k)$, where $t_J<t_{J-1}<\dots<0$ and $\tau_k$ are relative maturities and f is inst. forward rate($\delta$ is small that $t_j+\delta<t_{j+1}$). I found this one: http://tinyurl.com/83we3db I...
I have heard that insurance companies make use of swaps and am just trying to get some clarity on that: An insurance company (assume life insurance) has a fixed obligation to pay in the distant future (policy holder's death), ie. a substantial fixed lumpsum. For that the company receives from the holder (monthly) premi...
Suppose I have a large enough set of prices of an asset, from which I can extract the following function: $f:T\to\mathcal{D}$, where $T$ is a fixed finite set of time intervals (say, 1 minute, 2 minutes, ..., $N$ minutes), and $\mathcal{D}$ is a set of finite discrete distributions of $\mathbb{R}$, such that $f(t)=D$ m...
Delta of Future is exactly one I thought. This post here, says otherwise. However, quoting John Hull again: $$f = \text{Value of Future contract} = S_{t=0} - K \exp(-rT)$$ where $S$ it the spot price, $S_{t=0}$ is the spot price today, $r$ is the risk-free rate and $T$ is the time to maturity. $$\Delta = \frac{df}{dS} ...
My bollinger band comes out like the below, which doesn't seem right. Any idea what is wrong with my code for calculating upper and lower bollinber bands? I obtained my data from here start, end = dt.datetime(1976, 1, 1), dt.datetime(2013, 12, 31) sp = web.DataReader('^GSPC','yahoo', start, end) here are my bollinger ...
Pennachi's "Asset Pricing" chapter 4 derives: $$ \frac{E[R_{i}-R_{f}]}{\sigma_{R_{i}}}=-\rho_{m_{01},R_{i}}\frac{\sigma_{m_{01}}}{E[m_{01}]} $$ Then, he states that the fact that $-1\leq \rho_{m_{01},R_{i}} \leq 1$ implies that: $$ \left | \frac{E[R_{i}-R_{f}]}{\sigma_{R_{i}}} \right | \leq \frac{\sigma_{m_{01}}}{E[m_{...
I use Rugarch for a long time in order to calibrate GARCH models on FX rates time series and perform simulations. I am trying to understand the ugarchroll method. However even if I can find plenty of examples and indications on how this method has to be used in the documentation as well as in the vignette, I still do n...
Say I want to buy historically recorded raw feed from an European exchange (say LSE). Is there a vendor that would sell me this data ? EDIT: By raw feed I mean the order by order feed (or equivalent) that would enable me to build the entire book at any point in day. Cheers
I have a Forex trading signal generator written in Node.js and now I am looking for a Forex broker with a free Node.js compatible API. The requirements are simple: be able to send new trade orders close trades get active trades The orders are the usual stop loss/take profit trades. Free API meaning, no flat fee charg...
I've been trying to access the papers that state that kind of problem, but most of them need payment for access and I am on a student budget. I know that maximizing profits=maximizing stock value in a world of certainty, but why is that maximizing stock value will be different from maximizing expected profits in a worl...
Relative value of large cap volatility. We all track the VIX as a measure of volatility, but we often forget that the VIX is volatility indicator for the large cap index within the SP500. We can construct volatility measures of volatility for different sectors/industries (tech, healthcare, financial, etc.). There is...
I'm looking into simple-to-implement and efficient order 1.5 strong SDE integration schemes for my system. My noise is diagonal and additive (possibly time-varying). Thus methods designed for either Itô or Stratonovich are fine. Are there any explicit, derivative-free, order 1.5 methods that only require a single rando...
I thought I had understood futures contract. But it seems the daily settlements betray my understanding. Futures contract provides price & product safety to involved two parties. E.g. Wheat Farmer and Baker It seems Futures contract poisitions (long, short) are credit/debit accordingly based on current market price usi...
I know that many funds have local index (i.e., SPX in US) as their benchmark. Why are investors interested in such kind of returns instead of absolute returns. From the first glance I'd think one would only care to make the maximum amount of money rather than be positive in relation to some index. I often hear how peop...
In LME website Prompt Date Structure is explained as this. Why there are prompt dates? LME trading calendar isn't universal to all other calanedars found in the market. So how do "Non-tradable dates and substitute prompt dates" affect other trading calendars? How are traders from other regions trading at their local ca...
When receiving a value date of D from the counterparty for a trade in NZD/USD, is D assumed to be date D in Auckland date D in New York date D in UTC date D in some arbitrary time zone ? There are lots of online references to market close being 7AM Auckland time for NZD/USD trades, but I cannot find any places that ...
Assume I wanted to compute the alpha (in CAPM sense, i.e. $r_i - r_f = \alpha_i + \beta_i(r_m - r_f) + \epsilon_i$) of a stock. So I take, say, monthly returns of a stock $i$ for 1 year. Subtract the riskfree rate from this and call this $Y_i$. Now I take the corresponding benchmarket return and similarly i subtract th...
I have a toy model in Excel for the growth of a investment portfolio. I assume iid lognormal annual growth factors: =EXP(mu+sigma*NORM.S.INV(RAND())) where mu and sigma are calculated to get a given mean and standard deviation right. I would really like to play around with something that has fatter tails, but with the ...
I am currently working on my thesis where I discuss the Merton default probability model. I have a huge sample of US firms for the period 1990-2010. I use both numerical and complex iterative approach to estimate asset volatility and asset value. I have a problem with the numerical approach because when I estimate ass...
I want to calculate realized/historical volatility for the underlying products of various options using the Garman-Klass estimator, but I can't see to find an equation, although I know it involves OHLC data. In the comments there is a link to the equation, but I still am looking for a little explanation. Why does this ...
What is the difference between a random process that is adapted to a filteration and one that had the martingale property. It seems the two notions are quite similar and would be helpful to construct examples when they are the same and when they differ.
Instead of deriving correlation matrix on standardized returns (z scores) would it not be more accurate to kernel smooth the cdf and then norminv the cdf values for the return z score and then calculate the correlation? I would prefer to capture long term correlation than the instantaneous correlation at infinitesimal ...
The concept of micro credit has been around for a while. Recall that Muhammad Yunus together with Grameen Bank were awarded the Nobel price in this context. I don't have references at hand but I heard that the interest rate that obligors pay for such loans are quite high (but they would pay even more at standard banks ...
I know that a lot of work has been done characterizing the first four moments of monthly hedge fund returns across a variety of fund types and strategies, and that work indicates that the higher moments are likely important. See for example Malkiel and Saha 2005. However that information alone does not suggest any par...
I'm going to participate in a game of making portfolios. The objective of the game is to make the portfolio with the bigger ROI over 16 weeks. Over each week every player can see the ROI of each player and the amount of investment instruments (equities) they used to get to that ROI over the week. Each player starts wit...
I devised a pair trading strategy going long XXX and short B*YYY. B is the quantity of shares of YYY I need to short. The problem is I can’t go short on YYY, but there is an inverse ETF for YYY called ZZZ. Assuming that ZZZ is a good replicator of shorting YYY, how should I calculate the quantities I should buy for XXX...
I am trying to build out a probability of default model for a bond. Given the current price of a bond and the current risk free rate, I am trying to calculate the probability of default. So assume a bullet bond with a 5 year maturity. Let say the coupons pay annually for simplicity and they pay out a 5% on a 100 par. ...
Given that $P(0,T)=e^{-RT}$, how does one get the formula for the instantaneous forward rate below? Specifically, how does one get to the partial derivative in the formula? I'm sure the answer is obvious but I haven't been over my calculus in a while.
Can someone explain how to get equation 27.14 below? I understand the first usage of Ito's Lemma to get $d(\ln f-\ln g)$ but I do not understand how to use Ito's Lemma to go from $d(\ln \frac{f}{g})$ to $d(\frac{f}{g})$. Can someone help to elucidate this process?
I want to find the price of Zero coupon bond given a short rate model. I think about Merton, Vasiceck, CIR, Ho & Lee models. 1) Given a simulation of $r_t$ how can I calculate $ P(t,T) = \mathbb{E}^Q\left[\left. \exp{\left(-\int_t^T r_s\, ds\right) } \right| \mathcal{F}_t \right] $ ? Using the simulations i think it wo...
I am interested in Quandl Open Data, from Quandl.com These data are also denoted as Wiki Data since it relies on users to flag errors. In particular on their website, they say: This new data source is different because it is “original”; the data is manufactured by us and Quandl users. The definitive version of the ...
What is the best way (most common) to discover if a stock is trending or not? (Despite drawing a line). A hurst exponent? A linear regression maybe?
Actually I want to add volume traded of a stock in my Garch(1,1) model to forecast the volatility.In Matlab I can specify the model as garch(1,1) and then use estimate and forecast commands.But I am not sure how to specify my volume augmented garch(1,1) model in Matlab. Any help on this would be very appreciated.
My firm is looking for an out-of-the-box database system to store and query high-frequency tick data. What are the best options? It seems that kdb+ is the market leader in this field.
Non-maturing deposits (NMD) is a deposit without maturity date. The deposit rate is normally low. Banks could adjust the rate at any time. The customer can withdraw without penalty, however, in real life, the deposit is observed to be "sticky" when LIBOR rate changes. Now, how shall such NMD amount be modeled for Fund ...
Recently I've tried SciChart and VisiBlox - beautiful charting tools. Are there any free or open-source tools for visualizing charts in C#? Thank you for answers.
I'm about to embark on training a neural network on daily forex data, with a view to obtaining a predictive network. I'm also interested in using data other than the forex currency pair data itself, in a manner similar to intermarket analysis. What other time series data does the panel think will provide meaningful inp...
For a particular stock, what's the simplest way to calculate betas for the Fama-French factors SMB and HML?
I would like to know which formula to use in order to optimize a portfolio based on highest Treynor and Jensens Alpha. I am aware that usually one optimize a portfolio by highest Sharpe ratio (the tangency portfolio) by following formula: $$\textbf{w}_{tan} = \frac{1}{(\boldsymbol{\mu}^e)^\top\boldsymbol{\Sigma}^{-1}\t...
When doing the PCA analysis, you end up with eigenvalues which are ordered by how much variance they explained for each eigenvector. Say, the eigenvectors since they are orthogonal, do not represent the reality - I want to stick with the original factors only, but determine which are the most important and which add up...
Does anyone know where I can find a list of all stocks traded on the NYSE in a table that also includes what sector they are in? I want to look at some data using info both from the individual stock and from the sector but I cannot find a comprehensive list containing both pieces of information.
Is there a way to retrieve the implied correlation between stock price and zero coupon bonds?
What are the best sources to find free Forex historical Fundamental Data in a .csv format?
What are the principal components? How they are calculated? What is their relationship with eigenvalues and eigenvectors? This is a lead-in question to explain PCA basics. EDIT: PCA is implemented in many software packages. It has lots of parameters which cause problems if one does not have a clear idea of what to exp...
I used a simple market model (Black 76) to price an american swaption. It's a formula similar to B&S, with another numeraire and forward rate as underlying. I used the SDE: $$ dF = \sigma * F dW $$ Now I want to price a contract wich is the sum of 4 swaptions with different Tenors, so I have to simulate 4 forward r...
What is the link between option Greeks (i.e. vega, delta, gamma, theta) and implied volatility surface (IVS) movements? Could you say that their 'information content' is the same. i.e. that out of movements of the one you could derive the movements of the other at the same point in time? Some Background to why I am as...
While poking around in Bloomberg I stumbled upon the following data set: EUR SWPT BVOL OIS for various maturities. Obviously OIS must suggest OIS-discounting but how is it related to the Black-Implied-Volatility ? Does one simply use the OIS-rate instead of the LIBOR rate as the risk-free reference rate when inverting...
I am trying to calculate the implied volatility using newton-raphson in python, but the value diverges instead of converge. What is wrong with the code? s = stock price k = strike t = time to maturity rf = risk free interest cp = +/-1 call/put price = option price def newtonRap(cp, price, s, k, t, rf): v = sqrt(2*...
Lets assume that the underlying follows a Brownian motion and the market has the standard properties of the Black Scholes setting. Is there a way to find a hedging portfolio for every discounted price process X which is a supermartingale? Edit: The price process X is a stochastic process such that $X_0\ge E[X_t]$ and...
I am just starting on Interest Rate Swaps & curve construction. While reading few materials on Interest Rate Swap, it's indicated for e.g. "Floating Coupon Index: 6 month USD LIBOR". LIBOR is the London Inter Bank Overnight Rate. How does it matter for USD? If a security is USD denominated, shouldn't it be valued usin...
Currently in a journey of learning and getting my hands a bit dirty with Interest Rate Swaps. Why there are multiple customized curves built by many even within one desk? For e.g. Short Rates desk and FI desks seem to have multiple curves of their own. What are the usually accepted underlying securities and rates bui...
Under what conditions should the drift be real world and when risk neutral when simulating Delta Hedging option pricing trading strategy any other? For 2. it should be risk neutral. For 1., it could be either as it should result in correct option pricing. For 3. it should be real world. Do you agree?
As we all know , return time series marked features: fat tail or negative skewness and peakedness. For a similar problem of variance computation, we can compute variance by garch model and other derivatives.In other words,Does we predict skewnenss like predicting variance by garch model and other derivatives ? does t...
Price time series are not stationary. So we difference them and get the return time series, which are stationary. Does this mean, it is always a good idea to model only the return series of financial assets. Alternatively, do we not need to model prices ever ?
Can someoe help with this : What is the precise arbitrage argument demonstrating that the price of an american option should be continuous around an ex-dividend date? Thanks
I'm fiddling with estimation of stochastic volatility models and have build up a somewhat flexible framework using indirect inference. I would like to try and throw a lot of different continuous time models into it and see how it performs. I only need it to be reasonable easy to simulate and not have to many paramete...
I'm trying to implement this model shown here: http://www.sciencedirect.com/science/article/pii/S0304407611000388 As part of the modelling process I have to calculate the unconditional variance of X see page 10). $\sigma_R^2=\int_u^t \exp^{-A s}\Sigma \Sigma^T \exp^{-A^T s}ds$ They say they use a closed form result fr...
I know if we define a function f(x) and its cdf is F(x). The inverse function of cdf is inverseF. I can define its median as follows: median = inverseF(0.5). But if I want to get the median for a bivariate function f(x,y). How to define it? Thanks very much!
I'm following loosely the exposition given in "Monte Carlo Methods in Financial Engineering by Glasserman. For a multifactor OU process: $dX(t)=C(b-X(t))dt+DdW(t)$ Where C and D are d*d matrices and b and X(t) are vectors on length d, and W is a d dimensional brownian motion. He notes that this can be used to define an...
I am looking for a (hopefully significantly cheaper) alternative to bloomberg - primarily for fixed income data. Perhaps some survice that has a more modular fee structure (so that I only have to pay for more or less what I need) It should at least provide: Quotes for swaptions and caps (different trikes, tenors etc....
Wilmott book states that its enough to know the expected present value of all cash flow in risk-neutral framework to price derivatives. As I know, to obtain arbitrage-free market we need our discounted price process to be martingale under the risk neutral $Q$ measure. Why does that imply the statement?
Is GNP a continuous, static or a dynamic model ? What about GDP ? What I do know is that it has yearly discrete values. However, when it is modeled, it becomes a continuous graph. So what exactly is the answer ?
I have found volatility in the black model for swaption for different maturity (1-2-3-6-9M, 1Y, 18M, 2-10Y, 15-20-25-30Y) and Tenor (1-10Y, 15-20-25-30Y). Now I need another values (Maturity: 2, Tenor: 12). I work with Excel without add-ins, I tried linear interpolation between (2,10) and (2,15), but I have some doubt ...
Do any standard/generic approaches exist on how to extend an interest rate model to incorporate credit risk? The first thing that comes to mind would be to just model the credit spread separately - perhaps assuming some correlation with the main process. Risky-Bonds could then be valued by pricing them in the original...
I hope I'm asking this at the right place. This pertains to actuarial exam MFE/3F on Financial Economics. If $\sigma$ is "volatility" and $\Omega$ the elasticity of the stock, one formula that is taught in this course is $$\sigma_{\text{option}} = \sigma_{\text{stock}} \cdot |\Omega|\text{,}$$ where "option" means a ...
I have to validate the use of the ISDA CDS standard model. Don't understand me wrong - I am sure that the ISDA model is "good" I just need to know what it is in detail. I can download an Excel-plugin and C code but I can not find a full documentation of the model. I assume that it is a constant hazard rate model or a...
Short version Why do we take market prices as the prices to be estimated and predicted? The common answer is efficient markets hypothesis as in "Market agents do their best effort given their information set, therefore market prices are optimal." Is there another way? Edit: I should add that it is the academic way of d...
Do successful applications of chaos theory to quant finance exist ? While still in the university I remember some people mentioning how chaos theory and fractals could be applied in a finance context. The topic has kind of escaped my radar until now. Usually I am quite skeptical when it comes to the application of new...
Take two stocks, WWE and XPO, both traded on NYSE. Today, May 28, 2014, XPO has options expiring August 2014... ...while WWE doesn't: Why is that? From my experience, the missing expiration month options do eventually show up, so I've linked the screenshots above to Google Finance to check later.
What can we say about an asset which $\beta$ calculated using the CAPM model (regressing the excess returns of the stock vs excess returns of the market) is insignificant?
In Islamic Finance there is a contract called "Salaf" or "Salam" which is similar to Forwards except in time of payment which happens in the entering contract day (exactly unlike the Forwards). Some people says It isn't Forward but some other include Salaf in Forwards for instance Muhammad Ayub in "Understanding Islami...
I am reading an article by Zumbach and Müller whose name is Operators on Inhomogeneous Time Series. This is interesting in general, but my main goal is to learn a good and efficient method to calculate volatility of inhomogeneous time series (of prices). So far I was calculating volatility in the following way: I have ...
I am trying to generate a custom tick index using two indices (Let's say australian index ASX 200 and Japenese Index NKY). Japan index ticks every 10 seconds...and australia ticks every 30/35 seconds. So obvious problem is ticks don't line up! Apart from a generic solution of interpolation is there any other way to com...
Why does CDS spreads track the implied volatility on equities? What is the fundamental relationship that would keep the two inline from deviating too far from each other? My speculation: Could it be because CDS spreads are not necessarily “pure” compensation of default risk but also include spread volatility risk and t...
Is there a function in Bloomberg that allows the user to search the best performing stocks for a given year, say 2011, in any given stock exchange? For example, I want to see the best performing stocks in 2011 for all stocks listed on the NYSE. Also, is there a function that allows me to specify a time frame, say 5/5/2...
Consider a forward rate agreement on LIBOR (say), which starts 2 months from now, expires after 3 months and has strike $K$, and is based on $3M$ LIBOR -- $FRA_{2\times 5}$. Now the present value of this contract is, \begin{equation} \frac{\alpha\cdot (L_{3m}(2m) - K)}{1 + \alpha\cdot L_{3m}(2m)} \end{equation} where ...
I wanted to quickly confirm some simple calculations for the Black 76 greeks and was making use of the formulas on this website: http://riskencyclopedia.com/articles/black_1976/ I have an issue with their statement of Rho and I wanted to check with you guys. Their version for a call has: $$\rho = \tau e^{-r\tau}K\Phi(...
I am looking for a hedge fund database that provides returns daily. Is there any data provider that gives daily data?
I am planning to run regression of half-hourly stock volume against the half-hourly news volume for that particular stock. I am looking at 2 years of data for my analysis. However, I am stuck thinking about what should be done to the non-trading hours period on each day? To be specific: 1. Should I regress the data onl...
I am working with the following copula, and have a few questions about it: $C(x,y) = xy + \theta (1-x)(1-y)xy$ Here $\theta \in [-1,1]$ and $x,y \in [0,1]$ First, I am trying to show this copula is d-increasing. To do this, I took $\frac{\partial C}{\partial x \partial y}$ hoping $\frac{\partial C}{\partial x \parti...
I was wondering whether any literatures existed on how to properly estimate correlation matrices from historical data. Obviously the entire procedures allows a lot of leeway. The frequency of the data (daily, montly etc.), sample size, the atual method used to extract the correlation from the time-series and so on ...
I asked a question similar to this previously: https://dsp.stackexchange.com/questions/16341/simulating-a-state-space-model However I think I have a better handle on it now and want to re-ask it: I simply want to simulate data from a state space model where the state variables follow an AR(1) process (see the code in t...