Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →No single method is best. Choose by the shape of your data, the assumptions you can defend, and whether you want a quick flag or a formal test. For one numeric variable, use a MAD-based modified z-score or IQR fences to screen. Use Grubbs’ test or generalized ESD when you need a formal test and the data are roughly normal. Use a multivariate or algorithmic detector when a value is unusual only in combination with other features.
Whichever method you pick, it only flags a value. It does not show the value is wrong. The NIST Engineering Statistics Handbook puts it this way: “If there is no reason to believe that the outlying point is in error, it should not be deleted without careful consideration.”
First decide what you are trying to do
NIST separates three tasks that people often blur together:
- Labeling: flagging candidates for further investigation.
- Accommodation: using robust methods that unusual values cannot distort much, without removing anything.
- Identification: formally testing whether specific observations are outliers.
The five approaches below fall under these tasks. Approaches 1 and 2 are mainly for labeling, and they also give you robust summaries. Approaches 3 and 4 are for identification. Approach 5 labels cases that univariate rules cannot see.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Quick comparison
| Approach | Data | Main assumption | Best for |
|---|---|---|---|
| Modified z-score (median/MAD) | One numeric variable | Few distributional assumptions; needs some spread in the data | Screening that resists extreme points |
| IQR fences | One numeric variable | None formal; a convention | Transparent boxplot-style screening |
| Grubbs’ test | One numeric variable | Approximately normal | Testing one suspected outlier |
| Generalized ESD | One numeric variable | Approximately normal; you set an upper bound on the count | Testing when the number of outliers is uncertain |
| Multivariate / algorithmic (e.g., Isolation Forest, LOF) | Several features | Depends on the method and the feature representation | Unusual combinations or local-density anomalies |
1. Modified z-scores using median and MAD
An ordinary z-score uses the mean and standard deviation. Both are pulled by the very points you are hunting, so a large outlier can inflate the standard deviation and hide itself. The modified z-score uses the median for the center and the median absolute deviation (MAD) for the scale. NIST gives the formula as:
Mᵢ = 0.6745 × (xᵢ − x̃) / MAD
Here x̃ is the sample median and MAD is the median of |xᵢ − x̃|. The 0.6745 multiplier is the normalizing constant NIST uses in this formula.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Worked example
Take the values 10, 12, 11, 13, 12, 11, 95. The median is 12. The absolute deviations from 12 are 2, 0, 1, 1, 0, 1, 83, so the MAD is 1. The score for 95 is 0.6745 × 83 ≈ 56. The score for 10 is about −1.35. The extreme point stands out sharply and did not distort its own yardstick.
Practical notes
- Pick and state a cutoff. A cutoff of 3.5 in absolute value is a widely used convention (it traces to Iglewicz and Hoaglin, whom NIST cites), but it is a convention, not a universal truth. Report the one you used.
- If more than half your values are identical, the MAD is zero and the score cannot be computed. This is common with discrete or heavily rounded data. Use another method.
- The score is symmetric. For strongly skewed data, a long tail can produce many flags that are simply the normal shape of the distribution.
2. IQR fences (boxplot screening)
Compute IQR = Q3 − Q1. NIST’s boxplot conventions are:
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
- Inner fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Points beyond them are conventionally called mild outliers.
- Outer fences: Q1 − 3 × IQR and Q3 + 3 × IQR. Points beyond them are called extreme outliers.
The scikit-learn documentation notes that the median and interquartile range are less affected by extreme values than the range, the mean and the standard deviation. That makes the fences hard to distort by the outliers themselves, and they are easy to explain to non-statisticians.
IQR or MAD?
Both are robust, and on well-behaved data they often agree. Choose IQR when you want a rule that matches the boxplot your audience already sees. Choose MAD when you want a continuous score, where you can rank points by how extreme they are and tune the cutoff. Quartile definitions differ slightly between software packages, so the fences can shift a little between tools. For skewed data, consider transforming first (for example, taking logs), because fences on the raw scale will flag the long tail.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
3. Grubbs’ test for one suspected outlier
Grubbs’ test answers a narrow question: is the single most extreme point an outlier in an approximately normal sample? The statistic is the largest absolute deviation from the sample mean, in units of the sample standard deviation.
- Normality matters. If the underlying distribution has a heavy or skewed tail, the test can call a legitimate tail value an outlier. Check a probability plot or histogram first.
- It is not for several outliers. Running it repeatedly invites masking, where multiple outliers make the test conclude that none is present. NIST recommends other procedures when more than one outlier may exist.
4. Generalized ESD when the count is unknown but bounded
The generalized extreme studentized deviate (ESD) test handles one or more outliers in approximately normal univariate data. You do not need to know the exact count. You only supply an upper bound on how many might be present. That makes it a better fit than Grubbs’ test when you suspect a few bad points but cannot say how many.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
- Set the upper bound from what is plausible for your data, not from how many points you would like to remove.
- It shares the normality assumption, so a skewed distribution can produce false detections.
- Pair it with a probability plot, boxplot, histogram, or run-sequence plot. NIST recommends these for viewing potential outliers and the shape of the distribution.
5. Multivariate and algorithmic detectors
A person who is 1.85 m tall and one who weighs 55 kg may each be ordinary. Both together may be rare. Univariate fences check each column separately, so they miss this kind of case. They also miss points that are unusual only relative to their local neighborhood.
Options
- Robust multivariate methods: estimate a center and covariance that extreme points cannot dominate, then measure each point’s distance from them.
- Isolation Forest: isolates points with random splits. Points that are separated quickly are treated as more anomalous.
- Local Outlier Factor (LOF): compares a point’s local density with that of its neighbors, which helps when clusters have different densities.
Cautions
- Scikit-learn’s estimator comparison indicates Isolation Forest tends to train faster than LOF on large datasets in the benchmark it shows. That is a computational observation in one context, not an accuracy ranking.
- The same page warns that feature scaling and the presence of outliers can affect the comparison. Scale features deliberately, and check that the result makes sense for your domain.
- These methods have tuning choices, such as the expected contamination rate or neighborhood size. Different choices flag different points, so treat the output as a ranked list of candidates.
How to choose
| Question | What it means for your choice |
|---|---|
| One feature or several? | One feature: approaches 1 to 4. Several, where relationships matter: approach 5. |
| Is approximate normality plausible? | If not, avoid Grubbs and generalized ESD. Use MAD or IQR, possibly after a transformation. |
| Is the number of suspected outliers known? | One: Grubbs. Unknown but bounded: generalized ESD. |
| Flag, test, or tolerate? | Flag with MAD or IQR, test with Grubbs or ESD, or tolerate by using medians and robust estimators for your analysis. |
| Can you check the source of the record? | If yes, investigate coding, units, and measurement before changing anything. |
What to do after a point is flagged
- Plot the data. Look at a boxplot, histogram, probability plot, and (for time-ordered data) a run-sequence plot.
- Check the record. Look for unit mix-ups, typos, sensor faults, or import errors.
- Consider the context. An outlier may be bad data, ordinary random variation, or the most scientifically interesting observation you have.
- If it is a confirmed error, correct it or remove it and document why.
- If it is valid, keep it. Use robust summaries or models, or run the analysis with and without it and report both results.
NIST points readers who want deeper treatment to the books by Iglewicz and Hoaglin and by Barnett and Lewis.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

