instruction
stringlengths
35
27.7k
For a case study I have to work on for a university course, about a real-estate-development project, I need to simulate the financing with different proportions of equity (40%), senior loan (35%), junior loan (15%) (both from banks), and mezzanine financing (10%) (over 5 years, starting now). I tried to do research, mo...
I posted this on Cross Validated a month ago, but I didn't get any answers. Sorry for the second post! I'm wondering about the whole process of testing/data-mining for a strategy and THEN testing on bootstrapped data. Does it make sense to bootstrap your data first and then data-mine for the best result? This came to ...
I need your point of view in evaluating the monthly performance of a desk. I have the daily credit risk capital requirement (A); the net banking income or GNP (B). What is the best measure of the performance: (B) at the end of the month / (A) at the end of the month sum( (B) daily /(A) daily) sum( (B) daily / ave...
I would like to, for example, access (and later, upload), for example, historical financial data for the S&P500. If a piratebay for databases existed, maybe we could freely share information that deserves to be free already. Does such a site exist already? Mainly I'm just looking for financial data, but I'm developing ...
Since the distribution of daily returns are obviously not lognormal, my bottom line question is has BS been reworked for a better fitting distribution? Google searches give me nada. The best dist I've ever made fit is a double-sided exponential, but I'd easily settle for a regular exponential distribution for simplicit...
I have a yield curve constructed using linear interpolation with data points every 3-months for US treasuries. I would like to use that calibrate a Ho-Lee model, but I can't wrap my head around how to calibrate theta. Is there any implementation that I could use (preferably matlab, r or c++) or a detailed description o...
I want to plot the density of the GBM in a 3d plot. So I have on one axis the stock price, on the other the time and on the z axis the density. At the end I want to produce this graph. The formula I tried to implement can be found on Wikipedia. Here is my approach: mu <- 0.1 sigma <- 0.1 S0 <- 100 color <- rgb(85, 141...
When a researcher in economics or finance wants to apply a linear regression model but suspects a non-linear relationship between one of the regressors and the dependent variable, it is typical to also include the square of that regressor, then (maybe, but usually not) do something like a Ramsey RESET test afterwards. ...
Let's say stock price follows following process: $$dS(t) = \sigma dW(t)$$ where $W(t)$ is Standard Brownian motion. The initial level for the stock is $S(0)$. Define the average of stock price $Z(t)$ as: $$Z(t) = \frac{1}{T}\int_0^T S(t)dt$$ What is the distribution of $Z(t)$? Note: this was asked in one of quant int...
I recently found the following question: What is your profit estimate throwing a dice in the long run if you get 10 dollars for each time you hit 6 and lose 1 dollar for any other number? I tried to use probabilistic "common sense" to arrive to the following wrong answer: Probability tells me that every 6 throws I get ...
Some time ago I was talking to a representative of one of the leading quantitative hedge funds. We talked about recruitment and the following had me stunned: The representative explained that they used to hire graduate statisticians and PhDs from Maths, Physics, CS but have not done so in recent years. They claimed tha...
I'm looking for a forex brokerage that allows me to: add limit orders to the order book and trade against other clients However, when I look at the looks of fxcm, alpari, robofx, ... it appears all that they do is: 1) take my order (only as a market order) 2) take the prime they get from their liquidity 3) add 1 pip ...
General wrong way risk (GWWR) is defined as due to a positive correlation between the level of exposure and the default probability of the counterparty, due to general market factors. (Specific wrong way risk is when they are positively correlated anyway). According to the “Risk Concentration Principles” (bcbs63) “diff...
Subtitle: Estimating the correlation of the shocks driving two commodities in two multi-factor models I am fitting two 2-factor models to electricity and gas futures, respectively. In order to extend this framework to a multi-commodity model I have to integrate correlation. The models are (HJM-type model from forward ...
I have a few different questions on topics involving an doing risk management in life insurance. If someone could shed some light on these issues, I would be very thankful. a) How does an actuary do the solvability calculations as imposed by Solvency II in practice? What does this look like? b) What does an internal mo...
I am looking out for some material where I can study about Kalman Filter applied to Equity using Excel or R?
+++++++ returns+++++++ === Coupon Return======/////// OAD ///////// Muni_return HY_return IG_return Muni_coup HY_coup IG_coup Muni_oad HY_oad IG_oad 11/30/07 1.11 -2.17 0.60 0.39 0.67 0.49 6.37 4.60 6.21 12/31/07 0.28 0.29 0.16 0.38 0.70 0.49 6.39 ...
This is a simple problem but I'm not sure about one aspect of it. A company has 15 year bonds outstanding, with a 5% annual coupon, a face value of \$1000, and a current market value of \$1100. What is the company's pre-tax cost of debt? I'm tempted to think it's just 5%, as when the company originally sold the bo...
I am using a Hull & White model to simulate forward rates on US swap curve from the 1.10.2012. This is a part of a bigger picture, and I am interested in some reasonable values for the parameters alpha and gamma. Exactly calibrated values are not needed, so I thought it would be faster to ask here :) i.e. I want alpha ...
I was reading a BMO paper which offered the following example of passive rebate arbitrage: "For example, if BBD.b is trading at $4.71 - $4.72 with multiple players on each side, one might place a 'passive' order on TSX to buy 5000 shares at $4.71 Upon receiving a fill, then proceed to place a 'passive' offering on anot...
While using Merton (or any other) model, is the model-implied yield spread on bonds greater than actual yield spread? And is it possible to estimate actual probablities of default?
I am having a difficulty conceptualizing the meaning of "Macaulay duration" - I want to note I completely understand the math, this isn't the issue. Modified duration & Efficitive Duration make total sense to me as they are refer to a first order approximation of a change in yield on the price of a bond (eg, a 100 bp c...
I want to do a cross-sectional study where the historical, medium-long run volatility of some return series (call it $R_t$) is included as a regressor. Which of the following two estimates of volatility is superior in this context? $$\text{Option 1}$$ Of course, the simple standard deviation of historical returns over...
Let's say the characteristics that I am interested in are FX Country Security selection I have the benchmark weights and returns, the FX returns, and the portfolio weights and returns. Can someone give a few pointers on how I would be able to get the performance attributions for 1,2,3?
Is there a way to make a hedged portfolio using two bonds, one is in EUR, the other one is in USD and FX forward contract? Assume that FX rate follows geometric Brownian motion movement.
Given a fixed time period,say 3 days, the stock/market can go up,down or stay sideways. A hedge fund can long, short or use rangebound(options strategy) to bet for that 3 days closing level. Hedge fund manager A opened long position the stock/market on monday. On tuesday, there is some major news/economic data/earnings...
What is the equivalent of product rule for stochastic differentials? I need it in the following case: Let $X_t$ be a process and $\alpha(t)$ a real function. What would be $d(\alpha(t)X_t)$?
When placing a trade with Stop Loss and Take Profit orders in a hypothetical random market (i.e. 0.5 probability of up tick and 0.5 probability of down tick), assuming: x is the distance in ticks of the SL order from the entry price. y is the distance in ticks of the TP order from the entry price. How do we calculate t...
I would like to learn how to price options written on basket of several underlyings. I've never tried to do it and I would appreciate if you can provide some documents, papers, web sites and so on in order I can collect materials to build my own step by step guide. I know the first step should be Black & Scholes formul...
For equity options, the pricing of options depends on the existence of a replicating portfolio, so you can price the option as the constituents of that replicating portfolio. However, I am not seeing how the same analysis can be applied to value interest rate options. Does the concept of replication apply to interest r...
I'm trying to find extensions for my regression and obviously would like to use PE, BV and CFO. But I've got monthly data, while all company's fundamentals are semi-annually... Can I deal with it somehow?
How would one go about cloning/replicating returns of a hedge fund or a strategy. That is given a return series of the object to be clone, is it possible to decompose return and reconstruct another different passive strategy that generates return that are correlated above 75%+? Perfect replication is definitely not pos...
I'm benchmarking some software and am looking for cards that are better at parallel multiplication vs parallel addition. Is there any prior work that may have this information? What GPU features should I look for?
I'm trying to figure out how one would apply the stress scenarios defined under the interest rate risk sub module of Solvency II. I understand that all future cash flows of an interest rate sensitive asset (e.g. a coupon bond) have to be discounted using shocked rates. The magnitude of shock to be applied for each matu...
I have two time series. One with monthly returns on an asset and one with monthly returns on a benchmark index. I have calculated the covariance using the =COVARIANCE.P() formula in excel. Further I want to look at the Beta and $R^2$ and therefore wonder: Are there any reasons to annualize the covariance? And if, how t...
In a campus library or other public place, typically many people share the same PC with the Bloomberg terminal software. Is there a way to prevent users from creating new logins? Is there a way to delete logins not authorised anymore?
At the end of the academic year I will graduate with a Computer Science degree (hopefully) and I would like to peruse a career in quantitative finance. What is the dest way of doing this? Is it worth doing a doctorate like this from UCL or just get a job in the city with a hedge fund or bank. Where is the best place t...
Suppose the application is linear models in financial econometrics. If we want to analyze stocks, the standard approach is to take the continuous/log return: $\ln{ \frac{P_t}{P_{t-1}} }$. Suppose, however, that I want to include interest rates ($=:I_t$) as a regressor in my explanatory framework. How should I construct...
How to calculate to calculate daily interest accruals and cashflows for the full term of the swap, given notional, effective date, maturity date: (total one year), accrual: ACT/360 payment: semi-annual, 2 day lag, fixed leg: [], floating leg: receive fed funds effective rate, daily reset, I omitted the actual paramete...
What are some of the most prominent journals, conferences and publishing venues in Quantitative Finance research? Where can I find information more information about them? (e.g. impact factor and categorization by topic) I went to ArXiv and found this: http://arxiv.org/archive/q-fin, which is a good start, but I imagin...
I am referring to an electricity production company. Company is located in AsiaPac. The power is generated using Natural Gas fired combined-cycle power plants. Then this electricity is distributed to a main power grid company authorized for delivering the electricity to each house-hold or factory/indutries out there. ...
I have a few time series of models to analyse in terms of how far/close they are to their underlying limit. The limit is a simple value on the y-axis (always positive), and the series can act arbitrary with respect to that - it can be negative for most of the time, then jump up and oscillate, or stay close under the li...
I used to trade German and US govt. bond futures and I am now having trouble understanding the price difference of these markets against the cash market. For example, the 10 year german government bund cash is trading at 101.19 while the front month future is at 144.86. To my mind the difference can't be attributed to ...
I'm trying to calculate the 'true value' of a stock listed on an exchange. I have access to the limit order-book (containing all bid/ask quotes) and also all trades which have taken place (which contain price, amount, date etc). The context is from the POV of designing a market-making algorithm with positive expected p...
I know that MATLAB has mechanisms for generating code, but I've never used them. Have you? If you have - is it good enough (=fast enough, I guess) to be used in live trading systems? Anything one needs to watch out for?
I need help with understanding how does a covered bond characteristics compare to a mortgage security for credit enhancement?
I have an issue about rounding price to tick size. Suppose there is price tick table below. what is tick size for price 1001, 1002 ... 1004? In other words, how to handle the price in between upper range of first level and the lower range of next level? range tick 0 - 50 1 51 - 1000 5 1005 - 1000000 10 EDIT: The tick ...
I'm designing a market-making algorithm, I was wondering what a decent ROI / day would be to aim for in such a system?
I'm looking to run portfolio optimizations using various optimization goals - e.g. minimum variance, max diversification etc. My challenge is if I want to do this on ETF's which ones do I pick to run the optimization on? Say there is a universe of 200 or so ETF's - is there some form of clustering I can do to reduce th...
I am attempting to use the function estim_nss from the termstrc package in R to find the spot curve from constant maturity rates published by the Fed. I am using this package because I will need to deal with variable rate coupon bonds in the future. The function requires an object of class "couponbonds" but I cannot fi...
I'm stuck with one homework problem here: Assume there is a geometric Brownian motion \begin{equation} dS_t=\mu S_t dt + \sigma S_t dW_t \end{equation} Assume the stock pays dividend, with the cont. compounded yield $q$. a) Find the risk-neutral version of the process for $S_t$. b) What is the market price of risk ...
Let's say I have $n$ assets and their returns are stored in a matrix $X \in \mathbb{R}^{m \times n}$ (i.e. I have $m$ returns for each of them. The covariance matrix of the returns is $\Sigma \in \mathbb{R}^{n \times n}$. I define a portfolio $w \in \mathbb{R}^{n}$ and I want that $\sum_{i=1}^n w_i=1$. My goal is to fi...
If I have 4 optionable stocks A,B,C,D and each different implied volatilies,IV-A,IV-B,IV-C,IV-D. How do get the implied volatility for a basket option on A,B,C,D where the basket weights are w-A=.6, w-B=.3, w-C=.09,w-D=.01 ?
One of the most serious shortcomings of covariance/correlation are the assumptions of linearity and normality. What is the most natural generalization of these measures of dependence when you want to model the dependence structure of extreme events using heavy-tailed distributions, e.g. the Generalized extreme value di...
I have the following question. Consider that you have a stock currently trading at 100\$. In one month it can jump to 120\$ with probability 99% and go to 80\$ with probability 1%. How much is call option with strike at 110$ worth now? So when you do replication portfolio consisting of 0.25 stock and -20\$ gives exactl...
I am trying to figure-out an optimal policy for buying a unit when its price follows a mean-reverting price process (Ornstein–Uhlenbeck), when I have a finite time deadline for buying the unit. I tried to search the literature for it, but couldn't find anything. I would very much appreciate any help.
Can I take liquidity risk determinant as a dimension of it in order to examine the impact of liquidity risk on performance of banks? For example in a literature, Tangibility i.e., ratio of fixed assets to total assets was used as a determinant of liquidity risk and results found to have significant relationship of this...
I'm a developer writing a system for a startup. Without giving away too much of the business model, here are the basics of how it works: The web site has two forms of "currency": tickets and credits. Tickets are basically like Chinese auction tickets: there are many prize items on the site, and you can cash in your t...
The parametric VaR is defined as follows: $$VaR=Z_a*Vol$$ Is this the best way to interpret how much risk is being taken on for a particular asset? How does one interpret volatility on its own if its not converted into a percent figure? Therefore, wouldn't be better if sharp ratios were expressed in VaR's? I mean, wha...
Trying to understand the Eurdollar market a little better. I understand it's the market for dollar denominated deposits outside the US (not just in Europe). They are unregulated and not subject to reserve requirements, unlike traditional deposits. The players that engage in the Eurodollar futures are wide reaching inst...
I am dealing with a strategy that is not high-frequency based. The strategy consumes normalized data from Bloomberg and Reuters. For US equity market, can someone recommend some real-time data sources - other than Bloomberg/Reuters/IB - that are known to be reliable? By the way, subscription cost is not an issue.
I have started reading about HMM it gives an intuitive idea about what HMM is all about. I am looking out for example where its applied to Equity model using R / Excel. The material which I read so far is about its application to speech recognition.
If some conditions are met (stop loss, trailing stop, take profit...) we will close ours positions (sell/buy) to avoid having more loss or to ensure profit. In an automatic trading system, it is easy to set-up these rules. But is there an automated strategy / rule to re-activate our strategies? For example: simulate o...
Say swap would be used to convert the payments of its portfolio of fixed-rate residential mortgage loans into a floating payment. Why might a manager consider using an interest-rate in which the notional principal amount declines over time?
Currently we compute portfolio risk and return via our own C# program. Historical data is stored in a SQL database. We want to compute the risk and return parameters - given a portfolio (i.e. not computing the efficient frontier). It's the R syntax that we're not familiar with (Vs the theory of computing the risk-retur...
Let's say I have an arbitrary set of $n$ period returns for $k$ assets, and a given $k \times k$ correlation matrix (of asset returns), which is known a priori. Does it makes sense, or is it even possible, to think about constructing some kind of measure of whether the set of $n$ returns is consistent with the known c...
Let you have several issuers, and let each issuer have its yield curve built up with liquid plain vanilla fixed rate bonds. Each yield curve has its slope and its curvature, and they obviously change over time (if the yield curve didn't change its shape over time, you would be able to predict with great accuracy the pr...
I read somewhere that derivatives are the biggest weapons of financial destruction. Why do we need derivatives? If exploiting risk-proneness of people to make profit is the goal, why don't we stop with stocks alone? Derivatives also entail complicated math for their pricing while stock prices are usually modelled as Br...
Why is it so popular to use market capitalization weighted indices instead of taking the first principle component that explains the most variation of the constituents? I haven't yet seen an academic study that does the latter. What's the reason for this? If the correct answer varies based on application then feel free...
Simple question - what would be the fastest algorithm for calculating retrospective maximum drawdown ? I've found some interesting talks but I was wondering what people thought of this question here.
I am testing various optimization methods for a currency-only portfolio. I have a vector of expected returns for the major developed currencies vs. the USD each week (based on a proprietary model). I then take the annualized vol of each currency and dump it all into an optimizer, looking to run a portfolio of currency ...
I have two related questions concerning Black Scholes and delta hedging. I thought about this two questions, but I could not come up with an answer, so maybe you guys & girls can help me: If an option is at the money, how can the Black Scholes price be calculated in a very fast way (possibly without any big calculatio...
When working with risky bonds, i.e. corporate bonds, what is usually defined as the yield of such a bond? Is it the yield calculated as if the bond was riskless, or is it calculated by properly taking into account the default risk in this case? And what about (risky and riskless) floating rate notes?
I found this comment in a book I bought about risk management: Risk Management in Banking by Joel Bessis. This is the well-known rule that states that the sum of individual risks is less than the risk of the sum, or, that risks should be sub-additive. Risks do not add up algebraically because of diversification....
I am working on Rubinsteins IBT and use the following paper to implement this into excel: http://papers.ssrn.com/sol3/papers.cfm?abstract_id=541744 the original paper can be found here: http://www.haas.berkeley.edu/groups/finance/WP/rpf232.pdf I am stuck in the last step: I calculated the path probabilities, denoted by...
Let us consider an American call option with strike price K and the time to maturity be T. Assume that the underlying stock does not pay any dividend. Let the price of this call option is C$^a$ today (t = 0). Now, suppose that at some intermediate time t ($<$T), I decide to exercise my call option. Hence the profit is...
I am uncertain as to how to calculate the mean and variance of the following Geometric Ornstein-Uhlenbeck process. $$d X(t) = a ( L - X_t ) dt + V X_t dW_t$$ Is anyone able to calculate the mean and variance of this process as well as include the calculations for the solution?
In which markets are inflation swaps considered liquid enough to be the primary instrument for measuring market inflation expectations (compared to say, inflation-linked bonds)? Are there specific biases that will cause implied inflation rates from the bonds to diverge significantly from the swap rates? many thanks!
Why do short term implieds move more than long term?
I was looking at this video today: http://www.cmegroup.com/education/interactive/webinars-archived/implied-price-functionality.html on implied pricing. And am aware that implied orders/pricing exists in ICE as well. I found it difficult to follow (the video) beyond the vanilla examples and was wondering what other reso...
Following up on this question: Yield of a risky bond, what is the definition of clean and dirty prices for a risky (defaultable, catastrophe, etc.) bond? I would think the dirty price should basically be the discounted cashflows. Then the clean price should be dirtyPrice-accruedAmount. What is the accruedAmount though...
Let you have a mean reverting stochastic process with a statistically significant autocorrelation coefficient; let it looks like you can well model it using an $ARMA(p,q)$. This time series could be described by a mean reverting stochastic process like $dS=k(\theta-S_{t})dt+\sigma S_{t}^{\beta}dz$ where $\theta$ is the...
I am looking for a nice and readable description of how to implement BDT model: $d log(r(t)) = [\theta(t)-\frac{\sigma'(t)}{\sigma(t)}log(r(t))]dt + \sigma(t) dW$. I assume I already have steady-state IR curve $r^*(t)$ and volatility curve $\sigma^*(t)$. It makes no difference whether it would be binomial tree or Mont...
I am currently working on ARMA+GARCH model using R. I am looking out for example which explain step by step explanation for fitting this model in R. I have time series which is stationary and I am trying to predict n period ahead value. I have worked on this model but I am looking out for example where auto.arima() fun...
How would you handle a negative interest rate in index/equity options valuation? An example would be negative rates for short term maturities for Swiss Frank (CHF).
I've read the so-called "leverage-effect" for stocks models the fact that if a company is leveraged, its volatility should increase as the stock price moves lower and closer to the level of debt. Can someone please explain this to me?
Clearly there is a strong relationship between credit spreads and equity prices (both theoretically and empirically). But how would one go about formulating a regression which seeks to explain this relationship? To keep it narrow, let's say we have the following time series data; S&P500, daily % changes Generic 5 yea...
I want to generate a random vector $z$ of dimension $k+m$ with some given correlation matrix $\Sigma$, such that the first $k$ elements of the vector are distributed normally and the last $m$ elements follow the Gamma distribution with some given parameters $a,b$. Hier is suggested (applied to this case) to generate a ...
I am currently writing a paper on asymmetric volatility modeling of brent, gold, silver, wheat, soybean and corn from 1986-2012 and divided them into 4 sub-sample periods (i.e. 1986-1991, 1991-1997, 1997-2005, 2005-2012 and where the no. of observations are: 1515, 1515, 2000, 2000, respectively) and I have some questio...
For a college project I'm tasked with implementing prediction market. Which model of it I'd better choose? I want something useful and simple enough for other people to quickly understand and use. (This project is to be used in campus internally). For now on I'm considering binary option model, but as I understand buy...
I am reading a chapter on bond futures in Fabozzi's book. It states that without CF (conversion factor) the CTD (cheapest to deliver) would be the bond with the longest maturity and highest coupon. Why is this? Higher coupon means higher PV (present value). Can anyone assist?
I would like to know if someone could provide a summarized view of the advantages and disadvantages of the approaches on the volatility surface issues, such as: Local vol Stochastic Vol (Heston/SVI) Parametrization (Carr and Wu approach)
What are the approaches available to price a swaption (either European or American style)? So far it seems Black method is the only one used. Thanks!
Among the several weighting schemes used for constructing volatility indices, which ones are the best for forecasting (realized) volatility? I've constructed a volatility index for emerging markets using a (very simple) trade-weighted approach, which has 84% correlation with the VIX (2007-2012). The construction proced...
In quantitative finance, we know we have a lot of option price models such as geometric Brownian motion model (Black-Scholes models), stochastic volatility model (Heston), jump diffusion models and so on, my question is how can we use these models to make money in practice? My comments: Because we can read option price...
In technical analysis, we may use confluence of direction for 3 timeframes to roughly gauge bias of market now. Similarly, if we use time series forecasting methods to predict(say daily data-whether S&P is going higher tomorrow), how much historical daily data would be optimal(bet 2 weeks-1month-3 months)? Too much or ...
Can anyone tell me whether results as predicted by Brownian Motion for a given mean and std, match what you get by measuring actual drawdown from simulated results over a number of iterations?
I have a binomial option-pricing model (I don't think the details of how its implemented are relevant). However, when I go to calculate vega, I am essentially running the model a second time with new volatility input we call $\sigma + \epsilon$, where $\sigma$ is the volatility used to calculate the price. I then have ...
I've always wondered why do one use squared or absolute returns to determine if volatility modeling is required for the return series? We understand that there are various tests for its autocorrelation and conditional heteroskedasticity. However, I don't quite grasp the concept behind it. Can anyone kindly explain what...
I have been looking into ways to better understand how the dependencies/correlations/etc between two time series can vary over time. I first thought about using a Kalman/particle filter over a linear model to get a time-varying slope estimate. However, I'm worried that this will also pick up changing relative variance...