ArticleslgStudy

mathematics

Backtesting

Backtesting is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Backtesting rather than just read about it. In short: Backtesting is a term used in modeling to refer to testing a predictive model on historical data. Backtesting is a type of retrodiction, and a special type of cross-validation applied to previous time period(s).

Backtesting — main illustration
Backtesting — illustration

Key takeaways

  • Backtesting belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Backtesting to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Backtesting from memory before moving on to harder problems.

Reference excerpt

Backtesting is a term used in modeling to refer to testing a predictive model on historical data. Backtesting is a type of retrodiction, and a special type of cross-validation applied to previous time period(s). In quantitative finance, backtesting is an important step before deploying algorithmic strategies in live markets.

Financial analysis In economics and finance, backtesting seeks to estimate the performance of a strategy or model if it had been employed during a past period. This requires simulating past conditions with sufficient detail, which means that backtesting is limited by the need for detailed historical data, the inability to model strategies that would affect historic prices, and potential overfitting. That is, it is often possible to find a strategy that would have worked well in the past, but will not work well in the future. Despite these limitations, backtesting provides information not available when models and strategies are tested on synthetic data. Historically, backtesting was only performed by large institutions and professional money managers due to the expense of obtaining and using detailed datasets. However, backtesting is increasingly used on a wider basis, and independent web-based backtesting platforms have emerged. Although the technique is widely used, it is prone to weaknesses. Basel financial regulations require large financial institutions to backtest certain risk models. For a Value at Risk 1-day at 99% backtested 250 days in a row, the test is considered green (0-95%), orange (95-99.99%) or red (99.99-100%) depending on the following table:

For a Value at Risk 10-day at 99% backtested 250 days in a row, the test is considered green (0-95%), orange (95-99.99%) or red (99.99-100%) depending on the following table:

Hindcast

In oceanography and meteorology, backtesting is also known as hindcasting: a hindcast is a way of testing a mathematical model; researchers enter known or closely estimated inputs for past events into the model to see how well the output matches the known results. Hindcasting usually refers to a numerical-model integration of a historical period where no observations have been assimilated. This distinguishes a hindcast run from a reanalysis. Oceanographic observations of salinity and temperature as well as observations of surface-wave parameters such as the significant wave height are much scarcer than meteorological observations, making hindcasting more common in oceanography than in meteorology. Also, since surface waves represent a forced system where the wind is the only generating force, wave hindcasting is often considered adequate for generating a reasonable representation of the wave climate with little need for a full reanalysis. Hydrologists use hindcasting for model stream flows. An example of hindcasting would be entering climate forcings (events that force change) into a climate model. If the hindcast showed reasonably-accurate climate response, the model would be considered successful. The ECMWF re-analysis is an example of a combined atmospheric reanalysis coupled with a wave-model integration where no wave parameters were assimilated, making the wave part a hindcast run.

See also Applied research (customer foresight) – Anticipating consumer preferences/wishes with future products and services Backcasting – Influencing current reality from desired future state scenario Black box model – System where only the inputs and outputs can be viewed, and not its implementation Climate – Long-term weather pattern of a region Computer simulation – Process of mathematical modelling, performed on a computer ECMWF re-analysis – Data set for retrospective weather analysis Economic forecast – Process of making predictions about the economyPages displaying short descriptions of redirect targets Forecasting – Making predictions with available data NCEP re-analysis – Open data set of the Earth's atmospherePages displaying short descriptions of redirect targets Numerical weather prediction – Weather prediction using mathematical models of the atmosphere and oceans Predictive modelling – Form of modelling that uses statistics to predict outcomes Retrodiction – Making a "prediction" about the past Statistical arbitrage – Short-term financial trading strategy Thought Experiment – Hypothetical situationPages displaying short descriptions of redirect targets Value at risk – Estimated potential loss for an investment under a given set of conditions

References

Illustrations

Backtesting: backtesting exceptions 10Dx250
backtesting exceptions 10Dx250
Backtesting: Temporal representation of hindcasting.[5]
Temporal representation of hindcasting.[5]

Worked examples

Example 1 — a first encounter with Backtesting

Start with the simplest possible case. Write down what Backtesting claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Backtesting before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Backtesting ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Backtesting

In research
Backtesting appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Backtesting in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Backtesting is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical modeling, Numerical climate and weather models, Statistical forecasting, so understanding it makes those chapters shorter.
In everyday life
Look for Backtesting outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Backtesting” →

How to study Backtesting in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Backtesting means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Backtesting out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Backtesting in simple terms?

Backtesting is a term used in modeling to refer to testing a predictive model on historical data. Backtesting is a type of retrodiction, and a special type of cross-validation applied to previous time period(s).

Why does Backtesting matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Backtesting?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Backtesting.

Tags

  • Mathematical modeling
  • Numerical climate and weather models
  • Statistical forecasting
  • Technical analysis
  • Tests

Keep exploring