instruction stringlengths 35 27.7k |
|---|
I'm currently an undergrad at a Canadian university and our finance courses has been brought up through the frequentist approach (ols, hypothesis testing, sampling theory). Only recently, through exploring methods in portfolio management do I realize a lot of the literature suggest using Bayesian methods (ex: Black-Li... |
I hear a lot about offshore and onshore currency, but I don't understand the difference between them. What is the difference between onshore and offshore currency in a country? Besides that, why is there a need for having two different currencies in the country??
|
I need to compare VaR before and after the recession.
I have a series of market returns for a period before, and a series of market returns for the period immediately after.
Both have been bootstrapped 500+ times, allowing me to generate 500+ VaR's.
I have put these VaRs in a histogram, and I was wondering if I coul... |
If an interest rate model with the following $P$-dynamics for the short rate.
$$dr(t)=\mu(t,r(t))dt+\sigma(t,r(t))d\bar{W}(t)$$
Now consider a $T$-claim of the form $\chi = \Phi(r(T))$ with corresponding price process $Π(t)$.
Can anyone help me to find stochastic differential of $Π(t)$ ?
and show that the normalized p... |
I'm looking for a way to make my own Python backtester (like zipline or pyalgotrade) or improve one of these backtesters.
One major lack of these backtesters is the lack of support of bracket orders ("child" stoploss and takeprofit orders linked to a "parent" order)
I wonder how I should model bracket orders ?
|
I will write a test based on Excel and one of the topics is "The Asset Liability related analysis: including the input assumptions generation, constraints, portfolio optimization analysis and results interpretation".
I am a little confused by this description. My guess is they will provide some historical returns of a ... |
I am taking "Financial Engineering and Risk Management Part I" from Columbia University on coursera and I got a seemingly simple question wrong on the first quiz. This is all based on the no-arbitrage arguments. Here is the question:
During the lesson we constructed a portfolio to try to get the value of a forward at ... |
I have heard from several different sources, e.g. professors, books and traders, that daytraders and quants avoid holding positions overnight and during holidays and weekends. Instead, they sell their positions late in the day and buy it back in the morning. The reason is supposed to be that the trader wants to avoid t... |
I have 1 dependent variable and 3 independent variables.
I run multiple regression, and find that the p value for one of the independent variables is higher than 0.05 (95% is my confidence level).
I take that variable out and run it again. Both remaining independent variables have $p$-value less than 0.05 so I conclud... |
Is there any software out there that currently would allow you to scan historical charts and look for a specific pattern and then show you that pattern for a list of stocks. Google finance and yahoo finance have all the charting data needed to visually detect certain patterns, but I was wondering if there was software ... |
Let $C(K,T,S_0)$ denote the price of an European call option with strike K and maturity T on underlying price $S_0$. Assume interest rate $r>0$.
Then of course $C(K,T,S_0) \geq 0$ and $C(K,T,S_0) \geq S_0 - K e^{-rT}$ both to avoid arbitrage.
Consider now $C(K,T_1,S_0)$ and $C(K,T_2,S_0)$ with $T_2>T_1$ and assume
$$... |
Newbie question. I am reading about stationary series and understand that it has many forms:
mean stationary
variance stationary
covariance stationary
My question is does unit root stationary imply all of the above? If I run an augmented dicky fuller test and find that the series is unit root stationarity is that suf... |
I'm trying to learn Black-Litterman. I feel like I get the overall idea from books like Risk and Asset Allocation by Meucci as well as some of the early papers which develop the model. What I would really like to see is a simple example worked out in detail by hand. Say a portfolio with 2 or 3 assets. Can anyone provid... |
I have a European call option with current stock price $S_0$, strike $K$, risk-free rate $r$, volatility $\sigma$, and time to maturity $T$ years.
I assume that the stock price at time $t$, which is given by $S_t$, follows a geometric brownian motion.
I need to use the delta-normal valuation method to compute the 95% V... |
Take a liquid market like US T-bills, notes and bonds... Who would want a long-term security that yielded less than the short?
Even if someone is a long-term lender, why wouldn't they hold the short-term, higher-yielding securities then switch to the long-term securities if and only if they yielded more? Why wouldn'... |
If I have three asset classes and their historical weekly returns for five years, how can I construct a minimum variance portfolio and an efficient frontier plot with Excel? To do that do I have to assume the return is normally distributed?
Update: there's a host of tutorials to plot the frontier for two assets as lon... |
One of the required assumptions for multiple linear regression is that residuals are normally distributed, correct?
After running my regression, my normal probability plot is showing the typical 'heavy tail' S shape.
Does this inability to satisfy the assumption deem my whole model useless? Is there anyway I can get no... |
I'm working out the examples in the paper "Changes of Numeraire, Changes of Probability Measure and Option Pricing", corollary 3.
An option of exchanging asset 2 against asset 1 at time T, its time-0 value under r.n measure $Q$, taking constant rate and K=1, is $$C(0)=E^Q[e^{-rT}(S^1_T-KS^2_T)1_A]$$ where A is the eve... |
I load swap rates data from Bloomberg in excel using the command
=BDH(Ticker,"Px Last",Start_Date,End_Date,"Dts",FALSE)
The tickers I use are "USSW1 Curncy", "EUSA1 Curncy", "BPSW1 Curncy", etc...
First of all, I would like to know what this "Curncy" keyword stand for. Then as I am also interested in LIBOR rates, I wo... |
My Null for the T-test is
h0: -tcritical < Tstat < +tcritical
I require confidence level of 95%.
If my empirical result satisfies the null, but not my p-value requirements,
does this mean that the test is inconclusive? Or that the null is not rejected/rejected?
|
I was talking to a friend recently and he asked me the following question.
If I have a device which perfectly (with 100% accuracy) predicts that both a bond (e.g. AAA rated government bond) and the shares of a listed company (e.g. Google) yield 5% over the next year. If I had US$1 million, which one should I invest in... |
I recently met the claim that for standard put and calls the gamma of the options are always positive. Is this a general result?
I am hoping not to assume any model, especially not Black-Scholes.
|
Suppose I want to calculate VaR for a known distribution with mean $\mu$, variance $\sigma^2$ and $\alpha$-quantile as, $VaR_{\alpha}$ = $\mu + \sigma q_{\alpha}$.
For a Gaussian distribution it is clear that $q_{\alpha}=z_{\alpha}$ where $z_{\alpha}$ is the $\alpha$-quantile of a standard normal distribution with $\mu... |
I am testing cointegration relationship on various pairs of stocks by this following these steps.
Test for I(1) on a pair of stocks, says X and Y, using Dickey-Fuller test. If both time series are non-stationary, I continue to step 2.
Run long-run (equilibrium) equation of stock Y on X, estimate parameters and collect... |
I am reading the part of constructing B&S price for stock paying dividends. The simplest model used continuous yield dividend. But I can not see that rigorous in term of formulations.
Firstly, in case of non-paying dividend. We start by
$$
\frac{dS_t}{S_t} = \mu dt + \sigma d\hat{W}_t \hspace{1cm} \frac{dB_t}{B_t}=rd... |
Can someone please share your research methodology of systematic trading strategies? I feel like I am always using the a same data driven procedures over different underlyings and would like to get some inspiration.
Here is my simple process 1) determine if there is any market regime pattern 2) Find suitable predictors... |
Probably simple question. Consider the CIR (1985) model for interest rates
$$
dr = k(\theta - r)dt + \sigma \sqrt{r}dz
$$
Then it is known in closed form the conditional pdf $f(r(s),s|r(t),t)$ ($s \geq t$)
$$
f(r(s),s|r(t),t) = ce^{-u-v}\left(\frac{v}{u}\right)^{q/2}I_{q}(2\sqrt{uv})
$$
where
\begin{equation}
\begin{a... |
I've been tasked with researching trading strategies relating PCA to trading fixed income futures instruments. Apparently PCA is frequently used in this area. I'm just looking for some references for obtaining a basic idea of what a strategy might look like. I'm not looking for a winning strategy -- just an outline of ... |
In [R] one can pass either a vector or scalar as the risk free rate. What is better? If I pass a vector to (for example) chart.riskreturnscatter then the sharpe ratio lines disappear.
chart.RiskReturnScatter(managers[,c(1,2,3)],0.01)
chart.RiskReturnScatter(managers[,c(1,2,3)],managers[,10])
So is this a feature?
T... |
when I run chart.Correlation I get a series of warnings. I get the identical warnings with
chart.Correlation(managers[,1:2],method="pearson")
Here is a short sample:
1: In plot.window(...) : "method" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "method" is not a graphical parameter
3: In title(...) :... |
I am trying to build a machine learning system for financial price prediction.
I am using a 3 layer MLP (a deep network) with 3 outputs (buy,hold,sell).
I am using different features such as price and volume.
In order to take into account past behavior, I concatenate the price and volume data into one vector.
The first... |
I would calculate Probability of Default from Survival Probability. I want to know how they are related.
This is how I think they are related:
Survival Probability = 1-Default Probability.
Not sure whether the forumla is right. Tried searching in the net, but find the relationship. Need some guidance on how to calcula... |
How to proof B&S pricing formula is continuous in time $t$ (or it is not?).
The general pricing formula is
$$
C_t = e^{-r(T-t)} \mathbb{E}^*[(S_T-K)^+ | \mathcal{F}_t] \hspace{1cm} 0\leq t\leq T
$$
Then for time at maturity $t=T$
$$
C_T = \mathbb{E}^*[(S_T-K)^+ | \mathcal{F}_T] = (S_T-K)^+
$$
which is logic. For oth... |
Hello I'm looking for papers, aside from ones that use CDS spreads, about credit rating development or estimating default probability based on financial ratios that also include methodology and maybe good/bad criteria?
I think the methodology should be something that identifies which financial ratios are important give... |
For deterministic discrete dividend, there are two approach
Musiela approach, works when every dividend are paid at maturity of the option.
Hull approach, works when every dividend are paid immediately after ex-dividend date.
I spend 1 day to understand the Musiela approach, but I can not understand his formula. In h... |
I am a master degree student on applied economics at Brazil and my thesis will be about smart beta strategies. I pretend to apply Equal Weigth, Mininum Variance, Most Diversified Portfolio and Equal Risk Contribution strategies on IBOV, the cap weighted index of Brazilian Financial Market.
I've tried to found some code... |
Reading Gatheral's The volatility surface, page 7.
The model they are talking about is
$$\begin{align}dS_t&=\mu_tS_tdt+\sqrt{\nu_t}S_tdZ_1\\d\nu_t&=\alpha(S_t,\nu_t,t)dt+\eta\beta(S_t,\nu_t,t)\sqrt{v_t}dZ_2\\\left[Z_1,Z_2\right]&=\rho dt\end{align}$$
where $S_t$ is a stock price, and $\nu_t$ stochastic volatility.
Ther... |
I'm trying to get a basic understanding of this example delta ladder
Price Delta
80 43
90 31
100 25
110 11
120 -5
130 -20
140 -12
150 10
160 15
170 30
with spot at 110
So it's long gamma on the upside above 130 but short initially, and short gamma downside.
I want to know in a easy to... |
I have 2 questions:
What is the most commonly used equity option pricing model? I learned jump diffusion at school, read about Hensen and a few other models online.
I am actually only calibrating the surface for easy retrieval of historical data. Right now to answer questions like "what is the implied vol of an option... |
Suppose it is known that the price of a certain security after one period will be one of the $m$ values $s_1,\ldots,s_m$. What should be the cost of an option to purchase the security at time $1$ for the price $K$ when $K < \min s_i$? (This problem is Exercise 5.3 in Sheldon M. Ross, An Elementary Introduction to Mathe... |
For a project, I have to quantitatively implement a strategy for value investing in EURO STOXX 50. I pulled the data from Datastream. When I was checking some data plots for dividend yields and total returns, I noticed there is two times Deutsche Boerse . One is named "Deutsche Boerse" and the other "Deutsche Boerse NP... |
I am building a little Excel file that take some option prices in input and plots the volatility smile/surface.
I have a script that reads market prices from the option chain for 3 different maturities and save the option prices in an Excel file. Each time I save option prices I also save the price of the underlying (... |
Is there an API or APIs similar to the Yahoo! or Quandl APIs, that give the same access to pre and after market data? I know I can scrape the Nasdaq or Yahoo! Finance sites to get a pre/after market price and the yahoo api has a tag for "After Hours Change (Real-time)", but I am hoping for a API with more detail. Note ... |
In a case of a call option with strike $K=0$, then payoff at expiration time $T$ is equal to:
$$(S_T-0,0)^{+}=S_T$$
In reality the price of the option on the date of maturity is never equal to the stock price itself regardless of the strike price.
Why?
More details following comments:
Having the price of the call optio... |
With the forthcoming new regulations, IFRS9, financial institutions will be required to model life time expected credit losses. Consequently, it is necessary to model the term structure of default probabilities for different products/counter-parties. How can one successfully implement such a model?
In current literatur... |
I have an assignment dealing with the stock market and I'm a little lost. My instructions are to come up a method to create a score for a stock then compare the score against what the stock actually earned in 3 time periods (1 day, 3 days, and 7 days). I'm new to coefficients so I have some questions below.
Here is my ... |
I refer to MFM introduced by Hunt [2000]. These models can be seen a subset of interest rate market models. MFM allow us to describe the term structure elements using a set a functions of a low-dimensional Markov process (say 1 or 2).
This gives to the model the ability to calibrate fairly well and to capture the smil... |
I've found some free sources for stock historical data but none that aren't broken links or give me quite what I need. I want...
For NASDAQ, S&P 500, DJIA:
Historical data for the past 5 years that includes a complete list of all stocks in the index, the year end closing price, and the year end shares outstanding.
Seem... |
I've read question, however it doesn't appear as if any of those libraries work for FX data. A Google search for python forex backtesting turns up this project, however I think it needs quite a bit more development before it can be considered useful.
As far as I can tell the two most promising projects are Zipline and ... |
I'm trying to calibrate a Libor Market Model (LMM) in Matlab with my user-defined function, not their package.
I already fitted the market volatilities using SABR but failed to simulate the correct market prices.
Here are my questions:
Has anyone a validation set of cap surfaces and cap prices?
What are the quoting... |
I am interested in calculating the effect of the roll return using different roll strategies. In specific I want to mimic a long-only futures investments. I have historical data for several agricultural commodities. In order to compare the returns of the different roll strategies I created ratio back-adjusted time seri... |
I am taking liberty to ask the following question in quantLib forum though this question is about RQuantLib
I am trying to use RQuantLib to calculate clean price of a fixed coupon bond using a Nelson-Siegel ZCYC. I need to use 30/360 European daycounter to calculate fraction of year between the settlement date and coup... |
In order to examine different approaches to event studies, I am looking for a market anomaly which is simple to replicate in an event study for demonstration purposes. For example, post-earnings-announcemet drift is made tricky by the different points in time over the year at which companies disclose their earnings. I ... |
For the rest of my question I use the notation from Brigo. The discounted payoff of a receiver interest rate swap (RFS) at $t<T_{\alpha}$, where $T_{\alpha}$ is the first resetting date, is given by
$$(RFS)=\sum^\beta_{i=\alpha +1 }D(t,T_i)N\tau_i(K-L(T_{i-1},T_i))$$
where
$D(t,T_i)$ the discount factor at $t$ of tim... |
I have another question about interest rates. In this case it is about swaption and how to come up with a pricing formula. For the rest of my question I use the notation from Brigo. The payoff of a payer swaption discountad from the maturity $T_\alpha$ to the current time $t$ is given by
$$D(t,T_\alpha)N\left(\sum^\bet... |
In an attempt to learn Black-Litterman I have come across this "simple" example. Suppose that you analyze market data using CAPM
$$r_i-r_f=\beta_i(r_m-r_f)+\epsilon_i$$
Suppose there are 2 assets in the market, $r_f=0.065$, and you find that
$$\hat{u}_M=1,\; \sigma_M=1,\; \beta_1=0.5,\; \beta_2=-0.1,\; r_1=0.3,\; r_2=0... |
The question refers to the well-known Ross (1976) paper with the derivation of the Asset Pricing Theory.
In the APT, the return of asset $i$ is driven by a linear factor model:
$$ R_i = \alpha_i + \sum_{j=1}^m \beta_i^j \mathcal{F}_j + \varepsilon_i $$
where $\alpha_i$ is the intercept, $\beta_i^j$ is the sensitivity o... |
I went through some presentations about LowVol strategies for some indices. In the presentations were tables with average returns, vola, Sharp ratio and ATOP. I have no clue what this ATOP is supposed to mean. They interpreted higher ATOP as higher transactions costs. So, what does it exactly stand for and how is it me... |
Why is Weighted Least Squares necessary in fundamental factor model while it is not in a standard Macroeconomic factor model? I understand that $\mathbb{E}[\epsilon^2_{it}]=\sigma_i^2$ varies across observations $i$, but isn't this the same in a macroeconomic factor model?
For reference: in the following model of retur... |
Stock market has been model as a random walk with a drift. Since it has a drift(bigger than zero) it is not a "Brownian Motion" but it still a Martingale?
Is Stock market a Brownian Motion?
Is it a Martingale?
|
I try to understand US treasury in the bond markets provided by bloomberg:
In this webpage, I have a few questions, for instance taking 12month-Bill:
(1) What is the maturity date? I find that it stays always 12 month everyday. Does it mean US government issue 12-month-Bond everyday?
(2) What is the face value? The pri... |
I am trying to implement machine learning to predict the movement of bid and ask price but is unable to find the proper feature for training set. I am using Support Vector Machine for binary classification.
|
in the following stochastic differential equation merton model we have $$\frac{ds}{s}=(\alpha-\lambda k)dt+\sigma dW+dq$$
where $\alpha$ is the instantaneous expected return on the stock; $\sigma^2$is the instantaneous
variance of the return, conditional on no arrivals of important new information (i.e.,
the Poisson e... |
We use historical simulation for risk analysis. I.e. for each bond there is a repricing of the form
$$
P_j = PV(\text{yield curve in scenario } j),
$$
where the yield curve is the zero rates curve of the respective country (for a German bond I take the German curve, for an Italian bond the Italian, ...). The various sc... |
Thanks for opening this question.
I have constructed some rules for a portfolio with annual rebalancing and am backtesting it for the period 1990-2014. I want to compare the risk-adjusted return to the risk-adjusted return of the S&P 500 index.
For every individual year I have calculated log returns of the constituents... |
Thanks for looking into this question.
Portfolio volatility in year 1 = 15%.
Portfolio volatility in year 2 = 20%.
What is the portfolio volatility over the timespan year 1 and 2 combined?
Is it SQRT(0.5)*15% + SQRT(0.5)*20%?
Thanks!
|
I'm trying to figure out some kind of immunization using a factor model I developed for interest rates. Here is the basic problem. Let's say that we have a bond portfolio containing $N$ bonds with weights $x_i$ and one liability. Call the present value of the liability $P_L$. I'll suppose that the bond prices are give... |
thanks for looking into this question. See the picture below (better is right-mousebutton - open in new tab). I also have the price and return data of the Stocks if that's needed to calculate the total 2-year period volatility.
|
I have no problem with the mathematical definition of an Asian option. For example, assume the strike price is $K$, the expiration date is $T$, the underlying asset has price $S(t)$, and the payoff is
$$\left[\frac{1}{n}\sum_{i=1}^n S(t_i)- K\right]^+,$$ with the expiration date $T=t_n$.
Say, I bought an Asian option ... |
It seems like the field has become stagnant in the decades following the enormously successful and influential Black Scholes model. (The original paper has been cited a staggering 25,000 times - more than ANY economics paper, by far.) There is also the CAPM and GARCH models, but those were decades ago. Now we have Bla... |
thanks for looking into this question.
I am comparing an investment strategy against the S&P 500 for a financial article I'm writing.
I compute volatility of the Portfolio in this way, as the square root from the variance computed like this:
[This is for 4 stocks, but it can of course be extended to an amount of i st... |
I am trying to implement a project about the BGM model, suggested in the book "The Concepts and Practice of mathematical finance" by Mark Joshi.
My question is related to the forward volatility structure, particularly about the covariance matrix. First of all, the book assumes that forward $f_j$ has volatility
$$
K_j \... |
When I first encountered the definition of integrals with respect to Ito processes (Shreve's Stochastic Calculus for Finance Vol II), I didn't think twice. However, I wanted to see if the definition could be derived.
In the rest of this post $\bar{f}$ is such that $\bar{f}'=f$ and $t_{j}^{f}$ is such that $t_{j}\leq t... |
I'm trying to program a volatility updating rule using iteration. I start with the well know Heston-Nandi model where the returns dynamics are :
with is iid standard normal randome variable, where is time-varying squared volatility, , and .
I want to do is to write the code associate to the volatility updating rul... |
I am doing a thesis about firm survival in time of crisis (2008-2009) and I would like to know where can I find publicly available database about company bankruptcy.
Since I have thousands of companies, it will be very crucial if the database is such that I can upload all of my indexes in one file rather than searching... |
Good day
I would like to know how to download the intraday data regarding a particular stick exchange at one time, (I need to analyse all the equities listed on it)
Second I need to verify that my understanding is correct regarding to what is displayed on the screening so (bear with me please)
1). the size 7838 *10,48... |
I am trying to find the geometric return for semi-annual log-returns in Excel. However, I do not know how to handle values less than -100%....
Dates RETURNS
6/29/00 17:00 -3.29%
12/28/00 16:00 26.05%
6/28/01 17:00 -13.26%
12/30/01 16:00 -3.42%
6/27/02 17:00 0.00%
12/30/02 16:00 -5.69%
6/29/03 17:00 5.75%
1... |
I am trying to solve a optimization portfolio in R in which I do the following constraints:
Set weight sum to within a boundary
Set return to a certain value
Set portfolio beta to 0
The purpose is then to minimize risk subject to the constraints above.
While I have no trouble in doing that my issue comes next. I wan... |
What is Longevity risk, and how to model it under DC and DB pension plans?
characters|characters|characters|characters|characters|
|
I'm looking into this article about var swaps: http://sbossu.com/docs/VarSwaps.pdf and not sure how to correctly interpret Exhibit 2.1.1.
"In this example an option trader sold a 1-year call struck at 110% of
the initial price on a notional of 10,000,000 for an implied
volatility of 30%, and delta-heged his positi... |
I'm looking to do a research paper on the impact of high frequency algo-trading on individual firms.
In order to do that I need to be able to determine firms that have been high frequency traded.
My plan is to find raw trade logs, and parse them looking for patterns which indicate that they are being algo-traded.
I hav... |
I am attempting to use the function estim_nss from the termstrc package in R. However, I am experiencing the following error:
Error in uniroot(pvcashflows, searchint, tol = tol, maxiter = 3000) :
f() values at end points not of opposite sign
I read the manual and I have checked that I have specified my data input ... |
Long case:
Assume I am Long 50 shares and there is a 2 for 3 reverse split.
Let's denote the quantity of stock by x
Prior to the split Portfolio is $-cash_0$ $+50x$
I am then at $-cash_0 +33x +\frac{1}{3}x$ after the split
The $\frac{1}{3}x$ is converted into cash with proceeds $P$ known as cash in lieu
so $cash_1 ... |
This is actually an exercise from a course. But I don't completely understand the wording of the question.
A stock is now trading at 100 dollars.
Its price over the next 6 months evolves as a two step binomial process.
Over each 3 month period, the price can go up by a factor $u$, or down $d=\frac{1}{u}$.
The annual ... |
According to the Matlab help, Portvar will give the "Variance for portfolio of assets" by entering the returns of the Assets and the corresponding weight. However, it does not explain the parameters behind this formula.
For example, on which correlation matrix is Portvar based? What are the hidden "hypothesis" made by... |
I am trying to build Japanese Yen interest rate curves. When defining the curve instruments for the 'OIS' (discount) curve (aka TONAR), I am uncertain as to which rate to use for the overnight deposit at the short end. Should I be using the offshore jpy depo rate or the onshore BoJ depo rate; and why?
|
We receive daily end-of-day data from a data vendor (i.e. not direct from an exchange) and are comfortable with this.
We are now wanting to receive live data, and after a few enquiries we are feeling tempted to go direct to the exchanges rather than to a vendor.
Obviously we expect the work of dealing with live feeds t... |
I am doing a research paper on the effect of algo-trading on capital markets.
In order to do this, I plan to do an OLS comparison of Countries and Exchanges who ban algo-trading platforms and those who allow it.
After some googling I have been unable to find such a list.
Therefor, my question is this: What countries an... |
In Black-Litterman we get a new vector of expected returns of the form:
\begin{align}
\Pi_{BL} = \Pi + \underbrace{\tau \Sigma P^T[P\tau\Sigma P^T+\Omega]^{-1}}_{\text{correction}}[Q-P\Pi]
\end{align}
where $P$ is the pick matrix and we mix the prior $\Pi$ with the expected value of the views $Q$. $\Sigma$ is the histo... |
The implementation of TTR:RSI differs slightly from the RSI calculated in Bloomberg, see more details here.
I use in TTR the SMA, which simply calculates the mean, that is a walking window of:
Sum of gains and losses over the 14 days (assuming it's the 14 days period)
In Bloomberg this is done only for first 14 days... |
I am trying to make a Limit Order book from an ITCH file using r. what is the basic difference between orderbook and limit orderbook? R has a package for orderbook I think
|
Suppose I have a general SDE
$dx_{t} = \mu dt + \sigma dz_{t}$
Then I can put $E[]$ on both sides to get
$E[dx_{t}] = E[\mu dt] + E[\sigma dz_{t}]$
Now comes the question: I've seen some formulas where
$E[dx_{t}]$ becomes $dE[x_{t}]$
Is it ok to swap $E[.]$ with $d[.]$?
Thank you.
|
I have two implementations for finding the implied volatility under Black-Scholes formula. One is bisection and the other is brent's method. (I know Newton-Raphson is popular due to speed and will support this as well later...).
My question seems to be related to this question: Lower bound of ITM Calls when computing I... |
I've heard a question regarding pricing of european calls. The question is:
Is the call long or short in volatility when it is (deep) OTM? What is
the profile of the implied volatility?
I know that in that case the answer is "long". Conversely the call would be short in vol if it was ITM.
I see a relation between... |
Least Median Squares is often argued to give more stable results than does OLS. Whereas in OLS one minimises the mean of squared residuals, in LMS, one instead minimises the median of squared residuals. Intuitively, should give estimators that are largely (completely?) invariant to outliers. As such, i would have th... |
In the artcicle Forecasting and Trading the High-Low Range of Stocks and ETFs with Neural Networks HCNN is used for forecasting of nine time-series, namely:
returns of the lows
returns of the highs
five-period exponential moving average of the lows
five-period exponential moving average of the highs
five-period lowe... |
I would like to understand better the $n^{th}$ to default pair spreads of a basket default swap containing $m>n$ entities.
For example, consider 2 single name CDS's with same spread and same tenor (let's say 2 years). What can we say about the first-to-defalt and the second to default pair spreads ?
|
I have a question that seems basic but has given me fits. If I have the following known variables, how do I solve for the growth rate?
Known variables:
initial payment
outstanding balance
number of periods
I need to solve for growth rate of payment where the cumulative value equals the outstanding balance... assume ... |
Suppose somebody provides us with a surface of European call prices $C(\tau,K)$ where $\tau$ stands for time-to-maturity and $K$ for the strike. By Dupire's results, there is a unique local volatility function $\sigma(\tau,K)$ that generates these prices, and it can be expressed from them as
$$
\sigma(\tau,K) = \frac... |
I have a question about the definition and understanding of libor rates. We have the time to maturity tenor, $T$, which is the time over which i borrow or lend money. For libor we also have the reset date, i.e. in Bloomberg we find USD 3 Month LIBOR 25 Year. What does this exactly mean? Here the 3 Month is the reset te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.