Calculation of moving range The difference between data point, x_i, and its predecessor, x_{i-1}, is calculated as {MR}_i = \big| x_i - x_{i - 1} \big|. For m individual values, there are m-1 ranges. Next, the
arithmetic mean of these values is calculated as \overline{MR}=\frac{\sum_{i=2}^{m}{MR_i}}{m-1} If the data are normally distributed with standard deviation \sigma then the expected value of \overline{MR} is d_{2} \sigma= 2\sigma/\sqrt \pi, the
mean absolute difference of the normal distribution.
Calculation of moving range control limit The upper control limit for the range (or upper range limit) is calculated by multiplying the average of the moving range by 3.267: UCL_r = 3.267\overline{MR}. The value 3.267 is taken from the sample size-specific anti-biasing constant for , as given in most textbooks on statistical process control (see, for example, Montgomery).
Calculation of individuals control limits First, the average of the individual values is calculated: \overline{x}=\frac{\sum_{i=1}^{m}{x_i}}{m}. Next, the upper control limit (UCL) and lower control limit (LCL) for the individual values (or upper and lower natural process limits) are calculated by adding or subtracting 2.66 times the average moving range to the process average: UCL=\overline{x}+2.66\overline{MR}. LCL=\overline{x}-2.66\overline{MR} The value 2.66 is obtained by dividing 3 by the sample size-specific anti-biasing constant for , as given in most textbooks on statistical process control (see, for example, Montgomery).
Creation of graphs Once the averages and limits are calculated, all of the individuals data are plotted serially, in the order in which they were recorded. To this plot is added a line at the average value, and lines at the and values. On a separate graph, the calculated ranges are plotted. A line is added for the average value, and second line is plotted for the range upper control limit ().
Analysis The resulting plots are analyzed as for other control charts, using the rules that are deemed appropriate for the process and the desired level of control. At the least, any points above either upper control limits or below the lower control limit are marked and considered a signal of changes in the underlying process that are worth further investigation. ==Potential pitfalls==