Navigation
Appearance

Implementing Decision Tree Bagging models in R: A Walkthrough

DavidMSmith3 Jun 2009 · 1 min read
Implementing Decision Tree Bagging models in R: A Walkthrough
Illustration generated with Qwen Image.

On his Automated Trading blog, Max Dama takes us through the process of implementing a trading model using bagged decision trees in R. Not only does he provide the code and sample data (illustrating how to optimize trading of the financial instrument GLD via backtesting), he also walks us through the code step-by-step in a narrated video. It’s a nice illustration of the practical steps of building bespoke models to financial data in R.

See more SmartData Collective in your Google results.Add as sourceFollow
The code makes use of the Andy Liaw’s randomForest package to fit the bagged decision trees, a process that lends itself nicely to parallel computing. If you have a multiprocessor machine (or a cluster) and REvolution R Enterprise, the randomShrubbery function in ParallelR acts as a drop-in replacement for randomForest and runs in parallel, reducing the computation time for the backtesting.

Max Dama on Automated Trading: Decision Tree Bagging System (R Code)

Link to original post

Share this article

More on data mining

Find a perspective.

Saved for later.

Stored on this device only. Nothing is sent to SmartData.

    Nothing saved yet. Use “Save” on any article to keep it here.