The calculations for UCL, LCL, and X bar chart are as follows:
The ith subgroup mean is calculated using;
The grand mean (x-bar-bar) is calculated as follows:
Also, the following is another formula for the calculation of the grand mean (x-bar-bar):
The range of the above data is calculated using the formula below:
We also have the following A2, D3, and D4 values for a sample size of n = 5. For the chosen sample size (as determined by the table of constants):
The following are the calculations for UCL, LCL, as well as centerline for the X-bar chart
The R chart's UCL, LCL, and centerline calculations are as follows.


The x-bar and range computed values are within the UCL as well as LCL limits determined previously for the x-bar and r-chart, indicating that the process is statistically controlled.