The distribution and properties of a weighted sum of chi squares