Quiz: Independent units and sampling

Exercises · Lecture slides

Try each question before opening its hint or answer.


Q1. One plant is measured twelve times with a ruler. How many independently treated plants does this provide? What can the repeated readings help assess?

Separate the unit assigned to treatment from repeated measurement of it.

One plant. The repeats help assess measurement consistency; they do not create twelve independent plants.


Q2. Treatment is assigned to whole trays, with twelve plants in each tray. Which is the treatment unit?

  1. A ruler reading.

  2. Each plant independently.

  3. A tray.

All plants in a tray receive the same allocation together.

(iii), a tray. Plants within it share the treatment unit and potentially the environment. More independently allocated trays are needed for independent tray-level replication.


Q3. The supplied simulation draws from one fixed source distribution. Will means of samples of sixteen usually spread more or less than means of samples of four? Does the source SD change?

Distinguish variation among observations from variation among estimated means.

The sixteen-draw means usually spread less. The stored source values and their SD stay unchanged.


Q4. What do the 400 values in means_16 represent?

  1. 400 newly measured plants.

  2. Means of 400 simulated samples, each with sixteen draws.

  3. Sixteen means from samples of 400 plants.

Read the outer repetition count and inner sample size separately.

(ii). replicate(400, mean(sample(..., size = 16, replace = TRUE))) calculates 400 means. The draws simulate sampling; they are not new measurements.


Q5. You increase simulation repetitions from 400 to 1000 while retaining sixteen draws per sample. Does this have the same effect as increasing plants per sample? What does set.seed() control?

One setting changes how well the simulated distribution is represented; the other changes what each estimate averages.

No. More repetitions give a more stable picture of the same sampling distribution; more independent draws per mean typically narrow it. set.seed() sets the random generator state so the simulated sequence can be reproduced.