Hersi Maths WhatsApp me

Understand · explore · practise

Hypotheses and test statistics

Distinguish a population probability from a sample count, write hypotheses in context and state a binomial model under the null hypothesis.

Before you startBinomial model assumptions and basic probability notation.

01 / What are we testing?

A sample gives evidence about a population probability.

Define the parameter before writing a hypothesis.

Let p be the probability of a clearly specified success in the population or process being studied.

A hypothesis is a statement about that underlying parameter. The observed proportion is evidence used to investigate it; it is not automatically the true value of p. Different random samples can give different proportions even when p stays fixed.

Parameter, sample and observationExplore

Reveal the roles

Choose a case and identify the population probability, trial total and observed count before revealing the answer.

02 / Keep p, n, X and x separate

A fixed parameter and a random observation play different roles.

Watch: the model stays fixed while the sample changes

Pause, replay or seek freely. The notes explain the same idea and stay in view.

A delivery service claims that 80% of parcels arrive on time. A random sample of 25 parcels contains 18 on-time deliveries.Worked example

p = probability a parcel from the relevant service arrives on time

Define the population and what counts as success.

n=25; X = number on time in the sample of 25

Before collecting the sample, X is random.

The observed value is x=18; the sample proportion is 18/25=0.72

This observation does not itself establish that the population probability is 0.72.

01 · Name the parameter

A seed supplier claims a germination probability of 0.9. In 40 trials, 33 seeds germinate. Define p and X.

Hint

p is a probability; X is a count with a stated sample size.

Worked solution

p is the probability that a seed from the specified batch germinates under the stated conditions. X is the number that germinate among the 40 tested seeds.

02 · Read the observation

In the seed example, give n, x and the observed proportion.

Hint

Divide the count by the number tested.

Worked solution

n=40, x=33 and the observed proportion is 33/40=0.825.

03 / State the null hypothesis

The null supplies the reference value used for probability calculations.

For this course, write H₀: p=p₀.

p₀ is the specified baseline probability. We calculate what samples would look like if that baseline were true.

For the delivery example, H₀: p=0.8. This is a working assumption for the test, not a fact established by the sample. Do not replace 0.8 with 18/25 when calculating probabilities under H₀.

03 · Fix a hypothesis

A student writes H₀: X=0.8 for the delivery example. Correct it.

Hint

X counts parcels; p is a probability.

Worked solution

H₀: p=0.8. The hypothesis concerns the population probability, not the random count.

04 · Estimate versus baseline

Why is H₀: p=0.72 not the stated null in that example?

Hint

Where did 0.72 come from?

Worked solution

0.72 is the observed proportion. The stated claim being tested supplies the baseline 0.8. Replacing it with the sample estimate changes the question.

04 / State the alternative claim

The direction comes from the question being investigated.

If the service is suspected of becoming less reliable, use H₁: p<0.8. If improvement is suspected, use H₁: p>0.8. If any change is being investigated, use H₁: p≠0.8. Choose this claim before using the observation to decide which direction looks convenient.

05 · Decrease

A machine historically produces faulty components with probability 0.06. A modification is intended to reduce faults. Define p and write H₀ and H₁.

Hint

Success can mean a fault; it need not be desirable.

Worked solution

Let p be the new probability a component is faulty. H₀: p=0.06; H₁: p<0.06.

06 · Any change

The same machine is being checked for any change in its fault probability. Write H₁.

Hint

Both increases and decreases matter.

Worked solution

H₁: p≠0.06. The null remains p=0.06.

05 / State the distribution under H₀

The null fixes p, but the sample count still varies.

Use a binomial model for the 25 delivery observations.Worked example

Check a fixed sample of 25 and an on-time/late classification

The success event must be unambiguous.

Assume independent outcomes and the same on-time probability

Shared delays or different routes may make these assumptions doubtful.

Under H₀, X~B(25,0.8)

The observed count remains 18. We do not write X~B(18,0.72).

07 · Null model

For the germination example, state the null distribution, assuming independent seeds with a common germination probability.

Hint

Use the trial total and claimed baseline.

Worked solution

Under H₀: p=0.9, X~B(40,0.9).

08 · Possible dependence

Why could testing 25 parcels carried on one delayed vehicle undermine a binomial model?

Hint

Think about shared causes.

Worked solution

One delay can affect many parcels together, so their on-time outcomes may not be independent. A fixed sample size alone does not justify binomial probabilities.

06 / The test statistic summarises the sample

For these binomial tests, use the number of successes.

Before sampling, X is the random test statistic; after sampling, x is its observed value. With fixed n, the sample proportion X/n contains the same count information, but the binomial distribution applies to X, not directly to X/n. State the chosen count clearly.

09 · Count or proportion

Ten independent spins produce four blue results. Let p be the blue probability. State X and x.

Hint

Include the number of spins in the definition.

Worked solution

X is the number of blue results in ten spins; x=4. The observed proportion is 0.4.

10 · Convert a proportion

A sample of 60 has an observed success proportion of 0.35. What count should be used in a binomial calculation?

Hint

Multiply by n.

Worked solution

x=60×0.35=21. Under a null p=p₀, calculate using X~B(60,p₀).

07 / A difference is not yet a conclusion

Sampling variation can produce a result different from the baseline.

The delivery sample proportion 0.72 is below 0.8, but a test must still assess how unusual the relevant sample results are under H₀. Later lessons calculate that tail probability and compare it with a stated significance level. A nonrejection will mean insufficient evidence against H₀, not proof that the claim is true.

11 · Premature conclusion

A learner says “18/25 is less than 0.8, so the claim is false.” What is missing?

Hint

Random samples need not match the baseline exactly.

Worked solution

They have not assessed sampling variation under the null model or used a significance threshold. A difference alone is not enough to establish statistical evidence.

12 · Stopping experiment

A trial continues until the first successful attempt. Can the number of attempts be modelled as B(n,p) with a fixed n?

Hint

Which binomial requirement fails?

Worked solution

No. The number of attempts is random and measures a waiting count, not successes in a fixed trial total.

13 · Three colours

Can a spinner with three possible colours support a binomial test about blue?

Hint

How many categories does the chosen success event create?

Worked solution

Yes, if the number of spins is fixed and spins are independent with a common blue probability. Classify blue as success and all other colours as failure.

14 · Define the population

Why is “p is the probability of success” often too vague in a contextual answer?

Hint

State whose outcomes and what event are being counted.

Worked solution

It does not identify the process, population or success event. For example, p is the probability that a parcel sent by the specified service arrives by the promised time.

08 / Write the setup before calculating

Parameter, hypotheses, statistic, null model.

Define p in context. State H₀ and H₁ using p. Define the success count X and record n and x separately. State the binomial distribution under H₀ only when its assumptions are justified. The next lessons turn this setup into a test.

Section 1 of 8 · What are we testing?