Table of Contents
In the realm of rigorous statistical analysis, the proper identification and management of aberrant data points—commonly referred to as outliers—is a critical preliminary step. These extreme values, if not accounted for, possess the power to substantially distort measures of central tendency and variability, leading to potentially flawed models and inaccurate conclusions. The Grubbs’ Test, formally known as the Maximum Normed Residual Test, offers a specific and powerful methodology for objectively testing whether a single, suspected extreme observation truly qualifies as an outlier within a dataset that is assumed to be normally distributed. This comprehensive guide provides a detailed breakdown of how to execute the Grubbs’ Test efficiently and accurately utilizing the powerful features of Microsoft Excel, thereby bolstering data integrity and analytical robustness.
Before implementing this precise statistical procedure, it is mandatory to confirm that the dataset adheres to its strict foundational requirements. The test is specifically engineered to detect the presence of exactly one outlier. Furthermore, the underlying distribution of the data must be reasonably close to a normal distribution. For the results to possess adequate statistical reliability, the sample size (N) should ideally consist of a minimum of seven observations (N ≥ 7). Neglecting to satisfy these core statistical assumptions may introduce significant bias and fundamentally invalidate the conclusions derived from the test results.
A Crucial Methodological Note: It is paramount that analysts select the appropriate statistical technique based on the contextual evidence of the data. If initial exploratory data analysis strongly suggests the possibility of more than one outlier within the sample—perhaps indicated by extreme skewness or multiple distant points—analysts should bypass the Grubbs’ Test and instead employ a more generalized procedure, such as the Rosner’s Generalized Extreme Studentized Deviate (ESD) Test, which is designed for multiple outlier detection.
The Foundational Principles and Assumptions of Grubbs’ Test
The Grubbs’ Test is rooted in the framework of hypothesis testing. It establishes a null hypothesis (H0) which posits that every value in the sample originated from the same homogeneous population, meaning there are absolutely no outliers present. Conversely, the alternative hypothesis (Ha) asserts that the maximum or minimum observed value is statistically significant enough to be classified as an outlier. This structure enables researchers to formally reject the assumption of data homogeneity if the calculated test statistic surpasses a predefined critical threshold. The successful application and reliability of the test are intrinsically tied to the underlying statistical properties of the sample data.
The most essential prerequisite for the accurate execution of the Grubbs’ Test is the assumption of normality. If the data exhibits a severe or non-trivial deviation from a normally distributed pattern, both the calculation of the critical value and the resulting interpretation of the G statistic become unreliable, potentially leading to Type I or Type II errors. Consequently, preliminary steps such as comprehensive Exploratory Data Analysis (EDA)—which includes constructing histograms, box plots, or Q-Q plots—must be conducted before attempting the formal test procedure. Furthermore, while theoretically defined for small samples, the test’s power to reliably detect outliers diminishes sharply when the sample size (N) falls below seven, making robust detection highly challenging in such scenarios.
A key element in setting up the test correctly is understanding the directionality of the suspected extreme value. The specific computation of the test statistic (G) depends entirely on whether the analyst suspects the maximum value (one-sided test), the minimum value (one-sided test), or is conducting a comprehensive two-sided test covering both extremes. This choice dictates which mathematical formula is applied and, subsequently, how the associated critical value is determined based on the pre-selected significance level (alpha, α). Precision in defining the hypothesis is paramount for deriving meaningful results.
Formulating the Grubbs’ Test Statistic (G)
The Grubbs’ test statistic (G) serves as a standardized measure of extremity. It quantifies the distance between the suspected outlier and the central tendency (the overall mean) of the dataset, normalizing this difference by the sample standard deviation (s). This standardization process effectively tells us how many standard deviations the extreme observation lies away from the average. The calculation method must be adapted based on the direction of the suspected outlier:
When the analyst suspects that the maximum value (xmax) in the dataset is the potential outlier (a One-Sided Test), the test statistic is calculated using the following ratio:
G = (xmax – x) / s
Conversely, if the minimum value (xmin) is suspected of being the outlier (also a One-Sided Test), the formula standardizes the distance from the mean to the minimum value:
G = (x – xmin) / s
If there is no prior suspicion regarding whether the maximum value or minimum value in the dataset is an outlier, requiring a Two-Sided Test, the statistic must capture the largest absolute deviation from the mean across all data points:
G = max|xi – x| / s
In all aforementioned formulas, x represents the calculated sample mean of the entire dataset, and s denotes the sample standard deviation. It is crucial to use the sample-based formulas for these descriptive statistics, as the analysis is almost universally performed on a subset of observations drawn from a larger population.
Determining the Critical Threshold (Gcritical)
The core of the hypothesis test lies in establishing the decision boundary, known as the critical value (Gcritical). This threshold defines the point beyond which the calculated test statistic (G) is deemed statistically significant. Gcritical is mathematically derived from the t distribution and requires inputs for the sample size (n) and the predetermined significance level (α). The formula for the critical value is given by:
Gcritical = (n-1)tcritical / √[n(n-2 + t2critical)]
In this equation, tcritical is the critical value obtained directly from the t distribution table or function, using n-2 degrees of freedom. A vital complexity in the Grubbs’ Test methodology is the necessity to adjust the significance level (α) used to find tcritical. This adjustment must account for the inherent multiple comparisons performed when identifying the single most extreme value in a set of ‘n’ observations. Specifically, the level is set to α/n for a single-tail test and α/(2n) for a two-tailed test. If the calculated test statistic (G) is found to be greater than the calculated Gcritical, the null hypothesis is successfully rejected, providing formal confirmation that the extreme value is a statistical outlier.
Practical Example: Implementing Grubbs’ Test in Excel
To solidify the theoretical steps, we will now execute a practical application of the Grubbs’ Test using Microsoft Excel. We will analyze a sample dataset where the maximum value appears suspiciously large. Our primary objective is to rigorously determine whether the data point 60 should be formally classified as a statistically significant outlier.
The following dataset represents the sample values under investigation:

Prerequisites: Verifying Data Normality in Excel
Step 1: Confirm Normality. The first and most critical step is to visually and statistically confirm that the sample data aligns approximately with a normal distribution. A quick visual assessment can be achieved by generating a histogram to verify that the distribution roughly exhibits the expected bell-shape. This necessary exploratory analysis ensures that the fundamental assumptions underpinning the Grubbs’ Test are satisfied before proceeding to the complex calculations. We use the Data Analysis ToolPak in Excel to generate this plot:

The resulting visualization allows for an immediate graphical assessment of the distribution’s symmetry and shape:

Step-by-Step Calculation and Decision Making in Excel
Step 2: Calculate G and Gcritical. Proceeding from the normality check, we now conduct the formal calculations required for Grubbs’ Test. This involves computing the descriptive statistics—specifically the sample mean and the sample standard deviation—followed by the calculation of the test statistic (G) and the critical value (Gcritical). Since 60 is the maximum value, we employ the one-sided test formula. The following screenshot illustrates the precise Excel functions used, including AVERAGE, STDEV.S, and the critical T.INV function:

Upon completion of the calculation steps, we obtain the following results: The calculated test statistic, G, found in cell D4, is 3.603219.
The critical value, Gcritical, located in cell D11, is 2.556581.
Decision: Because the calculated test statistic (G = 3.603219) is demonstrably greater than the critical value (Gcritical = 2.556581), we must reject the null hypothesis (H0). This result provides robust statistical evidence, confirming that the value 60 is indeed a statistically significant outlier within this specific dataset.
Strategies for Handling Identified Outliers
Once the Grubbs’ Test has formally identified an outlier in your dataset, the subsequent steps require a careful, context-dependent evaluation of the data’s origin and the potential ramifications for the overall analysis. Analysts typically have several documented options for handling confirmed extreme values:
- Verification and Correction: Always begin by meticulously verifying the data point. It is common for values flagged as outliers to simply be the result of a typo or a data entry error. Revisit the original source documentation to confirm that the value was recorded and entered correctly before making any irreversible decisions about its status.
- Imputation: If the extreme value is confirmed to be an error but the original, correct value cannot be ascertained, you may choose to assign a new, imputed value. Common imputation techniques involve replacing the outlier with a measure of central tendency from the remaining dataset, such as the sample mean or median. This strategy helps preserve the integrity of the sample size.
- Removal: If the value is verified as a true measurement but represents a highly unusual phenomenon (a “true outlier”) that would unduly skew your primary analytical results, you may decide to remove it. This action should only be taken if its impact is significant and unwarranted by the research question, and it must be thoroughly documented.
Regardless of the strategy chosen, maintaining full transparency is paramount. Ensure that you document both the identification method (Grubbs’ Test) and the specific handling strategy applied (e.g., removal, imputation) when presenting the final findings and conclusions of your statistical work. This due diligence guarantees the integrity, reproducibility, and trustworthiness of your analysis.
Cite this article
Mohammed looti (2025). Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/conduct-grubbs-test-in-excel/
Mohammed looti. "Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide." PSYCHOLOGICAL STATISTICS, 8 Nov. 2025, https://statistics.arabpsychology.com/conduct-grubbs-test-in-excel/.
Mohammed looti. "Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/conduct-grubbs-test-in-excel/.
Mohammed looti (2025) 'Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/conduct-grubbs-test-in-excel/.
[1] Mohammed looti, "Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.
Mohammed looti. Learn to Identify Outliers with Grubbs’ Test in Excel: A Step-by-Step Guide. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.