Quant investing: In and out of sample testing, what is it and why do it?

Hue Frame

Frame Funds Management

What is in and out of sample testing?

In-sample testing and out-of-sample testing are two methods used to evaluate the performance of a trading strategy.

In-sample testing

In-sample testing involves testing a strategy on a set of data that was used to develop and optimise the strategy.

In-sample testing is used to evaluate the performance of a strategy on a set of historical data that was used to develop and optimise the strategy. It helps to identify any flaws or weaknesses in the strategy and can be used to optimise the strategy's entry and exit parameters.

For instance, if the data set you are testing on covers 40 years, you would complete your optimisation on the first 30 years. The last 10 years would be used for out-of-sample testing.

When running an optimisation on in-sample data, the results can be overly optimistic, as the strategy has been optimised to perform well on the specific data that was used for the testing.

Out-of-sample testing

Out-of-sample testing is used to evaluate the performance of a strategy on a separate set of data that was not used during the development and optimisation process. This helps to determine whether the strategy would be able to perform well on new, unseen data (the 10 years of historical data mentioned above).

The results of out-of-sample testing are typically considered to be more realistic, as the strategy has not been optimised to perform well on this specific data set.

In theory, it is essentially operating the strategy on a set of data that it has never seen before.

Source: buildalpha.com
Source: buildalpha.com

Why do you use in and out of sample testing?

Ultimately, we utilise in and out of sample testing to generate a more robust trading strategy. By using in-sample testing, you can optimise the strategy and identify any flaws or weaknesses. By using out-of-sample testing, you can evaluate the performance of the strategy on new, unseen data and determine whether the strategy is likely to perform well in the future.

By combining the results of both in-sample and out-of-sample testing, you can develop a trading strategy that is robust and has a high likelihood of performing well in the future.

When moving from in-sample testing to out-of-sample testing, we want to see that the performance statistics generated across both remain relatively stable.

Summary

In summary, in-sample and out-of-sample testing are two methods used to evaluate the performance robustness of a trading strategy.

In-sample testing is used to evaluate the performance of a strategy on a set of historical data that was used to develop and optimise the strategy. Out-of-sample testing is used to evaluate the performance of a strategy on a separate set of data that was not used during the development and optimisation process.

If the performance statistics and characteristics of the strategy remain consistent throughout this process, you may be on to a winning strategy.

To find out more about the specific quantitative strategies we implement, please call our office on 02 8668 4877.

........
This information is prepared by Frame Funds Management Pty Ltd (ACN 608 862 442) (Frame Funds, we or us) is a Corporate Authorised Representative (CAR No. 123 9068) of Primary Securities Limited (ACN 089 812 812 635) and is intended only for "wholesale clients" within the meaning of sections 761G and 761GA of the Corporations Act 2001 (Cth). This material is not intended to constitute advertising or advice (including legal, tax or investment advice) of any kind. These materials are not to be distributed to any person who does not qualify as a wholesale client and must not be copied, reproduced, published, disclosed or passed to any other person at any time without the prior written consent of Frame Funds. Primary Securities Ltd (ACN 089 812 635 635, AFSL 224 107) is the Trustee of, and issuer of units in, the Frame Futures Fund and the Frame Long Short Australian Equity Fund (Funds). In deciding whether to acquire, or to continue to hold, units in the Fund please read the current Information Memorandum available from Frame Funds. Past performance of the Funds is not a reliable indicator of future performance. The value of an investment in the Funds may rise or fall. Returns are not guaranteed by any person. Total returns are calculated before tax and after ongoing management costs. In preparing this information, we have not considered your investment objectives, financial situation or personal circumstances and therefore the Funds may not be suitable for you. Neither Frame Funds, Primary Securities Ltd, nor any of their respective related parties, directors or employees, make any representation or warranty as to the accuracy, completeness, reasonableness or reliability of the information contained in this publication or accept liability or responsibility for any losses, whether direct, indirect or consequential, relating to, or arising from, the use or reliance on any part of this material. Any rates of return, forecasts or estimates contained in this publication are not guaranteed. The content of this publication is current as at the date of its publication and is subject to change at any time. It does not reflect any events or changes in circumstances occurring after the date of publication.

Hue Frame
Founder
Frame Funds Management

Hue Frame is the founder of Frame Funds Management. Frame Funds is a quantitative funds management company, that manages assets for institutional and wholesale clients, and proprietary funds.

I would like to

Only to be used for sending genuine email enquiries to the Contributor. Livewire Markets Pty Ltd reserves its right to take any legal or other appropriate action in relation to misuse of this service.

Personal Information Collection Statement
Your personal information will be passed to the Contributor and/or its authorised service provider to assist the Contributor to contact you about your investment enquiry. They are required not to use your information for any other purpose. Our privacy policy explains how we store personal information and how you may access, correct or complain about the handling of personal information.

Comments

Sign In or Join Free to comment