Notes

Rotation Forest

Imagine training many decision trees, but instead of giving each tree a different random subset of rows (like classic bagging), you also give each tree a different “view” of the feature space. That’s the core idea behind Rotation Forest: it creates diversity by rotating the axes of your data in a principled way.

How Rotation Forest works

Rotation Forest is an ensemble method where each base learner is typically a decision tree. For each tree, the algorithm:

  • Randomly splits the feature set into several disjoint groups.
  • For each group, takes a bootstrap sample of the training rows and runs PCA (Principal Component Analysis) on that group.
  • Builds a block-diagonal rotation matrix by stacking the PCA loadings from all groups.
  • Rotates the entire dataset with that matrix and trains the tree on the rotated features.

At prediction time, each tree applies its own rotation to the input, makes a prediction, and the ensemble aggregates (majority vote for classification, averaging for regression).

Why this helps (intuition)

Decision trees are sensitive to axis-aligned splits. By rotating features differently per tree, Rotation Forest makes trees disagree in useful ways (higher diversity) while keeping each tree strong because PCA preserves most variance within each feature group. Compared with Random Forests, it often trades “randomness” for “structured diversity.”

Where you’ll see it in practice

  • Spam detection or fraud detection: rotated feature spaces can help trees capture oblique patterns without explicitly using oblique splits.
  • Medical diagnosis with correlated measurements: PCA-based rotations exploit correlation structure rather than ignoring it.
  • Credit scoring: can improve accuracy when many numeric predictors are moderately correlated.

It matters because it’s a concrete way to reduce ensemble error by balancing two forces: strong individual learners and low correlation between them.

Rotation Forest is an ensemble classifier that trains multiple decision trees on differently rotated versions of the feature space, where each rotation is derived from applying PCA to random subsets of features. Predictions are combined by voting, aiming to keep each tree accurate while increasing diversity between trees. It matters because this accuracy–diversity tradeoff can improve generalization over standard bagging and random forests, especially on high-dimensional tabular data.

Imagine asking a group of people to judge a painting, but each person looks at it through a slightly different rotated lens. They all see the same scene, just from different angles, so their mistakes won’t line up the same way. When you combine their opinions, you often get a better final call.

Rotation Forest is a similar idea in machine learning. It builds many decision-tree models, but each one is trained after the data has been “rotated” into a different viewpoint (a different mix of the original measurements). Then it combines all the trees’ predictions. This often improves accuracy because the trees become more diverse while still learning useful patterns.