Data Reduction and Error Analysis for the Physical Sciences