Skip to Content
Machine Learning for Algorithmic Trading - Second Edition
book

Machine Learning for Algorithmic Trading - Second Edition

by Stefan Jansen
July 2020
Beginner to intermediate
820 pages
25h 30m
English
Packt Publishing
Content preview from Machine Learning for Algorithmic Trading - Second Edition

11

Random Forests – A Long-Short Strategy for Japanese Stocks

In this chapter, we will learn how to use two new classes of machine learning models for trading: decision trees and random forests. We will see how decision trees learn rules from data that encode nonlinear relationships between the input and the output variables. We will illustrate how to train a decision tree and use it for prediction with regression and classification problems, visualize and interpret the rules learned by the model, and tune the model's hyperparameters to optimize the bias-variance trade-off and prevent overfitting.

Decision trees are not only important standalone models but are also frequently used as components in other models. In the second part of this chapter, ...

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.
Start your free trial

You might also like

Hands-On Machine Learning for Algorithmic Trading

Hands-On Machine Learning for Algorithmic Trading

Stefan Jansen

Publisher Resources

ISBN: 9781839217715Supplemental Content