4.4 - Non-parametric tests and the sign test
How can you test a typical value when the population cannot be assumed normal? Learn how a sign test uses a population median, why its probability calculation is binomial, and how to carry out exact and approximate tests.
When a distribution-free method helps
Can an unusually long waiting time change the conclusion of a test about the typical wait? That depends on which information the test uses.
A small-sample test for a population mean usually needs a specified population model. For example, the one-sample -test assumes a normal population. Waiting times may instead have an unknown, strongly skewed distribution. A non-parametric test can answer a suitable question without assuming that particular distributional form.
Non-parametric test
A non-parametric test uses information such as signs or ranks without requiring a specified parametric population distribution such as a normal distribution.
It still has assumptions. Random sampling and independence matter; some rank tests also require symmetry.
The question matters as much as the method. A sign test concerns a population median, not a population mean. For a continuous distribution with median , half the probability lies on each side of . The two sides need not have the same shape.
Worked example 1: using a median without normality
Question. Independent random waiting times, in minutes, are . The population shape is unknown and may be right-skewed. Explain how signs could help investigate whether its median is minutes.
Plan. Compare each wait with the proposed population median, rather than fitting a normal model.
The first four observations are below ; the last three are above it. Thus the sign information is
Under the proposed median, each independent observation has probability of being above . We can investigate whether the observed imbalance is unusually large using that probability model.
Answer. A sign test can use the four below and three above without assuming a normal population. These counts alone are not yet a test conclusion.
Check. Sorting the seven observations gives sample median , which is below , consistent with having more observations below than above.
Change only the largest wait. This reveals both a strength and a limitation of signs.
Worked example 2: discarding magnitude
Question. Replace by in Worked example 1. How does the information used by a sign test change?
Plan. Check whether that observation crosses the proposed median.
Both and exceed . The replacement therefore leaves the sign row unchanged, with four negative and three positive signs. A much longer wait does not count as several positive observations.
Answer. The sign-test calculation is unchanged. This protects it from the size of an extreme value, but also discards potentially useful information about magnitudes.
Check. The new sample median is still , whereas the sample mean rises by . The mean and the sign information respond differently.
Distribution-free does not mean assumption-free, and a test about a median cannot be reported as a test about a mean.
Key idea
Choose the population question first. Signs can test a median without assuming normality or symmetry, provided observations are independent and the null gives equal probabilities on the two sides.
Use that distinction in a new setting.
Signs relative to a median
Each observation above a proposed median is one success in a binomial experiment under the null hypothesis.
Write , where is the proposed population median. Assign a positive sign when and a negative sign when . Count signs, not the sizes of the deviations.
The sign-test null distribution
For independent observations from a continuous population, under , the number above satisfies
The binomial probability formula is in the formula booklet; identifying this sign-test model is part of the method.
Continuity gives , so the two sign probabilities add to one. The calculations here have no observations equal to the tested median. A value equal to it has neither sign; do not label it positive. Procedures for such ties are outside the cases considered here.
Worked example 3: an exact number of positive signs
Question. Eight observations are sampled independently from a continuous population whose median is . Find the probability that exactly two exceed .
Plan. Count observations above the median as binomial successes.
Under the stated population median, . Therefore
Answer. The probability is .
Check. There are equally likely sign sequences, and choosing the two positive positions gives sequences.
Change “exactly two” to “at most two”. A hypothesis test uses a tail, not just the probability of its observed count.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account