F-test and chi-square test

Tests represented on this page are used to check hypotheses about random variables dispersion.

One sample chi-square test

This test is used to check hypotheses about the fact that dispersion of random variable X represented by sample xS equals given σ2.

During its work, the test calculates the c-statistic:

If X has a normal distribution, the c-statistic will have a chi-square distribution with N-1 degrees of freedom. To define the significance level which corresponds to the value of c-statistic high-precision chi-square distribution approximation is used. Test returns three p-values:

Two-sample F-test

This test checks hypotheses about the fact that the dispersions of two random variables X and Y which are represented by samples xS and yS are equal. The test works correctly under the following conditions:

During its work, the test calculates the F-statistic:

If X and Y have a normal distribution, the F-statistic will have F-distribution with NX -1 and NY -1 degrees of freedom. To define the significance level which corresponds to the value of F-statistic high-precision, F-distribution approximation is used.

Test returns three p-values:

Links

  1. 'Hypothesis testing', Wikipedia
  2. 'P-value', Wikipedia

This article is licensed for personal use only.

Download ALGLIB for C++ / C# / Java / Python / ...

ALGLIB Project offers you two editions of ALGLIB:

ALGLIB Free Edition:
+delivered for free
+offers full set of numerical functionality
+extensive algorithmic optimizations
-no multithreading
-non-commercial license

ALGLIB Commercial Edition:
+flexible pricing
+offers full set of numerical functionality
+extensive algorithmic optimizations
+high performance (SMP, SIMD)
+commercial license with support plan

Links to download sections for Free and Commercial editions can be found below:

ALGLIB 4.03.0 for C++

C++ library.
Delivered with sources.
Monolithic design.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.03.0 for C#

C# library with native kernels.
Delivered with sources.
VB.NET and IronPython wrappers.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.03.0 for Java

Java wrapper around HPC core.
Delivered with sources.
Seamless integration with Java.
Editions:   FREE   COMMERCIAL

ALGLIB 4.03.0 for Delphi

Delphi wrapper around C core.
Delivered as precompiled binary.
Compatible with FreePascal.
Editions:   FREE   COMMERCIAL

ALGLIB 4.03.0 for CPython

CPython wrapper around C core.
Delivered as precompiled binary.
Editions:   FREE   COMMERCIAL