Statistics Library / Chapter 1

Questions, study design and data quality

Before choosing a calculation, decide what the observations can tell you.

Connect the ideas

Sampling, assignment and dependence answer different questions. Identify the experimental unit before choosing the procedure.

Random sampling supports generalization to a population; random assignment supports causal comparisons under additional design conditions. Pairing, blocking and repeated measurements preserve relationships that an independent-groups analysis would discard.

Sampling and assignment answer different questionsSampling connects a population to a sample; assignment allocates sampled units to conditions.PopulationSampleCondition ACondition Bsamplingassignment
Sampling and assignment answer different questions. Sampling connects a population to a sample; assignment allocates sampled units to conditions. Schematic illustration; not calculated from a dataset.
Before you continue

Write the quantity or contrast of interest before examining significance. Record the groups, repeated units, plausible confounders and a practically useful effect.

An observational association is not automatically a causal effect. Neither a model adjustment nor this atlas establishes causal identification.

Further reading: Berkeley · Computational and Inferential Thinking · UCLA OARC · Choosing an analysis.

Before you begin

No prior statistical reading is assumed. Bring a question about how observations were collected.

What you will learn

  • Identify the observational unit, target population and selection process.
  • Distinguish random sampling from random assignment.
  • Explain how confounding, missingness and unusual observations can limit a conclusion.

Begin with how the data came to exist

A table records observations, but it does not explain the process that produced them. Ask what each row represents, who or what could have appeared in the table, and why some observations might be absent. The answer sets the boundary of the analysis.

Random sampling concerns selection from a population. Random assignment concerns allocating treatments. They address different questions: how the sample relates to a population, and how treatment groups are formed. Neither should be inferred merely because a file has many rows.

A relationship in observational data can be useful without establishing a treatment effect. Record plausible alternative explanations before calculating. Later chapters will add uncertainty and modeling; they cannot reconstruct a missing study design.

Worked reasoning / Original illustration

A study before a test

A company asks volunteers whether they use a planning tool, then compares their project completion times.

  1. The unit is a project or person only after the company specifies which is recorded and how repeated projects are handled.
  2. Tool users may have different roles, experience or workloads. Those differences could explain part of an observed relationship.
  3. Volunteer responses may not represent everyone whose work the company hopes to describe.

Describe an association and its selection limits. The comparison alone does not show that adopting the tool changes completion time.

Read the ideas in sequence

Follow these readings, then return for the reasoning check below.

  1. 1.1
    Observational vs. experimental design

    An experimental design assigns subjects to conditions under the researcher's control (ideally by randomization); an observational design records subjects as they occur naturally, with no control over which condition each one is in.

  2. 1.2
    Randomization

    Randomization is assigning subjects or experimental units to conditions purely by chance, which balances both known and unknown confounders across groups on average and licenses a causal interpretation of the resulting comparison.

  3. 1.3
    Confounding

    A confounder is a variable that influences both the supposed cause and the outcome; it can produce an association that is not a causal effect, or hide, exaggerate or reverse a real one.

  4. 1.4
    Missing data

    Missing data are values that were not recorded, and how they are handled (ignoring them, filling them in, or modeling their absence) can change an analysis's conclusions more than the choice of statistical test does.

  5. 1.5
    Outliers

    An outlier is an observation that is markedly different from the rest of the data, which may reflect a genuine extreme case, a data-entry or measurement error, or a signal that the assumed model is missing something.

Pause and reason

Check your understanding

Would inviting many more volunteers, without changing recruitment or assignment, establish that the planning tool caused a difference?

Show explanation

No. More observations can improve precision for the measured comparison, but they do not by themselves remove volunteer selection, confounding or dependence. A causal question needs a defensible design and assumptions, not only a larger table.

Take it with you

Carry the unit, selection process, design and missing-data questions into every later calculation.

Begin this chapter's readings →

Further university reading

The chapter bridges and reasoning checks are original KernelStats material. These sources offer further study; they have not reviewed or endorsed this book. Read about sources and review limits.