The document concerns a numerical issue in the Longstaff–Schwartz least-squares Monte Carlo method for valuing early-exercise options. At each exercise date, the continuation value is estimated by regressing future cash flows on basis functions using only…
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 asks where historical or current intraday prices for government bonds can be obtained. The response identifies Interactive Brokers as a source of historical intraday bond data and gives a T-bill as an example of a security checked. It also…
The document examines why Monte Carlo estimates of a European call option vary when the random-number seed changes. A seed determines a reproducible pseudorandom sequence, so changing it changes the simulated terminal prices and the resulting sample-average…
The discussion surveys ways to build or choose software for testing trading strategies. It contrasts vectorized or iterative backtests, which process data in a loop, with event-driven systems that respond to incoming data. The answer suggests that simpler…
The document recommends Python tools for work commonly taught through time series software. It presents pandas as the core library for representing and managing dated observations, with Series and DataFrame structures. The capabilities highlighted include…
The document explains a bootstrap comparison designed to test whether pairs trading returns reflect pair-specific reversion or simply the tendency of recent losers to rebound and recent winners to fall. On each historical date when a selected pair opens, the…
The document asks how to include yesterday’s forecast error in a regression intended to predict future equity returns. Its replies connect lagged residuals to moving-average terms: an MA model uses past errors, while combining lagged observations and lagged…
The document describes practical ways to identify errors in daily price histories after the author found repeated closing prices that appeared inconsistent with market activity. It recommends comparing the same dates across independent data vendors, using…
The document describes a test of exit rules in short-term foreign exchange data using randomly selected entry points. It compares a trailing stop, which closes a position after gains retrace by a preset amount, with a fixed threshold that exits when either a…
The document considers how to evaluate a simple signal that uses past data to predict a subsequent price move. It proposes comparing the signal with a label based on the next period, but cautions that a single accuracy percentage is an incomplete measure.…
The document explains a simulation framework for comparing Markowitz mean-variance optimization with Michaud’s resampled efficient frontier. A referee treats a specified set of asset means and covariances as the true population values, generates simulated…
The document describes a proposed method for turning expiring corn futures contracts into a continuous price or return series. It tracks the nearby and first-deferred contracts and suggests switching between them when open interest in the deferred contract…
The document considers a proposed adjustment for a stock dataset that omits delisted and bankrupt companies. The proposal models bankruptcy likelihood as dependent on volatility, assigns a distribution of losses at bankruptcy, removes subsequent returns, and…
The document examines a method for estimating how long one time series appears to follow another. The author runs Granger causality tests across candidate lag lengths and selects the lag with the largest F-statistic. That approach gives a plausible short lag…
The document asks how to simulate a stochastic differential equation whose diffusion term depends on the current state as a power of the asset price. The question compares this process with geometric Brownian motion and attempts to derive a closed-form…
The document explains why positive returns from buying stocks with the strongest exposure to a factor do not imply that shorting stocks with the weakest exposure will also be profitable. The bottom group may still rise, only by less than the top group. A…
The document considers forecasting daily three-month and one-month LIBOR over a long horizon by treating observed rates as instantaneous short rates and estimating Vasicek model parameters with regression. The proposed use is forecasting rather than…
The document presents ways to examine the financial-market stylized fact that upward moves can take longer than downward moves. One R example calculates, from each starting day, how long cumulative returns take to first cross positive and negative target…
The document addresses a timing problem in backtests that use economic indicators. Monthly series may be labeled by reference month without recording the actual publication date, so using values as if they were available throughout that month can introduce…
The document describes how to encode an index-tracking portfolio in a genetic algorithm. The proposed chromosome represents which benchmark securities are selected, rather than their portfolio weights. For each selected subset, a separate quadratic…
The document examines a backtest of a collar formed with shares, a long put, and a short call, with both options struck at the current stock price. Its payoff expression simplifies the option payoff terms at expiration, leaving the initial call-put premium…
The document considers the usual estimate that annualized volatility equals monthly return standard deviation multiplied by the square root of twelve, and asks whether different month lengths should change the calculation. It explains that the relevant…
The document explains why missing-value checks can fail when financial data is arranged in rows or arrays rather than a one-dimensional list. Comparing a value directly with NaN does not work reliably; a NaN-aware check is needed. When a check produces…
The document describes an attempt to calculate daily yields to maturity for a panel of euro-area government bonds using prices, coupons, and time to maturity. The proposed approach defines a bond valuation function and applies a root-finding routine to solve…