Backtester

Designing and Testing Investment Strategies with Historical Market Data

Simulation Statistics

Duration: 60 minutes

Modality: synchronous; in-class or remote learning

Author: Robert Stambaugh

Subject: Finance, Economics, Strategy

Learner Level: Undergraduate, Graduate (MBA and EMBA), and Executive Education

Team Size: Team/Individual: Team size:n/a

This flexible backtesting application enables students to design and test their own investment strategies against Wharton’s archived financial data. Through hands-on testing and analysis of an array of plausible, data-driven outcomes, students develop practical intuition for how portfolio construction choices shape investment performance.

Simulation Summary

Backtester challenges students to design an original investment strategy and test how it would have performed against historical market data. Using the application’s step-by-step “wizard” interface, students define each attribute of a backtest, from basics like names and dates to more complex choices such as the number of securities per portfolio, their weights, and how often the portfolio is rebalanced.

Backtester results chart titled "Rates of Return" showing cumulative return rates for four portfolios (A1B1, A1B2, A2B1, A2B2) from 1995 to 2017, with zoom controls, a date range selector, and a toggle between cumulative and geometric mean returns.
Backtester: Portfolio Rates of Return

Once students select their screening criteria and partitions, they run their backtests against a wealth of Wharton’s archived financial data, stored in the app and ready for use. Backtests can be saved and executed at the user’s convenience, making it easy to revisit, adjust, and rerun a strategy.

Results appear across a series of portfolio analysis screens covering portfolio values, security count, and returns and rates of return over time, along with a summary that recaps the test’s parameters and investment performance. Using these in-app analytical tools, students review and assess their outcomes.

Developed in collaboration with award-winning Wharton Professor of Finance Robert Stambaugh, Backtester is a flexible, user-friendly platform that can be tailored to fit virtually any class assignment. It remains one of the most effective tools for reinforcing core academic concepts in finance, without the complexities and costs of a commercial backtesting product.

Gameplay Preview

A financial data table from the Wharton School''s backtesting tool. It compares portfolios on metrics like initial investment, ending value, return rates, and standard deviation.
Portfolio Summary Data
Line graph titled "Backtester Test - 9/10 Update" showing the number of securities per portfolio over time from 1995 to 2017, with data lines for different security counts.
Securities per Portfolio Over Time

About the Author

A headshot of a person in a suit and patterned tie, set against a neutral background, with a serious expression.

Robert F. Stambaugh is the Miller Anderson & Sherrerd Professor of Finance at the Wharton School of the University of Pennsylvania. A Fellow and past President of the American Finance Association, he is also a Fellow of the Financial Management Association and a Research Associate of the National Bureau of Economic Research. He has served as editor of both the Journal of Finance and the Review of Financial Studies. Before joining Wharton in 1988, he was Professor of Finance at the University of Chicago, where he earned his PhD. Read more.

Play Now!

Wharton affiliated?
Outside of Wharton?
  • This simulation is currently only available for Wharton use; check back soon for updates on availability.