X̅ and R chart
# X̅ and R chart

In statistical process control (SPC), the ${\bar {x}}$ and R chart is a type of scheme, popularly known as control chart, used to monitor the mean and range of a normally distributed variables simultaneously, when samples are collected at regular intervals from a business or industrial process. It is often used to monitor the variables data but the performance of the ${\bar {x}}$ and R chart may suffer when the normality assumption is not valid.

## Properties

The "chart" actually consists of a pair of charts: One to monitor the process standard deviation (as approximated by the sample moving range) and another to monitor the process mean, as is done with the ${\bar {x}}$ and s and individuals control charts. The ${\bar {x}}$ and R chart plots the mean value for the quality characteristic across all units in the sample, ${\bar {x}}_{i}$, plus the range of the quality characteristic across all units in the sample as follows:

    R = $x_{max}$ - $x_{min}.$

The normal distribution is the basis for the charts and requires the following assumptions:

* The quality characteristic to be monitored is adequately modeled by a normally distributed random variable
* The parameters μ and σ for the random variable are the same for each unit and each unit is independent of its predecessors or successors
* The inspection procedure is same for each sample and is carried out consistently from sample to sample

The control limits for this chart type are:

* $D_{3}{\bar {R}}$ (lower) and $D_{4}{\bar {R}}$ (upper) for monitoring the process variability
* ${\bar {\bar {x}}}\pm A_{2}{\bar {R}}$ for monitoring the process mean

    where ${\bar {\bar {x}}}$ and ${\bar {R}}$ are the estimates of the long-term process mean and range established during control-chart setup and $A_2,$ $D_3,$ and $D_4$ are sample size-specific anti-biasing constants. The anti-biasing constants are typically found in the appendices of textbooks on statistical process control.

## Usage of the chart

The chart is advantageous in the following situations:

* The sample size is relatively small (say, n ≤ 10—${\bar {x}}$ and s charts are typically used for larger sample sizes)
* The sample size is constant
* Humans must perform the calculations for the chart

As with the ${\bar {x}}$ and s and individuals control charts, the ${\bar {x}}$ chart is only valid if the within-sample variability is constant. Thus, the R chart is examined before the ${\bar {x}}$ chart; if the R chart indicates the sample variability is in statistical control, then the ${\bar {x}}$ chart is examined to determine if the sample mean is also in statistical control. If on the other hand, the sample variability is not in statistical control, then the entire process is judged to be not in statistical control regardless of what the ${\bar {x}}$ chart indicates.

## Limitations

For monitoring the mean and variance of a normal distribution, the ${\bar {x}}$ and s chart chart is usually better than the ${\bar {x}}$ and R chart.

