Chi-square distribution theory with applications to reliability problems