The document explains a Monte Carlo check for an implementation of Dupire local volatility. Simulated underlying paths use the local volatility evaluated at the current simulated spot and time, with the process initialized at the market spot. For each…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
16,761 documents
The document explains how to simulate two correlated Hull–White short-rate processes, such as rates for two currencies, using QuantLib. Its suggested construction combines separate Hull–White processes in a stochastic process array and supplies a correlation…
The document asks whether a short RQuantLib script can estimate the total return of a five-year constant-maturity Treasury bond from a yield series. Its proposed approach reprices a fixed-rate bond using consecutive observations as coupon and discount…
The post considers whether regime-switching models can detect market shifts and support trading. It outlines a common approach: model market behavior using states with specified distributions, then estimate a Markov transition matrix. The intended benefit is…
The document concerns pricing options under the Heston stochastic volatility model with an Euler Monte Carlo scheme. The question reports unstable convergence when using Sobol quasi-random numbers and asks whether a Brownian bridge can address apparent…
The document asks whether several historical volatility estimators can be ranked from largest to smallest: close-to-close variants and range-based estimators including Parkinson, Garman–Klass, Rogers–Satchell, and Yang–Zhang. The answer says a universal…
The document asks whether an annualized Sharpe ratio can predict how often or how long a strategy will lose money, and whether a striking record of few losing days implies a particular Sharpe ratio. The responses distinguish average excess return relative to…
The document describes a discrepancy between a closed-form price for a geometric Asian call and a Monte Carlo estimate. The author uses a formula parameterized by spot, strike, maturity, volatility, interest rate, and a monitoring count, and reports that the…
The document raises a practical concern about combinatorial purged cross-validation (CPCV) in financial backtesting. By combining separated time blocks into a training sample, the method can make observations on either side of a gap appear adjacent. That can…
The document reviews a Monte Carlo implementation for a payoff capped at an upper barrier and floored at a lower barrier at expiry. The accepted answer identifies errors in the simulation: each price update should multiply the current spot by the geometric…
The document explains how to turn a Dupire local volatility model into a European option price. Its example starts with an implied volatility surface, constructs a Black–Scholes–Merton process that uses the surface, and sets up a vanilla call. It then…
The document asks why Laguerre polynomials are used as regression basis functions in Longstaff–Schwartz Monte Carlo pricing of American options. It cites discussion of multicollinearity among basis functions and a separate numerical comparison that found…
The document discusses how financial pattern discovery can extend beyond traditional technical analysis. It distinguishes loosely defined chart patterns and indicator rules from approaches that state hypotheses mathematically and evaluate them with…
Antithetic sampling pairs each simulated random draw with a complementary draw, such as transforming a uniform probability by taking its complement. For normally distributed inputs, this produces paired values with equal and opposite standardized shocks.…
The document considers how to assemble an ETF universe for historical portfolio-allocation backtests. One response suggests using a finance screener to sort ETFs by inception date, but cautions that requiring funds to exist by a chosen early date can sharply…
The document raises a modeling question about applying the heterogeneous autoregressive realized volatility model to forecast one-minute realized volatility in an active Bitcoin market. The proposed regressors are realized volatility measured over recent…
The discussion addresses a long only trading system whose estimated Kelly fraction becomes negative after losses or changing estimates. Under the simple Kelly setup, a negative fraction indicates that the estimated expected return for the specified bet is…
The document explains how to compare the chances that a stop-loss or take-profit level is reached first when prices follow a one-tick random walk with equal odds of moving up or down. For barriers at distances a and b from the starting price, the probability…
The document explains how to represent and calculate returns for an equal-dollar long-short portfolio. Dollar neutrality means the current market values of the long and short sides have equal magnitude; a short position still has a market value even though…
The document asks how to evaluate a calibrated Cox-Ingersoll-Ross short-rate model against historical observations, noting that the ordinary R-squared from a linearized parameter fit may not provide a meaningful goodness-of-fit measure. The response does not…
The document considers how to compare two return series when strategies often do not trade and therefore record zero returns. It asks whether zero observations should remain in a correlation calculation and how to compare strategies with different patterns…
The document asks whether backtests of intraday strategies that start and end each day flat understate performance because a trader could stop trading after recognizing a poor market day. It notes that backtest results depend on assumptions about transaction…
The document surveys Python tools for strategy research, backtesting, portfolio analysis, and live trading. It describes backtrader in the most detail: it supports event-style and vectorized runs, multiple assets and strategies, varied data sources and…
The document poses an optimal stopping problem for a firm's profit modeled as a Brownian process with drift and volatility. The value is expressed as accumulated discounted profit up to a stopping time, then rearranged into a term involving an expected…