You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/incr/grubbs/README.md
+66
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,72 @@ limitations under the License.
24
24
25
25
<sectionclass="intro">
26
26
27
+
[Grubbs' test][grubbs-test] (also known as the **maximum normalized residual test** or **extreme studentized deviate test**) is a statistical test used to detect outliers in a univariate dataset assumed to come from a normally distributed population. [Grubbs' test][grubbs-test] is defined for the hypothesis:
28
+
29
+
-**H_0**: the dataset does **not** contain outliers.
30
+
-**H_1**: the dataset contains **exactly** one outlier.
31
+
32
+
The [Grubbs' test][grubbs-test] statistic for a two-sided alternative hypothesis is defined as
where `s` is the sample standard deviation. The [Grubbs test][grubbs-test] statistic is thus the largest absolute deviation from the sample mean in units of the sample standard deviation.
44
+
45
+
The [Grubbs' test][grubbs-test] statistic for the alternative hypothesis that the minimum value is an outlier is defined as
46
+
47
+
<!-- <equation class="equation" label="eq:grubbs_test_statistic_min" align="center" raw="G = \frac{\bar{Y} - Y_{\textrm{min}}}{s}" alt="Grubbs' test statistic for testing whether the minimum value is an outlier."> -->
<img src="" alt="Grubbs' test statistic for testing whether the minimum value is an outlier.">
51
+
<br>
52
+
</div>
53
+
54
+
<!-- </equation> -->
55
+
56
+
The [Grubbs' test][grubbs-test] statistic for the alternative hypothesis that the maximum value is an outlier is defined as
57
+
58
+
<!-- <equation class="equation" label="eq:grubbs_test_statistic_max" align="center" raw="G = \frac{Y_{\textrm{max}} - \bar{Y}}{s}" alt="Grubbs' test statistic for testing whether the maximum value is an outlier."> -->
0 commit comments