To properly ensemble three models with different variances and means while ensuring high variance models do not dominate and mean information is preserved, you can use inverse variance weighting. This approach balances the contributions of each model based on their reliability (inverse of variance) while retaining the original mean structure of their predictions.
Key Principles
- High Variance Models Should Not Dominate:
- Models with higher variance are less reliable and should be downweighted.
- This is achieved by assigning weights inversely proportional to their variance.
- Preserve Mean Information:
- The ensemble's mean should reflect a weighted combination of the individual models' means, not a standardized (z-score) version that discards original mean differences.
Steps to Implement Inverse Variance Weighting
1. Estimate Variances
For each model, compute the variance of its predictions over your dataset (or a validation set):
- Let σ12,σ22,σ32 be the variances of the three models.
2. Assign Weights
Compute inverse variance weights:
wi=σi21
These weights prioritize models with lower variance (more reliable predictions).
3. Normalize Weights
Normalize the weights so they sum to 1:
wi′=w1
4. Combine Predictions
For each data point, compute the ensemble prediction as a weighted average of the three models:
y^ensemble=w
Why This Works
- Variance Control: High-variance models are downweighted, reducing their influence.
- Mean Preservation: The ensemble's mean is a weighted average of the individual model means, preserving the original mean structure.
- Interpretability: The weights are derived from the models' reliability, not arbitrary assumptions.
Example
Suppose:
- Model A: Mean = 10, Variance = 4 → wA=1/4=0.25
- Model B: Mean = 8, Variance = 1 → wB
Normalize weights:
wA′=0.25/(0.25+1.0+
Ensemble prediction for a data point:
y^ensemble=0.19⋅y
Alternative Approaches
- Meta-Model (e.g., Linear Regression): If you have a validation set, train a meta-model to learn optimal weights based on the models' predictions and true labels. This is data-driven but requires labeled data.
- Calibration: Adjust each model's predictions to align with a common scale (e.g., using Platt scaling or isotonic regression) before combining.
When to Use This Method
- Models are predicting the same target (e.g., regression or classification).
- You have access to model predictions (not just final outputs).
- You want to explicitly account for variance in the ensemble.
Final Note
This method assumes that variance is a reliable proxy for model reliability. If models have systematic biases (e.g., one consistently overestimates), additional calibration may be needed. However, for the described problem, inverse variance weighting is a robust and interpretable solution.