instruction
stringlengths
35
27.7k
Bear with me if this sounds a little flippant, but this has got me curious. I know "sports arbitrage" is an active economic activity, although the arbitrage arguments, I think, are not published on as widely as financial markets! For the upcoming Lions vs. South Africa rugby tour, (which includes 3 test matches), I was...
Say have a basket of coupon bonds $B_i$ with $i \in \{1, ..., n\}$. Those bonds have different characteristics one from another. For example they differ in maturity, face value and coupon outstanding. But they are in same currency. The problem I am facing is quite theoretical: how can I come up with a benchmark index o...
I have volatility driven by a CIR process: $$\mathrm{d}v_t = \kappa (\bar{v}-v_t)\mathrm{d}t + \omega \sqrt{v_t}\mathrm{d}W_v\text{.}\tag{1}$$ I am working with several (complicated) approximations of this process (for example, QE from the Andersen paper). Given $v(t)$, these approximations sample a $v(t+\epsilon)$. Ho...
I am trying to compare bull call spread and bull put spread for equity index option. For the options where the put call parity holds, I am getting a different payoff for bull call spread and bull put spread, where bull call spread is giving higher payoff? What can be the reason for this and if the put-call parity holds...
I want to build some function that will generate a grid of orders with some conditions. I want to generate 10 orders with a base asset price of 100 to 200. I'm using geometric progression for it minPrice = 100 maxPrice = 200 orders = 10 k = (maxPrice/minPrice) ** (1/ (orders-1)) prices = [minPrice] for i in range (or...
Not sure if my question makes any sense because I'm pretty new to the credit market. Suppose I have a 5Y CDS spread which is quoted as 100 bps with 40% recovery rate. So, if I want to estimate another 5Y CDS spread for the same entity, but with 50% recovery rate, what's the rough estimation for it? My guess is $$ s=\fr...
I need help. I have an assignment for an exam where i have to compute the price of a portfolio composed by floating coupon bonds taking into account the issuer credit risk and the recovery rate in case of default. I have to create a code in python. After computed the discount factors, i should price the bonds, but i do...
Generally, for a corporate bonds portfolio, what are the common risk factors that's hedge-able through some liquid products? I know we can hedge the rate-risk through treasuries. We have some ETFs for specific bonds like JNK/HYG/LQD, and certainly the equities of the firms. Are there other liquid proxies I am not aware...
how can i construct a forward libor curve, which produces forward LIBOR rates, with the given data/info: par rates of a set of OIS fixed 6M LIBOR rate par rates of a set of Swaps which the underlying is 6M-LIBOR and floating leg pays semi-annually whiled fixed leg pays annually I am asking your guidance on how to bui...
I'm hoping this question is not too banal or off-topic for this forum. Could you please help me understand / point me towards some resources on the impact of correlation on loan defaults? First question I have seen some material that, as correlation goes up, the expected loss of the portfolio remains the same, but the ...
The classic case of a stock and bond Well known in the literature is the Kelly-Criterion in terms of Merton's portfolio problem with log-utility. To recall the specific framework, let $S_t$ be a stock following a GBM with drift $\mu$ and volatility $\sigma$, driven by a Brownian motion $B_t$, and $M_t$ be a risk-free ...
Instead of using CDS spread to do risky discounting, I would like to use the bond yield curve. Can I directly use the discounting factors from the bond yield curve or do I need to figure out the probabilities of default like in a CDS curve and use them for the risky discounting?
I need to price a "foreign-paying" fixed-strike Asian (i.e., average) option. Thus, the payoff is: $$\left(\frac{A_T - K}{A_T}\right)^{+} = \left(1 - \frac{K}{A_T}\right)^{+} = K \left(\frac{1}{K}-\frac{1}{A_T}\right)^{+}$$ where $A_T$ is the arithmetic average, at expiry $T$, of some spot FX rates. E.g, $A_T = \sum_{...
I have a question regarding the barrier shift used when risk managing a down and in put (PDI). I'm reading Exotic Options Trading by Frans de Weert and he gave this example. Trader is long one PDI 100/70 (strike 100% spot, down and in barrier 70% spot), striked at spot = 100. Now spot is at 70.1, and the put's absolute...
I have frequently heard terms like DV01, CV01, PV01. Where can I get a list of these glossaries to study? I am not looking for a detailed explanation, just really a list.. Once I have the list, I can look them up to study by myself.
[Solved] For the below code, I get a ValueError:could not convert string to float. I have tried to search from the forum but still not able to find the solution. Hope for help. Thanks in advance. [Solution] There is error for my data in csv file, e.g. there is some unknown format data like "?0.2" instead of "0.2" insid...
Why is SABR considered the model of choice for swaptions? Is the Heston model not suitable? Does Heston produce unrealistic dynamics with respect to the swaption market?
I came across the following question and am trying to understand it better. I was hoping you could share your intuitions. For a given stock, you are certain that for the next 100 days, it will move either 10% up or 10% down each day with equal probability. You can invest now, but if you chose to do so, you have to hol...
I'm new to FX derivatives and I'm trying to price a derivative of USD - JPY pair at 450 pips below spot for USD - JPY. Let's assume that the spot is 109.36; would this mean that 450 pips below spot is 109.36 - 0.045 = 109.315? If this is incorrect, please help me understand the intuition behind pips. I understand that ...
I am analyzing some options data and I see that the volatility smile has its minima a few strikes higher than the current traded price (about 2.5 % higher than spot). I have checked my data thoroughly. I want to understand if this is something normal and explainable (explanations welcome) or am I using wrong parametere...
I am new to finance, so please bear with me I am supposed to find the change in 'interest expense' when the borrowing rate goes up by 50bps. The liabilities include both fixed and floating rate liabilities. I have done it as follows: I separated the floating rate amount from the total debt amount and then calculated 50...
Sorry for this rather general question but im new in this field. I'm asked to model the Expected Expsoure of an interest rate swap. The Short Rate should be modelled via a 1factor Hull-White model: $dr(t)=\left(\theta(t)-a\cdot r(t)\right) dt + \sigma(t) dW(t)$ I'm trying to price the swap with tf_quant_finance.models....
I need help with calculating the profit I'd make if I was short the Jun '23 Eurodollar futures contract @99.275. I believe that it'll move to 98.75, which should net me a profit of 0.525*2500=1312.5. However, I've been reading up on these contracts and was wondering when I should account for days to expiration into my ...
I am a bachelor student and I have to do a research paper for my finance class. I saw that some currency have NDF such as TWD, KRW, BRL. Therefore I imagine that the rate implied in this NDF is what I should use for the pricing of my future as a foreign investor. I was wondering if there were papers, presentation that ...
I am currently hedging a short put option where strike is 6027 and expiry is 30th Mar 2023. As per my understanding when option is ITM increase in volatility will decrease the delta and decrease in volatility will increase the delta, whereas for OTM option increase in volatility will increase the delta and decrease in ...
let's say I want to do a steepening trade. What would be the difference between entering a swap starting in 5 years and lasting for 5 years (5y5y) entering a payer swap with a tenor of 10 years and receiver swap with a tenor of 5 years Help is much appreciated:)
This may be a trivial question, but one I wasn’t sure about. Imagine I want to buy a 1 year ATM straddle. Does “at the money” imply buying closest to the current spot price, or does it mean to buy at the strike closest to the forward price. Was curious because I was looking at some option chains and for longer maturity...
FX futures price in the interest rate of different currencies, so can you use US treasury bonds (for example /zn) and FX futures (for example SGX USD/CNH FX Future) to create a synthetic bond of a foreign currency?
Sorry if this is obvious, but I was reading up on Futures and the concept of variation margin intrigued me. Options settle like Stocks and have unrealized gain/loss without affect on cash flow during the position, but Futures have a system of variation where the price difference of the commodity/stock must be paid afte...
I'm currently looking at some code that implements the Hull-White model. As one of the inputs, the code accepts a table of discount factors at various dates. Time in Years Discount Factor 0 1 0.003 0.9998843333803 0.083 0.9968031327369 0.167 0.9935687092306 ... ... One step of the program is to comp...
I am currently reading the PP BOYLE's article ' Option Replication in Discrete Time with Transaction Costs' written in 1992. Here is one place i couldn't figure out: Where does that $\widehat{p}$ come from? And the $\bar{P} = \begin{pmatrix} \bar{p_{u}} & \bar{p_{d}}\\ 1-\bar{p_{u}} & 1-\bar{p_{d}} \end{pmatrix}$ Wh...
I have a bond that pays out semi-annually. The coupon is 0.14, which means it pays 0.7 after 6 months, and then 100.7 after another 6 months. I need to find the discount factors by bootstrapping. Is the following approach corect: ZC1= 0.07 And, $100= \frac{0.07}{1} + \frac{100.07}{(1+z)^2}$, where z is the zero coupon ...
Assume that the commodity spot price follows the stochastic process (see Schwartz article page 926) $$ dS = \kappa(\mu-\log S)Sdt+\sigma SdW, $$ where $\kappa >0$ measures the degree of mean reversion and $dW$ is the increment to a Brownian motion. Applying Ito lemma to $X = \log S$ we obtain $$ dX = \kappa(\alpha-...
i have the following problem. I have a set of spot rates /zero rates $\{(t,r_t)\}_{t=1}^n$ where $t$ is the time and $r_t$ is the zero rate. How can i calculate with this data the instantaneous forward rate $f(0,t)$ for an arbitrary $t \geq 0$ (i use the term spot rate /zero rate interchangeably, i do hope they are in...
Let's say you decide to buy a 2Y10Y ATM swaption straddle (i.e. buy 10 million ATM payer swaption and buy 10 million ATM receiver swaption). In order to delta hedge, I believe you would short the 2Y10Y forward swap. My questions are: How exactly does this delta hedging work? When do you profit from it (is it when ther...
Since Basel II requires banks to utilize pooled PDs per rating grade / segment, I wonder why exactly. Via a logistic regression you can directly estimate an obligors PD, why the extra step to pool them back together? E.g. why take a small corporate exposure with a PD of, say 0.31% stemming from a logit model, and calib...
https://finance.yahoo.com/quote/XFLT/profile For example, I don't see the sector/industry info the above stock. Is there a website that has complete sector/industry info for all stocks (at the least the ones on the US market)?
The following example is from the book Active Portfolio Management by Grinold and Kahn. Suppose we have the factor returns and want to estimate the exposures/factor loadings. Say the factor returns are returns on the value-weighted NYSE, gold, a government bond index, a basket of foreign currencies, and a basket of tra...
I am reading the book "Trades, Quotes and Prices" by JEAN-PHILIPPE BOUCHAUD and have stuck in the very beginning with understanding the formula of variance of MM's gain per trade (see picture). How is this formula derived since it is not like a standard variance formula with expected value and mean in it? It is also st...
In the book "The money markets handbook" by Moorad Choudhry, it says that "on the coupon reset date an FRN will be priced precisely at par". Why is this? Would it not discount the future curve and hence the potential return from the Euribor+spread (therefore be priced under par if the two rates are positive and vicever...
What is the difference between shorting the front month, rolling it into a back month vs just shorting the back month? For example: shorting the front month and rolling the short every 3 months until Jun'23 versus shorting Jun'23
The value of SMB of Fama French 3 factor model is calculated as follows: $$ \frac{1}{3} (Small Value + Small Neutral + Small Growth) - \frac{1}{3} (Big Value + Big Neutral + Big Growth). $$ However, in Fama French 5 factor model the value of SMB is calculated as follows: $$ \frac{1}{3} ( SMB(B/M) + SMB(OP) + SMB(INV)...
I think the question here is what we know about $\mathrm{Var}\left(\frac1X\right)$. Is this the right question to ask, and if so is there anything that can be said?
I have a strange question. For example, I have 95% VaR (1Y, delta-normal) for portfolio with one stock in same currency (for example, USD). What minimal information should I have for recalculation this VaR from USD to RUB? USD_RUB and this portfolio stock are correlated.
I've been playing around with the R package PortfolioAnalytics and I have spent more time than I'm willing to admit to try and resolve this issue: When I follow the regime switching example with the edhec data from the vignette (https://gist.github.com/rossb34/10328671) the code picks the 2 different individual regimes...
I have created a random forest classification model in skicit-learn, but I am unsure how to finalise my forecast. I have built the model and it is showing good results on the testing data. I get a mean accuracy of 85%. Predicting whether the stock price will go up or down. I used data from Yahoo finance consisting of o...
I've been looking for the metadata about how the exchange rates on yahoo finance computed, but I cant find anything on the website. Please kindly help me, thank you. This is the example USDIDR=X:
I'm trying to work out if fungibility of financial assets / instruments is dynamic (i.e. it can be applied to a subset of the asset or instrument's properties) or is it static (i.e. it can only be applied to all of the asset or instrument's properties). Definitions (from Google) law - (of goods contracted for without ...
I have a portfolio High and Low (according to the highest profit). From this I have formed my long short portfolio and calculated my Sharpe Ratio. How to interpret this correctly? Does a positive Sharpe Ratio in the long short portfolio mean that my portfolio High has performed better than my portfolio Low? Thanks
I want to solve the following Bernoulli differential equation: $$A'(t)=A^2(t)[-2\sigma +1]-2aA(t)$$ where $\sigma$ and $a$ are real numbers. Until now I have divided both sides of the equation with $A^{2}(t)$ and defined $u=A^{-1}(t)$ and $u'=-A^{-2}(t)A'(t)$. The new equation that arises is $$u'+2au=1-2\sigma $$ It mu...
I recently took a quiz in which one question asked me to choose one answer that is true regarding convexity. One of the answers said that a longer maturity leads to a higher convexity, another answer said that a lower yield leads to higher convexity. I personally thought both are correct. For the first answer I came t...
Hey how to simulate Levy processes? I have no problem with Wiener process and compound Poisson process, I also know how to simulate Variance Gamma process but I have no idea how to simulate for example Meixner process, CGMY process and other Levy processes with infinite activity.
It is now well documented that stock prices, on average, rise on the IPO date. This implies that the IPO prices were systematically "set too low" on average. Why is this the case, according to Wall Street people? I know there are various asymmetry information-based stories told by academics, but I'm curious what Wall S...
I am trying to value a food and beverage company using DCF. I have forecasted the short term projections for 10 years and calculated a terminal value there after. But I am confused with which risk free rate to use for calculating cost of equity. I have three options - 1 year T-bill yields, 10 Year Treasury Yields and 3...
Let $f$ be a function of $t$ and $W_t^2$. a)Find a function $f$ such that $f(t,W_t^2)$ is a $F_{t^-}$ martingale, with $F$ the Brownian filtration. b)Use Ito's lemma to show that $f(t,W_t^2)$ is a process with zero drift. My attempt for first part, I got $f(t,W_t^2)=W_t^2-t$. For the second part I know I'm supposed to...
Let say I have N opened trades (N = s + b) that are partialy hedged, and paritaly not. In general s != b. Some of them are market sell orders (s), and the rest of them are market buy orders (b). They were all opened some time ago and currently they experience stochastic value change according to price dynamics. I would...
I am running a regression analysis on a bondxday panel to explain the variation in repo rates. The dependent variable is the weighted average rate of all repo transactions which are conducted on a specific day and which are collateralized with a specific bond. All considered (collateral) bonds are Eurozone government b...
I am looking for a book, which covers the following topics: stock price prediction using Artificial Neural Network, stock price prediction using LSTM, stock price prediction using linear/non-linear regression methods, other prediction techniques. I am not interested in Black-Scholes, or other quant stuff. I need book...
In the wikipedia article on the Milstein method, the following python code to simulate a geometric Brownian motion is presented: import numpy as np import matplotlib.pyplot as plt num_sims = 1 # One Example # One Second and thousand grid points t_init = 0 t_end = 1 N = 1000 # Compute 1000 grid points dt = ...
I dont get why $$\lim_{x \to \infty} \frac{\mu \{1 - \Phi(x)\} + \sigma \phi(x)}{(\mu + \sigma x) \{1 - \Phi(x)\} } = \lim_{x \to \infty} \frac{1}{1 - \sigma \frac{1 - \Phi(x)}{(\mu + \sigma x)\phi(x)}}, $$. This is the only part that I'm stuck with, otherwise I don't see how to evaluate the limit. Thanks f...
Let's assume that I have a portfolio with two components:$$\omega_i = 0.3$$ $$\omega_j = 0.7$$ I also have two P&L vectors, $v_i$ and $v_j$ each containing 1000 P&Ls. I would like to play around with the weights and test out the VaR 95% at portfolio/total level. What would be the easiest and most intuitive approach (ei...
just wanted to ask how to use Quantlib on replicating Excel's MDURATION. Given the following parameters, I was able to get a value of 4.478837 via MS Excel's MDURATION Function. # GIVEN: # settlement_date = "2021-05-15" # maturity_date = "2025-11-30" # coupon_rate = 0.00375 # yld_rate = 0.01 # frequency = 2 # basis = ...
I am in search for intraday (some observations per day would be fine) or high-frequency data for stock prices. I have for example 3.000 ISIN numbers of German companies and want to get the intraday/high-frequency stock price data over the last 10 years. Does anyone have an idea, where I could get these data? Many thank...
Could you please help properly use QuantLib python library to estimate different metrics of bond with uncommon coupon payment periods? For example, I have a bond, which pays coupon each 182 day (26 weeks). Following code sets up the schedule and the bond: issueDate = ql.Date(19,6,2019) #05.06.2019 maturityDate = ql.Dat...
I am trying to solve exercise 15.3 from the book The concepts and practice of mathematical finance where it is asked Suppose the $\log S_t$ follows a Brownian motion over the period $[0, 1]$ except at time $0.5$ where it jumps by $x$. What are the first and second variations of $\log S_t$ over the period $[0, 1]$. Th...
Hey I know that we can use characteristic function of log-price process to price different options. But when we know the characteristic function? I know that we can take Levy processes and constant interest rate, but what if I want to add stochastic volatility and stochastic interest rate to my model? And can we in som...
I am analyzing a company's annual report, and wish to find the percentage of FX exposure they have already hedged. I have the following information: The net FX exposure for 4 different years The gains/losses reported in these years The corresponding exchange rate at these times I also have information that they are us...
I am pricing a bermudan call option using finite difference method. At each exercise time on the grid I have points I exercise and on some of those I don't. Thus, at any given call time there is a probability to exercise which is the ratio of number of points of call/all points. But how would I calculate how probable t...
I couldn't find it on his website and the only ones I have are the files contained in the Introduction to Quantitative Finance's CD.
I have a trading strategy that can take multiple long positions with different sizes before selling them. For example, buy 5 shares of ABC on days 1, 2, 3 and sell 15 on day 4. Going forward, buy 10 shares on days, 11, 12, 13 and sell 30 shares on day 14 etc. I can plot equity curve for this strategy. But, I don’t know...
I do get that these concepts are well-defined, but I am referring to extreme value theory in particular, and the fact that these ideas are often tossed around as synonyms, leaving the details and subtleties restricted to people with very advanced knowledge of statistics or financial mathematics, while the rest pretend ...
I am doing a report about famous quant companies such as Renaissance Technologies. Where can I find information such as ranking of these companies and their fund's rate of return.
I am looking for examples for the number of significant digits commonly required to find numerically the price different types of derivatives. For instance, if we have to price an American put option, what is the confidence interval and numerical accuracy required in the industry? The only relevant question I have foun...
Suppose that the market is closed, but orders are queued up to be matched as soon as the market opens. Suppose for simplicity that only two orders are queued: A sell order to sell 1 unit at \$1.00 A buy order to buy 1 unit at \$1.10 If order 1 came in before order 2, the orders are matched at \$1.00, and if order 2 c...
The standard FF factors as published by K. French (https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html) are created using CRSP data. If one downloads the (US) factors, the first line in the CSV says: This file was created by CMPT_ME_BEME_OP_INV_RETS_DAILY using the 202105 CRSP database. The inter...
I'm trying to derive the Heston-Hull-White PDE. The correct backwards PDE is equation (1.3) of this paper on page (2). I will begin deriving the forward PDE, but switching between the two is trivial. The model I am working with is the Heston-Hull-White model, given below: $$\mathrm{d}S = rS\mathrm{d}t + \sqrt{v}S\math...
Suppose that the spot rate is governed by a Vasicek model. We know that there is an analytical solution for the zero-coupon bond. I guess the discount curve is constructed by the Yield curve in which we have that \begin{equation} y(t, T) = -\frac{lnP(t, T)}{(T-t)} \end{equation} where $P(t, T)$ represents the zero-coup...
I have monthly stock returns I want to invest in according to my trading signals. Now I want to figure out the optimal holding period of the long-short-positions. (The same time for both positions). I invest one unit long and one short. For a holding period of one month I just substract the returns from the short-portf...
I have a simple question that makes me doubt a bit. In a multiple choise exam I ecountered this question: "if the stocks returns are not normally distributed, the fat tail effect can be estimated trhough a t-distribution?" a)no, since data are usually normally distributed b)yes, since it affect ES c)no since the t-dist...
This question is different than pricing using dupire local volatility model and Is Dupire's local volatility model path independent to recover historical option price? I also asked this on Math Stack Exchange and realized it would be better asked here. I have been reading about the Dupire local volatility model. I have...
Are there any option trading strategies that can profit by modeling delta more accurately than Black-Sholes does? I'm looking at models for predicting delta, and I can clearly see how these can help hedge better, but wondering if other profit opportunities exist. For example, let's say I know that the delta for an opt...
Assume you have the standard financial market built up of a Brownian motion. I have seen some books say that an equivalent local martingale measure imples no arbitrage, and some say that an equivalent martingale measure implies no arbitrage. These statements are not contradictory one is just stricter than the other. Bu...
This is from the book Financial Calculus: An Introduction to Derivative Pricing by Martin Baxter. By choosing appropriate weights in a portfolio of a stock and cash bond you can replicate the payoff of a forward. Notation: we are now in State 1, with stock price $S_1$. In the future we will be in State 2 (with stock pr...
I am using bt backtesting to test between an initial lump sum into 'ETH-USD' and a dollar cost average approach. I will then look into a different mix of equally weighted crypto. What I like about bt is I can get stats including the sharpe ratio and max drawdown after running a backtest. I have this so far: data = bt.g...
I'm comparing daily and hourly values extracted from YFinance in Python. I'm expecting the open value of the first hour of the market to be equal to the daily open value of the corresponding day, and the close value of the last hour of the market to be equal to the daily close value. Also, the min and the max daily val...
I'm trying to generate some sample geometric brownian motion paths for an asset which is traded 24/7 without interruption and is highly volatile (upwards to 150% implied volatility on options markets). I'm currently using this script: https://stackoverflow.com/a/13203189/5433929 I would like to generate sample paths wi...
Suppose we have a stock paying a stochastic dividend at rate $q$ in a zero interest rate environment. Is there a publicly traded (non-over-the-counter, meaning not specially designed for an entity) instrument, synthesized or not, with present value $\mathbf E[e^{-\int_0^t q\,d\tau}]$ at time $t=0$? It is analogous to a...
Is anyone aware of a data source for the composition of the derivative books across asset classes for large investment banks? As an illustrative example with dummy figures, this could be a database or a report which displays notional/MTM/trade count/etc. data for derivative trades, split between "IR Futures", "IR Swaps...
I am using the iPython notebook published by Gouthaman Balaraman at [http://gouthamanbalaraman.com/blog/interest-rate-swap-quantlib-python.html][1] This is to value the Interest Rate Swap. I am intrigued that the NPV of swap is not 0 even if we were to be using the same quotes using which the discount curve (and same f...
I was checking a few callable perpetuals on Bloomberg and using their Yield calculated it is always shows Workout date to be the first call date for those bonds. I wonder why this is the case and if there an intuition behind it. I compared a few call dates and indeed for a fixed price the first call date seem to have t...
Brigo and Mercurio give Rebonato's approximation for Black-like swaption volatility as $(v^{LFM}_{\alpha,\beta})^2=\sum^\beta_{i,j=\alpha+1}\frac{w_i(0)w_j(0)F_i(0)F_j(0)p_{i,j}}{S_{\alpha,\beta}(0)^2}\int^{T_a}_0\sigma_i(t)\sigma_j(t)dt$ How would I interpret this result in a "factor reduced" aka "multi-factor" or "n-...
I'm trying to follow https://en.wikipedia.org/wiki/Variance_swap#Pricing_and_valuation where it seems to me that they're just subtracting a simple return: $$ R_t = \frac{\mathrm{d}S_t}{S_t} = \mu \mathrm{d}t + \sigma \mathrm{d}Z_t $$ from the log return: $$ r_t = \mathrm{d}(\mathrm{log} S_t) = \left(\mu - \frac{\sigma^...
I am looking for references for market-making strategies using bid-ask order ladder. Algo should suggest entry prices, and do inventory management. I am more interested in practical simple algo used commonly in the industry.
I am fairly new to QuantLib Python. I have generated the following cashflows from one AmortizingFloatingBond from QuantLib Python. But I am not able to identify which ones are Interest payments and which ones are Principal; I have more than 450 bonds and it is not possible to manually look into each. Is there any tag ...
Would it be possible to help understand the numeraire of certain currency options? Derivations from the Black Scholes models for Delta and Gamma, $Delta = e^{-r_f T} N(d_1)$ $Gamma = \frac{e^{-r_f T}}{S \sigma \sqrt{T}}n(d_1)$ would give the values in terms of the first currency, whereas the derivation for Vega would r...
Want to write some portfolio rebalancing code but have found only simple portfolio rebalancer strategies like calendar and threshold. I want to rebalance a portfolio with different asset groups (EQ, FI, mutual funds etc.). Are there any insightful papers or books out there that delve into some more complex portfolio re...
BL model compute the implied returns based on the reverse optimization where the objective is: $${\underbrace U_{{\rm{investor's \ risk \ utility}}} \buildrel \Delta \over = {\bf{w}}_M^T{\bf{\Pi }} - \frac{\delta }{2}{\bf{w}}_M^T{\bf{\Sigma w}}_M^{}}$$ A mentioned here, we can compute the risk aversion parameter by mul...
So I've encountered a problem - I have a lot of 1 min data, but my strategy works better on longer timeframes and backtrader has some problems with backtesting on 1 mln rows. I want to convert it to 1h/4h/1d timeframes, tried to convert to 4h just by selecting every 240th candle but not sure that's the right way, any t...
I am doing a research project and writing about volatility modeling. The three broad basis I am covering are Historical volatility, Implied volatility and stochastic volatility. It is my aim to code and evaluate models for all of these approaches, and discuss how they can be used in predicting future volatility. I am h...
When I look at Hull's "Options Futures and Other Derivatives" the process for $F_k(t)$ in the rolling forward risk neutral world is specified as $\frac{dF_k(t)}{F_k(t)} = \sum^k_{i=m(t)}\frac{\delta_iF_i(t)\zeta_i(t)\zeta_k(t)}{1+\delta_iF_i(t)}dt + \zeta_k(t)dz$ where $F_k(t)$ is the forward rate between times $t_k$ ...