All problems

Reject or Not: the Bulb Claim

easyPythonHypothesis Testing

Same audit at Lumenal Works, and now the same call has to be made batch after batch. Each audited batch arrives as a standardised statistic, and someone has to turn that number into a sentence the legal team can act on. The 36-bulb batch that started all this came out at -1.8.

Lumenal's house rule was written down before any audit ran: a two-sided test, so the label is challenged if a batch lands unusually far from its claimed life in either direction. The boundary that goes with the agreed significance level is supplied alongside each statistic, because not every product line is audited at the same level — for a standard normal curve at 5% it is 1.96.

Task: Print exactly reject if the statistic falls outside the boundary, and exactly fail to reject if it does not — lowercase, one line, no quotation marks in the output. The conventions: two-sided, so what matters is distance from zero rather than sign; the level was fixed in advance; and a statistic landing exactly on the boundary counts as inside it, so it does not reject.

Input

The first line holds the batch's standardised statistic, a decimal number that may be negative. The second line holds the boundary for that audit, a positive decimal number.

Output

One line holding one of the two phrases above, in lower case, and nothing else.

Example:

Input:
-1.8
1.96

Output:
fail to reject

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…