All revision notes topics

Hypothesis test for the parameter of a geometric distributionEdexcel A-Level Further Maths: Revision notes

Section 1

The test for the parameter of a geometric distribution

A geometric distribution X∼Geo(p)X\sim\mathrm{Geo}(p) counts the number of independent trials up to and including the first success. In a hypothesis test for pp, you observe one value of XX, the number of trials needed, and decide whether it is surprising if pp has its stated value. The key facts are P(X=x)=p(1−p)x−1\mathrm{P}(X=x)=p(1-p)^{x-1}, P(X≥x)=(1−p)x−1\mathrm{P}(X\geq x)=(1-p)^{x-1} and P(X≤x)=1−(1−p)x\mathrm{P}(X\leq x)=1-(1-p)^x. These let you find any tail probability with a single power, with no tables needed.

Key termsgeometric distributiontest statistic
Common mistake

Forgetting that a larger pp makes XX smaller. A small observed xx is evidence that pp is higher, and a large xx is evidence that pp is lower.

Section 2

Stating the hypotheses

The null hypothesis is H0:p=p0\mathrm{H}_0:p=p_0, where p0p_0 is the stated probability. The alternative hypothesis is H1:p<p0\mathrm{H}_1:p<p_0, H1:p>p0\mathrm{H}_1:p>p_0 or H1:p≠p0\mathrm{H}_1:p\neq p_0, depending on the suspicion described. Hypotheses are always about the parameter pp, never about XX. Define pp in context, for example 'the probability that a card wins a prize'. Then state that under H0\mathrm{H}_0, X∼Geo(p0)X\sim\mathrm{Geo}(p_0). The test is one-tailed when the alternative says pp is lower or higher, and two-tailed when it says only that pp is different.

Key termsnull hypothesisalternative hypothesis
Common mistake

Writing H0:X=12\mathrm{H}_0:X=12. The hypotheses concern the parameter pp, while 1212 is the observed value.

Section 3

Carrying out a one-tailed test

Assume H0\mathrm{H}_0 is true. Find the probability of a result at least as extreme as the observed xx and compare it with the significance level. For H1:p<p0\mathrm{H}_1:p<p_0 a lower pp means a longer wait, so use P(X≥x)=(1−p0)x−1\mathrm{P}(X\geq x)=(1-p_0)^{x-1}. For H1:p>p0\mathrm{H}_1:p>p_0 a higher pp means a shorter wait, so use P(X≤x)=1−(1−p0)x\mathrm{P}(X\leq x)=1-(1-p_0)^x. Worked example: H0:p=0.2\mathrm{H}_0:p=0.2, H1:p<0.2\mathrm{H}_1:p<0.2, first win on card 1212. P(X≥12)=0.811=0.0859>0.05\mathrm{P}(X\geq12)=0.8^{11}=0.0859>0.05, so do not reject H0\mathrm{H}_0. There is insufficient evidence, at the 5%5\% level, that the probability of winning is less than 0.20.2. Worked example: H0:p=0.02\mathrm{H}_0:p=0.02, H1:p>0.02\mathrm{H}_1:p>0.02, first defective at screen 22. P(X≤2)=1−0.982=0.0396<0.05\mathrm{P}(X\leq2)=1-0.98^2=0.0396<0.05, so reject H0\mathrm{H}_0.

Key termssignificance level
Exam tip

Ask which direction is 'more extreme' before choosing between P(X≥x)\mathrm{P}(X\geq x) and P(X≤x)\mathrm{P}(X\leq x).

Section 4

Critical regions and the actual significance level

The critical region is the set of values of XX that lead to rejecting H0\mathrm{H}_0. For H1:p<p0\mathrm{H}_1:p<p_0 it has the form X≥cX\geq c, where cc is the smallest value with (1−p0)c−1≤(1-p_0)^{c-1}\leq the significance level. Solve (1−p0)c−1<0.05(1-p_0)^{c-1}<0.05 with logarithms, reversing the inequality because ln⁡(1−p0)<0\ln(1-p_0)<0, then check the neighbouring values. For p0=0.1p_0=0.1: c−1>ln⁡0.05ln⁡0.9=28.4c-1>\frac{\ln0.05}{\ln0.9}=28.4, and 0.928=0.0523>0.050.9^{28}=0.0523>0.05 but 0.929=0.0471<0.050.9^{29}=0.0471<0.05, so the critical region is X≥30X\geq30. For H1:p>p0\mathrm{H}_1:p>p_0 it has the form X≤cX\leq c with 1−(1−p0)c<0.051-(1-p_0)^c<0.05. For p0=0.02p_0=0.02, X≤2X\leq2 because 1−0.982=0.03961-0.98^2=0.0396 and 1−0.983=0.05881-0.98^3=0.0588. The actual significance level is the probability of the critical region under H0\mathrm{H}_0, for example 0.04710.0471 for X≥30X\geq30.

Key termscritical regionactual significance level
Common mistake

Rounding c−1>28.4c-1>28.4 down to 2828. The value must be a whole number that satisfies the inequality, so round up, and check with the powers.

Section 5

Two-tailed tests

For H1:p≠p0\mathrm{H}_1:p\neq p_0, put half the significance level in each tail. At 10%10\% use 5%5\% in each tail. The lower tail X≤aX\leq a needs 1−(1−p0)a≤0.051-(1-p_0)^a\leq0.05 and the upper tail X≥bX\geq b needs (1−p0)b−1≤0.05(1-p_0)^{b-1}\leq0.05. For p0=0.3p_0=0.3: P(X≤1)=0.3>0.05\mathrm{P}(X\leq1)=0.3>0.05, so there is no lower critical region (the smallest possible value of XX is not extreme enough). Upper tail: 0.78=0.05760.7^{8}=0.0576 and 0.79=0.04040.7^{9}=0.0404, so X≥10X\geq10 and the actual significance level is 0.04040.0404. When the critical region has only one part, say so.

Exam tip

Check each tail separately, and say clearly if one of them is empty.

Section 6

Conclusions and assumptions

State whether H0\mathrm{H}_0 is rejected, then give a conclusion in context: 'There is sufficient evidence, at the 5%5\% level, that the probability of a defective screen is greater than 0.020.02.' If H0\mathrm{H}_0 is not rejected, say there is insufficient evidence against the claim. The test relies on independent trials with a constant probability of success. If the probability changes, for example because a player improves with practice, the geometric model is not suitable. A test based on a single observed value is also fairly weak, so comment on this if asked to evaluate.

Common mistake

Concluding that the claim is 'proved' or 'disproved'. A test gives evidence, not proof.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Hypothesis test for the parameter of a geometric distribution

  1. A scratch-card company claims that the probability that a card wins a prize is 0.20.2, independently for each card. A customer buys cards one at a time and has her first win on the 1212th card. She suspects that the probability of winning is lower than the company claims and carries out a test at the 5%5\% significance level. Let XX be the number of cards bought up to and including the first win.
    Find the critical region for the test.2 marks
  2. A manufacturer says that the probability that a screen it makes is defective is 0.020.02, independently for each screen. An inspector tests screens one at a time and finds the first defective screen at the 22nd screen tested. She suspects that the probability of a defective screen is higher than 0.020.02 and carries out a test at the 5%5\% significance level. Let XX be the number of screens tested up to and including the first defective one.
    Write down the conclusion of the test, in context.2 marks
  3. A website claims that each visitor clicks on an advert with probability 0.10.1, independently of other visitors. An analyst suspects that the probability is lower. She counts the number of visitors XX up to and including the first visitor who clicks, and will test the claim at the 5%5\% significance level.
    State suitable hypotheses for the test, where pp is the probability that a visitor clicks on the advert, and state the distribution of XX under H0\mathrm{H}_0.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).