Skip to Content
Inside the Black Box: The Simple Truth About Quantitative Trading
book

Inside the Black Box: The Simple Truth About Quantitative Trading

by Rishi K Narang
September 2009
Beginner
240 pages
6h 43m
English
Wiley
Content preview from Inside the Black Box: The Simple Truth About Quantitative Trading

9.3. TESTING

The process of testing is central to research. At first glance, the most common version of this process looks fairly simple. First, build a model and train it on some subset of the data available (the in-sample period). Then test it on another subset of the data to see if it is profitable (the out-of-sample period). However, research is an activity that is fraught with peril. The researcher is constantly offered opportunities to forego rigor in favor of wishful thinking. In this section, we address some of the work and challenges inherent in the research process.

9.3.1. In-Sample Testing, a.k.a. Training

In quant trading, models are approximations of the world. They are used to predict the future using data as inputs. The first part of the testing process is to "train" a model by finding optimal parameters over an in-sample period. That sounds rather like a mouthful of marbles, so let's walk through it term by term.

Let's imagine that we want to test the idea that cheap stocks outperform expensive stocks. We even theorize that the metric we will use to define cheapness is the earnings yield (earnings/price), such that a higher earnings yield implies a cheaper stock. But what level of yield is sufficiently low to cause us to think that the stock will outperform? And what level of earnings yield is sufficiently high to imply that a stock is expensive and is likely to underperform? These levels are parameters. In general the parameters of a model are quantities that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

How the Trading Floor Really Works

How the Trading Floor Really Works

Terri Duhon

Publisher Resources

ISBN: 9780470432068Purchase book