The Structure of Data: Cases and Variables

Core Principles of Data Structure

  • Fundamental Components of a Dataset:

    • Cases (Units of Observation): The individual entities or objects from which data are collected. These represent the rows in a standard data matrix and can consist of people, animals, inanimate manufactured items, geographic regions, or experimental trials.
    • Variables: Any characteristic, attribute, or measurement recorded for each case. These represent the columns in a standard data matrix and vary from one case to another.
  • Classification of Variables:

    • Categorical (Qualitative) Variables: Variables that divide cases into distinct groups, categories, or labels based on shared qualitative attributes. Arithmetic operations such as addition, subtraction, or finding a mathematical mean cannot be meaningfully performed on categorical values.
    • Binary categorical variables are those with exactly two mutually exclusive outcomes (e.g., Yes/No, Support/Oppose, Success/Failure).
    • Quantitative (Numerical) Variables: Variables that record numerical values representing measurements, counts, or amounts for which standard arithmetic operations (such as calculating averages, sums, and ranges) are mathematically sensible and meaningful.
    • Discrete quantitative variables take distinct, separated values (often counts).
    • Continuous quantitative variables can take any numerical value within a given continuum or interval (e.g., length, weight, force, temperature).

Analytical Framework for Identifying Cases and Variables

  • Procedure for Case Identification:

    • Ask the question: Who or what is being observed, sampled, or measured?
    • In survey research, the cases are the individuals responding to the questions (e.g., survey respondents, registered voters, sampled adolescents).
    • In experimental testing, the cases are the experimental subjects or physical specimens tested (e.g., biological specimens, concrete cylinders, structural beams).
  • Procedure for Variable Identification and Classification:

    • Ask the question: What specific information or metric is being recorded about each case?
    • Determine whether the recorded value is a qualitative group or a numerical measurement.
    • Distinction Between Numerical Thresholds and Variable Types:
    • The presence of a number in a survey question does not necessarily make the recorded variable quantitative.
    • If the respondent is asked whether they meet or exceed a specified numerical threshold, the response collected is categorical (e.g., "Yes" or "No").
    • If the respondent is asked for an exact count or amount, the variable is quantitative.

Detailed Analysis of Skill Builder 1 Scenarios

  • Exercise 1.1: Municipal Survey on Environmental Policy

    • Scenario Description: People in a city are asked if they support a new recycling law.
    • Part (a) - Identification of Cases:
    • The cases are the people who are asked (the surveyed residents of the city).
    • Part (b) - Identification and Classification of Variable:
    • Variable: Support the law or not (the opinion or stance on the new recycling law).
    • Classification: Categorical.
    • Analytical Justification: The response places each person into a category (e.g., "Supports the law" versus "Does not support the law"). Because the recorded responses are qualitative labels rather than measurable numerical amounts, mathematical calculations such as averaging cannot be performed on individual responses.
  • Exercise 1.3: Adolescent Dietary Survey

    • Scenario Description: Collect data from a sample of teenagers with a question that asks "Do you eat at least five servings a day of fruits and vegetables?"
    • Part (a) - Identification of Cases:
    • The cases are the teenagers in the sample.
    • Part (b) - Identification and Classification of Variable:
    • Variable: Whether or not the teenager eats at least 55 servings of fruits and vegetables per day (affirmative versus negative response).
    • Classification: Categorical.
    • Analytical Justification: Although the question references a numerical quantity (55 servings), the data collected from each teenager consists of a binary answer ("Yes" or "No"). The recording groups each respondent into one of two categories: those who consume at least 55 servings daily and those who do not.
  • Beam Strength Physical Experiment

    • Scenario Description: Testing the bending strength of beams by bending 1010 beams until they break and recording the force at which the beams broke.
    • Part (a) - Identification of Cases:
    • The cases are the 1010 beams subjected to the destructive bending test.
    • Part (b) - Identification and Classification of Variable:
    • Variable: The force at which the beam broke (bending strength / breaking force).
    • Classification: Quantitative.
    • Analytical Justification: The recorded force is a continuous numerical measurement (expressed in standard units of force such as newtons, kilonewtons, or pounds of force). Computing summary statistics such as the mean breaking force, standard deviation, and range across the sample of 1010 beams is directly meaningful and mathematically valid.