|
WebCab Probability and Statistics v3.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.statistics.statistics.QualityControl
Provides several procedures commonly used to check the quality of the process control. Towards this end we offer methods for the evaluation of the LCL (lower control limit) and UCL(upper control limit) for R Chart, S Chart, XBAR Chart and Median Chart for a finite set of data samples. PLEASE FINISH
Here we describe the principle objects of study within this class.
| Constructor Summary | |
QualityControl()
Creates a new instance of the QualityControl class with an empty initial data set. |
|
QualityControl(double[][] dataSet)
Creates a new QualityControl instance with a specified initial data set. |
|
| Method Summary | |
double[][] |
getDataSet()
Retrieves the currently registered data set. |
double |
RBAR()
Calculates the centerline (RBAR) for the R Chart. |
double[] |
rChartControlLimits()
Calculates the control limits for the R Chart. |
double |
rChartStandardDeviation()
Calculates the process standard deviation once the R Chart is in a state of statistical control. |
double[] |
rMedianChartControlLimits()
Calculates the control limits for the Median Chart using R Chart. |
double[] |
rXBARChartControlLimits()
Calculates the control limits for the XBAR Chart using R Chart. |
double |
SBAR()
Calculates the centerline (SBAR) for the S Chart. |
double[] |
sChartControlLimits()
Calculates the control limits for the S Chart. |
double |
sChartStandardDeviation()
Calculates the process standard deviation once the S Chart is in a state of statistical control. |
void |
setDataSet(double[][] dataSet)
Registers a new data set used from within the business methods of this class. |
double[] |
sMedianChartControlLimits()
Calculates the control limits for the Median Chart using S Chart. |
double[] |
sXBARChartControlLimits()
Calculates the control limits for the XBAR Chart using S Chart. |
double |
XDBLBAR()
Calculates the grand mean of all subgroups from the data sample. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QualityControl()
public QualityControl(double[][] dataSet)
For example we have k successive subgroups where k should be at least 20 for acheiving good results. Each subgroup contains n measurements. Typically n is between 1 and 9. As a rule 3, 4, 5 measurements per subgroup is quite common. Each line of the two dimensional array given shoud represent an subgroup, and each column represent a measurement. For example the element dataSet[2][3] represents the third measurement for the second subgroup from the data sample.
dataSet - a two dimensional array where the k-th array corresponds to the k-th
subgroup of the data set.| Method Detail |
public void setDataSet(double[][] dataSet)
Say we wish to display the results of an experiment which has k successive
subgroups where k is at least 20, in which there are n measurements
in each subgroup within a tabulated form. One such example would be a R Chart. First step
required in order to achieve this is to register the data set using this methods. After
this you can calculate the lower and upper limits of the R Chart by calling rChartControlLimits().
dataSet - the set of values to be registered.
StatisticsException - if the data set is null.public double[][] getDataSet()
setDataSet(double[][]).
public double RBAR()
throws StatisticsException
The centerline RBAR is evaluated by the following formula:
RBAR = 1/k*Σ R(i),
where:
k is the number of subgroupsR(i) = biggest value - smallest value for each subgroup i
StatisticsException - thrown if the data set is null.
public double[] rChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL = D(3)RBAR
UCL = D(4)RBAR
where RBAR is the centerline for the R Chart calculated by the method RBAR().
D(3) and D(4) are constants which vary according with the number of measurements in the subgroup
and can be found in the table below:
| n | D(3) | D(4) |
| 2 | 0 | 3.267 |
| 3 | 0 | 2.574 |
| 4 | 0 | 2.282 |
| 5 | 0 | 2.114 |
| 6 | 0 | 2.004 |
| 7 | 0.076 | 1.924 |
| 8 | 0.136 | 1.864 |
| 9 | 0.184 | 1.816 |
StatisticsException - thrown if the data set is null.public double rChartStandardDeviation()
Calculates the process standard deviation once the R Chart is in a state of statistical control. The R Chart is in a state of statistical control if all the points from the data sample lie within the upper control limits (UCL) and the lower control limits (LCL). If a point is outside the control limits it means that the process is out of statistical control and a source of special case variation is present. You should determine the cause of this variation and eliminate it.
The standard deviation is evaluated by the following formula:
rSigma = RBAR/d(2)
where:
RBAR is the centerline of the R Chart calculated by the method RBAR;d(2) is an array of constants which depends of the number n of measurements in
the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| d(2) | 1.128 | 1.6932 | 2.059 | 2.326 | 2.524 | 2.704 | 2.847 | 2.970 |
public double XDBLBAR()
throws StatisticsException
The grand mean (XDBLBAR) is evaluated by the following formula:
XDBLBAR = 1/k*Σ XBAR(i)
where:
k is the number of subgroupsXBAR(i) is the mean of the subgroup i
StatisticsException - thrown if the data set is null.
public double[] rXBARChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL= XDBLBAR - A(2) * RBAR
UCL= XDBLBAR + A(2) * RBAR
where:
XDBLBAR is the grand mean of all subgroups calculated by the XDBLBAR() method;RBAR is the range of all subgroups calculated by the RBAR() method;A(2) is an array of constant which depends of the number of measurements within the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| A(2) | 1.880 | 1.023 | 0.729 | 0.577 | 0.483 | 0.419 | 0.373 | 0.337 |
StatisticsException - thrown if the data set is null.
public double SBAR()
throws StatisticsException
The centerline SBAR is evaluated by the following formula:
SBAR = 1/k * Σ S(i)
where:
k is the number of subgroups within the data sample;S(i) is the standard deviation for the subgroup i.
StatisticsException - thrown if the data set is null.
public double[] sChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL = B(3) * SBAR
UCL = B(4) * SBAR
where SBAR is the centerline for the S Chart calculated by the SBAR() method.
B(3) and B(4) are constants which vary according with the number of measurements in the subgroup
and can be found in the table below:
| n | B(3) | B(4) |
| 2 | 0 | 3.267 |
| 3 | 0 | 2.568 |
| 4 | 0 | 2.266 |
| 5 | 0 | 2.089 |
| 6 | 0.03 | 1.970 |
| 7 | 0.118 | 1.882 |
| 8 | 0.185 | 1.815 |
| 9 | 0.239 | 1.761 |
StatisticsException - thrown if the data set is null.public double sChartStandardDeviation()
The standard deviation is evaluated by the following formula:
Sigma = SBAR/c(4) * √(1 - c(4)2)
where:
SBAR is the centerline of the S Chart calculated by SBAR() method;c(4) is an array of constants which depends of the number n of measurements in
the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| c(4) | 0.7979 | 0.8862 | 0.9213 | 0.9400 | 0.9515 | 0.9594 | 0.9650 | 0.9693 |
public double[] sXBARChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL= XDBLBAR - A(3) * SBAR
UCL= XDBLBAR + A(3) * SBAR
where:
XDBLBAR is the grand mean of all subgroups calculated by the XDBLBAR() method;SBAR is the range of all subgroups calculated by the SBAR() method;A(3) is an array of constant which depends of the number of measurements within the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| A(3) | 2.659 | 1.954 | 1.628 | 1.427 | 1.287 | 1.182 | 1.099 | 1.032 |
StatisticsException - thrown if the data set is null.
public double[] sMedianChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL= XDBLBAR - A(7) * SBAR
UCL= XDBLBAR + A(7) * SBAR
where:
XDBLBAR is the grand mean of all subgroups calculated by the XDBLBAR() method;SBAR is the range of all subgroups calculated by the SBAR() method;A(7) is an array of constant which depends of the number of measurements within the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| A(7) | 1.880 | 1.067 | 0.796 | 0.660 | 0.580 | 0.521 | 0.477 | 0.444 |
StatisticsException - thrown if the data set is null.
public double[] rMedianChartControlLimits()
throws StatisticsException
Find the lower control limits (LCL) and the upper control limits (UCL) with the following formulas:
LCL= XDBLBAR - A(6) * RBAR
UCL= XDBLBAR + A(6) * RBAR
where:
XDBLBAR is the grand mean of all subgroups calculated by the XDBLBAR() method;RBAR is the range of all subgroups calculated by the RBAR() method;A(6) is an array of constant which depends of the number of measurements within the subgroup.| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| A(6) | 1.880 | 1.187 | 0.796 | 0.691 | 0.549 | 0.509 | 0.434 | 0.412 |
StatisticsException - thrown if the data set is null.
|
WebCab Probability and Statistics v3.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||