I'm looking for a way to compare experimental and theoretical data and determining if it obeys a certain law. In particular, I'm writing a computer program that does this and at the moment what I'm doing is, I'm calculating the ratio of each reading with the theoretical result and calculating the standard deviation of the various resultant ratios. I compare each ratio with the mean to see if its within one standard deviation. Are there any better approached than this? I'm not really a mathematician, and am more of a programmer so any help would be much appreciated.