Skip to content

Manatee checks whether the expected values of two datasets are significantly different (C)

License

Notifications You must be signed in to change notification settings

csirmaz/Manatee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Manatee

Manatee checks whether the expected values (means) of two samples are significantly different.

In order to decide whether the null hypothesis that the two samples came from the same unknown distribution should be accepted or rejected, Manatee uses the combined data sets to bootstrap (i.e. select random) samples of the same sizes as the original samples, and measures the difference between their means.

It outputs the ratio of these experiments where the measured difference is larger than the difference between the means of the original samples. If this ratio is less than 5%, then it is unlikely that the original samples came from the same distribution.

As Manatee actually selects random samples to measure the distribution of this difference, it does not rely on any assumption about the unknown distribution.

Compilation

Use gcc -O3 -lm -o manatee manatee.c to compile the source.

Usage

manatee reads data from STDIN, one number per line:

  • size of set 1 (integer)
  • size of set 2 (integer)
  • number of experiments (integer)
  • data points of set 1 (float)
  • ...
  • data points of set 2 (float)
  • ...

Author

Copyright (c) 2016 Elod Csirmaz

About

Manatee checks whether the expected values of two datasets are significantly different (C)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages