Q-Q Plot and Normality Checker

Paste a column of numbers and see whether it looks normal: a Q-Q plot, four normality tests with their working, skewness and kurtosis with standard errors, and a histogram with the bell curve.

Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić

…

Jak to zrobić

  1. 1
    Add your data

    Paste numbers, import a CSV and pick the column, or load a sample.

  2. 2
    Read the tests

    Compare the Shapiro-Wilk, Anderson-Darling, K² and Jarque-Bera p-values with α.

  3. 3
    Inspect the Q-Q plot

    Look for curves, S shapes or lone points away from the line.

  4. 4
    Check the histogram

    See the bars against the fitted normal curve and the bin table.

  5. 5
    Follow the working

    Open the Shapiro-Wilk or Anderson-Darling tab for the coefficients and terms.

  6. 6
    Export

    Save the plots as SVG, the results or Q-Q points as CSV, or print the report.

O tym narzędziu

Many common methods, including t-tests, ANOVA, linear regression residuals and control charts, assume that data or errors follow a normal distribution. This checker gives you the evidence in one place. The normal quantile-quantile plot sorts your values and sets each one against the value a perfect normal sample of the same size would have at that rank; if the data are normal the points lie along a straight line. You can choose the plotting positions used by R, Blom, Hazen or Weibull, draw the reference line through the quartiles as R's qqline does or from the mean and standard deviation, and switch to a detrended view that shows only the distance from the line. Four formal tests run at once. Shapiro-Wilk uses Royston's AS R94 algorithm, the same code behind R's shapiro.test, for 3 to 5,000 values. Anderson-Darling uses the small-sample adjustment and p-value formulas of the nortest package. The D'Agostino-Pearson omnibus test combines a skewness z and a kurtosis z, matching SciPy's normaltest, and the Jarque-Bera test is included for econometrics readers. Skewness and excess kurtosis are given both as moment values and as the bias-adjusted figures reported by SPSS and Excel, each with its standard error. The histogram overlays the fitted normal curve, and a table compares observed and expected counts per bin.

Reading the Q-Q plot

Look at the shape before the p-values. A banana curve that bends below the line at the left and above it at the right, then flattens, points to right skew, as with waiting times or incomes. An S shape with both ends pulling away from the line means heavier tails than the normal. One or two points far from an otherwise straight line are outliers rather than a wrong distribution. Steps in the plot come from rounded or discrete data. With small samples a few wobbles are expected even for normal data, which is why the plot is read together with Shapiro-Wilk.

Worked example

The first sample is the fuel economy of 32 cars from R's mtcars data set, in miles per gallon. The mean is 20.09 and the standard deviation 6.027. Shapiro-Wilk gives W = 0.9476 with p = 0.1229, and Anderson-Darling gives A² = 0.5797 with p = 0.1207; both match R to four decimals. The adjusted skewness is 0.672 (standard error 0.414, z = 1.62) and the adjusted excess kurtosis is −0.022, so there is mild right skew but no tail problem. D'Agostino-Pearson K² = 2.714 (p = 0.257). At α = 0.05 none of the tests rejects normality. The clinic waiting-time sample tells a different story: W = 0.818 with p = 0.0005, and its Q-Q plot bends sharply upward at the right.

Limits

A non-significant test does not prove the data are normal; small samples rarely have the power to detect departures. Very large samples flag trivial departures that do not harm a t-test. The tests assume independent observations and do not handle censored values, grouped data or ties from heavy rounding well.

Przykład z rozwiązaniem

32 cars, mpg: Shapiro-Wilk W = 0.9476 (p = 0.123), Anderson-Darling A² = 0.580 (p = 0.121), skewness 0.67.

W skrócie

Najczęstsze pytania

Which normality test should I report?

Shapiro-Wilk is the usual choice because it has the best power across many kinds of departure for samples up to a few thousand. Report it with the Q-Q plot, and add Anderson-Darling if the tails matter most.

My test says not normal. Do I have to stop using a t-test?

Not always. With 30 or more values per group the t-test is fairly robust to moderate skew. Look at how far the Q-Q plot bends, consider a transformation such as the logarithm, or use a rank-based test if the departure is large.

What are the different plotting positions?

They decide which probability each ranked value is set against. R uses (i − 3/8)/(n + 1/4) for ten values or fewer and (i − 1/2)/n beyond; Blom always uses the first, Hazen the second and Weibull i/(n + 1). The plot changes only slightly.

Why are there two skewness and kurtosis values?

The moment values g1 and g2 are the simple textbook formulas. G1 and G2 correct their small-sample bias and are what SPSS, Excel's SKEW and KURT, and most journals report.

How much data do I need?

Shapiro-Wilk runs from 3 values, Anderson-Darling and D'Agostino-Pearson from 8, but with fewer than about 20 values every test has little power, so the Q-Q plot matters more.

Can I test residuals from a regression?

Yes. Paste the residuals as the data column. Normality of residuals, not of the raw outcome, is the assumption for linear regression and ANOVA.

Całkowicie za darmoBez opłat i rejestracji
Pliki zostają prywatneWszystko działa w Twojej przeglądarce
Łatwo w Twoim językuDostępne w wielu językach