# All Questions

2k views

### Calculating Bollinger Band Correctly

My bollinger band comes out like the below, which doesn't seem right. Any idea what is wrong with my code for calculating upper and lower bollinber bands? I obtained my data from here ...
4k views

### Are Futures exactly Delta One?

Delta of Future is exactly one I thought. This post here, says otherwise. However, quoting John Hull again: $$f = \text{Value of Future contract} = S_{t=0} - K \exp(-rT)$$ where $S$ it the spot ...
169 views

### Pricing binary options with kernel density estimation

Suppose I have a large enough set of prices of an asset, from which I can extract the following function: $f:T\to\mathcal{D}$, where $T$ is a fixed finite set of time intervals (say, 1 minute, 2 ...
629 views

### How do insurance companies use interest-rate swaps?

I have heard that insurance companies make use of swaps and am just trying to get some clarity on that: An insurance company (assume life insurance) has a fixed obligation to pay in the distant ...
149 views

### Where can I find historical data for volatility estimation?

I'm trying to estimate volatility following Shreve book, so I need observations of $f(t_j,t_j+\tau_k)$ and $f(t_j+\delta,t_j+\tau_k)$, where $t_J<t_{J-1}<\dots<0$ and $\tau_k$ are relative ...
404 views

### How to price long dated options most efficiently?

hi question is how to price a long dated option most computationally efficiently? With European, you use Black Shoals (yes assumption constant vol/rates...etc) but it's a simple algebraic formula. ...
103 views

### Need weighted global stock index data (components / weights)

To implement a portfolio generator, I require a set of suitable stocks. Ideally it would use the components of the MSCI World Index and use the index weights for the probability of picking a stock ...
60 views

### In a mis-matched trade who profits?

I am building a service similar to the BullionVault where users can buy and sell bullion. They will be placing their Buy and Sell orders on the service. Matched orders will get executed. My question ...
283 views

### Square-root-of-time and autocorrelation

My question is that when we have autocorrelation in daily volatilities can we scale daily volatility to annual basis using square-root-of-time rule? Does it breach the main assumption of the rule ...
2k views

### Is there a formula for future value of a growing annuity with yearly payment growth and monthly payments?

My example is saving for college: assume a start of 0 balance deposits of 200 made monthly, every year they increase by (g) 2% to account for salary increases, first deposit made at the end of the ...
86 views

### Yield to Maturity

For a bond with market price $P_t$ and fixed payments $c_n$, I'm told the yield to maturity is given by the solution $Y$ to the equation $P_t=\sum_{n=1}^N c_n e^{-Y(t_n-t)}$. Firstly, I'm not great ...
1k views

### Why is “full” Yield Curve (term structure of interest rates) 3 component based?

I am trying to understand bond-valuation and construction of yield curve. I don't have any exposure to bootstrapping or what-so-ever as of now. So it's appreciated to have an example but not too ...
216 views

### High correlation will help detect spurious regression over cointegration?

I'm analyzing two financial time series with Johansen method. A high Correlation coefficient using the Pearson method will help me to detect spurious cointegration models to avoid? If this is not ...
714 views

I'd like to start automating my trading strategies. I'm not looking for a fast and easy solution, therefore the programming language is not important for me, I am ready to spend an extra year to ...
714 views

### Are the sin, cos, tan functions used in some financial calculations?

I ask because those functions are on the TI BA II Plus financial calculator.
488 views

### Convexity of Portfolio Containing Eurodollar Future and Forward Rate Agreement

Assume an individual is a buyer, i.e., long, of one Forward Rate Agreement and a seller, i.e., short, of one Eurodollar Futures contract. Does the collective portfolio have positive or negative ...
182 views

### Why does regression capture differences in volatility?

I read the following statement in the book python for data analysis, chapter 11, and I was wondering if someone could give me intuition about why regression has this effect? The purpose of the ...
88 views

### Adjusting open, highs and lows for past monthly stock prices?

I'm looking into modelling monthly stock prices and want to start off by using data from Yahoo Finance. I know that the closing prices given there are adjusted for stock splits and dividends, but ...
65 views

### Sketching payoff diagrams- Straddle and Butterfly (when t tends to 0)

I want to sketch a straddle and a butterfly payoff diagram when t tends to 0. I have searched and have been able to sketch both a butterfly and straddle diagram but fail to proceed when t tends to 0. ...
2k views

### Calculate correlation between two sub portfolios and the combined portfolio

I have two sub portfolios (lets call them portfolio a & portfolio b - a portfolio is just a vector of weights that sum to 1) that combine to create a total portfolio. I also have a 2 x 2 ...
460 views

### Where can I find implementations of the time-varying copula (BBX) in Matlab or R?

I want to construct some time-varying BBX copulas, however, I found that patron's package does not contain time-varying BBX copula. Anybody know where I can download them?
729 views

### Calculating the VaR from a GARCH(1,1) with Student-t innovations

I'm self-studying several questions on Ruey S. Tsay's teaching page. I'm experiencing some difficulty getting the correct answer for final exam 2013 Problem B Question 3. Given a Student-t GARCH ...
29 views

### Nominative financial datas

For a study I am looking for financial datas about trades in double auction markets. It would typically be transaction history containing the name of the participant (buyers and sellers) and the ...
3k views

### What is the price pressure?

What is the definition of price pressure and what does it imply? In a number of paper I read that the price pressure can influence the portfolio returns; can you explain why and in which way it can ...
199 views

### What does “true”volatility mean in volatility comparison?

In Sinclair's book, wee need to compare standard deviation with "true volatility" to check the power of the model suggested, close -to-cloce, or Parkinson formula, etc. What do we mean here by "true" ...
195 views

### Valuation of Cox-Ross-Rubinstein Model

We have a Cox-Ross-Rubinstein model with parameters $u$ ("up"), $d$ ("down") , $r$ (interest rate) and $q$ (equivalent martingale probability) $(q=(1+r-d)(u-d)^{-1})$ . We have a contingent claim with ...
679 views

### Given a correlation martrix, calculate portfolio's correlation with its assets

Find correlation vector like $[ d e f ]$ where d, e and f represent correlation of P(portfolio) with its assets A, B and C respectively. The assets A, B, C can be another portfolio. In order for ...
420 views

### What's the practical difference between the Johansen vs Engle-Granger tests for cointegration?

For the two-variable case, what are the practical differences between using the Engle-Granger procedure versus the Johansen test for cointegration? Is one universally more powerful than the other? ...
573 views

### Non-negative matrix factorization for factor analysis of stocks

I stumbled over the term Non-negative matrix factorization in presentations such as Application of Machine Learning to Finance and this Big Data in Asset Management. The basic idea is to decompose a ...
1k views

### Looking for C# library that provides/contains performance analytics

I am looking for a C# .Net library that provides trade performance analytics similar to R-PerformanceAnalytics. Basic return statistics, draw-downs, risk-adjusted returns, risk (variations), ...
448 views

### Empirical copula

I am trying to find the empirical copula linking two random variables $X$ and $Y$. I have some data available but it's limited with respect to the variable $Y$ and I am not convinced it's enough data ...
483 views

### Where can i find tick data for futures contracts [duplicate]

Looking for places which can give me historical tick data for free or for the cheapest price. Don't really need it to be live , can be delayed too. What are my options. Mainly looking for tick data ...
346 views

I have a return history for a universe of risky assets and I've run a principal component algorithm and obtained a loadings matrix (num_factors by num_assets) for the first 5 factors. I have a ...
266 views

### What are the assumptions of portfolio optimisation with higher moments?

I was wondering whether there are a set of assumptions for portfolio optimisation with higher moments (including kurtosis and skewness) as there are for regular mean-variance optimisation?
426 views

### Why are factor models so popular for risk analysis of portfolios?

As titled, my question consists on asking for why in the most of academic papers one almost always finds that when you try to model asset returns, one needs to adjust for risk factors before analyzing ...
286 views

115 views

### Stochastic Volatility for Stocks, FTSE

Can someone help me with calculating Stochastic Volatility (of stocks and options) using SAS or R or Matlab please? I am new to SAS and I am trying to use Heston model, White-Hull model or any other ...
290 views

### Capital Allocation for Portfolio of Multi-Strategy and Multi-Instrument

I would like to know if there is a way (or theory) to manage a multi-strategy, multi-instruments portfolio that would calculate the optimal weight to allocate capital for each combination of strategy ...
68 views

### how market makers set the time factor to calculate option greeks on the expiration day?

how market makers set the time factor to calculate option greeks on the expiration day? does they set time equal 1/24or 2/24 when only 1hour or 2hour left? what frequency market makers update new time ...
418 views

### Beta arbitrage in CAPM

i'm following the "Computational Investing 1" course at Coursera.org, I was affascinated by the Beta arbitrage of CAPM Video: https://class.coursera.org/compinvesting1-002/lecture/view?lecture_id=119 ...
367 views

### What is the hedging underlying of MBS

I am working on hedging agency MBSs using treasury bonds. So my question raise as which treasury bond should more likely be a hedging underlying of a MBS. What is the matching criteria usually for MBS ...
93 views

### Calculating the Hedge Ratio

Suppose we have an index whose value is calculated by a weighted geometric mean. Now we want to recreate the index using its underlying components. How would we go about calculating the hedge ratios ...
105 views

### Pre- Versus post-2008 Crisis Rates Modeling

Modeling for interest rate derivatives (such as bermudan swaptions) is said to have undergone significant changes since the crisis. Prior to the crisis, counterparty default risk was often ignored, ...
545 views

### What features does q /KDB provide for HFT use?

It appears q/KDB is being using for Time series analysis for HFT. What are some of the advantages of using ...
538 views

### How to apply Elliott wave priciple to any Time Series?

I'm strongly interested to computing Elliott Wave to any given Timeseries. Does anybody tried? Is there any phython library to do that? I'm looking for an algorithm taht if I give to it a time ...