mqr.inference.rate.

test_1sample#

mqr.inference.rate.test_1sample(count, n, meas=1.0, H0_rate=1.0, alternative='two-sided', method='exact-c')#

Hypothesis test for the rate of events.

Null-hypothesis

count / n / meas == H0_rate

Calls sm..test_poisson.

Parameters:
countint

Number of events.

nint

Number of periods over which events were counted.

measfloat, optional

Extent of one period of observation.

H0_ratefloat, optional

Null-hypothesis rate.

alternative{‘two-sided’, ‘less’, ‘greater’}, optional

Sense of alternative hypothesis.

methodstr, optional

Test method. See statsmodels docs.

Returns:
mqr.inference.hyptest.HypothesisTest