Hersi Maths WhatsApp me

Understand · explore · practise

A hypothesis-testing investigation

Plan and document a binary-data investigation, audit a clearly synthetic example and evaluate sampling, seasonality and dependence before drawing a conclusion.

Before you startComplete binomial tests and model limitations.

01 / Make the investigation reproducible

Plan the question before collecting the outcomes.

Record population, event, baseline, alternative, level and sample design.

Then record every eligible observation using the same event definition. Keep real measurements distinguishable from constructed teaching examples.

Audit a constructed teaching sampleExplore

These 20 binary observations were invented for this exercise. They are not measurements from a real device.

1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1

Reveal the audit answer

02 / Specify what one trial means

A test needs a defined population probability.

For a physical selector, one trial might be one activation under fixed settings; success might be output A. Define p as the long-run probability of A under those conditions. A baseline p₀=0.5 is a claim to test, not a probability estimated from the same sample. Decide in advance whether the question concerns an increase, decrease or either change.

01 · Operational definition

Why is “test whether the device is good” too vague?

Hint

What binary outcome would count as success?

Worked solution

Define the event, conditions and reference probability. “Good” does not specify a parameter or a testable statistical claim.

02 · Baseline source

Can you choose p₀ to equal your final sample proportion and call that an independent benchmark?

Hint

The baseline must have a defensible origin.

Worked solution

No. State where the baseline comes from, such as a design claim or an appropriate external benchmark. Choosing it from the same sample changes the question.

03 / Keep a complete observation log

Preserve order, eligibility and any missing values.

For real data, record an identifier, date or trial number, measured outcome and its binary coding. Note exclusions with reasons fixed independently of the desired result. A missing observation is not automatically a failure. Do not stop early simply because the result has become significant.

03 · Missing outcome

A record is unreadable. Should it be coded zero?

Hint

Unknown is not the same as observed failure.

Worked solution

No. Record it as missing, explain the handling rule and use a justified eligible sample size.

04 · Stopping rule

Why not keep collecting until the first significant result?

Hint

Does that preserve the planned fixed-n test?

Worked solution

No. It introduces repeated opportunities to reject and changes the sampling rule. Choose and follow the fixed sample plan for this binomial investigation.

04 / Work through a transparent teaching dataset

The sample above is synthetic, so its conclusion is conditional practice.

Watch: count successes before selecting the tail

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

Assume the constructed sample represents 20 independent trials with a common probability. Test H₀:p=0.5 against H₁:p≠0.5 at nominal 5% using equal tails at most 2.5%.Worked example

The log has n=20 observations and x=16 successes

The observed proportion is 16/20=0.8.

Under H₀, X~B(20,0.5)

The upper inclusive tail is P(X≥16)=6196/1048576≈0.00590897.

0.00590897≤0.025

Reject H₀ in this constructed exercise: sufficient evidence of a change under the assumed model. This is not evidence about an actual device.

05 · Count audit

How many zeros are in the supplied sample?

Hint

Subtract successes from the sample size.

Worked solution

Four. There are 20 entries and 16 ones.

06 · Tail boundary

Why include count 16 in the tail?

Hint

It was the observed count.

Worked solution

The upper evidence event is the observed count or more extreme: 16,17,18,19,20.

05 / Use real records for a real-world conclusion

Keep the teaching calculation separate from empirical evidence.

For an optional real investigation, save the original dataset and its source, date accessed, variables and units. State your sampling method and binary threshold before examining the test result. For a weather question, identify the station, dates and population period. Use records you can actually inspect; do not replace unavailable data with invented observations.

07 · Weather event

Give a reproducible definition of a weather success.

Hint

Specify threshold, variable and units.

Worked solution

For example, a valid daily rainfall record strictly above 2 mm at a named station during a defined period. State how traces and missing values are treated.

08 · Reference period

Why may a winter rainfall benchmark be unsuitable for a summer sample?

Hint

Consider a constant population success probability.

Worked solution

Seasonality can change the event probability. The baseline and sampled population may not be comparable.

06 / Test the model before trusting the result

One binary column is not enough to establish binomial assumptions.

Consecutive weather days may be dependent; pooling locations or seasons may mix different probabilities. A sample of volunteers may not represent the intended population. Explain these issues and limit the conclusion. A small numerical tail does not justify assumptions after the fact.

09 · Common probability

Why can pooling two locations with different climates undermine B(n,p)?

Hint

One p must apply to each trial.

Worked solution

The success chances may differ systematically between locations, so a common-p binomial model may not fit.

10 · Independence

Does spacing observations apart automatically prove independence?

Hint

A design choice can reduce dependence without proving its absence.

Worked solution

No. Explain why independence is plausible and acknowledge remaining dependence or shared influences.

11 · Negative result

If real data do not reject, may you conclude that the baseline is correct?

Hint

Use the established evidence wording.

Worked solution

No. State insufficient evidence for the specified alternative at the chosen level, subject to the design and model limitations.

07 / Write a short auditable report

A reader should be able to reproduce the decision.

12 · Minimum evidence

What should accompany the final probability?

Hint

Give the path from source to decision.

Worked solution

Source and sample plan, event definition, raw or accessible records, n and x, parameter and hypotheses, model assumptions, test convention and level, inclusive-tail calculation, contextual conclusion and limitations.

13 · Honest labelling

Can the supplied synthetic observations be described as measurements taken from a school experiment?

Hint

Were they measured?

Worked solution

No. Label them as constructed practice data. A real investigation requires actual records.

14 · Unexpected result

A real result contradicts your expectation. Should observations be removed to restore the expected conclusion?

Hint

Use the predefined eligibility rules.

Worked solution

No. Check recording and calculation errors, but retain eligible observations regardless of which conclusion they support. Document any justified correction.

08 / A credible investigation is more than a calculation

Keep the source, plan and limitations visible.

Define the binary event and population, justify the baseline, plan the sample, preserve the records and check assumptions. Use an appropriate inclusive tail and a preselected decision rule. Label synthetic practice honestly, and only make real-world claims from actual data.

Section 1 of 8 · Make the investigation reproducible