The document discusses using the PerformanceAnalytics Return.portfolio function to apply a time series of portfolio weights to daily asset returns. The author observes that specifying different rebalance_on frequencies appears to produce identical portfolio…
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 addresses whether a martingale-corrected Andersen discretization for the Heston model needs adjustment when the model has a nonzero constant interest rate. The answer endorses adding the risk-free accrual over each time step to the exponent…
The document considers how to estimate a stochastic process value between two simulated time-grid points for an SDE with drift and diffusion. Straight-line interpolation may give an intermediate value, but it does not preserve the process’s random evolution.…
The document explains how the risk-aversion coefficient in mean-variance utility affects portfolio choice. A low coefficient places less weight on variance and permits greater risk exposure; a high coefficient penalizes risk more heavily. Varying the…
The document considers a Kolmogorov–Smirnov test applied to returns from simulated geometric Brownian motion. The question describes simulating many terminal asset prices, converting them to returns, fitting distribution parameters, and testing the returns…
The document asks how to compare two models that produce probability distributions for future returns. One proposed method is to add the probabilities assigned to observed outcomes, but the response instead evaluates the joint likelihood of the realized…
The document compares keeping strategy research and live trading in one environment with translating the strategy into a separate implementation language. It explains that research often analyzes fixed datasets with vectorized calculations, while live…
The note explains why Fama–French factor research commonly waits six months after fiscal year-end before using accounting data such as book-to-market and firm size. Although quarterly reports may become available sooner, reporting dates and filing delays…
The document examines whether an implicit finite difference scheme for the Black–Scholes partial differential equation guarantees nonnegative derivative values and numerical stability. It sets out a uniform price grid, the tridiagonal system for stepping…
The response proposes representing chart patterns as sequences of numerical movements and scanning a rolling window of volume-weighted average price candles for matches. It illustrates the representation with examples such as a double top, head and…
The discussion explains how to turn a stream of intraday trade profits and losses into periodic returns for a Sharpe ratio calculation. Choose a starting account balance, aggregate the trade results to the end of each chosen interval, and compare that…
The document discusses why Python is widely used for quantitative finance, while arguing that no single language dominates every part of financial technology. Its practical advantages include familiar syntax, a large developer pool, extensive libraries for…
The question describes a balanced financial time-series classification task in which several machine-learning algorithms perform well under time-ordered cross-validation but fail on a later test set. The response proposes that the underlying relationship may…
The document seeks a broad inventory of reported market anomalies and points to research catalogs covering many proposed return factors. It highlights a study that frames the large number of factor discoveries as a multiple-testing problem, arguing that…
The document presents an attempted out-of-sample volatility forecast for a stock using a GARCH model fitted to percentage returns. It forecasts across a multi-day horizon and compares the output with annualized rolling standard deviation calculated from…
The document investigates conflicting reported lows for Paladin Energy on a specific trading day. Its accepted answer distinguishes raw traded prices from adjusted historical prices: the raw low was confirmed by an exchange course-of-sales feed, while a…
The discussion considers why Monte Carlo estimates of a call price under the SABR stochastic volatility model may disagree with prices obtained using the commonly cited SABR implied volatility formula. One answer points to discretization bias: a basic Euler…
The document frames an optimization problem: selecting asset allocations across successive decades over a century, using a restricted set of choices among equities, cash, and bonds. Each period permits either a full allocation to one asset or an equal split…
The document asks how to build a consistent historical swaption volatility series when market conventions change. It distinguishes normal from Black volatility and quotes referencing IBOR or OIS discount curves, and asks whether backtests should use only…
Bid volume and ask volume refer to trades executed at the bid and ask prices. The note asks whether these quantities can be approximated when only open, high, low, close, and total volume are available. Its response says a model can be constructed, but the…
The document considers how to select strategy parameters after ranking many combinations on an in-sample period and then checking the strongest performers on an out-of-sample period. Its answer warns that repeatedly selecting the top-performing percentage…
The document describes a dissertation calculation of daily returns for a value-weighted portfolio of large corporations, using prior-day market values as weights to avoid using future information. It outlines normalizing market values across constituents,…
The document asks how to create synthetic one-minute bars from daily open, high, low, and close values for testing an algorithm’s speed and memory use. The synthetic path need not resemble actual market behavior, but its minute bars should preserve each…
The discussion considers whether historical asset prices should be adjusted for inflation and which inflation series to use. It identifies the U.S. Consumer Price Index for All Urban Consumers as the commonly cited headline measure, distinguishing it from…