The principle of the Rietveld method is to minimize a function  which analyzes the difference between a calculated profile  and the observed data . Rietveld defined such an equation as:
where  is the statistical weight and  is an overall scale factor such that .