Hacker News new | ask | show | jobs
by aabaker99 1384 days ago
Mentioned in TFA, the GRIM test for checking a paper’s reported mean of integers:

“”” The GRIM test is straightforward to perform. For each reported mean in a paper, the sample size (N) is found, and all fractions with denominator N are calculated. The mean is then checked against this list (being aware of the fact that values may be rounded inconsistently: depending on the context, a mean of 1.125 may be reported as 1.12 or 1.13). If the mean is not in this list, it is highlighted as mathematically impossible.[2][3] “””

Source: Wikipedia

1 comments

Good idea (for integer-valued measurements), but you can do it without having to bother calculating all fractions with denominator N.

Let's say the reported mean is called m and the sample size is N. Multiply m and N together. Ideally mN should be almost an exact integer. Find ceil(mN)/N and floor(mN)/N and see if they're the same as the reported m, within precision limits.

Example: m=6.24, N=13

mN = 81.12 (exact)

81/13 = 6.231

82/13 = 6.308

So there is no integer numerator (for denominator 13) that gives 6.24, to 2 decimal places, so 6.24 is a mistake or a lie.