3
votes
1answer
103 views

What is the heat-map method of calculating VaR?

I'm familiar with the historical full revaluation, VcV, and Delta-gamma methods, but a client keeps talking about a heat-map method and I'm not sure what he's talking about. Any ideas?
0
votes
3answers
111 views

Merton model riskless self-financing derivation

Suppose $dA_t = A_t[\mu dt+\sigma dW_t]$ (assets' value) under the physical measure, plus the other assumptions of the Merton model. Suppose further that debt and equity are tradeable assets that ...
0
votes
2answers
126 views

Step By Step method to calculating VaR using MonteCarlo Simulations

In trying to find VaR for 5 financial assets with prices over a long period of time(2000 days worth of data) how would I do the following: Carry out monte-carlo simulation in order to find a VaR ...
0
votes
2answers
60 views

Is there a way to meaningfully generate daily returns from monthly?

I have a set of 7 investments in a portfolio and I need to optimize the weightings based on some exposures to various markets/styles/economic factors. I was hoping to do some sort of simple exposure ...
0
votes
1answer
208 views

Can I use PyAlgoTrade for Forex?

Is it possible to use PyAlgoTrade for Forex related algorithms? If it is, please point me in the right direction on how to get PyAlgoTrade to work on Forex data.
0
votes
1answer
41 views

Deduce expected exposure profile from option/structure delta?

I am thinking about whether there exists a relationship between the delta of an option (or any structured derivative) and it's expected positive/negative exposure? An intuitive question would be ...
0
votes
1answer
27 views

Error using ghyp-distribution function

I want to fit multivariate GH distribution on my data, and then generate simulations for that distribution. Using the instructions given in ghyp package, I wrote following lines of code in R. ...
0
votes
2answers
33 views

Conditional probability of geometric brownian motion

I created paths using GBM to implement The stochastic mesh method. But the method requires the conditional distribution, given some S(t) the probability of S(t+1). I've searched and can't find this ...
0
votes
2answers
20 views

In an example of “call options”

The following is an excerpt from Introduction to the Mathematics of Finance by Roman: As a more concrete example, suppose that IBM is selling for $\$100$ per share at this moment. A $3$ month ...
0
votes
0answers
8 views

Interest rates - Swaptions implied volatility - Volatility anchoring with Black and with normal volatilities

In a LMM+ with displacement factor a volatility anchoring technique is used, i.e. a long term volatility assumptions is applied, derived from historic time series. Should I adjust this historic ...
3
votes
2answers
122 views

SABR Implied Volatility and Option Prices

I am trying to understand the SABR model. Specifically, I am having difficulty to understand how to calibrate the model parameters, that is, initial variance, volatility of variance, exponent for ...
0
votes
0answers
12 views

Cointegration for forex using ARMA model to forecast the spread

I am working on an automatized quantitative strategy that use cointegration in Forex. I am backtesting this strategy in Python. Please see below the python file: ...
5
votes
1answer
170 views

Calibration Merton Jump-Diffusion

Consider the following SDE $dV_t = rV_tdt +\sigma V_t dW_t + dJ_t$ where $J_t$ is a Compound poisson process with log-Normal jump size $Y_i$. How am I supposed to calibrate this model to CDS ...
3
votes
1answer
58 views

Is This A Viable Alternative Options Pricing Method?

i'm currently a high school student who hasn't gone past Algebra II, and thus I have minimal Calculus knowledge. I know the basics of Integration and Derivation (drop the coefficient, raise to the ...
6
votes
1answer
139 views

How to perform risk budgeting for non-linear portfolios?

I am using this question to compute optimal weights following a risk budgeting approach. The problem is I am using non-linear portfolios (options,equity,fixed income,fx). What I am looking for is ...
1
vote
1answer
44 views

Modeling the Stock Market

Hi I was wondering what is the model that best describes the price movement of the stock market? A Brownian motion Process with drift? An Ornstein Uhlenbeck_process? (where the long term mean ...
1
vote
0answers
17 views

“Risk” Factor vs Double Sorts

With regards to a cross-sectional asset pricing (stocks) study, I am testing if one variable can explain another. One common approach to do this, is to use the double-sorting portfolio technique (sort ...
1
vote
1answer
34 views

How to build a cross currency swap pricer?

We're looking to build a pricer to convert a funding spread in a given currency over a specific funding basis e.g. 20 bps EUR 3m€ and convert it to a funding spread to a different currency with a ...
2
votes
2answers
172 views

Free high resolution financial data

As thebonnotgang(1) stopped updating their database, I was wondering if there are some other free sources of high-frequency data available. I found a proper tick data api (ca. 25 day history) hosted ...
4
votes
1answer
624 views

Open source equity/bond index data

I have been using the tseries package of R (get.hist.quote) to get historical quotes for various indices from yahoo finance. I am interested in DAX, VDAX, EB.REXX ...
1
vote
2answers
96 views
1
vote
1answer
42 views

Non-contractual accounts behavioural study

I need to carry a non-contractual accounts behavoiural study for a bank. The objective is to estimate core/non core ratios and then bucket and ftp them. Any recipe where to start? I have 3yrs of ...
0
votes
0answers
14 views

How to perform batch-trading using Interactive Broker API?

My definition of batch-trading: Given $N$ BUY orders, $M$ SELL orders and $O$ ($O < N$) as the max number of open positions to be held. Batch-trading should monitor the orders and when $O$ BUY ...
0
votes
2answers
56 views

How is the fundamental theorem of asset pricing used?

I know that a multi-period market model is complete and arbitrage free if there's a unique equivalent martingale measure. The thing is, I have absolutely no clue how to apply this theorem to a simple ...
3
votes
3answers
136 views

GARCH parameters

I'm trying to estimate parameters of GARCH(p,q) model. I tried p=1, q=1 with t-distribution errors. Ljung-Box showed no correlation in residuals and squared residual. But the null hypothesis that ...
0
votes
1answer
54 views

Compiling QuantLib example

I have followed the guidlines for installing QuantLib for mac from here http://quantlib.org/install/macosx.shtml and also fixed the flags using the commands: export CXXFLAGS = -stdlib=libstdc++ ...
0
votes
0answers
21 views

Is it possible to place hidden order inside spread when trading E-mini S&P 500?

My question is not about hidden orders in general. In equity market a trader can post his hidden order inside spread, is it the same way for E-mini S&P 500?
-1
votes
0answers
12 views

Regression model extension [on hold]

I've been asked to do out of sample procedure for my simple regression model. my dependent data is belong to 2500 index nad independent one is belong to 2500 stock log returned data. how should i ...
0
votes
2answers
117 views

How to automatically get all options data for a particular stock into microsoft excel?

I'm looking for a way to get the entire options chain (All options expiries) for a particular stock in excel without manually copy pasting anything. It does not have to be real time and I will only be ...
5
votes
1answer
232 views

Up and Down days in GBPUSD and a Filter

I want to study if the odds of an up or down day in a forex pairs is 50-50. I just count the total number of up and down days in X years and compare it with the total days. The results are very ...
0
votes
0answers
21 views

How to write time-varying functions in R? Applied example

Let's say I want to use a Gaussian copula $$C_{R_t}(\eta_1, ..., \eta_n) = N_{R_t}(N^{-1}(\eta_1), ...,N^{-1}(\eta_n))$$ with a time-varying correlation matrix $R_t$. Through DCC we model the ...
2
votes
1answer
98 views

VEC GARCH (1,1) for 4 time series

I have to estimate a VEC GARCH(1,1) model in R. I already tried rmgarch, fGarch, ccgarch, mgarch, tsDyn. Has somebody estimated a model like that? ...
0
votes
1answer
26 views

Python statsmodel ARMA question

I am reading through the documentation of statsmodel package in python from the link The (p,q) order of the model for the number of AR parameters, differences, and MA parameters to use. How do I ...
5
votes
1answer
156 views

DCC GARCH - Specificating of ARCH and GARCH parameter Matrices STATA

The command in STATA to calculate the DCC model of two variables is: mgarch dcc ( x1 x2=, noconstant) , arch(1) garch(1) distribution(t) $$ \begin{bmatrix} ...
6
votes
2answers
362 views

How to derive the price of a square-or-nothing call option?

At maturity $T$, the holder of a "square-or-nothing" call option written on an underlying $S_t$ receives a payoff of the form $$ \phi(S_T) = \frac{S_T^2}{K} \pmb{1}_{\{S_T \geq K\}} = ...
1
vote
1answer
54 views

Historical volatility from non-uniform samples

The way I compute historical volatility is that I take two parameters $dt$ and $T$, get a list of stock prices with the step of $dt$ over the window $T$ (so $T/dt+1$ samples in total), compute $T/dt$ ...
3
votes
1answer
37 views

What is the effect of mean-reversion on an upper barrier knock-out call option?

Consider a mean-reverting normal model for an underlying $dX^{(1)}_t=-\kappa X^{(1)}_tdt+\sigma^{(1)} dW^{(1)}_t$, for fixed time-independent constants, $\kappa$ (mean-reversion) and $\sigma^{(1)}$ ...
0
votes
0answers
15 views

Python regenerating ARMA params using statsmodels

I am trying to regenerate the ARMA parameters from statsmodel in python. The code I am using is: ...
9
votes
1answer
1k views

What are modern algorithms for trade classification?

When dealing with trade data, for example from TAQ, a common problem is that of determining whether a trade was a buy or a sell. The most commonly used classifier is the Lee-Ready algorithm (Inferring ...
3
votes
1answer
89 views

How to obtain Standardized Residuals from a Time-Series?

I have my estimates for an AR(3). To obtain the residuals I'm supposed to use $$Y_t-\hat\phi_0-\hat\phi_1Y_{t-1}-\hat\phi_2Y_{t-2}-\hat\phi_3Y_{t-3},$$ where the Y's are from the dataset. If I do ...
0
votes
0answers
12 views

Define the order of GARCH(m.s)

I know that if the order of Arch(m) is over 3, we should use GARCH and GARCH(1,1) was proved to be the best. But was GARCH(1,1) proved to be available for any country's stock market? My result show ...
0
votes
0answers
32 views

Option based approach to real capital structures

Has anyone made a serious attempt to apply option theory to real assets and capital structures, taking into account all the messy details ?
0
votes
0answers
18 views

Converting a factor vector in R [on hold]

If I have a factor vector with 3 levels, "", "No" and "Yes" how can I convert this to a binary factor vector with "na" if no answer , 1 for "Yes" and 0 for "No" ?
1
vote
0answers
28 views

Is $(1,0,0,0,…,0)$ a legitimate dividend stream?

A book I am reading defines a positive linear functional as a "price functional" from a set of adapted processes to the real numbers. Specifically, it defines a "consistent price functional" as one ...
1
vote
0answers
26 views

$0$-beta stock and diversification

If we invest $w$ in the market portfolio and $1 - w$ in the risk-free asset, and observe a $0$-beta asset with expected return greater than the return on the risk-free asset, how can this be used in ...
1
vote
1answer
105 views

quantlib python : missing methods?

I'm reading Introduction to Selected Classes of the QuantLib Library I by Dimitri Reiswich and tries to "convert" it to Python. It seems to me that some C++ possibilities aren't available in python. ...
12
votes
4answers
2k views

How to estimate real-world probabilities

In the world of finance, Risk-neutral pricing allow us to estimate the fair value of derivatives using the risk free rate as the expected return of the underlyings. However, the behavior of ...
1
vote
1answer
56 views

Derivative: Delta of a Down and Out Call Option with Barrier=Debt(K)

I am trying to compute the derivative of this function with respect to V0: This is the price of a down and out call option, assuming the barrier equal to the level of debt K. In other terms, I need ...
5
votes
2answers
104 views

Interpret simulation results ($P$ and $Q$ measures)

I am struggling in interpreting results of my simulations. I use Monte Carlo algorithm to simulate stock paths and calculate option price. The notation: $r$ is a risk free interest rate, $T$ is time ...
0
votes
1answer
10 views

anyone know haw would we calculate hml ,(fama and french three factors model) [on hold]

how we calculate hml and smb from our own data (malaysian data) so i can not use the dta from keneth french library using excel and when we divide firms into 6 portfolios we use value and book ratio ...

15 30 50 per page