instruction stringlengths 35 27.7k |
|---|
I'm trying to implement Black-Litterman for an arbitrary selection of assets.
One of the input for BL is the "Equilibrium market capitalization weights for each asset".
In most examples I've seen, the assets are represented by different market sector so the market capitalization is based on the sector share.
What shou... |
Recently I came across the problem of amortizing swaps. This is an agreement, where fixed payments and floating payments (e.g. 3-months LIBOR + spread) are exchanged based on a notional that is reduced (=amortized) according to a fixed schedule.
Are there good references for a precise formula?
Are there simple formul... |
What are fashionable applications of Fourier analysis in trading? I have heard vague ideas of applications in High Frequency Trading but can somebody provide an example, maybe a reference?
Just for clarification: The approach to split up a stock price in its cosines and to apply this for forecasts or anything similar s... |
Why C is still in use especially in area of numerical optimization (instead of C++) ?
C and C++ aren't fully compatible so mayby you know some differances that make the difference ?
|
When making simple agent-based models of banking systems to look at global properties (say systemic risk) one of the basic decisions you have to make is how to model returns on external (to the banking network) assets. The goal is to have as simple (and general) of a model as possible, without it being fundamentally un... |
I am wondering which method makes more sense when computing log returns. I am trying to compute log returns for realized variance, and I have the opening and closing prices for every minute.
Since the log return is defined as
$$r_{t+1} = \ln \left(\frac{p_{t+1}}{p_t} \right)$$
should I take the average of the open and ... |
I was wondering if those who used the entropy pooling code provided by Attilio Meucci had issues with the optimization procedure (especially regarding the fminunc function in Matlab). When I stress for example the expectation and the volatility, I get weird results for some stress values
and the following warning:
Lo... |
According to some textbooks, to derive the yield curve, quote
overnight to 1 week: rates from interbank money market deposit,
1 month to 1 year: LIBOR;
1 year to 7 years: Interest Rate Swap;
7 years above: government bond.
I'm a bit lost here: how can an IRS rate be used to derive yield curve?
Yield rate is the dis... |
Say I'm building an order book and two bids come in at price $p$ and volumes $v_1$ and $v_2$. Which option is better
To store the order as $\{p, v_1+v_2\}$ or
To store the order as $\{p,v_1\}$ and $\{p,v_2\}$ and then manually aggregate orders when I need, say, a bestBid value
Is there any analytical insight that can... |
I am trying to find a good book which focuses on the model calibration. I just want to know generally, what are the most common methods of model calibration(such as Black-Scholes Model, Stochastic Volatility Model(Heston), Jump-Diffusion Model, Hull-White Model and so on, all the models which are at a master level of M... |
assume I have implied FX volatility Delta-Term table from broker. I have time noticed as 2M, 3M. what do I have to put into BS formula, is it 2/12 or "count the business days"/"daycount basis"?
I am confused with the notion of time.
|
Can I use DOM information from Interactive Brokers? Does it make sense?
I assume that it makes sense to apply some volume based algorithms only then when you know this order book, that you can get info about is really market book. If it represents the main part of the market, otherwise this information is negligible ... |
I believe that one of the most compelling case of long-term trade is the long position on oil. Fundamentally, it seems quite clear that demands is going to grow in the future as emerging markets start using more and more energy, whereas supply is likely to be limited as the resource are vanishing or at least are more e... |
I am attempting to model a cumulative time-series of a positive integer variable across independent entities. The cumulative series appears to follow a process of Geometric Brownian Motion (GBM) based on lognormal distributions seen cross-sectionally at each time point.
The standard treatments and estimation methods f... |
I am trying to use the EMD applied to EURUSD open price to train a machine learning algo (RVM).
I have run only once the EMD on my training set and once on the training+test set.
The results on the test sets only are quite good. However when I apply the algo on the last sample only the predictions are bad.
Shall I run ... |
In the paper "Liquidity Risk and Risk Measure Computation" authors describe a linear supply curve model for liquidity risks in presence of market
impact, i.e. impact-affected asset price $S(t,x)$ is proportional to unaffceted price $S(t,0)$ and to traded volume $x$ with some coefficient $\alpha$.
Under the diffusion (... |
assume I have following delta-term vol data from broker:
Spot 3.4550
O/N 1WK 2WK 3WK 1M 6WK 2M
Volatility 7.544 7.7 7.731 7.911 8.025 8.18 8.4
Forward Points 0.0004 0.0021 0.0045 0.0063 0.0079 0.0106 0.0164
EUR Depo Rate 0.405 ... |
does anyone know for sure what is the FX market convension to quote delta-term pairs for EUR/PLN, for EUR/USD. I know that for EUR/PLN it should be delta p.a forward, for EUR/USD it should be delta spot to 1y and delta fwd from 1y ahead.
but I am not sure from my results, particularly for EUR/PLN pair.
|
Algorithmic trading involves the use of algorithms to optimally execute trading instructions. Then there are algorithms which initiate trades, based on various quantitative strategies (e.g. pairs trading).
I have the impression that "algorithmic trading" (or automated trading) is often used for both types of algorithms... |
Housing loan market vibrates according to the policies, such as
LTV rate, for example, if must pay 20% downpayment, LTV rate would be 80%
interest rate, for example, lifting the loan rate, the market shall shrink
loan tenor, for example, if a new policy limits Housing loan to 10 years, the market will change drastical... |
I had a discussion recently about the stability of volatilities and correlations. If we take for example stocks and bonds (think of DAX and Bund) then I have seen changing volatilities (something like $30\%-15\%$ vola pa. for DAX) in the last years but a consistently strong negative correlation around $-0.5$.
Commerci... |
To compare two risky portfolios, Mean-Variance (M-V) portfolios for example, many compare their Cash Equivalent ($CE$). $CE$ is defined as the amount of cash that provides the same utility as the risky portfolio:
$$U\left(CE\right)= W\left(w\right)= w'\mu-\frac{1}{2}\lambda w'\Sigma w$$
where $W(x)$ is the investor's ... |
Apologies if this is an overly simple question. I have a series of stock returns, and I would like to estimate my portfolio's ex-ante tracking error versus the benchmark (S&P 500) given the current relative weights and historical returns. However, for many of the stocks there are very few returns (<36 weeks).
What is t... |
Modeling Exchange Rate Using GARCH
Let's consider the following exchange rate : USD/JPY
For each sequence, we consider changes in the daily difference between the highest price and the open price of the underlying exchange rates.
Thus, if:
$O(t)$ is the open price of the underlying exchange rate at time $t$, and
$H(t)... |
In Canadian fixed income markets there is a nice handbook called Canadian Conventions in Fixed Income Markets (PDF). It contains detailed market standard pricing formulas for calculating prices, coupons, accrued, and other values for various types of bonds.
Is there a similar book for US fixed income market, or its be... |
I'm trying to backtest Pairs Trading but have become a bit confused on the different methods of selecting pairs, how to look for trading signals and what size of the positions to take in the assets.
What I'm doing right now is that I'm testing for cointegration amongst pairs, which I'm doing with Engle-Granger to get t... |
I am doing some modelling and have some data:
Index XYZ 1
1994-02-01 -0.005128205 0.994871
1994-03-01 0.013089005 1.007893
1994-04-01 0.012224939 1.020215
1994-05-01 0.018518519 1.039107
1994-06-01 0.017817372 1.057622
1994-07-01 0.019438445... |
Background: Kupiec P. in 1995, published paper "Techniques for Verifying the Accuracy of Risk Management Models" on Journal of Derivatives, v3, P73-84, it's a Unconditional Coverage Tests designe for VaR model.
This "proportion of failures" or POF test examines how many times a financial institution's VaR is violated o... |
Let's decompose the return process $R_t$ as follows :
$$R_{t} = sign(R_{t}) * |R_{t}| $$
What's part of the equation is forecastable?
|
assume I have following delta-term vol data from broker:
Spot 3.4550
O/N 1WK 2WK 3WK 1M 6WK 2M
Volatility 7.544 7.7 7.731 7.911 8.025 8.18 8.4
Forward Points 0.0004 0.0021 0.0045 0.0063 0.0079 0.0106 0.0164
EUR Depo Rate 0.405 ... |
I want to fit the following model to a time series:
$$
y_{t}=\alpha_{0}+\alpha_{1}y_{t-1}+\alpha_{2}y_{t-1}^{2}+\lambda h_{t}+\varepsilon_{t}
$$
$$
h_{t}=\beta_{0}+\beta_{1}\varepsilon_{t-1}^{2}+\beta_{2}h_{t-1}
$$
How can I do this with R or with any other statistical software?
Thanks
|
Where to find the following paper of the noble prize Paul Samuelson (2003) “When and Why Mean-Variance Analysis Generically Fails,”. I was looking for it desperately on Google and Google Scholar but no results. Please help in case you have seen it.
|
Does anyone know how I can obtain time and sales data for a stock?
Lots of feeds provide the total volume but I would like to see the breakdown of what buy/sell orders made up the day's volume.
I would like to get this via an API so I can analyze it in my code in real time as the market is trading.
Thank you for your h... |
Edit
I am assuming that I don't need to use margin account to short here:
What is a standard way to calculate return for pairs trading strategy? For example, I bought 100 dollars worth of a loser (L) and shorted 100 dollars worth of winner (W), and when their prices converged I sold L for 110 dollars worth, and paid 90... |
I found references relative to US where the Nominal Annual Percentage Rate or simply APR is defined as the simple interest rate (i.e. proportional to time and without compounding).
Instead the effective APR or Annual Percentage Yield (APY) takes into account the effect of interest compounding. Also in US there ar... |
I am writing about VaR and I am wondering about the following:
We can scale the VaR to different time horizons by using the square root of time, which means, that the volatility is adjusted by square root of the time horizon. So e.g. we have the daily volatility then the weekly volatility (for 5 trading days) is given ... |
If a random variable is discrete, and we are interested in its quantile value, how to define a proper back testing procedure?
For example, the underlying variable with a discrete value is
$$
d(\mbox{account}) = \mbox{PaymentDate} - \mbox{BillingDate}
$$
the observing variable:
$$
y = \mbox{percentile}(d, 95\%, \mbox{m... |
Recently I have looked at some sovereign CDS spreads (of the Nordic countries to be precise) and have tested for cointegration in the levels (i.e. untransformed) and logs of the spreads. Tests indicate that a cointegrating relationship exists between certain pairs.
My questions are: how would one go about setting up a ... |
Suppose $X$ is a normal random variable with mean 0, and variance $\sigma^2$. $F(x)$ is the CDF(cumulative distribution function) of a standard normal random variable(mean 0 and variable 1), how to calculate the expectation of $ F(X+a)$, where $ a>0 $.
This was a quant interview question. I know how to calculate the e... |
I am trying to get a simplified model of the DV01 for the US 10YR Note futures but I cant figure out what the current yield is. When I back out the implied interest rate on the current TYM3 futures contract (as of 3.12.13) I get a YTM of about 2.53, however the current GENERIC 10 Year yield or TNX is only 2.03 or so.
... |
Can we please sumarise here some of the basic concepts, tools used in arbitrage and statistical arbitrage in real life?
ARB: benefit from price difference on same asset
ARB: difference between stock index and syntetic index constructed from stocks
ARB: triangular arb (is this being exploited? by who? where?)
ARB/STATA... |
I have a fairly pedestrian optimization problem: Max sharpe, subject to a x% vol target. I have a set of expected returns, asset vols and a correlation matrix. I am finding that when i set the off-diagonals of my covariance matrix to 0 (ie assume zero corelation, independant views on assets) my backtested performance r... |
I noticed that if you use two correlated geometric brownian motions, the correlation structure decays in time pretty fast even for really high correlation values.
I think that is not replicating reality, is it?
I wondered how people solve this problem in practice?
Specially for pricing of spread options.It overprices... |
I am using a large daily data panel for over 250 companies and over several years. I am concerned about adjusting for stock splits. Is there any program in SAS to detect stock splits? How do I adjust the stock splits?
|
A standard example when learning to price American options is the perpetual American put. This is a put that has no expiry (or you can consider T = infinity). The standard solution prices this using the basic Black-Scholes assumptions (including no restrictions on short-selling) and ends up concluding the optimal exe... |
I'm currently working on some matlab code that is supposed to check a stock database for any errors (missing values, wrong values, etc.). The reason for this is that after reading this post I came to the conclusion that I'll probably have to write some data cleaning code in order to get accurate and reliable results wh... |
Doe's any one know the history behind, or background of the multiple naming conventions for the equivalent risk functions. Different quant authors prefer using different names, does any one know why? which came first? why do some quants prefer one over the other. What is the history behind all of this.
ES - expected sh... |
How does $\Theta$ change for deep out-of-the money options? Looking at the below graph, it seems the time decay is highest for ATM options and increases rapidly as we approach maturity of the option. From the graph, it seems the deep OTM options have flat $\Theta$ throughout the entire term strucuture. Shouldn't the OT... |
When using following risk-neutral random walk
$$\delta S = rS \delta t + \sigma S \sqrt{\delta t} \phi$$
where $\phi \sim N(0,1)$.
Now when a text mentions drift = 5% does that mean that interest rate (r) is 5%?
|
Is Kolmogorov-Smirnov test self-sufficient to prove normal distribution of a time series? And then test efficiency of a market?
|
In the draft chapter about hedge funds of his forthcoming book Andrew Ang postulates the dawn of new factor funds (p. 35 ff.), i.e. funds that directly target factors like volatility, value-growth, size, momentum etc. and give investors direct access to factor risk premiums much more cheaply.
On the other hand the Wall... |
I know this is a naïve question but how does the BS formula have a closed form solution? It seems from what I am reading Price impacts delta, price influences volatility which in turn influeces delta and gamma. BS seems to be an endogenous models. Is price the only exogenous variable in the model? How can find a closed... |
This is more of a general question at this point, but if my thought process makes sense I will follow up with an R implementation. I have read a number of papers on cointegration analysis for pairs trading. My thought was to apply cointegration to an analysis of investment manager returns. Typically investment-manager... |
Lévy processes are self-decomposable and independent on any non-overlapping interval, so how come the distribution of the process at time T,$\phi(T)$, which is the sum of N i.i.d with law $\phi(T/N)$ is not normally distributed ?
I cannot find what am I missing here ?
|
I Calculated facebook option(expired in 12/4/13) Implied Volatility with the Bisection Method. The program will be attached at the end. The results for different strike prices are so different:
call put call put put
Stock Price 26.55 26.55 26.55 26.55 26.55
Strike Price 26.5... |
Suppose I have 2 stocks $S_{1}$ and $S_{2}$:
\begin{align}
& dS_{1}=rS_{1}dt+\sigma_{1}S_{1}dB_{1}\\
& dS_{2}=rS_{2}dt+\sigma_{2}S_{2}dB_{2}\\
& dB_{1}dB_{2}=\rho dt
\end{align}
Then I have a option A with payoff $(S_{1}+S_{2}-K)^{+}$
and another option B with payoff $(S_{1}-S_{2}-K)^{+}$
Question: I want to know the r... |
Is there any known solution (preferably open source) to map between ticker symbols, Reuters and Bloomberg symbols. For example:
Ticker: AAPL
Reuters: AAPL.O (may be prefixed with RSF.ANY. dependent upon infrastructure)
Bloomberg: AAPL US Equity
Edit: by mapping I mean translating from one symbol naming convention to ... |
I'm building some models, for example, Bad Loan (NPL) rate.
It's based on historical simulation method -- basically it's saying the future behavior could be predicted by history data.
However, this is not always true, when the market changes. For example, when 2008 financial crisis came, NPL rates went up; when there's... |
I am trying to get historical data for credit risk and do some analysis on it as a school project. I thought CDX index might be a good proxy for typical credit risk data, but I am not sure. Typically what might be a good and also accessible set of data for credit risk of a financial institution.
Also, if CDX is a goo... |
I was trying to run some Monte-Carlo simulations and if I used:
rng(seed, 'Twister');
For some reason I would get "Option Values Can not be Negative" errors in the blsimpv function, but if I just use the rand (seed) function, the problem seems to be OK (having everything else the same).
My question is, aren't both of t... |
I am just wondering if there is any problem with the so-called "exact" Heston simulations? So far what I have seen are the good things about it, what are the disadvantages? Because if it is so perfect, why is everyone not using the "exact" simulation since it would reduce the discretization error?
Thanks!
|
Let you have only three underlyings, like SPY, TLT and GLD, and you want to buy $n_{1}$ Call options on SPY, $n_{2}$ Call options on TLT and $n_{3}$ Call options on GLD... with a limited budget, that is obvious.
You know those three underlyings, $S_{i}$ where $i=1,2,3$, are correlated as explained by $P$ correlation ma... |
In the academic applied probability/math finance community, Backwards Stochastic Differential Equations (BSDE's) are extremely popular, and they provide a single framework for several different problems, notably hedging and utility maximization, where models of market imperfections might stop older models. The basic s... |
So basically
$dS_t=\mu S_tdt+\sigma S_tdWt$
and
$\mu=r-\frac12\sigma^2$
I have just been thinking about this later equation. This is very interesting because it ties together risk-free rate, volatility and asset drift. I always like and try to look at equation from some simple perspective, for example assuming tha... |
I have constructed a mean reverting spread using two indexes. I know they have to be mean reverting, but when plotted side by side they are mean reverting for a little bit and then deviate and head one direction, all because of a few returns. I was wondering what the proper way of normalizing the trend or dealing with ... |
There's 30 days worth of data at http://www.otcmarkets.com/marketActivity/symbol-changes - but I'm really looking for the past 10 years, or 5 years if only that is possible. Any dice?
The closest I've come, and this is not really cutting it, is looking up a stock via Yahoo! Finance and seeing "TICKER is no longer valid... |
From this paper. page 3
We get that the total profit at expiration is the difference in value between the price of the option with actual volatility and the one with implied volatility.
I have tried solving the integral but I don't get the same result. I especially don't understand why the incremental value in both opt... |
Volatility skew tells us that options with the same maturity at different strikes can have different implied vol. However, can a corresponding call and put for the same strike and maturity have different implied vol?
|
Has a relationship been noted?
Mostly, I'd like to know if the open interest increases on an underlying, does the underlying usually see increased trading?
My guess would be "yes" since MMs can only mostly hedge with the underlying, and they must constantly rehedge (buy or sell) the underlying everytime the underlyin... |
I don't know if I'm doing this right and I'd greatly appreciate help.
I'm trying to use an option pricing formula to backout the likelihood of the Euro dropping below $1.27, even for a minute, at any time by April 10. My calculations are in an excel worksheet labeled "Current" here:
https://www.dropbox.com/s/sggti4iji... |
Adding more variables to a model usually increases its accuracy. However, without adequate analysis it could also lead to curve fitting.
Another question (How much data is needed to validate a short-horizon trading strategy?) received answers related to the statistical significance of the standard error of the model. ... |
Assume a money market has interest rate process $R(t)$. In Shreve's Stochastic Calculus for Finance II, formula (5.2.17) on page 215 defines the discounted process as
$$
D(t) = e^{-\int_0^t R(s) ds}.
$$
Why is $D(t)$ called "discounted" process?
Does it mean that any value at time t times $D(t)$ will give its present ... |
I consider pricing and risk analysis of derivatives on dividends of the members of equity indices (such as Dow Jones EuroStoxx). There are options but I focus on futures.
What are common stochastic models for dividends that allow pricing of such derivatives respectively risk analysis?
What are practitioner approaches ... |
Lets say we have "today's" snapshot of asset allocation and need to determine the 6mo, 1 yr and 5 yr risk and returns of this portfolio. If the time series for every asset is very long, longer than the longest time horizon of interest then it's simple. Just compute the portfolio returns => get mean and standard deviati... |
Which of the following statements is correct?
a. If a bond’s yield to maturity exceeds its coupon rate, the bond’s current yield must also exceed its coupon rate.
b. If a bond’s yield to maturity exceeds its coupon rate, the bond’s price must be less than its maturity value.
The correct answer is b. I would like to kno... |
Trying to use a linear regression model to forecast the CPI. I noticed that when I took a moving average of the residuals, though homoscedatisc and nonautocorrelated (i.e. they squiggle up&down with no uniform pattern), that they seemed to move in the same direction as the CPI. That is the moving average of the residua... |
I know that the long run variance of the standard OU process is
$\lim_{s\rightarrow \infty}\mbox{Var}(P_{t+s}|P_t) = \frac{\sigma^2}{2\theta}$
I'm using the geometric version of the process. I used the simulation equation
$P_{t}=P_{t-1}+\theta\left(\mu-P_{t-1}\right)+\sigma P_{t-1}\epsilon_{t-1}$.
SRKX posted a d... |
I've been reading up on different models used to forecast the equity risk premium, and I've seen a couple of papers that had questionable methods. For example, this paper by Javier Estrada goes into detail on how to use the Shiller PE ratio to forecast 10-year equity returns.
And this paper, which looks to be a draft, ... |
I'm working on market trends. I have daily prices for 33 assets from different markets. I was wondering if there is a way to cancel the effects of different opening/closing times.
I have been told that a moving average over four days would be enough; I think a weekly moving average should improve many thing. As I obser... |
I consider pricing and risk analysis of derivatives on dividends of the members of equity indices (such as Dow Jones EuroStoxx). There are options but I focus on futures.
What are the main risk factors for dividends?
Which quantitative factors do you consider in the context of derivatives on dividends?
I found a nice... |
What is the condition for underlying stochastic volatility processes to give a consistent covariance matrix?
I read in Hull that in order to have a consistent covariance matrix, volatility parameters should be estimated using same model. Does that mean, for example, if I am using a Garch(1,1) model with some parameters... |
I've written some code to calculate European option prices using the Black-Scholes analytical method. Can somebody recommend a good way to test that code? I have looked at option pricers online like IVolatility. However, I'm not sure if they use the method I am trying to test.
|
Apart from the model of Geometric Brownian motion is there any other "widely accepted" stochastic model to characterize the dynamics of a stock price process?
|
Can you use the variance ratio test to determine whether or not a time series is mean reverting? I'm using the Lo.Mac function in the vrtest library in R.
I've used the test to reject geometric Brownian motion as a price process. Does that indicate that I have a mean reverting process or does it only indicate that the ... |
Have the exchanges disclosed their criteria?
Does anyone have a best guess based upon observations of volume (however you wish to define it)?
Please no qualitative answers.
|
I am new to regression analysis. Let's say initially I have a linear regression
x = alag(x1) + blag(x2) + clag(x3) -- eq 1
I want to predict the price x based on the the price of x from previous days.
Let's say I believe that lagged volatility y and lagged range (high - low) z also would affect today's price, how coul... |
I have created a VBA program to calculate VaR by using Monte Carlo, I have simulated Brownian Motion. This method might be ok for 100% equity portfolio, but let's say this portfolio may have fixed income/alternative investment/derivative etc and that composition percentage may or may not be known to me. In that case as... |
I want to fit a distribution to my financial data using a volatility model to estimate the VaR. So in case of a normal distribution, this would be very easy, I assume the returns to follow a normal distribution and calculate a volatility forecast for each day, so I have $\sigma_1,\sigma_2,...,\sigma_n,$. I can calculat... |
I often hear in the news that High-Frequency Traders can front-run incoming trades because they are faster at acquiring information and to execute trades. I also read that speed is only a necessary condition but not sufficient. The other necessary condition concerns the "special order types" that HFTraders have access ... |
Lets say I have the returns of two stocks(stock1 and stock2). Now without running a regression, I lag one of the variables, calculate the correlation between the two stocks and repeat this process as I keep stock1's returns fixed as I continually lag stock2's returns forward. What are some valid statistics that one cou... |
I've developed some software which generates sets of trades, and I'd like to backtest those trades. My software currently outputs a CSV file with details of each trade:
2011-03-31,MSFT,Buy,100
2011-04-02,AAPL,Buy,50
2011-05-10,MSFT,Sell,100
Is there any backtesting software out there that lets you bring in a set of yo... |
Original Question: What is the link between Gamma and the Volatility Risk?
It leads me to ask:
- What is the Volatility Risk definition and what are the good practices to measure it?
Thinking about that question, all I could figure out liking with it is this:
Consider a market $(S^0, S)$ composed of one non-risky asse... |
Consider a probability filtred space $(\Omega, \mathcal F, \mathbb F, \mathbb P)$, where $\mathbb F = (\mathcal F_t)_{0\leq t\leq T}$ satisfing the habitual conditions and isgenerated by $1 d $- Brownian Motion (with $\mathcal F_T = \mathcal F$).
Also, consider a finantial market where the interest rate is nul, $r=0$, ... |
Consider a probability filtred space $(\Omega, \mathcal F, \mathbb F, \mathbb P)$, where $\mathbb F = (\mathcal F_t)_{0\leq t\leq T}$ satisfing the habitual conditions and is generated by $1 d $- Brownian Motion (with $\mathcal F_T = \mathcal F$).
Also, consider a financial market where the interest rate is nul, $r=0$,... |
I am attempting to come up with an algorithm to iterate through every possible path of a trinomial tree and am having difficulties coming up with one. Is there any literature on this or has anyone else written something similar?
To be specific I am trying to calculate the P&L of stock trades from node 0 to every possib... |
In calculating the Sharpe Ratio, should I take into account the days were I have 0 return due to non-trading day? Another user posted a similar question but this was related to trading days with no open position. This is actually the same issues but then related to return history and inactive trading days. When analyzi... |
Suppose I have the following model:
$$r_t=\sigma_t * \epsilon_t$$
where $r_t$ is the return at time t, $\sigma_t$ is the volatility, the model used to model this volatility is an exponentially weighted moving average with known parameter $\lambda$. $\epsilon_t$ is a random variable distributed according to the hyperbol... |
if I have two asset prices modeled separately as geometric brownian motions. How do i go about calculating the expected statistics of their difference? Like given the sigmas and mus of both processes, and their correlations, what would the standard deviation of that difference/sum be?
Is there an analytic solution for ... |
The GBM is defined by
$
dS(t) = \mu S(t)dt + \sigma S(t) dW_t,
$
with analytical solution
$
S(t^\prime) = S(t) exp\left[\left(\mu-\frac{\sigma^2}{2}\right)\left(t^\prime-t\right)+\sigma\left(W(t^\prime)-W(t)\right)\right].
$
What is the analytical expression for the covariance,
$
Cov[S(t),S(t^\prime)]
$
?
|
According to this link I try to get intraday data of SAP listed at Xetra.
Intraday data with timestep of 1 second would be great. I do not understand parts of the command, I try
http://www.google.com/finance/getprices?q=SAP&x=ETR&i=60&p=5d&f=d,c,o,h,l&df=cpct&auto=1&ts=1266701290218
Now, first thing I ask myself: Why i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.