Bagging is used in a number of situations. One situation is to improve predictive power. Bagging is especially helpful for unstable models. This example uses the Tiretread.jmp sample data table. There are three factors (SILICA, SILANE, and SULFUR) and four responses (ABRASION, MODULUS, ELONG, and HARDNESS). First, you fit a neural network model to simultaneously predict the four response variables as a function of the three factors. Then, you perform bagging on the neural network model. Last, you compare the predictions to show the improvements obtained through bagging.
1.
Select Help > Sample Data Library and open Tiretread.jmp.
2.
Select Analyze > Predictive Modeling > Neural.
3.
Select ABRASION, MODULUS, ELONG, and HARDNESS and click Y, Response.
4.
Select SILICA, SILANE, and SULFUR and click X, Factor.
5.
7.
8.
Select Save Formulas from the red triangle menu next to Model NTanH(3).
5.
Return to the data table. For each response variable, there are three new columns denoted as Pred Formula <colname> Bagged Mean, StdError <colname> Bagged Mean, <colname> Bagged Std Dev. The Pred Formula <colname> Bagged Mean columns are the final predictions.
Figure 2.31 Columns Added to Data Table After Bagging
1.
Select Analyze > Predictive Modeling > Model Comparison.
2.
Select Predicted ABRASION and click Y, Predictors.
3.
Select Pred Formula ABRASION Bagged Mean and click Y, Predictors.
4.
5.
Select ABRASION and click OK.
Figure 2.32 Comparison of Predictions for ABRASION
The Measures of Fit report and the Actual by Predicted Plot are shown in Figure 2.32. The predictions that were obtained from bagging are shown in blue. The predictions that were obtained from the original neural network model are shown in red. In general, the bagging predictions are closer to the line than the original model predictions. Because the bagging predictions are closer to the line, the RSquare value of 0.6699 for the bagged predictions is higher than the RSquare value for the original model predictions. You conclude that bagging improves predictions for ABRASION.
This example compared the predictions for ABRASION. To compare predictions for another response variable, follow step 2 through step 6, replacing ABRASION with the desired response variable. As another example, Figure 2.33 shows the Measures of Fit report for HARDNESS. The report shows similar findings as the Measures of Fit report for ABRASION. The RSquare value for the bagged predictions is slightly higher than the RSquare value for the original model predictions, which indicates a better fit and improved predictions.
Figure 2.33 Comparison of Predictions for HARDNESS

Help created on 10/11/2018