Topic contents

Lesson 2

Some basic concepts in statistics

Use one student survey to understand the objects of study, data records, and statistical measures.

Population, sample, and statistical unit

Research question: To learn about the monthly living expenses of all 400 students at a school, whom should we study? If we survey only 40 of them, what do they constitute?

Population size N = 400 (fixed)

Curve readout: use ← → to move, Shift to move faster, Esc to hide

Unhighlighted: population units; highlighted: the 40 sample units selected this time.
Population size N
400
Sample size n
40
Statistical unit
1 person

Three concepts

Population: the collection of all statistical units defined by the purpose of the study. Here, it is all 400 students at the school.

Sample: a subset of statistical units selected from the population and actually observed. Here, it consists of the 40 highlighted students.

Statistical unit: a single object of study that makes up the population. Here, it is one student; a selected student is also called a sample unit.

Note: The population is defined by the research question, rather than its size. A larger sample size does not guarantee a representative sample; this demonstration uses simple random sampling.
Think about it: After clicking “Draw a new random sample,” which has changed: the population, the sample, or the definition of a statistical unit?

Variables, values, and records

How are survey data from the same students usually organized into a data table? Try clicking a column heading, a row heading, or a cell.
Observational unit ↓
Selected column → variable. Monthly living expenses: a numerical variable; this column records values of the same characteristic for different students.

Three concepts

Variable: a characteristic observed or measured for statistical units, such as year of study, monthly living expenses, or AI use.

Value of a variable: the specific value of a variable for a statistical unit, such as “1,800 yuan” or “Yes.”

Observation record: one statistical unit's values across several variables; it usually occupies one row in a typical individual-level data table.

Usually: row = a statistical unit's record, column = a variable, and cell = a value of a variable. Other ways of organizing data, such as long-format panel data, can use different row structures.

Think about it: If “whether AI is used” is coded as 1 and 0, does it become a continuous numerical variable? (No; the coding does not change the variable's original meaning.)

Parameters and statistics

The true characteristics of the same population do not change when we draw a new sample, but the numbers calculated from the sample may change. Try switching measures and drawing several different samples.
Statistical measure

Population size N = 400 (fixed)

Population parameter · μ
2197 yuan
Sample statistic · x̄
1996 yuan
Sample result − population value
-201 yuan
102030401,0001,5002,0002,5003,000S121S319S118S099S321S190S295S080S191S036S005S237S305S042S285S166S396S356S277S345S044S181S140S362S067S039S330S390S381S276S041S238S240S055S394S332S199S029S287S340
  • Sample observations
  • Population mean μ
  • Sample mean x̄
Sample observations (up to 40 students shown)

The sample line changes across samples; the population mean line stays fixed. When you select proportion or variance, the measures above update accordingly, while the chart continues to show means for comparison.

Distinguish the concepts first

Parameter: a value describing a numerical characteristic of the entire population; it is fixed for a given finite population, although the researcher may not know it.

Statistic: a quantity calculated using only sample observations; different samples usually give different values.

Common mathematical symbols

MeasurePopulation parameter (fixed population)Sample statistic (varies across samples)
Meanμ\mu (Population mean)xˉ\bar{x} (Sample mean)
ProportionPP (Population proportion)p^\hat{p} (Sample proportion)
Varianceσ2\sigma^2 (Population variance)s2s^2 (Sample variance)
Standard deviationσ\sigma (Population standard deviation)ss (Sample standard deviation)

Notation differs among textbooks: the sample proportion is also often written as p; here, we consistently use p̂ to distinguish it from the population proportion P. The denominator of the sample variance s² is usually n−1.

Think about it: If you draw 10 new samples, which value stays fixed? Note: “Fixed population parameter” here means that the scope of the study and the population characteristics have not changed.

Compare the basic concepts

Put the three sets of concepts into the same student survey: compare them first, then answer each question.
What are we asking?Basic conceptsThis lesson's example
Whom do we study?Population / sample / statistical unitAll 400 students at the school / the 40 selected students / each student
What do we observe?Variable / value of a variable / observation recordMonthly living expenses / a specific amount / one row of survey data for a student
What do we calculate?Population parameter / sample statisticμ, P, σ² / x̄, p̂, s²

1. Out of 400 students at a school, 40 are randomly selected for a survey. What do these 40 students constitute?

2. What is “Monthly living expenses (yuan)” in the data table?

3. A survey gives sample mean living expenses of 1,850 yuan. What is this 1,850 yuan?

4. What usually happens when a new random sample is drawn from the same fixed population?

One last question: If all 400 of the 400 students are selected, we have data for the entire finite population. We can calculate its characteristics directly, but whether inference is needed still depends on how the population of interest is defined.