A theoretical analysis of bagging as a linear combination of classifiers