Skip to main content
Examonaut

Topic 4 · Lesson 2 of 3

Testing a geometric parameter

Which tail?

If X∼Geo(p)X \sim \text{Geo}(p) is the number of trials up to the first success:

  • a smaller pp makes successes rarer, so XX tends to be larger: for H1:p<p0H_1: p < p_0, the critical region is X⩾cX \geqslant c;
  • a larger pp makes XX tend to be smaller: for H1:p>p0H_1: p > p_0, the critical region is X⩽cX \leqslant c.

This reversal (small parameter, large observation) catches many students out. Think about what the alternative would make happen before choosing the tail.

The tail probabilities come straight from the formulae: P(X⩾c)=(1−p)c−1\text{P}(X \geqslant c) = (1 - p)^{c - 1} and P(X⩽c)=1−(1−p)c\text{P}(X \leqslant c) = 1 - (1 - p)^c.

Worked example

Is the prize harder to win than claimed?

A fairground stall claims the probability of winning each go is 0.35. A visitor believes it is lower, and first wins on her 9th go. Test at the 5% level.

Show solution
  • H0:p=0.35H_0: p = 0.35, H1:p<0.35H_1: p < 0.35.
  • Under H0H_0, X∼Geo(0.35)X \sim \text{Geo}(0.35); large values support H1H_1.
  • P(X⩾9)=0.658=0.0319<0.05\text{P}(X \geqslant 9) = 0.65^8 = 0.0319 < 0.05.
  • Reject H0H_0: there is evidence that the probability of winning is less than 0.35.

Worked example

A geometric critical region

Find the critical region for the same test, H0:p=0.35H_0: p = 0.35 against H1:p<0.35H_1: p < 0.35 at the 5% level.

Show solution
  1. The region is X⩾cX \geqslant c, with P(X⩾c)=0.65c−1⩽0.05\text{P}(X \geqslant c) = 0.65^{c - 1} \leqslant 0.05.
  2. c−1⩾ln⁡0.05ln⁡0.65=6.95c - 1 \geqslant \frac{\ln 0.05}{\ln 0.65} = 6.95, so c−1=7c - 1 = 7 and c=8c = 8.
  3. Critical region X⩾8X \geqslant 8, actual significance level 0.657=0.04900.65^7 = 0.0490.

The visitor's result, 9, is in the critical region, as the probability found above said it would be.

When there is no critical region

For H0:p=0.08H_0: p = 0.08 against H1:p>0.08H_1: p > 0.08, the most extreme result is X=1X = 1, with probability 0.080.08. At the 10% level the critical region is X=1X = 1; at the 5% level there is none, because even the most extreme result has probability above 0.05. The same happens in the lower tail of two-tailed geometric tests: for H0:p=0.3H_0: p = 0.3, P(X=1)=0.3\text{P}(X = 1) = 0.3, so a test at 10% (5% in each tail) can only reject in the upper tail.

When a question asks for a two-tailed critical region, check both tails and say clearly if one of them is empty.

Smallest significance level

The pp-value is the smallest significance level at which the result would be significant. If a treatment's first success is the 12th patient, and H0:p=0.2H_0: p = 0.2, H1:p<0.2H_1: p < 0.2, then P(X⩾12)=0.811=0.0859\text{P}(X \geqslant 12) = 0.8^{11} = 0.0859, so H0H_0 is rejected at any level above 8.6%: at 10%, but not at 5%.

Practise this topic

Both are part of Premium.