Home▸Articles▸Data Science

Grubbs' Test 2D: Outlier Detection in Data Analysis

A statistical method for identifying and removing outliers from a dataset, crucial for data integrity and accuracy.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is Grubbs' Test?

Grubbs' test, also known as the maximum normed residual test, is a statistical procedure used to identify and remove outliers in a dataset. It is particularly useful when dealing with small sample sizes or data that follows a normal distribution.

The test works by calculating the test statistic G for each observation in the dataset, which measures how far an individual value deviates from the mean relative to the standard deviation.

How Grubbs' Test Works

Grubbs' test involves several steps: first, calculate the sample mean and standard deviation. Then, compute the G-statistic for each data point by dividing the absolute difference between the suspected outlier and the mean by the standard deviation.

The highest G-value is then compared against a critical value from the chi-square distribution table. If the calculated G-value exceeds this critical value, the corresponding observation is considered an outlier and can be removed.

live demo · related simulation● LIVE

Why It Matters

Outliers can significantly skew statistical analyses and lead to incorrect conclusions if not properly identified and handled. Grubbs' test helps ensure that data analysis remains robust and reliable.

In fields such as finance, engineering, and scientific research, accurate outlier detection is essential for making informed decisions based on the integrity of the data.

Real-World Applications

Grubbs' test has numerous applications in various domains. For instance, in quality control, it can help identify defective products or processes that deviate from expected norms.

In environmental science, the test can be used to detect anomalies in pollution levels or climate data, which might otherwise distort trends and predictions.

Frequently asked questions

How does Grubbs' test handle multiple outliers?

Grubbs' test is designed to identify one outlier at a time. After an outlier is removed, the process can be repeated on the remaining data until no more outliers are detected.

What if there are no outliers in my dataset?

If Grubbs' test does not detect any outliers, it indicates that all points in your dataset are consistent with a normal distribution and do not deviate significantly from the mean.

Can Grubbs' test be used for non-normal data?

Grubbs' test assumes that the data follows a normal distribution. For non-normal data, other methods such as the Dixon's Q-test or the Tietjen-Moore test may be more appropriate.

What is the significance of the alpha level in Grubbs' test?

The alpha level (significance level) determines the threshold for rejecting an observation. A lower alpha value makes it harder to reject outliers, while a higher alpha increases the likelihood of incorrectly identifying points as outliers.

Try it live

Everything above runs in your browser — open Grubbs' Test 2D: Dot-Plot Outlier Rejection and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Grubbs' Test 2D: Dot-Plot Outlier Rejection simulation

What did you find?

Add reproduction steps (optional)