1. Gathering Data: Samples, Variables, and Study Design
Explanation
What statistics and probability are
Statistics is the science of collecting, organizing, analyzing, and interpreting data in order to make decisions. It has two big branches. Descriptive statistics summarizes the data you actually have with tables, graphs, and numbers (mean, median, standard deviation). Inferential statistics (also called statistical inference or inductive statistics) uses a sample to draw conclusions about a larger group, for example estimating a population value or testing a claim. Almost the whole course from Week 7 onward is inferential.
Probability is a number between 0 and 1, inclusive, that tells how likely an event is. It is the bridge between the two worlds: because a sample is chosen by a random process, probability lets us say how far a sample result is likely to be from the truth. Statistics works backward from sample to population; probability works forward from a known model to the data.
Key vocabulary
- Population: all individuals, objects, or measurements whose properties are being studied. Sample: a subset of the population that is actually measured. A representative sample has the same characteristics as the population.
- Parameter: a number describing a population characteristic (μ for a mean, σ for a standard deviation, p for a proportion). It is usually fixed but unknown. Statistic: a number computed from a sample (x̄, s, p̂). A statistic is used to estimate the matching parameter, and it changes from sample to sample.
- Variable: a characteristic of interest for each person or object. Data are the observed values of a variable (one value is a datum). Experimental unit: the individual or object being measured.
- Proportion: successes divided by sample size. Average / mean: a number describing the central tendency of the data.
Types of data
Qualitative (categorical) data are labels or names (hair colour, major, yes/no). Quantitative (numerical) data are numbers that can be used in arithmetic. Quantitative data are discrete if they come from counting (number of books on a shelf, children in a family) and continuous if they come from measuring (weight, time, distance). A handy test: if a value between two neighbouring values makes sense (2.5 kg), the variable is continuous.
Levels of measurement
The level tells you which calculations make sense.
- Nominal: names only; cannot be ordered or used in arithmetic. Example: eye colour, favourite team. Only the mode and counts are meaningful.
- Ordinal: can be ordered, but differences between values have no fixed meaning. Example: rank in a race (first/second/third), a satisfaction scale "poor, fair, good, excellent".
- Interval: ordered with meaningful differences, but there is no true zero, so ratios are meaningless. Temperature in Celsius or Fahrenheit: 20 °C is not "twice as hot" as 10 °C.
- Ratio: ordered, meaningful differences, and a true zero, so ratios make sense. Height, income, time, age.
Each level contains the properties of the one before it. Rounding advice from the textbook: report a final statistic with one more decimal place than the original data had (data measured to the nearest tenth, report to the nearest hundredth), and do not round in the middle of a calculation.
Frequency, relative frequency, cumulative relative frequency
- Frequency is how many times a value occurs.
- Relative frequency = frequency ÷ total number of observations (a decimal or percentage; all relative frequencies add up to 1).
- Cumulative relative frequency is for ordered data: the sum of the relative frequencies of all values less than or equal to the given value. The last entry is always 1.
A frequency table lists the values (or intervals) with these columns. It is the raw material for histograms and for finding percentiles.
Sampling
A random sample gives every member of the population an equal chance to be chosen. The four random methods:
- Simple random sampling: number every member, then use a random number generator to pick the labels.
- Stratified sampling: divide the population into subgroups (strata) that share a feature, then take a simple random sample from each stratum in proportion to its size. It guarantees each subgroup is represented.
- Cluster sampling: divide the population into naturally occurring groups (clusters, e.g. classrooms, city blocks), randomly pick some clusters, and survey every member of the chosen clusters.
- Systematic sampling: list the population, compute k = (population size) ÷ (sample size), pick a random starting point, and then take every k-th member.
Convenience sampling (taking whoever is easy to reach) is not random and often produces biased data.
With replacement means a selected member is returned and can be chosen again; without replacement means each member can be chosen at most once.
Variation, bias, and error
Different samples from the same population give different statistics even when they are chosen perfectly. This natural variation is sampling error; it shrinks as the sample size grows. Sampling bias occurs when not all members have an equal chance of being selected (undercoverage, voluntary response, convenience). Nonsampling error is everything else that damages reliability: poor study design, biased wording, untruthful answers, data-entry mistakes, wrong analysis. The textbook's message: statistical claims must be critically analyzed, not simply accepted. Always ask who was sampled, how, how big the sample was, and how the question was worded.
Experimental design and ethics
An observational study records data without interfering. An experiment imposes treatments (the different values of the explanatory variable) and measures the response variable. A lurking variable affects the outcome though it is neither explanatory nor response; it creates confounding, which is why association from observational data is not proof of cause. A sound experiment uses:
- Random assignment of units to treatment groups, which spreads lurking variables evenly.
- A control group that gets an inactive treatment (or standard care) so you see what happens without the treatment.
- A placebo, an inactive treatment that cannot directly affect the response, to counter the power of suggestion.
- Blinding (subjects do not know their treatment) or a double-blind experiment (subjects and researchers working with them both do not know).
- Replication with enough subjects to separate real effects from chance.
When groups are treated identically except for the explanatory variable, a difference in response can be attributed to that variable. Ethics: human subjects need informed consent (they must know the risks, costs, and benefits, and consent freely). An Institutional Review Board (IRB) oversees research involving people. Ethical violations in statistics include hiding data that contradict a desired result and misrepresenting findings.
Common mistakes
Mixing up a parameter and a statistic; calling ranks "interval"; thinking a placebo is the same as the control group (it is one type of control); assuming a large sample fixes bias (it only reduces sampling error, never bias).
Practice tasks
- A survey records each student's major. Is the variable qualitative or quantitative, and what is its level of measurement?
- Classify each variable by type and level of measurement: (a) number of siblings, (b) temperature in °C, (c) finishing position in a race, (d) height of a person.
- A university has 12,000 students. A researcher asks 300 of them and finds 42% own a car. Name the population, the sample, the parameter, and the statistic.
- Data: 1, 2, 2, 3, 3, 3, 3, 4, 4, 5. Build a frequency table with frequency, relative frequency, and cumulative relative frequency.
- Name the sampling method: (a) number all 500 employees and draw 50 using random numbers; (b) split employees by department, then randomly pick 5 from each; (c) survey every 10th customer entering a shop; (d) randomly pick 5 classrooms and survey everyone inside; (e) ask the first 50 people who walk by.
- Design an experiment to test whether a new study app improves exam scores among 60 students. Identify explanatory and response variables, and explain how you would use randomization, a control group, and blinding.
- Ice cream sales and drowning counts rise together across months. A journalist says ice cream causes drowning. Explain the flaw using the term confounding variable. Also, why is an online "click to vote" poll unreliable?
Original author (OpenStax, Rice University). License / permission: CC BY-NC-SA 4.0. If you noticed a mistake or copyright issues, please contact: lebroskiofficial@proton.me