Statistics:Descriptive Statistics:Grubbs Test
Grubbs outlier test
Minimum Origin Version Required: 9.0 SR0
Menu accessible from 9.1 SR0
1. grubbs
2. grubbs ix:=col(2) alpha:=0.1
3. grubbs ix:=col(1) alpha:=0.05 box:=1
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | ix |
Input vector |
|
Must be a column or a range within a column |
Significance Level | alpha |
Input double |
|
Option list:
|
Data Point with Largest G | ox |
Output double |
|
The value of the suspected point |
Data Index with Largest G | index |
Output int |
|
Row index of suspected point |
G Test Statistic | gstat |
Output double |
|
The calculated G value from suspected point |
Critical Value | critical |
Output double |
|
The critical G value at the specified significance level |
Approximate P Value | pval |
Output double |
|
The p value for the test |
Test Significance | sig |
Output int |
|
sig=1 means there is an outlier, sig=0 means there is no outlier |
Conclusion | conclusion |
Output string |
|
A statement of conclusion indicating the statistical result |
Outlier Plot | box |
Input int |
|
Specify whether to generate an outlier plot. box=1 means to generate, and box=0 means not to generate. |
Grubbs Plot Data | rd |
Output ReportData |
|
The worksheet range to put the plot data for outlier plot, if generating an outlier plot is selected. |
Grubbs Report | rt |
Output ReportTree |
|
The worksheet range to put the report table. |
Used to test outlier for a dataset with more than 3 data points, at significance level 0.01, 0.05 or 0.1.
1. Calculate G
where ox is the value of suspected point (usually highest or lowest observation), mean is the mean value of data set, and SD is the standard deviation.
Compare G with the critical value.
2. Calculate p
where Z is the largest G, N is the number of samples.
The p value is then calculated as the two-tailed P value for the student t distribution of the t value.
Stephen L R. Ellison, Vicki J. Barwick and Trevor J Duguid. Farrant. 2009. Practical Statistics for the Analytical Scientist. The Royal Society of Chemistry, Cambridge, UK.
Keywords:significance level