instruction stringlengths 15 26.1k |
|---|
In the paper "[A Simple Derivation of the Capital Asset Pricing Model from the Capital Market Line][1]" the authors reason:
Given the CML
$$R_p = R_f +\frac{R_m - R_f}{\sigma_m}\sigma_p$$
where:
- $R_p$ is the return on an efficient portfolio
- $R_f$ is the risk-free rate
- $R_m$ is the return on the... |
In the paper "[A Simple Derivation of the Capital Asset Pricing Model from the Capital Market Line][1]" the authors reason:
Given the CML
$$R_p = R_f +\frac{R_m - R_f}{\sigma_m}\sigma_p$$
where:
- $R_p$ is the return on an efficient portfolio
- $R_f$ is the risk-free rate
- $R_m$ is the return on the... |
lets say that i have a file stating a stock and the price which someone paid for it and the date.
for example: apple (AAPL) 422$ 15/11/2011.
now apple have gone through many splits and possibly public offerings, or maybe increased their treasury stock numbers and any other activity which might affect the the number... |
Recently, I have been studying the relationship between COVID-19 and stock returns using a GJR form of threshold ARCH model. However, I got some unusual estimation results I can't figure out whether they are fine or not. The model I have estimated is written below:
[![enter image description here][1]][1]
In t... |
I've seen a number of papers and writings mentioning "adjacent close" values. Such as: [1],[2], [3]. But I haven't been able to find a definition of the term. Can anyone help? I'm actually beginning to wonder whether they are actually thinking of "adjusted close" values, which is a term one can easily find a definition... |
What are the requirements for no arbitrage to exist in a chaotic/dynamical system? |
When calculating the correlation between two stocks I get an 85% correlation.
Does this indicate anything about the amount the stocks are going up (so if one goes up 10% so does the other) or just that when one goes up, so does the other, but at a totally different (positive) rate? |
Does correlation of stocks represent magnitude? |
I am a beginner in time-series analysis.
The moving average model uses past errors*parameter, so why is it called a moving average model?
It seems counter-intuitive to me. The Auto-Regressive model seems closer to moving average to me as it uses previous values. |
Why is the moving average called that way? |
I'm a software developer want to know a little about quant basics. My undserstanding of PFE is that a PFE of a trade at a future time point is commonly defined by taking the average of the highest (or worst) 10% exposure of, say, 2000 projections calculated from curent value of the contract using a model and implied vo... |
I have historical forward prices. Can I just create a Monte Carlo simulation combining simulated forward prices with simulated Black-Scholes Model put payoffs, then calculate VaR based on the returns? What parameters/assumptions would have to be made for the put options? |
How is VaR calculated for forward contracts accounting for put options? |
I have built a trading strategy and also a backtest. The backtest has been a lot of work. I was using mid-prices throughout. It’s based on candles, so I make trading decisions at the end of each bar. Recently I changed it to use the bid and ask. So for example to decide if a trade was stopped out I now use the bid or a... |
Backtest with mid-quotes? |
I have built a trading strategy and also a backtest. The backtest has been a lot of work. I was using mid-prices throughout. It’s based on candles, so I make trading decisions at the end of each bar. Recently I changed it to use the bid and ask. So for example to decide if a trade was stopped out I now use the bid/ask ... |
How is VaR calculated for forward contracts accounting for European put options? |
Noobie here. I just wanna ask a simple question:
in the context of portfolio optimization, is Mean-Variance optimization the **same** as the max sharpe ratio portfolio? |
mean-variance optimization === max sharpe ratio portfolio? |
In the book that I am using, it said that I need scale vega according time with this formula: $\sqrt{90/T}$ to get the weight of the vega w.r.t t. The reasoning it offered is as follows:
"Because the vega of an one year option is larger than the one with an one month option, we assume that the longer term one has ... |
Suppose that a probability space $(\Omega, \Sigma, \mathbb{P})$ is given. Let $W=\{W_n\}_{n\in \mathbb{N}_0}$ be a sequence of $\mathbb{P}$-i.i.d real-valued random variables on $\Omega$. Furthermore, assume that $\mathbb{Q}$ be a new probablity measure on $\Sigma$, and $W$ is $\mathbb{Q}$-i.i.d and that $\mathbb{Q}_{W... |
Suppose that a probability space $(\Omega, \Sigma, \mathbb{P})$ is given. Let $W=\{W_n\}_{n\in \mathbb{N}_0}$ be a sequence of $\mathbb{P}$-i.i.d real-valued random variables on $\Omega$. Furthermore, assume that $\mathbb{Q}$ be a new probablity measure on $\Sigma$, and $W$ is $\mathbb{Q}$-i.i.d and that $\mathbb{Q}_{W... |
I'm reading Merton's [An Analytic Derivation of the Efficient Portfolio Frontier](http://www.stat.ucla.edu/~nchristo/statistics_c183_c283/analytic_derivation_frontier.pdf). In section IV, he derives the efficient frontier with a riskless asset. Let $\mathbf{w}$ be a vector of portfolio weights and let $w_f$ be the weig... |
Is this quadratic form the Sharpe ratio? |
I am trying to use the Python library `yfinance` to obtain stock data for some companies on a list provided to me (just a fairly generic list). However, amongst this list are companies which are no longer listed on the exchanges for a variety of reasons (e.g. bankruptcy, merged, etc.).
**Question**: How can I obtai... |
How to obtain yahoo finance ticker data for stocks that are no longer listed (etc. merge, bankruptcy, etc.)? |
With the new RFR swaps (Say $IRS Fixed to compounded SOFR), there are several adjustments that can be done to allow some room for the coupon on the floating leg to be known a couple of days ahead of its payment date (I guess to allow some time for settlement validation/reconciliation):
1. Interdeal broker: Shift the p... |
Imagine a world where, for a given time period, the expected inflation rate is 10%, but the nominal risk free interest rate over the same period is 5%.
Should my starting point - from a discounted valuation perspective - use 10% or 5% as the discount rate?
All in nominal terms. |
The pandemic has disavowed any notion of nominal rate distributions to being truncated at 0%. However, if Central Banks at Debtor nations are conflicted in that they are incented to suppress interest rates (lest their debt service costs skyrocket; and their bond markets crash thereby limiting the ability to raise addi... |
I wanted to calculate the daily return for a long-short position. Say one has **1** unit of stock A (long) and **alpha** units of stock B short. How can one now calculate correctly the daily percentage return? The literature puts different formulas forward, but they reach different values. Two of them are
1) $\log(... |
I want to construct a zero-curve from EUR OIS rates (IR swaps with EONIA as the floating rate).
\
\
For bootstrapping, some of the contracts I use have maturities of 15, 18 and 21 months (*EUREON15M=* etc.). How many payments do these contracts have, and when do they occur?
\
\
I found this similar thread, but ca... |
I want to construct a zero-curve from EUR OIS rates (IR swaps with ESTR as the floating rate).
\
\
For bootstrapping, some of the contracts I use have maturities of 15, 18 and 21 months (*EUREST15M=* etc.). How many payments do these contracts have, and when do they occur?
\
\
I found this similar thread, but can... |
I want to construct a zero-curve from EUR OIS rates (IR swaps with ESTR as the floating rate).
\
\
For bootstrapping, some of the contracts I use have maturities of 15, 18 and 21 months (RIC: *EUREST15M=* etc.). How many payments do these contracts have, and when do they occur?
\
\
I found this similar thread, bu... |
Apologies as I suspect this is a basic question I've been too afraid to ask (as an academic without "real" trading experience)--
I've seen a lot of literature where trades are sized proportional to volatility raised to a power (usually -1 or -2). i.e.:
- Size proportional to return/vol in an attempt to normalize... |
I'm currently trying to reproduce some results shown in the book '[Empirical Asset Pricing: The Cross Section of Returns][1]' by Bali, Engle, and Murray. More precisely, I try to compute Table 7.3 and 9.1. The results that I obtain are similar to these tables but not exactly the same. Furthermore, I observe that the va... |
I am relatively new to trading and decided to become more quantitative about it. I have had a portfolio for about two years, where I changed my positions several times.
I now learnt about VaR calculation and was wondering does it take into account my past positions or only my positions of today?
Thank you |
## Calculating the YTM ##
The yield to maturity (YTM) is often used as a yield measure. The YTM of a bond is defined as the solution of the equation:
$$
P_d=\sum_{t=1}^T\frac{C_t}{(1+r)^t}
$$
Where $P_d$ is the bond's dirty price.
When calculating the YTM, you don't have to worry about the reinvestment assumptio... |
Is there a way to actively download the current price for cryptocurrencies into a Google spreadsheet? Google allows for downloading stock prices. Is there a similar formula for downloading cryptocurrency prices? |
As a beginner in fintech, I am reading the book Machine Learning for Algorithmic Trading by Stefan Jansen. I think it is a really helpful book. But most of the codes are written in tensorflow 2.
I want to learn Pytorch, I would like to know that if there is a book as good as this one and with codes written in Pytorc... |
Is there a Pytorch counterpart of the book Machine Learning for Algorithmic Trading? |
$\mathbb{P}$ is the true probability measure. Measure $\mathbb{Q}$ is a measure of convenience that allows risk neutral pricing. [Stochastic discount factor $M$ takes you between the two.](https://quant.stackexchange.com/questions/38477/what-is-the-difference-between-risk-neutral-probabilities-and-stochastic-discoun/38... |
My algo, in back test, runs for 1000 trades and makes a 10% profit (over a few weeks of candles), from research it seems 1000 trades is statistically significant. After about 1000 trades it starts losing. Were I to evaluate success based on final account balance at 1100 trades ,the test would be a failure, it would hav... |
Can a losing algo strategy be good if it was winning for 1000 trades? |
My algo, in back test, runs for 1000 trades and makes a 10% profit (over a few weeks of candles), from research it seems 1000 trades is statistically significant. Obvs not all 1000 trades were winners but overall it was in profit due to the big winners. After about 1000 trades it starts losing. Were I to evaluate succe... |
In chapter 4 of Natenberg's "Option and Volatility and pricing", he discusses how to draw parity graphs for option positions. These are defined as a plot of the intrinsic value of the position against the price of the underlying at expiration.
One of the examples given involves a position of long 2 calls and short ... |
Why is the parity graph in Natenberg shifted up? |
My question is whether power/energy derivatives should be discounted or not. I've heard both yes and no from practitioners but I still don't have a strong or clear opinion about it.
Derivatives are usually discounted using OIS rates as the existence of a risk-free hedging portfolio is assumed. Moreover, when the und... |
In chapter 4 of Natenberg's "Option and Volatility and pricing", he discusses how to draw parity graphs for option positions. These are defined as a plot of the intrinsic value of the position against the price of the underlying at expiration.
One of the examples given involves a position of long 2 calls and short ... |
Suppose that $\underline{\mathbf{X}}=(X_1, X_2, ..., X_n)$ is a vector of independent random variables. Then, we know that the joint probability density function $f_{\underline{\mathbf{X}}}(x_1, x_2, ..., x_n)$ is given by the following relation
\begin{equation}
f_{\underline{\mathbf{X}}}(x_1, x_2, ..., x_n) = \pro... |
If monthly stock market returns follow an IID lognormal distribution, the terminal wealth distribution of investing a lump sum for many years is also lognormal. What is the terminal wealth distribution of monthly investments that grow x% a year, reflecting the experience of someone who invests a fraction of each payche... |
Just realized there was a quant finance board, so I figured I'd post it here instead.
I'm trying to derive Vanna from the BSM equation, but had a hook up on one of the manipulations in the formula.
In the below image, on step 5, they have the formula:
$$e^{-qt}*\sqrt{T-t}* N'(d_1)(d_2/σ)$$
Step 6, they a... |
How does $(d_2/\sigma) = (1-d_1)$ while deriving the Vanna Formula from BSM? |
Just realized there was a quant finance board, so I figured I'd post it here instead.
I'm trying to derive Vanna from the Black-Scholes Model (BSM) equation, but had a hook up on one of the manipulations in the formula.
Vanna, also referred to as DvegaDspot and DdeltaDvol, is a second order derivative of the opt... |
Just realized there was a quant finance board, so I figured I'd post it here instead.
I'm trying to derive Vanna from the Black-Scholes Model (BSM) equation, but had a hook up on one of the manipulations in the formula.
Vanna, also referred to as DvegaDspot and DdeltaDvol, is a second order derivative of the opt... |
Just realized there was a quant finance board, so I figured I'd post it here instead.
I'm trying to derive Vanna from the Black-Scholes Model (BSM) equation, but had a hook up on one of the manipulations in the formula.
Vanna, also referred to as DvegaDspot and DdeltaDvol, is a second order derivative of the opt... |
I don't have much experience using Bachelier's single factor spread option formula, but I know it takes a dollar volatility of the spread as an input. What I don't know, is that just the standard deviation of the daily spread? Or is it annualized?
Much appreciated, I know is a very basic options question - just co... |
I don't have much experience using Bachelier's single factor spread option formula, but I know it takes a dollar volatility of the spread as an input. What I don't know, is that just the standard deviation of the daily spread? Or is it annualized? Say for simplicity I'm using the historical data, and trying to estim... |
According to my understanding, synthetic CDOs are essentially credit default swaps (CDS) for a bunch of loans, stored in a special purpose vehicle (SPV). Here, the investor (the one who buys the synthetic CDO) is essentially buying insurance against defaults of loans that the investor doesn't hold. Therefore, if th... |
What is the optimal mix of equity and debt that an investor should invest in a single company?
If an investor invests in both the debt and equity of a company, they are in effect de-levering the company (or reversing part of the capital structure decision of the company ).
Asset allocators, such as pension fu... |
I'm writing a term paper, where we need to compare the Fama-French 5-factor model and a q-factor model. For the empirical part, I'm using the Python-based Linearmodels library by Kevin Sheppard.
My problem is that I should perform a GRS test (Gibbon, Ross and Shanken (1989)) on the models, but I just can't figure t... |
For short:
- 1 ) Is this right? `Yes`
- 2 ) How do you get from one expression to the other? `You did it already`
- 3 ) In Formula 2, the expression for β includes a relation between the asset and the market. But in Formula 1 the relation suggest there is no relation between the market and the asset. `Why?` It... |
In the paper "[A Simple Derivation of the Capital Asset Pricing Model from the Capital Market Line][1]" the authors reason:
Given the CML
$$R_p = R_f +\frac{R_m - R_f}{\sigma_m}\sigma_p$$
where:
- $R_p$ is the return on an efficient portfolio
- $R_f$ is the risk-free rate
- $R_m$ is the return on the... |
I'm having a hypothetical situation where I have a set of ML-based alpha signals $\{\alpha_i\}_{i=1}^{N}$ that describe a different states of order book - imbalances, order flow, spread properties etc. I wonder, what is the correct approach to merge those signals with stochastic control approach to generate a decision-... |
How to merge ML-based $\alpha$-signal with stochastic control approach? |
does anyone have the pdf for this article? It was available on SSRN a few weeks ago but not anymore, I'd really appreciate it if someone could share it. Thanks |
Prior to the onset of the Global Financial Crisis in 2008, interest rate swaps were priced using a so-called "single curve framework". Under this framework, the LIBOR curve was used to estimate forward rates and to discount cash flows.
When the LIBOR / OIS spread blew out to ~365bp in Q4 2008, the market realized... |
I see that Prof. Peter Kolm's article has been published in the *Journal of Financial Data Science* https://jfds.pm-research.com/content/early/2021/11/24/jfds.2021.1.079 - there appears to be a paywall there.
SSRN https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3899133 says "Not available for download"
I sugg... |
I see that [Prof. Petter Kolm][1]'s article has been published in the *Journal of Financial Data Science* https://jfds.pm-research.com/content/early/2021/11/24/jfds.2021.1.079 - there appears to be a paywall there.
SSRN https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3899133 says "Not available for download"
... |
In (value at) risk calculations, we are commonly interested in the risk of changes of the value of our portfolio that are **induced by external factors**, i.e. thru changes in market prices.
To that end, we usually
1. fix the invested asset universe and the market environment (e.g. rates / prices / vols) at the... |
To me, this looks like a (very?) quick-and-dirty way to compare options' sensitivities for a fixed underlying asset: Disregarding dividends, the Black-Scholes Vega is calculated as
$$
\mathrm{Vega}\equiv \frac{\partial O }{\partial \sigma}= Sn\left(d_1\right)\sqrt{T}
$$
where $d_1=\frac{\ln S-\ln X+(r+0.5\sigma^... |
In the paper "[A Simple Derivation of the Capital Asset Pricing Model from the Capital Market Line][1]" the authors reason:
Given the CML
$$R_p = R_f +\frac{R_m - R_f}{\sigma_m}\sigma_p$$
where:
- $R_p$ is the return on an efficient portfolio
- $R_f$ is the risk-free rate
- $R_m$ is the return on the... |
Now I have two questions:
1. The statement that all efficient portfolios are perfectly correlated seems wrong, as only holding the risk-free asset is an efficient portfolio. The risk-free asset is not correlated to the market-protfolio at all. So this statement cannot be correct? Is there really in erro... |
I don't have much experience using Bachelier's single factor spread option formula, but I know it takes a dollar volatility of the spread as an input. What I don't know, is that just the standard deviation of the daily spread? Or is it annualized? Say for simplicity I'm using the historical data, and trying to estim... |
1. The statement that all efficient portfolios are perfectly correlated seems wrong, as only holding the risk-free asset is an efficient portfolio. The risk-free asset is not correlated to the market-protfolio at all. So this statement cannot be correct? Is there really in error in the paper? Where is ... |
In the paper "[A Simple Derivation of the Capital Asset Pricing Model from the Capital Market Line][1]" the authors reason:
Given the CML
$$R_p = R_f +\frac{R_m - R_f}{\sigma_m}\sigma_p$$
where:
- $R_p$ is the return on an efficient portfolio
- $R_f$ is the risk-free rate
- $R_m$ is the return on the... |
Trying to understand the meaning of current coupon spread duration? Is this same as empirical mortgage spread duration?
|
I was speaking with someone in the market the other day who complained that: "...we always have difficultly building the front end of the curve". He then went on to say that he builds interest rate curves using cross-currency basis swaps. My past experience has been limited to using LIBOR-based products (e.g. Eurodo... |
This is now partly possible, particularly with accurate nanosecond matching engine timestamps (microseconds can also be sufficient) that are now available in NYSE TAQ data and similar data products. These were previously only available in proprietary data (which you may or may not have access to).
Essentially, both ... |
I am fairly new to all this, merely read the first few chapters of "The Concepts and Practice of Mathematical Finance". I recently had a job interview and was asked a simple question about options pricing:
Given that a stock today is worth 100 and tomorrow has a 20% change of being worth 70, and would be worth 107.5... |
I am fairly new to all this, merely read the first few chapters of "The Concepts and Practice of Mathematical Finance". I recently had a job interview and was asked a simple question about options pricing:
Given that a stock today is worth 100 and tomorrow has a 20% change of being worth 70, and would be worth 107.5... |
I am fairly new to all this, merely read the first few chapters of "The Concepts and Practice of Mathematical Finance". I recently had a job interview and was asked a simple question about options pricing:
> Given that a stock today is worth 100 and tomorrow has a 20% chance of
> being worth 70, and would be wort... |
In the U.S. Treasury securities market, there are seven (7) "on-the-run" coupon-bearing issues:
- 2 year
- 3 year
- 5 year
- 7 year
- 10 year
- 20 year
- 30 year
I believe the Fed uses a monotone convex method for deriving the official Treasury yield curve (presumably interpolating from the above-mentioned ... |
> How exactly the principal amounts $N_{1,t}, N_{2,t}$ are allocated
> into those $18$ instruments?
Weights are found by optimizing some criterion (there are a few) which is described in chapters 2.2.1 in the paper you mention. Basically you run linear regression and find the weights of market rates that explain yo... |
In the paper "Interest Rate Parity, Money Market Basis Swaps, and Cross-Currency Basis Swaps" by Bruce Tuckman and Pedro Porfirio (2003) the authors claim that cross-currency basis swap exchanging default-free overnight rates should trade flat. To be more precise:
> To understand why 3-month CDOR plus 10 is fair aga... |
Should Cross-Currency Basis Swaps exchanging risk free rates trade flat? |
Is there a closed form formula for the value of a European Put KO/KI? |
Let's consider limit order book for a certain stock. By liquidity consumers i mean traders that buy/sell shares using market orders.
> What are the known methods/models for predicting total amount of shares that are going to be sold by liquidity consumers in a small time interval?
I have a intutition that this ra... |
I’ve tried to find a good answer for this but had no luck so I’m bringing it here: potentially beginner question, but how much accuracy would I be sacrificing by backtesting an options strategy with IV data only (no historical option prices) with Black Scholes? I.e., how big is my trade off by “estimating” option price... |
To be honest, this is a complex issue, but there are a few approaches taken in real life trading.
The most simplistic approach is to mark off-the-run against liquidly traded points on the curve. We pretty much almost always have accurate real-time pricing on benchmark issues and CTDs for bond futures. The off-the-r... |
To be honest, this is a complex issue, but there are a few approaches taken in real life trading.
The most simplistic approach is to mark off-the-run against liquidly traded points on the curve. We pretty much almost always have accurate real-time pricing on benchmark issues and CTDs for bond futures. The off-the-r... |
I’ve tried to find a good answer for this but had no luck so I’m bringing it here: potentially beginner question, but how much accuracy would I be sacrificing by backtesting an options strategy with underlying price and IV data only (no historical option prices) with Black Scholes? I.e., how big is my trade off by “est... |
To be honest, this is a complex issue, but there are a few approaches taken in real life trading.
The most simplistic approach is to mark the off-the-runs against the liquidly traded points on the curve. We almost always have accurate real-time pricing on benchmark issues and CTDs for bond futures. The off-the-run ... |
A friend of mine sent me a no-name paper on the disposition effect yesterday and asked for my opinion about it. Therein, the authors claim to have detected some evidence for a strong disposition effect in the options market where professional options traders gather.
The question i have is the following:
Given t... |
Does delta hedging mimic the disposition effect? |
A friend of mine sent me a no-name paper on the disposition effect yesterday and asked for my opinion about it. Therein, the authors claim to have detected some evidence for a strong disposition effect in the options market where professional options traders gather.
The question i have is the following:
Given t... |
You are correct, the currency basis swaps between risk free rates do not trade flat. To understand why , it’s instructive to imagine how to arbitrage it. Pretty easy, it might seem. One would borrow some USD for 5yrs at SOFR , invest some EUR for 5yrs at ESTR, and then enter the basis swap whereby you lend USD and b... |
You are right that the cross currency basis with risk free rates shouldn't be flat. I would like to add to dm63 that the Bank of International Settlements wrote a very interesting paper on the cross currency basis
[Covered interest parity lost][1]
The author of the article you are refering to assumes covered int... |
Say I have a portfolio which contains two components, A & B.
Below are the daily contributions to performance (0.02 equals 2%), where the overall portfolio return is equal to the sum of component contributions (A & B).
A B Overall portfolio
0.03 0.01 0.04
0.02 0.01 0.05
0.04 0.03 ... |
FX carry trade is pretty clear to me when one's trading currencies physically. The return for this trade will depend on the interest rate you're paying for the USD borrowed, the foreign interest rate received by lending the foreign currency and changes on the FX rate.
What I don't understand is why trading FX Future... |
You are correct. In order for this to be a pure fx carry trade with no market risk (just credit risk), you have to have 2 fx trades. One shorter dated and the other longer dated.
Typically, you this will be done where you buy a currency spot and sell that same amount of currency in the future, in your case through... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.