The backtesting process and rolling-window methodology

The backtesting process and rolling-window methodology

Published September 28, 2026

The backtesting process and rolling-window methodology

On this page

Learning Outcome Statement

Describe and contrast steps and procedures in backtesting an investment strategy.

On the exam: A vignette gives the mandate, benchmark, data history, rebalance rule, constraints, and alternative designs, then asks you to sequence or contrast procedures in a best-choice, matching, or matrix question.

Backtesting is a rehearsal of the portfolio decision, not a contest to find the prettiest historical return. You first freeze the mandate and the information available at each decision date. You then let the strategy act on the next period, record the portfolio and trades, and repeat. This matters because a result built with future information or an untradeable portfolio cannot support a recommendation.

DecisionChoice recordedPortfolio effect
StrategySignal and portfolio ruleFixes the tested decision
ClientPension or endowmentSets spending and liquidity context
ObjectiveBenefit funding or spending supportShapes suitable outcome
BenchmarkBroad equity or policy benchmarkSets relative comparison
UniverseInvestable securitiesExcludes unavailable holdings
ConstraintsLong-only, limits, liquidityBlocks untradeable holdings
RebalanceDates and turnover ruleCreates trades and costs
Information setData available thenPrevents future information

The objective tells you what the client needs. The benchmark supplies the comparison return. A public pension and an endowment can test the same signal and still need different portfolio consequences.

The window notation captures the history used to make each decision. The decision date is $t$. A rolling window keeps $L$ recent observations. An expanding window begins at the fixed date $s$ and keeps adding observations through $t$.

$$ \mathcal{W}^{\mathrm{rolling}}_t = \operatorname{Recent}(L,t) \qquad \mathcal{W}^{\mathrm{expanding}}_t = \operatorname{From}(s,t) $$

The argument $L$ controls how much recent history enters the rolling design. The date $s$ fixes the earliest observation in the expanding design. A larger $L$ makes old information leave more slowly, while a fixed $s$ gives older observations a lasting influence. Neither design permits information dated after $t$ to influence the decision at $t$.

ProcedureHistory and refitRegime and implementation
Full sampleEntire history, select onceFuture leakage, tradeability overstated
Rolling windowFixed recent history, refit as window advancesRecent regimes, turnover and costs rise
Expanding windowFixed start, add observations, refitLonger memory, slower response, costs still apply

Full-sample selection feels efficient because it uses every observation, but the same history can choose and judge the rule. Rolling and expanding designs make the next-period application a separate test. The window choice is a model decision because it changes regime responsiveness and trading pressure.

The loop below keeps the information boundary visible.

Loading diagram…

Read the loop as a sequence of dated decisions. The mandate fixes what the strategy is allowed to do, and the information date limits what it can know. The selected rule is then frozen before the next period begins. Recording trades, turnover, and costs alongside returns shows whether the portfolio could actually have been held. Advancing the window starts a new decision with updated history, not a rewrite of the prior test.

Process stepInformation set and actionOutput and implementation consequence
Set mandateData available at date, fix strategy and constraintsTestable rule, investable universe
Select ruleHistorical window, estimate or selectFrozen rule, position limits retained
Test next periodNo future data, apply fixed ruleOutcome, trades, turnover, costs
Advance windowUpdated history, repeat and recheck liquidityOut-of-sample record, next refit

Every advance produces a portfolio record, not just a strategy label. If the holdings fail liquidity or position limits, the result cannot become a recommendation even when historical selection looks superior.

Worked example

You are handed a public pension mandate for a long-only value strategy. The strategy is judged against a broad equity benchmark, and the portfolio must meet liquidity and position limits. The research team selected parameters after viewing the entire data history and reports a strong result. The exam asks you to compare that full-sample design with a walk-forward rolling-window design.

FactStated condition
ClientPublic pension
ObjectiveSupport long-term benefit payments
StrategyLong-only value
BenchmarkBroad equity benchmark
UniverseInvestable equities
ConstraintsLiquidity and position limits
RebalanceScheduled rebalancing
Proposed designFull-sample selection
Information setData available at each decision date

This fact pattern separates the client's needs from the research method. The pension objective, benchmark, universe, and constraints define the portfolio that must be tested. Full-sample selection creates a specific concern: the reported parameters saw the entire history. The rolling-window cycle below shows how to keep each selection inside the information available at its decision date, then judge the frozen rule on a later period.

  1. At each decision date, fix the mandate and the information set. Keep the pension objective, broad equity benchmark, investable universe, long-only rule, liquidity, and position limits unchanged because future data or an unavailable holding must not enter the rule. The result is one date-specific set of permitted inputs.

  2. Within the historical window available at that date, select the value rule and then freeze it. Separate this in-sample design stage from the untouched next-period evaluation because the rule must not learn from the period it will be tested on. The result is one fixed decision for the next period.

  3. Apply that fixed decision to the next period and record holdings, portfolio outcome, trades, turnover, and transaction costs. This shows what the pension would have owned and paid during that period. The result is one implementable period record.

  4. Advance the rolling window and repeat the cycle. Refit with recent information, then recheck liquidity, position limits, investability, and turnover before applying the rule because each new decision must remain implementable. The result is one out-of-sample decision for each rolled-forward period, forming a sequence over the test horizon.

Recommend the walk-forward rolling-window design because it respects information availability and tests whether the value portfolio remains tradeable after constraints and trading costs.

Changed condition

The case changes one input, the client mandate. It moves from a pension making benefit payments to an endowment with a spending objective because the cash-flow need changes from funding benefits to supporting spending. That direction puts a trend strategy against a policy benchmark and makes regime relevance, turnover, spending needs, and investability part of the window choice.

Mandate detailBeforeAfter
Client, objective, strategy, benchmarkPension, benefit payments, long-only value, broad equityEndowment, spending support, trend, policy benchmark
Resulting constraints and designLong-only, liquidity, rolling walk-forwardLiquidity, turnover, investability, rolling or expanding
Resulting portfolio consequenceTradeable value exposure after limitsRegime and spending fit after trading checks

The remaining rows show design and portfolio consequences of the mandate change, not additional changed inputs. Rolling fits when changing regimes matter and the endowment can absorb added turnover. Expanding is preferable when a long historical memory supports the spending objective and slower regime response is acceptable. Either choice must pass liquidity, transaction-cost, position-limit, and investability checks.

Choose rolling or expanding as the history window for this mandate.

Common error

You see a strong full-sample backtest and treat it as proof that the strategy works. That feels right because the rule uses a long history and appears to beat the benchmark. The giveaway is the researcher selecting parameters with the entire history, future information entering an earlier decision, or the portfolio manager ignoring constraints and trading costs.

Check yourself

Practice

A pension and an endowment are comparing backtest designs for different mandates.

Question 1

Which sequence best describes a walk-forward backtest?

Question 2

Which statement correctly contrasts rolling-window and expanding-window procedures?

Question 3

A public pension tests a long-only value strategy against a broad equity benchmark. Which design is most defensible?

Question 4

For an endowment testing trend against a policy benchmark, which contrast is most accurate?

Before testing an investment strategy, which set should be fixed?

Revision snapshot

Before testing, define the strategy, client type, objective, benchmark, investable universe, constraints, rebalance rule, and information set. Estimate or select with the historical window, freeze the rule, apply it to the next period, record portfolio outcome and trades, advance the window, and repeat. Never use information unavailable at the decision date. $\mathcal{W}^{\mathrm{rolling}}_t=\operatorname{Recent}(L,t)$ keeps fixed recent history, while $\mathcal{W}^{\mathrm{expanding}}_t=\operatorname{From}(s,t)$ keeps its start and adds observations. Include liquidity, turnover, transaction costs, position limits, and investability. A mechanically superior result is unsuitable if it cannot be traded. Reject full-sample selection when design and evaluation share future information. For the pension, choose rolling walk-forward. For the endowment, balance regime relevance, turnover, spending, and investability.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: The backtesting process and rolling-window methodology

  1. 1. Elena Marquez, age 58, recently sold a privately held business and has USD 12 million available for investment. She plans to retire in seven years. Her annual spending requirement is USD 300,000 after tax, indexed to inflation, and is expected to continue throughout retirement. She has no debt and has sufficient insurance coverage. In one year, she must pay USD 1.5 million for a vacation property; this obligation will be funded from the investment portfolio. A risk questionnaire indicates above-average willingness to bear risk. During the interview, however, Marquez states that a portfolio decline greater than 12% in a year would cause her to abandon the investment plan. Her adviser concludes that her financial circumstances provide above-average ability to bear risk, but her willingness is moderate. The investment policy statement therefore establishes an expected-volatility ceiling of 12%, requires at least 90% of the portfolio to be realisable within one year without a material price concession, and limits any single-company holding to 10% of portfolio value. The portfolio is taxable, but Marquez has sufficient realised capital losses to offset gains generated by the initial transition. Marquez inherited shares in her former employer representing 15% of her investable assets. The company is in the same industry as the business she sold. She says, 'I know this is too large a position, but selling requires an active choice. If I simply leave it unchanged, I cannot be blamed for making a bad decision.' She separately notes that recent media reports about technology-company failures make all global equity funds seem unusually dangerous, although the proposed funds are broadly diversified. The adviser evaluates the three strategic portfolios in Exhibit 1. Listed real estate can ordinarily be sold daily, but the adviser estimates that only half of the allocation could be liquidated within one year without a material price concession under stressed market conditions. All global-equity and bond holdings are daily liquid. The one-year liquidity percentages in Exhibit 1 already incorporate these stress assumptions, so no additional adjustment is required. For implementation, the adviser considers purchasing a domestic equity ETF. Exhibit 2 shows contemporaneous market information. The order is assumed to execute immediately at the best ask, the reported NAV is an appropriate arrival-price benchmark, and the purchase does not move the quoted market. The adviser also explains that authorized participants may exchange a specified basket of underlying securities for newly created ETF shares and may redeem ETF shares for the underlying basket. This creation-redemption process provides an arbitrage mechanism when the ETF price diverges materially from the basket value.

    • 2. The Meridian Pension Plan is reviewing the risk of its strategic portfolio. The plan's investment committee has instructed chief investment officer Elena Ruiz to distinguish capital allocation from risk allocation. The committee is particularly concerned that the largest asset weight may contribute a disproportionately large share of total portfolio variance. Ruiz uses the standard variance–covariance framework and assumes that the volatilities, correlation, and betas in Exhibit 1 are annual estimates. The portfolio is fully invested, with no derivatives or leverage. For purposes of calculating portfolio beta, each asset-class beta is measured relative to the same global equity market factor, and portfolio beta can be calculated as the weighted average of the asset-class betas. Ruiz reminds the committee that an asset's component contribution to portfolio variance equals its portfolio weight multiplied by its covariance with the portfolio. The component contributions sum to total portfolio variance. She cautions that using capital weights alone as risk contributions would ignore differences in volatility and covariance. The plan is also evaluating a proposed active equity mandate using a two-factor model. The model's factor exposures, factor variances, covariance, and portfolio-specific variance are presented in Exhibit 2. The model has been estimated using returns expressed in decimal form. Ruiz defines systematic variance as the variance explained by the two factors, including their covariance term. Total variance equals systematic variance plus portfolio-specific variance. One committee member argues that portfolio-specific variance should be included when reporting the mandate's systematic standard deviation because it remains part of the mandate's observed risk. Ruiz responds that specific variance must be included when measuring total risk but excluded when isolating risk attributable to common factors. Another committee member proposes changing the negative factor covariance to its absolute value, reasoning that all covariance terms represent risk. Ruiz notes that a negative covariance reduces aggregate factor variance and must retain its sign.

      • 3. The Republic of Arandia exports oil and maintains a sovereign wealth fund with two separately governed portfolios. The Stabilization Portfolio supports the government budget when realized oil revenue falls below the amount assumed in the fiscal plan. The Future Generations Portfolio invests surplus resource revenue for citizens after current oil reserves are depleted. Exhibit 1 summarizes their characteristics. The finance ministry expects a possible global slowdown during the next year. Under the ministry's downside scenario, oil prices and tax revenue would decline simultaneously, increasing withdrawals from the Stabilization Portfolio. These withdrawals would be made in Arandia's domestic currency. The fund's board therefore requires the stabilization assets to maintain a substantial domestic currency exposure and to avoid excessive transaction costs during stressed markets. The Future Generations Portfolio has no scheduled distributions for at least 15 years and is intended to maximize long-run purchasing power subject to its risk limit. The government cannot redirect this portfolio to ordinary annual budget spending without legislative approval. Its governing board accepts substantial short-term volatility and permits a larger allocation to illiquid investments because the portfolio has a long horizon and no immediate liquidity requirement. The chief investment officer is reviewing the assumptions in Exhibit 2. She notes that expected return alone is insufficient when selecting an alternative investment. Lockup period, cash-flow pattern, valuation uncertainty, diversification potential, and the portfolio's capacity to meet capital calls must also be considered. Core infrastructure is expected to make regular cash distributions after completion of an initial investment period. Venture capital is expected to make no recurring distributions during the early years and may require follow-on capital before any realizations occur. One board member proposes assigning the same strategic allocation to both portfolios to simplify governance. Another argues that the portfolios have fundamentally different liabilities and risk capacities. The risk team also warns that oil-related fiscal needs are countercyclical: the government's need for withdrawals is likely to be greatest when global risky assets are declining and market liquidity is impaired. The team recommends evaluating liquidity under stressed conditions rather than relying only on normal-market trading volumes. All expected returns and volatilities in Exhibit 2 are annual nominal estimates in USD, and taxes do not apply to either portfolio.

        • 4. After three years of strong equity returns, an adviser raises the strategic equity allocation solely because recent performance is expected to continue. This judgment is most likely affected by:

          • A. Recency bias
          • B. Representativeness bias
          • C. Status quo bias
          Show answer

          Answer: A. Recency bias

          Recency bias - The adviser expects three years of strong equity returns to continue, giving recent performance too much weight when forecasting future returns. - Raising the strategic equity allocation solely on that expectation makes the recent experience, rather than a long-term assessment, decisive. Representativeness bias - Representativeness bias would involve judging future returns by how closely the market resembles a perceived pattern or category, potentially neglecting base rates. - Here, the stated reason is simply that recent performance is expected to continue, which points to recency bias. Status quo bias - Status quo bias favors keeping an existing decision or allocation unchanged. - The adviser raises the strategic equity allocation, so the judgment does not reflect a preference for the current allocation.

        • 5. An adviser observes that a client evaluates two brokerage accounts separately, accepting high risk in a speculative account while keeping excessive cash in a retirement account despite one total-wealth objective. The behavior is best described as:

          • A. Loss aversion
          • B. Mental accounting
          • C. Overconfidence
          Show answer

          Answer: B. Mental accounting

          Mental accounting - The client treats the speculative and retirement accounts as separate mental accounts, applying different risk preferences despite having one total-wealth objective. - Evaluating the accounts as one portfolio would reveal the combination of high speculative risk and excessive retirement cash. Loss aversion - Loss aversion means weighing a loss more heavily than an equivalent gain; the question does not describe such a comparison. - It does not explain why the client evaluates the two brokerage accounts separately. Overconfidence - Overconfidence means placing excessive faith in one’s knowledge or forecasts, which the question does not indicate. - Accepting high risk in one account while holding excessive cash in another points to separate-account framing, not confidence in investment skill.

        • 6. Marc and Elise Laurent engage an adviser to revise their taxable investment portfolio. They have a 15-year primary horizon, moderate willingness to accept risk, and substantial employment income. Within two years, however, they expect to purchase a second residence and must retain a meaningful allocation to cash and short-term bonds. They also want portfolio returns sufficient to preserve purchasing power after taxes and planned withdrawals. The adviser translates these circumstances into the constraints shown in Exhibit 2. The portfolio includes two individual stocks purchased for USD 400,000 each. One is now worth USD 650,000 and has favorable long-term prospects. The other is worth USD 250,000, and the adviser's research indicates that its competitive position has deteriorated. Marc insists that the loss-position stock should not be sold until it returns to its purchase price, but he is willing to sell the appreciated stock immediately because doing so would lock in a successful investment result. He does not cite any research contradicting the adviser's outlook. The Laurents also intend to make a USD 150,000 charitable gift this year. The charity is qualified to accept publicly traded securities directly. The family's appreciated individual stock is highly concentrated relative to the rest of the portfolio. The adviser is considering whether to transfer securities in kind or sell securities and contribute cash. The Laurents are subject to capital gains tax, and no restriction prevents them from donating the appreciated shares. To implement the strategic allocation, the adviser expects to purchase a regional-equity exchange-traded fund. The ETF is thinly traded, although its underlying securities are substantially more liquid. During the first several minutes after the market opens, the ETF commonly displays wider bid–ask spreads and greater uncertainty concerning its intraday net asset value. The Laurents do not require immediate execution and prefer protection against purchasing at an unusually large premium. The adviser can use either market or limit orders. Finally, the adviser evaluates the three candidate portfolios in Exhibit 1. Expected returns and volatilities are nominal, annualized estimates over a full market cycle. Illiquid assets include private equity and directly owned real estate that cannot reliably fund the planned residence purchase. The policy constraints are binding, and the adviser must select a portfolio satisfying every stated constraint rather than merely choosing the portfolio with the highest expected return.

          • 7. The investment committee of the Meridian Balanced Fund is reviewing its strategic asset allocation and an externally managed active equity mandate. The fund's objective is to earn a long-term return exceeding inflation by 3.5% while maintaining moderate total risk. There are no leverage or short-selling positions in the strategic portfolio. Returns and risk estimates in Exhibit 1 are annual, and the committee assumes that the stated expected returns, volatilities, and correlation are appropriate forward-looking inputs. The chief investment officer asks analyst Helen Wu to calculate the strategic portfolio's expected return and standard deviation. Wu notes that the weighted average of the two asset-class volatilities is 12.2%, but she is uncertain whether that value appropriately reflects the portfolio's total risk. She also wants to determine how much of the portfolio's standard deviation is contributed by each asset class, and how the correlation assumption drives the size of the diversification benefit. For risk-contribution calculations, the committee uses component risk in standard-deviation units: the asset weight multiplied by the asset's covariance with the portfolio, divided by portfolio standard deviation. The committee also reviews an active global equity manager benchmarked against the MSCI World Index. Exhibit 2 presents the manager's forward-looking active exposures and expected implementation costs. The risk model contains a market factor, a value factor, and security-specific residual risk. The two factor returns are assumed to be uncorrelated, and residual returns are uncorrelated with both factors. All factor volatilities and residual risk are annualized standard deviations. The manager argues that the mandate should be assessed using the gross information ratio because management fees are negotiated separately from the investment process. Wu disagrees, stating that the committee should focus on the information ratio available to the fund after both management fees and expected transaction costs. The committee accepts Wu's position because its manager-selection policy defines implementable active return as gross active return less recurring management fees and expected transaction costs. No question requires the expected-return calculation from another question. All calculations should use the inputs supplied directly in the relevant exhibit, and intermediate results should be retained without rounding.

            Flashcards: The backtesting process and rolling-window methodology

            1. 1. What are the steps in backtesting?

              Show answer

              1. strategy design 2. historical investment simulation 3. analysis of backtesting output

            2. 2. Why do portfolio managers use backtesting?

              Show answer

              - to evaluate the viability of a factor - evaluate the risk-return tradeoff of an investment strategy

            3. 3. What is growth backtesting based on?

              Show answer

              - consensus earnigns growth for the coming year - stocks with high earnings growth preferred

            4. 4. What are the metrics in backtesting?

              Show answer

              - sharpe ratio - sortino ratio - VaR - conditional Var - maximum drawdown

            5. 5. Monte Carlo simulation and the historical simulation approach both account for what?

              Show answer

              skewness, excess kurtosis and tail dependence

            6. 6. What is defensive value backtesting based on?

              Show answer

              - trailing earnings yield - high E/P stocks preferred

            7. 7. What is profitability backtesting based on?

              Show answer

              - ROE - high ROE preferred

            8. 8. What is price momentum backtesting based on?

              Show answer

              - based on 12-month total return, excluding the previous month - stocks with momentum are preferred

            9. 9. What is rolling window backtesting?

              Show answer

              - proxy for actual investing - use a walk forward system rather than dividing the data into just two samples - parameters are tuned over time but the primary model method is fixed (to avoid overfitting) - strategy accepted if it performs well in the out-of-test periods (and makes logical sense) - Shortcomings - assumes past performance repeats in the future - may not reflect nature of financial markets & exteme downside risk

            Everything you need for CFA prep

            Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

            GET STARTED FOR FREE
            75% OFFLimited time offer
            GET 75% OFF