AP Statistics · Unit 1 · Topic 1.2

    1.2 Variables

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The observational units are the people or things data are collected from. A variable is a characteristic that changes from unit to unit. A categorical variable puts units into groups; a quantitative variable is a number you could sensibly average, and it is either discrete (countable values) or continuous (any value in a range). A parameter describes a population; a statistic describes a sample.

    What you need to know

    • Identify the observational units, variables, parameters and statistics in a study.
    • Classify a variable as categorical or quantitative.
    • Classify a quantitative variable as discrete or continuous.
    • Explain why some number-valued variables are categorical.

    Units and variables

    Every data set is a table: each row is an observational unit (a student, a car, a day, a hospital) and each column is a variable measured on it. Before analysing anything, say what one row is. In a study of 200 cars at a toll booth, the observational units are the cars; the variables might be vehicle type, number of passengers and waiting time.

    Part of a data set on students
    StudentGradeTransport to schoolTravel time (min)Siblings
    A11Bus352
    B12Walk120
    C11Car201

    Categorical or quantitative?

    A categorical variable places each unit into one of several groups: transport to school (bus, walk, car), blood type, or whether a patient recovered (yes or no). A quantitative variable takes numerical values for which arithmetic makes sense: travel time, height, number of siblings.

    The test is whether an average would mean something. Grade (11 or 12) is written as a number, but in this data set it labels a group, so it is treated as categorical. PIN codes, phone numbers and jersey numbers are numbers that are really labels, so they are categorical too. The same is true of a rating such as 1 = poor to 5 = excellent when it labels groups: report how many chose each rating rather than an average that hides the spread of opinions.

    Quantitative variables come in two kinds. A discrete variable takes countable values with gaps between them, such as number of siblings (0, 1, 2, …). A continuous variable can take any value in an interval, such as travel time or height; the only limit is how precisely we measure.

    Parameters and statistics

    The population is the whole group you want to learn about; a sample is the part you actually measure. A number describing the population is a parameter (usually unknown), and a number describing the sample is a statistic (calculated from data). A quick memory aid: parameter goes with population, statistic with sample.

    If a survey of 400 randomly chosen voters finds that 56% support a new road, 56% is a statistic. The true percentage of all voters who support it is the parameter, which the statistic estimates.

    Key terms

    Observational unit
    The person or thing each row of data describes.
    Categorical variable
    A variable that places each unit into a group or category.
    Quantitative variable
    A variable with numerical values for which arithmetic, such as averaging, makes sense.
    Discrete variable
    A quantitative variable with countable values.
    Continuous variable
    A quantitative variable that can take any value in an interval.
    Parameter
    A number that describes a population.
    Statistic
    A number that describes a sample.

    Common mistakes

    • Calling any variable recorded as a number quantitative.

      Ask whether averaging makes sense; PIN codes and jersey numbers are categorical.

    • Calling a sample percentage a parameter.

      A value calculated from sample data is a statistic; the parameter is the population value it estimates.

    • Confusing the observational units with the variables.

      Units are rows (who or what); variables are columns (what is recorded).

    How this topic is tested

    • Start a free-response answer by identifying the variable and its type: it tells you which method is right.
    • Use the words 'parameter' and 'statistic' precisely; examiners check them.
    • If a question asks for the observational units, name them in context: 'the 120 seventh-grade students', not 'people'.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 2 · Collect Data

      A hospital records each patient's blood type, age in years, number of previous visits and whether they were admitted. How many of these variables are categorical?

    2. Question 2 · SP 2 · Collect Data

      Which quantitative variable is discrete?

    3. Question 3 · SP 4 · Interpret Results

      In a random sample of 250 households in a city, the mean monthly electricity bill is ₹2,140. Which statement is correct?

    4. Question 4 · SP 3 · Analyze Data

      A data set records each student's roll number. How should roll number be treated?

    5. Question 5 · SP 1 · Formulate Questions

      Which pair matches a population with its parameter?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Practices 1 and 2 (short) · 5 points

    A researcher randomly selects 80 smartphones sold in a city last year and records the brand, the screen size in inches, the number of apps installed, and whether the phone has been repaired.

    1. (a) Identify the observational units.
    2. (b) Classify each variable as categorical or quantitative, and each quantitative variable as discrete or continuous.
    3. (c) The mean screen size of the 80 phones is 6.3 inches. Explain whether 6.3 is a parameter or a statistic.

    Connected topics

    Frequently asked questions

    Is a yes/no variable categorical?

    Yes. A variable with two categories is called binary, and it is the kind of variable Unit 3 uses for proportions.

    Can a variable be both categorical and quantitative?

    The same characteristic can be recorded either way. Age in years is quantitative; age group (under 18, 18–64, 65+) is categorical.

    Why are parameters usually unknown?

    Measuring the whole population is usually too costly or impossible, so we estimate parameters with statistics from samples.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 1 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 1 cheat sheet

    Every topic in Unit 1: Exploring One-Variable Data and Collecting Data on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 1 practice test: 65 questions with explanations

    All topics in Unit 1: Exploring One-Variable Data and Collecting Data

    1. 1.1 Introducing Statistics: What Can We Learn from Data?
    2. 1.2 Variables
    3. 1.3 Tabular Representation and Summary Statistics for One Categorical Variable
    4. 1.4 Graphical Representations for One Categorical Variable
    5. 1.5 Graphical Representations for One Quantitative Variable
    6. 1.6 Descriptions for One Quantitative Variable Distributions
    7. 1.7 Summary Statistics for One Quantitative Variable
    8. 1.8 Graphical Representations of Summary Statistics for One Quantitative Variable
    9. 1.9 Comparisons of the Distributions for One Quantitative Variable
    10. 1.10 The Investigative Question Revisited and Data Collection
    11. 1.11 Random Sampling
    12. 1.12 Potential Problems with Sampling
    13. 1.13 Experimental Design

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.