Statistics for Quadratic programming as an extension of linear programming