# Archive for the ‘Statistics’ Category

Predicting the value of a continuous real variable based on historical observations, covariates etc is a routine problem. It has never been easier to create sophisticated statistical models from data. Sadly however, it often turns out that the predictions of the fancy model are not much better than a simple mean of the historical observations.

The output of the best predictive models (determined by cross-validation for example) always shows less variance than the observations. This fact is called shrinkage.

Shrinkage can be understood from an identity known in weather forecasting as Murphy-Epstein decomposition[*].

is the correlation between forecasts and observations, and and  are standard deviations of the observations and forecasts respectively.

To maximise skill, the second term needs to be made as small as possible. For example, requires .

Having low variance compared to the observations may seem strange. It makes your predictive model seem a less realistic description of reality.  Yet shrinkage is a feature of any imperfect () but optimised predictive model.

Random forest and gradient boosting are leading data mining techniques. They are designed to improve upon the poor predictive accuracy of decision trees. Random forest is by far the more popular, if the google trends chart below is anything to go by.

Correlation between predictors is the data miners’ bugbear. It is an inevitable fact of life in many situations. Multicollinearity can lead to misleading conclusions and degrade predictive power. A natural question is: Which approach handles multicollinearity better? Random forest or gradient boosting?

Suppose there are observations and potential predictors . Assume that

(A)

where is the amplitude of gaussian noise (mean zero and unit variance). Only 2 of  potential predictors actually play a role in generating the observations. The  are independently distributed () with the exception of which is correlated with  (correlation ).

(B)

As the correlation increases, it becomes harder for a data mining algorithm to ignore , even though  is not present in (A) and it is not a “true” explanatory variable.

Variable importance charts for this class of problem show that gradient boosting does a better job of handling multicollinearity than random forest. The complex trees used by random forest tend to spread variable importance more widely, particularly to variables which are correlated with the “true” predictors. The simpler base learner trees of gradient boosting (4 terminal nodes in the above example) seem to have greater immunity from the evils of multicollinearity.

Random forest is an excellent data mining technique, but it’s greater popularity compared to boosting seems unjustified.

R code