instruction
stringlengths
35
27.7k
Let $y_{k}$ denote the yield-to-maturity of a $k$-period coupon bond. Let $S(k)$ denote the $k$-th period spot rate. If $y_{1}<y_{2}<y_{3}<\cdots$, then $S(k)\geq y_{k}$ for all $k\in \mathbb{N}$. I approached this problem by first considering the price of a $k$-period bond can be priced as both $\sum_{i=1}^{k} \frac...
I'm elementary level of stochastic calculus. In the above picture, from equation (11) to (12) I don't know what is the clue of $μ(t)$ is the expectation of $r(t)$ and how from this identity we can get equation (12) Also, I totally don't know how to derive equation (13). I have a reference book that shreve's stochastic...
I have a correlation matrix that I wanted to convert into a variance covariance matrix. I also have the weights in a column in excel along with each assets standard deviation. What excel function can I use to get a variance covariance matrix or portfolio standard deviation if I only have the correlation matrix with wei...
The first step in the Black-Litterman method is to find the "implied market returns" (the prior). Usually this is calculated as: $\Pi = \lambda \Sigma w$, where $\Pi$ is the vector of returns "implied by the market", $w$ is the vector of market weights (each element = security market cap / total market cap), $\Sigma$ i...
I am looking to run weight portfolio simulations, but I would like to fix the weight of one asset and set lower/upper bound limits for the remaining assets. I have only been using Python for a couple of months. Below is the standard code I found to run simulated asset weights. It works great; but I want to see how I c...
I bought put options on RSX expiring March 11 2022. I want to sell them for cash and profit! I don't want RSX shares! 6 hours ago, my brokerage emailed me that I cannot sell or exercise my puts. What will happen on expiration, if trading on RSX is still halted? Will my puts expire 100% worthless at $0? If I recall, aft...
Based on Merton model of credit risk, I understand that investing in a risky debt is the same as buying a treasury bond and writing a put option on the firm's assets with a strike price equal to the face value of the debt. And the the equity is a call option on the assets of the borrowing firm with a strike price equal...
I'm reading a book that states that PO mortgage bonds go up when interest rates go down as the prepayment happens faster. I'm confused whether prices go up on PO bonds or yields go up?
Assume we have a system that is built on the CDS spread values. If we want to shock the system, how can we define the shock? For instance, we can define it as the increase in the spread. Of course a threshold should be decided for this. What are other ways to define the shock?
I am currently in the process of developing an interest rate model that would be used to price mortgage-backed securities and develop an OAS estimate. Referring to Brigo and Mercurio (2006) I'm focusing on two-factor models instead of one-factor to overcome the 'basic' assumption that all rates on the term structure ar...
The reference is Fixed Income Securities by Pietro Veronesi. As you can see, In Table 20.5 when the maturity is 1.25, the LIBOR Discount is 96.7402 However In Table 20.3 with same maturity, the continuous compounding discount is 96.7385 Even it is the data from same date November 1, 2004 I think those two should be t...
I am trying to connect some dots in my understanding between 2 concepts. Utility function: I can see there there are different utility functions and I can draw them at different levels until I find one that is touching the efficient frontier, call it point A. That will define a portfolio that is optimal for a given uti...
I'm learning about copulas and their applications in finance. When used to assess the dependence structure between two indices for example, can the copula models be estimated directly on the log-returns or should they undergo, that is the log-returns, some transformation then estimating the copula models on the said tr...
Here is an interview question: For a double knock out barrier option (ITM), which model gives higher price? local vol or stochastic vol model? The answer is that local vol gives the higher price. However I only know that stochastic vol is the correct model to price barrier option to control the forward vol (vol of vo...
This is an interview question: Imagine you have a double knock-out barrier option: the current spot is 100, the lower barrier is 80, and upper barrier is 120. The barrier is continuous, meaning that once the spot goes out side the range of 80-120 anytime before time to maturity, you got nothing. If the spot stays withi...
I am trying to do a standard realized volatility calculation in python using daily log returns, like so: window = 21 trd_days = 252 ann_factor = window/trd_days rlz_var = underlying_df['log_ret'].rolling(window).var() * ann_factor rlz_vol = np.sqrt(rlz_var) I am essentially getting a realized vol value for each day i...
Assume $(X_t)_{t\geq 0}$ follows an SDE of the form: $$dX_t = a(t, X_t) dt + b(t, X_t) dW_t$$ where $W$ is a standard $n$-dimensional Brownian motion, $a$ and $b$ are mappings from $\mathbb{R}_+\times\mathbb{R}^n$ to respectively $\mathbb{R}^n$ and $\mathcal{M}_{\mathbb{R}}(n,n)$ with all the usual regularity condition...
I would like to sort companies according to the Fama-French 48 industry levels. For that, I need the Compustat Standard Industrial Classification (SIC) code. In the web interface of WRDS, I could simply select the field SIC. However, I need to get the compustat data via an SQL query but comp.funda does not have an entr...
I have a set of 7 assets, and I have run an ADF test on all possible pair-spreads to find possible pair strategies. I am creating the spreads using a rolling window in which I run linear regression to find the hedge ratio. It seems that when the rolling window is large/long, few spreads are stationary. But as I decreas...
If asset allocation decisions were made prior to the news of unanticipated inflation, how should asset allocators incorporate the fact the inflation is now 5% higher than the 2% inflation target? It seems that a 60:40 Equity:Bonds allocation was miraculously persistent during the 40 year period of declining interest ra...
Given that the price of market risk (or market price of interest rate risk) is $\lambda(r_t, t)=0$ and that we have the following dynamics of the interest rate (under the physical measure $P$. $$dr_t = \sigma dW_t^P \quad , \quad \sigma \in \mathbb{R}, \; W_t \text{ is a Wiener Process}.$$ If we furhter more have the r...
I have been wondering how the following situation is / should be implemented. Consider some kind of surface $z = f(x,y)$ which has to be pre-calculated; the shape of this surface would not have a closed-form solution, but would instead be calibrated by some time-consuming numerical methods, which are updated asynchrono...
I'm pretty new to quant and I'm trying to better understand the Random walk (and EMH) narrative and the idea that using past data is irrelevant to predict future prices. To illustrate my point, let me share 2 charts. Monthly Bitcoin chart Monthly S&P500 chart since 2009 Now although I understand these could be one re...
I'm very new to pairs trading, and am trying it out on a few dozen pairs. It seems very natural to me to use a dynamic hedge ratio, as it seems likely that the ratio will move over time. To accomplish this, I am using rolling linear regression (so I choose a lookback period of, say, 100 hours and I keep shifting this 1...
From the post Integral of Brownian motion w.r.t. time we have an argument for $$\int_0^t W_sds \sim N\left(0,\frac{1}{3}t^3\right).$$ However, how does this generalise for the interval $[t;T]$? I.e. what is the distribution of $$\int_t^T W_sds.$$ I would expect it to be $$\int_t^T W_sds \sim N\left(0,\frac{1}{3}(T-t)^3...
Given a specified maturity is there a way to compare Vegas between different strikes? Surely the Vega of an ATM option will be very different from the same Vega of an OTM option
probably a v basic Q, but what is the difference between the ytm curve and the par curve, and given the ytm curve I see in the market how do I build a corresponding par curve
Total newbie here, I am struggling to calculate the correct repo PL on a transaction. Basically I have a GBP Bond which I repo out as below: UKT 2.75 09/24 (EK1093963) so (41,395,983) @ 103.57 and I receive cash in of GBP 42,874,661. Lets assume the TD is 24th Feb and the Repo starts on the 25th of Feb. Repo interes...
EDIT: this question was previously closed because it was 'assumed that it should be common knowledge'. I advise you to READ THE QUESTION PROPERLY and you will find out is is NOT common knowledge at all, due to the fact this is a particular case of bootstrapping. In regular bootstrapping you would have a bond and spot r...
I am looking at the stock PDN (Paladin Energy) on ASX (Australia Stock Exchange), and I am trying to determine the lowest price traded on the date 2020.03.23 (YYYY.MM.DD). Should not be such a difficult task, eh? So, lets ask Yahoo Finance, which provides a low price for the day of 0.0350. Ok. https://finance.yahoo.com...
I would like to ask about discount rates calculation algorithm by Bloomberg terminal. In the image above is possible to notice the discount rate for each term. The short end, instruments from 1 DY up to 18 MO, is composed by zero coupon swaps. The long end, instruments from 2 YR up to 20 YR, is composed by swaps compou...
I understand that there exist direct stock plans that allow you to buy shares directly from a company. However, these have obvious and large downsides, so we can disregard them. Furthermore, I am not talking about brokers who give investment advice and similar services, but only referring to a brokerage service or proc...
I am interested to invest Rs. 1 lacks in security market. I have securities A and B for this purpose. Here is the details: Security Risk Expected_return A 10% 12% B 18% 20% Coefficient of correlation between A and B is 0.15. If I decide to invest 50% of his fund in A and 50% i...
I have several questions regarding Fama-French and other (for instance, BAB) equity return factors for practical purposes (portfolio construction, portfolio risk analysis, portfolio return analysis). I am interested in answer for any of the questions below. I am familiar with "factor zoo", so below when I write "factor...
Let's say I have a 10 year dataset of Tesla (example) and I am taking the percentage change of lag 2: tsla <- quantmod::getSymbols("TSLA", from = base::as.Date("2011-01-01"), to = base::as.Date("2022-01-31"), auto.assign = F) tsla = as_tibble(tsla) head(tsla) d = tsla%>% dplyr::select(TSLA.Adjusted)%>% dplyr::mutat...
I have a set of time series data from a bank that is transaction data from all its clients on a particular currency. From that data, I attempt to estimate the current "position" of all market participants in that currency. I do that through a rolling 20 day total (1 month). However sometimes that total changes signific...
I'm thinking about some sort of behavioral risk factors such as whether different utility functions, such as Prospect Theory according to Kahneman and Tversky, might change the way betas are derived and formulated and whether there are risk factors such as - say- some sort of loss aversion risk premium and such. From ...
General Markowitz-style optimization (problem objective of $w^T \mu - \lambda w^T \Sigma w$) yields simple optimal weights policy $w \propto \Sigma^{-1} \mu$. However, I would like to add a series of factor exposure constraints (i.e. $| w^T \beta_i | < k_i$ for factors indexed by $i$, instrument exposure vector to $i^{...
I am doing spot price forecasting for a market, and so far, the naive forecasting model, which forecasts with the last observed prices, is the best forecasting model. I know that it might be because of my poor forecasting skills; however, how can this situation be explained if it is not the case? So far, I have come up...
Linear correlation controls two aspects : that of level (Basket options) and that of dispersion (spread options). Is there a copula that has two separate parameters for each?
The payoff of a cap/floor is calculated as a payoff of constitutient caplets/floorlets. The SABR volatility model has the implied volatility approximations of Hagan et al. $$\sigma^f_{IV}\approx \sigma_{Hagan}(t_0, K, F_0, \alpha, \beta, \rho, \nu)$$ which allows one to price an individual forward-looking LIBOR-like ca...
Consider a maturity $T$, for this maturity I have some implied volatility from market denoted $\sigma^{0}_{i}$. I want to interpolate these volatility using Entropy approach, by using $\sigma^{0}_{i}$ as prior. From $\sigma^0_i$, market prices of options $C_i$ can be obtained, out of which a probability distribution f...
Say I am investing to gain weekly yields ${y_{i}}$ for over a year, gaining the overall yield: $\prod_{n=1}^{52} (1+y_i) -1$ The most dominant term in the above product is the sum of all yields, which by CLT should now converge to a normal distribution even if short horizon returns are themselves 'fat tailed'. (Assumin...
I've been told (and have done problems) involving the part of the return of an asset $X$ that is uncorrelated with returns on the market $M$, which can be written as $X - \beta X$. This sort of makes sense, but if someone asked me to explain what "the part of $X$ that is uncorrelated with $M$" is, I would've guessed $X...
For CLOs, CDOs kind of security, how can I build a cashflow model when the tranche supporting structure is very complex. For example: After tranche A is paid, the amount going to B is going to depend on balance of tranche B, C, D. What would be algorithm to generic code to determine the percentage of money going to eac...
I am submitting applications to entry level Quantitative Developer positions. I come from the mathematical finance side but can code in C++ with simple concurrency. Many of the job postings I see mention that a background in operating systems or networking is a plus, and many Glassdoor interview questions mention being...
I would like to compute the evolution of the P&L of an FX plain vanilla option. Unfortunately, I am not sure about the correctness of my reasoning. Let's imagine that I sell a 1W call option on a Monday. On that day, I will receive a premium which in my case, is computed using Garman and Kholagen pricing method. Let's ...
In the book "Mathematics of Financial Markets" by R. J. Elliott and P. E. Kopp, Second Edition there is a claim made in the proof of Lemma 2.2.5., namely that $V_0(\theta)=V_0(\phi)$. I don't see why this would hold without making a rather long argument about EMM, which the book has not gotten to yet. The assumptions o...
I am trying to come up with model-free implied volatility as in Britten-Jones, M. and Neuberger, A. (2000) Option Prices, Implied Price Processes, and Stochastic Volatility, Journal of Finance, 55, pp839-866, but I am not able to replicate their calculations. Struggling to understand how they implemented the "broad ran...
I just know these products recently: Performance Total Return Swap (TRS), Performance Fixed TRS and Performance Float TRS. But cannot find a detailed explanation of the product, all I can find is an introduction about performance swap: https://www.investment-and-finance.net/derivatives/p/performance-swap.html and the i...
Wiener processes are used to model various assets, and I wonder why we are introducing correlations between the Wiener processes and what is the interpretation? Because when the correlations between two Wiener processes is $\rho$, the the correlations between for example stock prices in Black Scholes model will not be ...
I've been studying the application and derivation of a domestic implicit rate in a FX contract when your input are the forward points and the foreing rate. Let's establish some with some ideas first. The FX market revolves around the spot rate and it's forwards around forward points. Which are added/substracted to the ...
Can someone please list all the Swaption trade data elements. I am doing research and trying to ensure I document all key data elements of a Swaption trade.
Trying to understand, how to find out which of these bonds are cheap and which are expensive? The current spot rate is 8.167%. How do I go about finding the cheap vs expensive bonds especially when YTM is same?
An exotic option is described as follows: Let $S_t$ be the underlying at $t$. The holder has the option to lock in the current price during the lifetime of the option, which he does for $S_{t}=50$. The strike price is $K=40$. At maturity, the option returns the payoff of a traditional European call or the intrinsic va...
In page 52 of Interest Rate Models by Brigo and Mercurio the following is stated: Precisely, let us assume that the instantaneous spot rate evolves under the real-world measure $Q_0$ according to $dr(t) = \mu (t, r(t))dt + \sigma(t, r(t))dW_0(t)$, where $\mu$ and $\sigma$ are well-behaved functions and $W_0$ is a $Q_0$...
Quant Firm Interview Question We roll three, 8 sided dice. If same face appears 3 times we win 80 dollars. We have a bank of 10,000 dollars. How much are we willing to pay to play? What if we increase the prize to 80,000 dollars? My thinking is as follows. EV is 1.25 dollars. Therefore we pay anything less than 1.25. ...
Are there certain categories of quantitative strategies, such as arbitrage, momentum, etc, that are more resistant to alpha decay than others? Thanks
I downloaded data from Refinitiv Datastream (But I think that you get the same data from Bloomberg) to write my thesis. I downloaded prices and volumes. I have a crucial question now: Are the prices that I downloaded from Refinitiv (Closing price of day t) quote- or order- driven prices? That is, are they the quotes se...
I have never understood the implications of a quote or order-driven market. When I look up securities on google in a way to see their prices, is that price the price of the exchange? the price of a quote driven market? the price of an order-driven market? Do quote- or order-driven market determine the price in the exch...
Why are unsecured term deposits in EUR yielding lower than a simple overnight deposit at the ECB ? Isn't it supposed to be the opposite ? The 3 month Euribor just broke -0,50% a few days ago, why was it so low for so long ? Source : https://sdw.ecb.europa.eu/quickview.do?SERIES_KEY=143.FM.M.U2.EUR.RT.MM.EURIBOR3MD_.HST...
I have the price of a bond and would like to convert it to spreads. Is this possible by just having dollar duration? Secondly, if I just care about the relative spreads of multiple bonds, is it enough to consider their prices and dollar durations? Would I simply divide the price by the dollar duration to get relative s...
How to correctly express basket of currencies in and index, such that P&L would align? Assume our index is 20% EURUSD and 80% GBPUSD and rates are 1.10 and 1.31 for T1 and 1.05 and 1.35 for T2. On a USD 100,000 total real P&L is 20,000*(1.05/1.10-1) + 80,000*(1.35/1.31-1) = $1,533.66 Now for the index, whatever I try, ...
Let $u(x)=x^{2/3}$, $x>0$ be the utility function, $X \sim U(0, 100)$ is loss, wealth $w=\\\$150$. Calculate $\mathbb{E}(u(w_r))$ if a coinsurance is $80\%$ and gross premium is $\\\$43$. My attempt is: $E(u(w_r))=\frac{1}{100}\int_0^{43}(150-43)^{2/3}dt + \int_{43}^{100} (150-0.8t)^{2/3}dt=21.3486$ But answer is $21.1...
I'm using Quantlib in Python to price an FX option. I'm comparing the result to Bloomberg, to make sure the code is working correct. I also want to calculate all the Greeks, and eventually use those in a Taylor expansion of the P&L (as in for example: P&L of delta hedged call option) The option I'm trying to price, is...
I'm using Quantlib in Python to price an FX option. I'm comparing the result to Bloomberg, to make sure the code is working correct. I want to calculate the P&L of a certain option trading strategy by using Taylor expansion of P&L (discussed in other post here) And also by using the NPV of the option. Therefore, it's i...
I have a question regarding the Cox-Ross-Rubenstein (CRR) model (Cox et al.,1979). While I do understand how the model is constructed, I am now trying to put it into code and am not sure how to translate the phi correctly or what it means in this notation. Could somebody kindly help me on that small matter? Regards,
I am currently trying to predict the close price of the TSLA stock for March 2022 using LSTM model. Initially, I was using TSLA stock data starting from 2012 to of course March 2022. However, I was wondering if this is effective as the TSLA stock has undergone great changes in terms of its volatility, behavior, and mom...
I see the tickers Z and ZG are for the same company, zillow. But I don't understand what G stands for. Could anybody let me know?
ATRO is traded on NASDAQ. https://finance.yahoo.com/quote/ATRO ATROB is traded on OTC. https://finance.yahoo.com/quote/ATROB I don't understand why a company has one stock on NASDAQ and one stock on OTC. Does anybody know?
I discussed recently with a trader who told me that put options are priced using historical vol, and call are priced using the implied one. My guess would be that as the put option market is much more deep and liquid, using the historical vol could make sens. Conversely for call option considering the much less liquid ...
I am doing some research on the option implied risk neutral distribution and methods calculate it, and so far have come across two ways to do so. The first way is through the Breeden-Litzenberger formula, which seems like a popular method to calculate the density via a finite differencing approach. There are many good ...
I am working with some real time options tick data (mainly futures options and index options), and in many cases the quotes are single sided (as seen on bloomberg terminal). I will denote a quote as BID_PRICE/ASK_PRICE. For instance, if a call with strike K does not have a quoted ask price like 100/, what I am currentl...
There are so many realized measure have been invented in the past years like TSRV, MSRV, KRVTH, KRVC... But how to choose them in practice? I know we cannot find the "estimation error" of them, as the true label is unknown. But maybe there is something that can "predict" their error, so we can know which one is more li...
For example with bitcoin there is both the spot market and a cash-settled quarterly futures market. As a buyer when would I want to buy quarterly futures instead of just buying on the spot market? Spot offers the advantage of actually owning the underlying and holding a long position in perpetuity. With quarterly futur...
https://www.splithistory.com/spb/ I see a 162 for 1000 reverse split of SPB on 07/16/2018 as shown above. But the stock open price on 07/16/2018 is 82.70, the stock close price on 07/13/2018 is 82.72. https://finance.yahoo.com/quote/SPB/history This does not seem to be correct as a split of 1:8 surely should affect the...
In some documents I have seen objective function of markowitz portfolio theory is as follows. minimize 1/2 * w'Σw where w is weights Σ is covariance matrix I could not understand where does 1/2 come from? Is it there for taking half of the risk because we only care about down-side deviation? Thanks!
Has financial derivatives of financial derivatives ever been considered in academic or practical settings? Is it useless/useful? Say $C(S_t;K,T)$ is a European call on an underlying $S_t$ with strike $K$ and expiry $T$. Then what is the no-arbitrage price of a European call on the above call, $C^*(C(S_t;K,T);K^*,T^*)$ ...
https://finance.yahoo.com/quote/BF-A/history?period1=1517875200&period2=1518134400&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true Yahoo Finance says BF-A has a 1339:1000 split event on Feb 07, 2018. However, the split-adjusted stock has a jump from Feb 06, 2018 to Feb 07, 2018. This doesn't seem t...
Hi: In the middle of page 90, Shreve has an expression which implies that (I'm using $t$ where he uses $u$ only because I find it confusing to use $u$ and $\mu$ in the same expressions): $ E[\exp(\dfrac{t}{\sqrt{n}} X_{j})] = \left(\frac{1}{2} \exp(\dfrac{t}{\sqrt{n}}) + \dfrac{1}{2} \exp(-\frac{t}{\sqrt{n}})\right)$ ...
I am trying to understand the following. If I have $100, how do I determine how much to allocate to the long and short of a pairs spread? You might say "use the hedge ratio you calculate, as that will tell you the number of shares of stock B to long/short for every share of stock A". The hedge ratio, though, is basical...
https://www.marketvolume.com/technicalanalysis/wildersvolatility.asp I see this page describes wilder's moving average. But the first step ATR = SMA(TR) is not clear. How many periods should be used to compute this simple moving average? Should it be N? ... Step #2: Apply the moving average to the defined TR. ATR = SM...
I am new to pairs trading, and I have come up with an idea of how to allocate capital between the long and short leg of a pairs trade. I feel that there is a problem with it, and I want to figure out what I'm missing. Let's say I have stock A and B, and I have a trading signal that it's time to enter a long/short pairs...
candlestick plot does not have information on whether the high price or the low price is achieved first. Is there a commonly accepted way to represent this info on a candlestick plot?
In making a choice among financial strategies, each of which has some estimated return distribution, some strategies will clearly be better than others. But many times, the choice is a question of risk tolerance. That said, there's still a problem: the risk/reward tradeoff is often too coarse -- because different distr...
I am using a couple of resources (here and here) to calculate the mean reversion half-life of a time series. This method of calculating it is also presented in Ernest Chan's Algorithmic Trading on page 47. The method, as I understand it, is to use the formula: halflife = -log(2)/G Where G is the coefficient of a linear...
The following website gives the specifications of the CME Term SOFR reference rates: CME Term SOFR. Point 1 in the link above specifies that the tenors that are currently supported are 1m, 3m, 6m, and 12m. Point 2 specifies that CME SOFR futures of various maturities are used to imply the SOFR Term rates (the maturitie...
I'm trying to get a better grasp on the suitability of Geometric Brownian Motion as a model for asset prices, and I've stumbled across a hurdle which I can't seem to get over. Assuming GBM, the asset price is given by $ S_t = S_0 \exp\{ (\mu - \frac{1}{2}\sigma^2)t + \sigma W_t \} $, which implies that daily log-return...
This question pertains to a whitepaper published by the CBOE that explains how the VIX index is calculated. Near the bottom of page 5 of the whitepaper, it explains that two risk-free interest rates are calculated - R1 and R2. R1 and R2 correspond with expiration dates which are in the future. T1 and T2 represent the...
I recently came across an equation in a paper. In short, suppose that $I(t)$ denotes a longevity index at time $t$. An informative indicator that is useful in the absence of any information about the market prices, would be the risk premium per annum $\delta$ derived by the following equation \begin{equation} \sum_{t=1...
I got hold of a data set which contains fundamental data like analyst recommendations/revisions (consensus only) and I am trying to come up with an idea of how this could be used as a trading signal or as an addition to one of my other technical trading signals. From academic research that I have read, it sounds like t...
Conventionally, when 10Y T yield is up, investors run away from growth stock, and vice versa, as it affect the risk free rate, and caused changes to their DCF model. I am here trying to breakdown the logic in it. First, if 10Y T yield is up, is because it's bond price is down; Because investors are selling bond; This d...
Someone told me that trading systems are very time-dependent and they must use network protocols that ensure speed. Which network protocols do they use to ensure fast transmissions? What’s an example of such a system? Thank you
I am investigating ways to calculate the mean reversion half life of a mean reverting series. I am encountering things like the Ornstein – Uhlenbeck Process and various types of regression to estimate this value (the half-life). What I want to understand is this: If I have a series, why can't I just deduce the half-lif...
Can anyone please suggest a good introductory book to Network Theory which is the area of mathematics that is widely used for systemic risk and contagion modeling in finance. If the book contains some applications in Python, R or MATLAB that would be a plus. Thanks in advance.
I am using univariate spline to interpolate betweeen a number of dots I have (in blue - it is a yield curve). The code is the following: a = originalVals['Ttm'].to_numpy() b = originalVals['YTM'].to_numpy() spline = UnivariateSpline(a, b, s=5) for i in range(0,100): spline.set_smoothing_factor(0.05) y = spline...
I know a bond pays an annuity cashflow of coupon payments and then at maturity it pays the face value. But, at maturity, does it pay an additional coupon payment on top of the face value or are we supposed to think about this payment of its face value as its final coupon payment?
I have been trying to implement GARCH(1,1) model for pricing call options. Suppose I have calibrated Garch(1,1) model for modelling the conditional volatility using the historical data of an equity through MLE. Now I want to price some call options for that particular equity for that I had tried to use the following ri...
I have some technical questions about what are the best settings in Bloomberg to calculate the interest rate risk of a swap. When Bloomberg calculates the DV01, it simply bumps the par swap curve by +/-10bps, then calculates the difference in NPVs, and divides it by 20. When Bloomberg does this, it does not touch the d...
Assume we have an SDE $$dX_t=\mu(X_t)dt + \sigma(X_t)dW_t$$ where $\sigma>0$ and $W_t$ is a Wiener process. Is there a transformation $y(X_t)$ that will make the dynamics of the transformed process $Y_t=y(X_t)$ have constant volatility?