Robust Generalized Weighted Probabilistic Principal Component Regression With Application In Data-Driven Optimization