Section 11.3

Experimental unit

Definition

An experimental unit is the smallest thing to which an experiment applies a condition separately: two such things can receive different conditions. A condition, also called a treatment, is one of the alternatives being compared, such as an old or a new software version. If each circuit board gets one version, the board is the experimental unit, however many measurements it yields. The number of experimental units per condition, called the replication, and not the number of measurements, limits what the experiment can show about a difference between conditions.

The idea

A new software version is installed on four boards, and the old version stays on four others. Each board then records 10,000 response times §9.32. The log has 80,000 rows, but the act of giving a board its version was performed eight times. Each of the 10,000 rows of a board inherits that one act, together with everything particular to the board: its components, its temperature, its place on the bench. Whatever makes one board differ from another is present in all of its rows at once.

A school experiment shows the same thing. A teaching method is given to a whole class, and every child then sits a test. With one class of 30 children per method there are 60 test scores but only two classes, and a difference in scores may come from the teacher, the room or the method. Only more classes can separate these causes. The question that finds the experimental unit is: could these two things have received different conditions in this experiment? Two children in one class could not. Two classes could.

How it works

  1. List the conditions being compared.

  2. Find the act that puts a condition in place: installing a version, setting an option when a session (one continuous period of activity) starts, setting a flag on one request.

  3. The experimental unit is the smallest thing for which that act is carried out separately. In the three cases just named it is, in the same order, the board, the session and the request.

  4. Name what is measured inside the unit. The thing that yields one recorded value is the observational unit §11.4, for example one request. One experimental unit often contains many observational units.

  5. Count the experimental units per condition. That count is the replication.

  6. Analyze at the level of the experimental unit. Reduce each unit to one value, such as its mean, and compare the conditions using those values, or use a statistical model that contains a term for each unit.

The design fixes the experimental unit; the hardware does not. Suppose each board runs both versions, one in each of two sessions. Then the unit is one session on one board. The board becomes a block, a group of similar units inside which the conditions are compared. Arranging an experiment this way is called blocking §11.9.

Worked example

Eight boards each record 10,000 response times, so the log has 8×10,000=80,0008 \times 10{,}000 = 80{,}000 rows. Four boards drawn at random run version B, and the other four run version A.

The number of ways to choose which four of the eight boards run B is 8×7×6×54×3×2×1=168024=70,\frac{8 \times 7 \times 6 \times 5}{4 \times 3 \times 2 \times 1} = \frac{1680}{24} = 70, and the random draw picked one of them. Suppose the board means are 10.2, 9.7, 10.4 and 9.7 milliseconds (ms) for version A and 11.1, 10.6, 11.4 and 10.9 ms for version B. The version means are 40.0/4=10.040.0/4 = 10.0 ms and 44.0/4=11.044.0/4 = 11.0 ms, a difference of 1.0 ms. Whether 1.0 ms is more than chance is judged against how much boards with the same version differ from each other, here by up to 0.7 ms for A and 0.8 ms for B. Recording 100,000 requests per board would make each board mean more exact. There would still be eight means and the same 70 possible assignments.

With one board per version the replication is 1: no version is repeated on a second board. The difference between version A and version B is then also the difference between the first board and the second, and no number of requests tells the two apart.

Now change the design: every board runs both versions, one per session, and a coin decides the order on each board. The experimental unit is now a session on a board. There are 8×2=168 \times 2 = 16 of them, 8 per version, and each board is a block.

Stated precisely

Number the experimental units from 1 to NN, and let ZiZ_i be the condition given to unit ii. The design is the rule that fixes the probability of every possible list (Z1,…,ZN)(Z_1, \dots, Z_N). The experimental units are the smallest things to which the design gives conditions separately, so that any two of them could have received different conditions. Every observation made inside unit ii carries the same ZiZ_i. The replication of a condition is the number of units ii whose ZiZ_i is that condition.

If there are two conditions and the design gives one of them to nn units drawn at random from the NN units and the other to the remaining N−nN - n units, the number of possible assignments is (Nn)=N!n!(N−n)!,\binom{N}{n} = \frac{N!}{n!\,(N - n)!}, where N!N! means N×(N−1)×…×1N \times (N - 1) \times \dots \times 1, and every assignment has the same probability.

The uncertainty of a comparison between conditions has to be computed from the variation among experimental units that received the same condition. Variation among observations inside one unit measures something else: how exactly that single unit is known. More observations per unit leave the number of units unchanged. Two assumptions make the unit-level comparison trustworthy. Randomization §11.8: a chance procedure, not a person’s choice, decides which unit receives which condition. No interference: the outcome of one unit does not depend on the condition given to another unit.

Limits and common mistakes

The experimental unit is not always the thing that is measured. The two coincide only when one value is recorded per unit.

A balanced design does not toss a separate coin for every unit. Drawing exactly four of eight boards for each version ties the assignments together. The board is still the experimental unit, and the analysis has to follow the scheme that was really used.

Random assignment does not make outcomes independent. Units that share a radio channel, a power supply or a test computer can influence each other.

Changing the condition in the middle of a unit does not create a second unit, unless the design planned the change and deals with the state that the first condition leaves behind.

Counting the observations inside a unit as if they were units is the error called pseudoreplication §11.6.

Questions answered

At what level were baseline and treatment conditions assigned or paired?

At the level of the experimental unit: the smallest thing to which the experiment could give one condition separately from its neighbors. In the question, the baseline is the reference condition, such as the unchanged system, and the treatment is the changed condition. To find the level, trace the act that put each condition in place. If a version is installed once per device, the level is the device. If the condition is switched at the start of each boot, meaning one run from start-up to the next restart, or of each session, meaning one continuous period of activity, the level is the boot or the session. If a flag is set on every request, the level is the request.

Conditions are paired when every baseline unit has one treatment partner that shares its circumstances, for example two sessions on the same device. The level of pairing is then the thing the partners share, here the device, and differences are taken inside each pair.

Report the level, the number of units per condition, and what is nested inside each unit. The number of units, not the number of recorded rows, is the amount of independent evidence about the difference between baseline and treatment.

Related entries: Observational unit (§11.4), Pseudoreplication (§11.6), Blocking (§11.9), Causal inference (§11.11), Randomization (§11.8), Paired design (§11.7).