Text this: Application of least-squares method to forecast the reliability problem based on the well and rejected items produced