MANUFACTURING / INTEGRATION / AUTOMATION
LIVE TOOL

Hypothesis tests

One- and two-sample and paired t-tests, one-way ANOVA with Tukey, chi-square, F and Levene tests on data pasted from Excel or CSV, each with a plain-language conclusion.

Test

1-sample t · input

Example dataReplace with your own data

Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

Columns

Found by the header names, or in the order Value. Change them if they are wrong.

Torque (N·m)
10.13
10.10
9.96
Long format
1 row = 1 value

Columns: tab, ; or ,
Decimals: 12,5 or 12.5

Read as: single column · decimal point · 25 rows · header row skipped

Data as understood — first 10 of 25 rows
#Value
110.13
210.10
39.96
410.17
510.10
69.94
710.18
810.00
910.15
1010.64

+15 more rows

One column of values. Other columns are ignored.

Test

Minitab’s defaults: two-sided, 95%. A one-sided alternative gives a one-sided bound instead of an interval.

Runs in this browser. Data is not uploaded or stored.

1-sample t · results

p = 0.0002

At α = 0.05 the mean differs from 10 (p = 0.0002): the sample mean 10.202 is 0.2024 higher than 10; 95% CI 10.107 to 10.297 for the mean.

H₀: μ = 10 · H₁: μ ≠ 10 · 25 values · 95%

    Individual values of Torque (N·m). Torque (N·m): 25 values, mean 10.202, median 10.12, quartiles 10.08 to 10.25, whiskers 9.94 to 10.49. Reference line at 10 (H₀ μ = 10).1010.5Individual values of Torque (N·m)Torque (N·m)H₀ μ = 10Torque (N·m)
    Mean with its 95% CI. Mean: 10.202, CI 10.107 to 10.297. Reference line at 10 (H₀ 10).1010.110.210.3Mean with its 95% CITorque (N·m)H₀ 10Mean
    Box: quartiles and medianIndividual valuesMeanEstimate with its intervalHypothesized value (H₀)
    Descriptive statistics
    NMeanStDevSE Mean95% CI for the mean
    2510.20240.2300050.046001(10.1075; 10.2973)
    Test
    StatisticValue
    Null hypothesisH₀: μ = 10
    Alternative hypothesisH₁: μ ≠ 10
    T-Value4.3999
    DF24
    P-Value0.0002

    2-sample t · input

    Example dataReplace with your own data

    Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

    Columns

    Found by the header names, or in the order Value, Sample. Change them if they are wrong.

    Supplier    Wall thickness (mm)
    Supplier A  2.494
    Supplier A  2.532
    Supplier A  2.520
    Long format
    1 row = 1 value

    Columns: tab, ; or ,
    Decimals: 12,5 or 12.5

    Read as: tab-separated · decimal point · 38 rows · header row skipped

    Data as understood — first 10 of 38 rows
    #ValueSample
    12.494Supplier A
    22.532Supplier A
    32.520Supplier A
    42.486Supplier A
    52.554Supplier A
    62.481Supplier A
    72.489Supplier A
    82.481Supplier A
    92.505Supplier A
    102.453Supplier A

    +28 more rows

    Both samples stacked in one column, with a Sample column naming the two (Minitab’s “both samples in one column”). Two side-by-side columns: copy the second below the first and add the names. Sample 1 is the one that appears first.

    Test

    Default as Minitab: equal variances not assumed (Welch–Satterthwaite, degrees of freedom truncated to a whole number).

    Runs in this browser. Data is not uploaded or stored.

    2-sample t · results

    p = 0.3148

    There is not enough evidence at α = 0.05 that the mean of Supplier A differs from the mean of Supplier B (p = 0.3148). This does not show that the means are equal: the 95% CI -0.013347 to 0.039769 for the difference Supplier A − Supplier B covers the differences the data cannot rule out.

    H₀: μ₁ − μ₂ = 0 · H₁: μ₁ − μ₂ ≠ 0 · μ₁: Supplier A, μ₂: Supplier B · Welch · 95%

    • Equal variances not assumed (Welch): 24.9955 degrees of freedom, truncated to 24 as Minitab does.
    Wall thickness (mm) by sample. Supplier A: 20 values, mean 2.5001, median 2.492, quartiles 2.4817 to 2.517, whiskers 2.453 to 2.554; Supplier B: 18 values, mean 2.4869, median 2.4965, quartiles 2.4378 to 2.5263, whiskers 2.394 to 2.552.2.42.452.52.55Wall thickness (mm) by sampleWall thickness (mm)Supplier ASupplier B
    Supplier A − Supplier B with its 95% CI. Difference: 0.013211, CI -0.013347 to 0.039769. Reference line at 0 (H₀ 0).00.020.04Supplier A − Supplier B with its 95% CIDifference of Wall thickness (mm)H₀ 0Difference
    Box: quartiles and medianIndividual valuesMeanEstimate with its intervalHypothesized value (H₀)
    Descriptive statistics
    SampleNMeanStDevSE Mean
    Supplier A202.50010.02551140.00570452
    Supplier B182.486890.04893560.0115342
    Estimation for difference (Supplier A − Supplier B)
    StatisticValue
    Difference0.0132111
    SE of difference0.0128678
    95% CI for the difference(-0.0133467; 0.0397689)
    Test
    StatisticValue
    Null hypothesisH₀: μ₁ − μ₂ = 0
    Alternative hypothesisH₁: μ₁ − μ₂ ≠ 0
    T-Value1.02668
    DF24
    DF before truncation24.9955
    P-Value0.3148

    Paired t · input

    Example dataReplace with your own pairs

    Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

    Columns

    Found by the header names, or in the order First, Second. Change them if they are wrong.

    Board  Old fixture  New fixture
    B01    13.1         8.2
    B02    16.0         14.2
    B03    14.7         10.2
    Long format
    1 row = 1 pair

    Columns: tab, ; or ,
    Decimals: 12,5 or 12.5

    Read as: tab-separated · decimal point · 16 rows · header row skipped

    Data as understood — first 10 of 16 rows
    #FirstSecond
    113.18.2
    216.014.2
    314.710.2
    421.020.7
    518.617.7
    613.212.4
    712.711.7
    821.320.6
    918.617.0
    1026.123.9

    +6 more rows

    Two columns, one row per part (or board, operator, day) measured both ways. Every row needs both values. The difference is First − Second.

    Test

    Minitab’s defaults: hypothesized difference 0, two-sided, 95%.

    Runs in this browser. Data is not uploaded or stored.

    Paired t · results

    p = 0.0046

    At α = 0.05 the mean difference Old fixture − New fixture differs from 0 (p = 0.0046): on average Old fixture is 1.7625 higher than New fixture in the same pair; 95% CI 0.63265 to 2.8923 for the mean difference.

    H₀: μ_d = 0 · H₁: μ_d ≠ 0 · d = Old fixture − New fixture · 16 pairs · 95%

      Histogram of the differences Old fixture − New fixture: 16 differences in 5 bins of width 1.24 from -1.2, counts 3, 5, 3, 1, 4. Mean difference 1.7625, 95% CI 0.63265 to 2.8923; H₀ at 0.024Histogram of the differences Old fixture − New fixtureOld fixture − New fixture024H₀
      Differences per binMean difference with its intervalHypothesized difference (H₀)
      Descriptive statistics
      SampleNMeanStDevSE Mean
      Old fixture1618.2254.57771.14442
      New fixture1616.46254.799011.19975
      Difference Old fixture − New fixture161.76252.120340.530085
      Estimation for paired difference
      StatisticValue
      Mean difference1.7625
      StDev2.12034
      SE Mean0.530085
      95% CI for the mean difference(0.632652; 2.89235)
      Test
      StatisticValue
      Null hypothesisH₀: μ_d = 0
      Alternative hypothesisH₁: μ_d ≠ 0
      T-Value3.32494
      DF15
      P-Value0.0046

      One-way ANOVA · input

      Example dataReplace with your own data

      Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

      Columns

      Found by the header names, or in the order Response, Factor. Change them if they are wrong.

      Machine  Cycle time (s)
      M1       43.0
      M1       41.2
      M1       42.3
      Long format
      1 row = 1 value

      Columns: tab, ; or ,
      Decimals: 12,5 or 12.5

      Read as: tab-separated · decimal point · 42 rows · header row skipped

      Data as understood — first 10 of 42 rows
      #ResponseFactor
      143.0M1
      241.2M1
      342.3M1
      442.0M1
      540.9M1
      642.4M1
      742.0M1
      840.9M1
      942.1M1
      1042.0M1

      +32 more rows

      One Response column and a Factor column naming the group of each value (machine, line, supplier). Groups may differ in size; levels keep the order of first appearance.

      Test

      For the intervals of the means and Tukey’s simultaneous comparisons; α = 1 − level for the F test.

      Runs in this browser. Data is not uploaded or stored.

      One-way ANOVA · results

      p < 0.0001

      At α = 0.05 not all means are equal (p < 0.0001): the largest mean is M2 (43.675), the smallest M3 (41.411). Tukey’s 95% simultaneous comparisons: M2 vs M1, M3 vs M2 and M4 vs M2 differ; means that share a grouping letter do not.

      H₀: all means equal · H₁: not all means equal · 4 levels of Machine · 42 values · 95%

      • Equal variances are assumed (pooled StDev). Check them with Levene’s test; Welch’s ANOVA and Games-Howell comparisons are not included.
      Cycle time (s) by Machine. M1: 10 values, mean 41.88, median 42, quartiles 41.125 to 42.325, whiskers 40.9 to 43; M2: 12 values, mean 43.675, median 43.65, quartiles 42.8 to 44.375, whiskers 42.6 to 45; M3: 9 values, mean 41.411, median 41.2, quartiles 40.85 to 41.65, whiskers 40.4 to 41.8; M4: 11 values, mean 42.209, median 41.8, quartiles 41.6 to 43.3, whiskers 39.6 to 44.1.404244Cycle time (s) by MachineCycle time (s)M1M2M3M4
      Means with 95% CIs (pooled StDev). M1: 41.88, 95% CI 41.275 to 42.485; M2: 43.675, 95% CI 43.123 to 44.227; M3: 41.411, 95% CI 40.774 to 42.049; M4: 42.209, 95% CI 41.632 to 42.786.41424344Means with 95% CIs (pooled StDev)Cycle time (s)M1M2M3M4
      Tukey 95% simultaneous CIs for differences of means. M2 − M1: 1.795, 95% simultaneous CI 0.70828 to 2.8817, differs; M3 − M1: -0.46889, 95% simultaneous CI -1.635 to 0.69725; M4 − M1: 0.32909, 95% simultaneous CI -0.77985 to 1.438; M3 − M2: -2.2639, 95% simultaneous CI -3.3831 to -1.1447, differs; M4 − M2: -1.4659, 95% simultaneous CI -2.5253 to -0.40648, differs; M4 − M3: 0.79798, 95% simultaneous CI -0.34278 to 1.9387. Reference line at 0 (0).-202Tukey 95% simultaneous CIs for differences of meansDifference of Cycle time (s)0M2 − M1M3 − M1M4 − M1M3 − M2M4 − M2M4 − M3
      Box: quartiles and medianIndividual valuesMeanInterval (open square: the pair does not differ)Pair that differsZero difference
      Analysis of variance
      SourceDFAdj SSAdj MSF-ValueP-Value
      Machine331.394210.464711.7247< 0.0001
      Error3833.91650.892539——
      Total4165.3107———
      Model summary
      StatisticValue
      S0.944743
      R-sq48.07%
      R-sq(adj)43.97%
      R-sq(pred)36.71%
      Means (95% CI from the pooled StDev)
      MachineNMeanStDev95% CI
      M11041.880.681175(41.2752; 42.4848)
      M21243.6750.844366(43.1229; 44.2271)
      M3941.41110.889444(40.7736; 42.0486)
      M41142.20911.24776(41.6324; 42.7857)
      Grouping information, Tukey method, 95% confidence
      MachineNMeanGrouping
      M21243.675A
      M41142.2091B
      M11041.88B
      M3941.4111B
      Tukey simultaneous tests for differences of means (individual confidence level 98.93%)
      Difference of levelsDifference of meansSE of difference95% simultaneous CIT-ValueAdjusted P-Value
      M2 − M11.7950.404515(0.708281; 2.88172)4.437420.0004
      M3 − M1-0.4688890.434079(-1.63503; 0.697255)-1.080190.7035
      M4 − M10.3290910.412788(-0.779853; 1.43804)0.797240.8552
      M3 − M2-2.263890.416592(-3.38305; -1.14472)-5.4343< 0.0001
      M4 − M2-1.465910.394358(-2.52534; -0.406476)-3.71720.0035
      M4 − M30.797980.42463(-0.342779; 1.93874)1.879230.2539

      Chi-square · input

      Data layout
      Example dataReplace with your own counts

      Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

      Defect   S1  S2
      Scratch  32  28
      Dent     18  21
      Two-way table
      row labels, then counts

      First row: column labels; its first cell may name both variables, “Defect / Shift”.
      Columns: tab, ; or ,

      Read as: tab-separated · 4 rows × 3 columns · header row with the column labels

      Table as understood — 4 rows
      Defect \ ShiftShift 1Shift 2Shift 3
      Scratch322845
      Dent182119
      Contamination91225
      Misassembly141113
      Example dataReplace with your own counts

      Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

      Columns

      Found by the header names, or in the order Row, Column, Count. Change them if they are wrong.

      Defect   Shift     Count
      Scratch  Shift 1   32
      Scratch  Shift 2   28
      Scratch  Shift 3   45
      Long format
      1 row = 1 combination or item

      Columns: tab, ; or ,
      Decimals: 12,5 or 12.5

      Read as: tab-separated · whole numbers · 12 rows · header row skipped

      Data as understood — first 10 of 12 rows
      #RowColumnCount
      1ScratchShift 132
      2ScratchShift 228
      3ScratchShift 345
      4DentShift 118
      5DentShift 221
      6DentShift 319
      7ContaminationShift 19
      8ContaminationShift 212
      9ContaminationShift 325
      10MisassemblyShift 114

      +2 more rows

      Row and Column name the two categories; Count gives how many (choose “(none)” when every row is one item).

      Test

      The conclusion uses α = 1 − level (95% gives α = 0.05).

      Runs in this browser. Data is not uploaded or stored.

      Chi-square · results

      p = 0.3103

      There is not enough evidence at α = 0.05 that Defect and Shift are associated (p = 0.3103). This does not prove that they are independent; a weaker association may need more data to show.

      H₀: Defect and Shift independent · 4 × 3 table · 247 counts · α = 0.05

        Observed counts
        Defect \ ShiftShift 1Shift 2Shift 3Total
        Scratch322845105
        Dent18211958
        Contamination9122546
        Misassembly14111338
        Total7372102247
        Expected counts (row total × column total / N)
        Defect \ ShiftShift 1Shift 2Shift 3
        Scratch31.032430.607343.3603
        Dent17.141716.906923.9514
        Contamination13.595113.408918.996
        Misassembly11.230811.076915.6923
        Contributions to chi-square, (observed − expected)² / expected
        Defect \ ShiftShift 1Shift 2Shift 3
        Scratch0.03017080.2221020.0620046
        Dent0.04297580.9909341.02359
        Contamination1.553150.1480371.8977
        Misassembly0.6828240.0005341880.461916
        Chi-square test
        MethodChi-SquareDFP-Value
        Pearson7.1159460.3103
        Likelihood ratio7.1515260.3071

        F test · input

        Example dataReplace with your own data

        Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

        Columns

        Found by the header names, or in the order Value, Sample. Change them if they are wrong.

        Spindle      Deviation (µm)
        Old spindle  4.2
        Old spindle  -0.6
        Old spindle  0.0
        Long format
        1 row = 1 value

        Columns: tab, ; or ,
        Decimals: 12,5 or 12.5

        Read as: tab-separated · decimal point · 50 rows · header row skipped

        Data as understood — first 10 of 50 rows
        #ValueSample
        14.2Old spindle
        2-0.6Old spindle
        30.0Old spindle
        45.9Old spindle
        5-3.8Old spindle
        6-4.3Old spindle
        77.4Old spindle
        82.8Old spindle
        97.4Old spindle
        1010.4Old spindle

        +40 more rows

        Both samples stacked in one column, with a Sample column naming the two. Sample 1 is the one that appears first.

        Test

        The F test assumes normal data in both samples. Minitab’s 2 Variances uses Bonett’s and Levene’s methods unless “normal distribution” is chosen; this is that normal method.

        Runs in this browser. Data is not uploaded or stored.

        F test · results

        p = 0.0275

        At α = 0.05 the variances of Old spindle and New spindle differ (p = 0.0275): StDev 5.5955 for Old spindle and 3.5233 for New spindle; the variance of Old spindle is 2.5221 times that of New spindle (95% CI 1.1114 to 5.7234 for the ratio).

        H₀: σ₁² / σ₂² = 1 · H₁: σ₁² / σ₂² ≠ 1 · σ₁: Old spindle, σ₂: New spindle · 95%

        • The F test assumes normal data and reacts strongly to departures from it (tails, outliers); Levene’s test does not need normal data.
        Deviation (µm) by sample. Old spindle: 25 values, mean 1.456, median 0.5, quartiles -1.5 to 5.7, whiskers -9.1 to 15.4; New spindle: 25 values, mean 0.884, median -0.3, quartiles -2 to 3.85, whiskers -4.1 to 8.4.-10010Deviation (µm) by sampleDeviation (µm)Old spindleNew spindle
        Variance ratio Old spindle / New spindle with its 95% CI. Ratio: 2.5221, CI 1.1114 to 5.7234. Reference line at 1 (H₀ 1).246Variance ratio Old spindle / New spindle with its 95% CIσ₁² / σ₂²H₀ 1Ratio
        Box: quartiles and medianIndividual valuesMeanEstimate with its intervalHypothesized value (H₀)
        Descriptive statistics
        SampleNStDevVariance
        Old spindle255.5954731.3092
        New spindle253.5233412.4139
        Ratios (normal method)
        StatisticEstimated ratio95% CI for the ratio
        Variance ratio σ₁² / σ₂²2.52211(1.11142; 5.72337)
        StDev ratio σ₁ / σ₂1.58812(1.05424; 2.39236)
        Test
        StatisticValue
        Null hypothesisH₀: σ₁² / σ₂² = 1
        Alternative hypothesisH₁: σ₁² / σ₂² ≠ 1
        F-Value2.52211
        DF1, DF224, 24
        P-Value0.0275

        Levene · input

        Example dataReplace with your own data

        Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

        Columns

        Found by the header names, or in the order Value, Group. Change them if they are wrong.

        Head  Fill weight (g)
        H1    499.7
        H1    499.9
        H1    500.3
        Long format
        1 row = 1 value

        Columns: tab, ; or ,
        Decimals: 12,5 or 12.5

        Read as: tab-separated · decimal point · 60 rows · header row skipped

        Data as understood — first 10 of 60 rows
        #ValueGroup
        1499.7H1
        2499.9H1
        3500.3H1
        4500.1H1
        5503.1H1
        6500.3H1
        7500.9H1
        8499.7H1
        9500.9H1
        10500.9H1

        +50 more rows

        One Value column and a Group column (2 or more groups, each with 2 or more values).

        Test

        α = 1 − level for Levene’s and Bartlett’s tests and the level of the intervals for σ.

        Runs in this browser. Data is not uploaded or stored.

        Levene · results

        Levene p = 0.0008

        At α = 0.05 the variances are not all equal (Levene p = 0.0008): H3 has the largest StDev (1.6623), H4 the smallest (0.65987).

        H₀: all variances equal · H₁: at least one differs · 4 levels of Head · 95%

        • The intervals for σ are individual (each group alone, chi-square method for normal data), not the simultaneous multiple-comparison intervals of Minitab.
        Fill weight (g) by Head. H1: 15 values, mean 500.29, median 500.2, quartiles 499.7 to 500.9, whiskers 499 to 500.9; H2: 15 values, mean 500.35, median 500.2, quartiles 499.7 to 501, whiskers 499.5 to 501.4; H3: 15 values, mean 500.08, median 500.6, quartiles 498.1 to 501.5, whiskers 497.8 to 502.2; H4: 15 values, mean 500.34, median 500.2, quartiles 499.9 to 501, whiskers 499.5 to 501.6.498500502Fill weight (g) by HeadFill weight (g)H1H2H3H4
        StDev with 95% individual CIs for σ. H1: 0.97941, 95% individual CI 0.71705 to 1.5446; H2: 0.66748, 95% individual CI 0.48868 to 1.0527; H3: 1.6623, 95% individual CI 1.217 to 2.6216; H4: 0.65987, 95% individual CI 0.48311 to 1.0407.0.511.522.5StDev with 95% individual CIs for σStDev of Fill weight (g)H1H2H3H4
        Box: quartiles and medianIndividual valuesMeanStDev with its individual interval
        Standard deviations (95% individual CI for the StDev)
        HeadNStDevMedian95% CI for the StDev
        H1150.979407500.2(0.71705; 1.54462)
        H2150.667476500.2(0.488677; 1.05268)
        H3151.66227500.6(1.21699; 2.62156)
        H4150.65987500.2(0.483108; 1.04068)
        Tests
        MethodTest statisticDFP-Value
        Levene (Brown–Forsythe, medians)6.47333, 560.0008
        Bartlett (normal data)16.683230.0008

        Download offline versionSingle HTML file · v1.5 · 645 KB · works without internet

        Method