Take the 2-minute tour ×
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

In matlab, classregtree can be used to implement classification and regression trees (CART) you can find this in the documentation however it's not clear what methods are used for either classification or regression, 3 methods exist:

Bagging decision trees, an early ensemble method, builds multiple decision trees by repeatedly resampling training data with replacement, and voting the trees for a consensus prediction.

A Random Forest classifier uses a number of decision trees, in order to improve the classification rate.

Boosted Trees can be used for regression-type and classification-type problems. Rotation forest - in which every decision tree is trained by first applying principal component analysis (PCA) on a random subset of the input features.

I'm tempted to say random forest but would like to clarify, does anyone know which method matlab implements for classification?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

It looks to me like classregtree is just building a tree, not using any of these methods, all of which are supplementary to tree building. That is, classregtree is implementing the methods described in Breiman et al., per the reference given in the documentation. It builds a tree and then (by default) prunes it.

share|improve this answer
Thank you for the edit and answer Peter +1! –  Garrith Graham Nov 24 '12 at 19:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.