- Learn
- Mathematics
- Statistics
- Introduction to Statistics
- Types of Variables and Data
Types of Variables, Data and Study Design
BeginnerLesson 1 of 12 in Introduction to Statistics Course
What you will learn
- Read a data set as cases and variables, classify each variable by type and level of measurement, and choose summaries that make sense for it.
- Read a data set as cases and variablesIdentify the cases and variables in a data table, attach units to measurements, and turn a research question into a statistical question that data can answer.
- Classify variables as categorical or quantitativeDecide whether a variable is categorical or quantitative, and whether a quantitative variable is discrete or continuous, so that the summaries and graphs you choose make sense.
- Identify levels of measurementPlace a variable on the nominal, ordinal, interval or ratio level and explain which comparisons and calculations that level supports.
- Read a data set as cases and variables
- Distinguish populations from samples and parameters from statistics, and select samples by chance with the standard probability sampling methods.
- Distinguish populations, samples, parameters and statisticsName the population and the sample in a study, tell a parameter from a statistic, and explain why statistics vary from sample to sample while the parameter stays fixed.
- Select a probability sampleDraw simple random, stratified, cluster and systematic samples, and explain what each method guarantees and where it can go wrong.
- Distinguish populations, samples, parameters and statistics
- Identify whether a study observes or assigns treatments, recognize confounding, and decide how far a study's conclusions reach for cause and for generalization.
- Classify a study as observational or experimentalIdentify the explanatory and response variables, decide whether researchers assigned the treatments, and explain why an association is not enough to show cause.
- Recognize confounding and lurking variablesExplain how a third variable can create or hide an association, find plausible lurking variables in a study, and see why observational comparisons are hard to interpret.
- Decide what a study's conclusions can claimUse the way participants were selected and the way treatments were assigned to decide whether a study supports a cause-and-effect conclusion and to whom its results apply.
- Classify a study as observational or experimental
- Describe an experiment in standard terms, apply comparison, randomization and replication, choose a completely randomized, block or matched pairs design, and use placebos and blinding.
- Name the parts and principles of an experimentIdentify the experimental units, factors, levels, treatments and response in an experiment, and use comparison, random assignment, replication and consistent conditions to design one.
- Randomize treatments with a suitable designCarry out random assignment in a completely randomized design, and use blocking or matched pairs when a known variable affects the response.
- Use placebos and blindingExplain the placebo effect, choose a suitable control treatment, and decide who should be blinded in an experiment.
- Name the parts and principles of an experiment
- Recognize bias in how samples are chosen and how responses are measured, and judge whether a reported claim follows from the way its data were produced.
- Recognize bias in how a sample was chosenIdentify undercoverage, convenience and voluntary response samples, nonresponse and survivorship bias, and explain why a larger sample does not remove bias.
- Recognize bias in how responses were measuredIdentify how question wording, social pressure, interviewers, memory, question order and faulty instruments distort the values recorded, and separate these errors from sampling error.
- Judge a claim by how its data were producedQuestion a reported statistical claim about who was studied, how they were chosen, what design was used and whether the conclusion goes beyond what the design supports.
- Recognize bias in how a sample was chosen
- Explain how studies protect the people who take part, and recognize the honest and dishonest ways of collecting, analyzing and reporting data.
- Protect the people in a studyApply the principles of respect for persons, beneficence and justice through informed consent, independent ethics review, confidentiality and fair selection of participants.
- Collect, analyze and report data honestlyRecognize fabrication, falsification, selective reporting and data dredging, and use honest practices such as planning the analysis in advance, documenting data cleaning and disclosing conflicts of interest.
- Protect the people in a study
Types of Variables and Data study guide
1Describe what data record
Data make sense when you know what each row describes and what each column records. A code such as a ZIP code behaves differently from a measurement such as travel time, even though both may be written in digits. Learn to identify cases, variables, and units, then use variable types and measurement levels to decide which comparisons and summaries are meaningful. The wording of the research question guides what you need to record.
1.1 Read a data set as cases and variables
Data begin as answers to questions about people, objects, or events. Before calculating anything, identify what each record describes and what was measured. A number without that context can be easy to misread.
Read across a row and down a column
A case, also called an observational unit or individual, is one thing being studied. A variable is a characteristic recorded for each case. A value is a particular entry for a variable.
| Student | Major | Year in school | Commute time (minutes) | Owns a car |
|---|---|---|---|---|
| Ana | Biology | Sophomore | 25 | Yes |
| Ben | Economics | Senior | 10 | No |
The cases are students, so each row describes one student. The four measured variables are major, year in school, commute time, and car ownership. The Student column identifies the case. Ben's commute-time value is 10 minutes; "Senior" is his value for year in school. Calling "Senior" a variable confuses one possible answer with the characteristic recorded for everyone.
The same arrangement works for other cases. A delivery table can have one row per package and columns for destination, mass, and delivery time. If the question concerns trips instead of people, one person may contribute several trip records: the case is then a trip.
Make measurements interpretable
A useful record includes a unit and a measurement method. "Commute = 25" leaves the meaning open. "25 minutes, self-reported" identifies both. Put units in column headings, as in the table, and describe whether values came from a person's estimate, an instrument, or an existing record. Self-reported time and a phone app's measured time can differ for the same trip.
Ask a question that expects variation
A statistical question anticipates different answers and uses their distribution to answer it. "How long was my commute this morning?" asks for a single value. "How long do students at this college typically commute, and how much do their times vary?" asks about a pattern across varying values.
The question determines the cases and variables. To investigate whether students living on campus sleep more than students living off campus, collect housing status and average nightly sleep in hours for each student. Commute time alone cannot answer that question.
A statistical investigation moves through four stages: ask the question, collect suitable data, analyze them, and interpret the results in the question's context. Statistics is the science of carrying out that process; data are the recorded numbers, words, or categories it works with.
Recognize three sources of variation
Students naturally sleep different amounts: natural variability is variation between cases. Re-scoring the same night's sleep as 7.1 hours and 6.8 hours illustrates measurement variability. Getting a different average from a new sample illustrates sampling variability. These have different sources, so an unusual value does not by itself reveal which kind of variation produced it.
Key Takeaways
- Each row describes a case; each variable records a characteristic of those cases.
- A value is one entry, such as "Senior," not the name of a whole variable.
- Measurements need units and a clear method.
- Statistical questions anticipate variation and ask about patterns across data.
- Natural, measurement, and sampling variability have different sources.
1.2 Classify variables as categorical or quantitative
Digits can label a group or measure a quantity. The meaning of the recorded values determines the variable's type and the summaries that make sense.
Separate categories from quantities
A categorical, or qualitative, variable places cases into groups. Blood type, college major, and smoking status are categorical. A quantitative variable counts or measures an amount for which arithmetic has meaning, such as height or number of siblings.
Ask whether an average would describe a meaningful quantity. Averaging the ZIP codes 02139 and 94305 produces a number with no useful geographic meaning. ZIP codes, student IDs, phone numbers, and jersey numbers serve as labels. Their digits do not make them quantitative.
| Recorded variable | Type | Why |
|---|---|---|
| Blood type: A, B, AB, O | Categorical | Values name groups. |
| Smoking status: never, former, current | Categorical | Values describe statuses. |
| Doctor visits last year | Quantitative, discrete | Values count visits. |
| Systolic blood pressure in mmHg | Quantitative, continuous | Values measure pressure. |
Distinguish counts from measurements
A quantitative variable is discrete when its possible values are separate points with gaps between them. Counts of courses or complaints are typical: 2 complaints and 3 complaints are possible, but 2.4 individual complaints are not.
A continuous variable can take any value within an interval. Time, mass, length, and temperature are typical measurements. The measuring instrument limits what is recorded, not the underlying possible values. Weight rounded to the nearest kilogram remains continuous. Age is continuous even when a form records only completed years.
Money comes in discrete steps such as cents. In many analyses those steps are tiny relative to the amounts being studied, so money is treated as continuous. The choice concerns how the quantity is modeled, not whether coins can be divided indefinitely.
Understand binary coding
A binary variable has two categories, such as car ownership: yes or no. Coding yes as 1 and no as 0 keeps the underlying variable categorical, but provides a useful calculation. For responses 0, 1, 1, 0, 1:
The result means that 60% answered yes. The sum counts the yes responses, so dividing by the number of responses gives their proportion. This special coding does not justify averaging arbitrary category labels such as 1 = Biology and 2 = History.
Match the record to the question
Age measured in years is quantitative. Age recorded as "18–24," "25–34," or "35 and over" is categorical with ordered groups. Grouping loses detail: 25 and 34 become the same recorded category.
Categorical data are summarized with counts, proportions, and percentages, often displayed in bar charts or pie charts. Quantitative data support summaries such as the mean, median, standard deviation, and range, and displays such as dotplots, histograms, or boxplots. A graph or calculation should preserve the meaning of the variable, including whether its values are group labels or measured amounts.
Key Takeaways
- Categorical values name groups; quantitative values count or measure amounts.
- Numbers used as labels are categorical.
- Discrete variables have separated possible values; continuous variables vary along an interval.
- Rounding a measurement does not change its underlying type.
- The mean of 0/1 codes is the proportion coded 1.
- Grouping a measurement into categories loses detail.
1.3 Identify levels of measurement
Knowing that a variable is categorical or quantitative is a first step. Its level of measurement tells you whether order, differences, and ratios also have meaning.
Build the four levels
| Level | What the values support | Example |
|---|---|---|
| Nominal | Category membership | Eye color |
| Ordinal | Membership and meaningful order | T-shirt size |
| Interval | Order and equal, meaningful differences | Temperature in °C |
| Ratio | Equal differences and a true zero | Mass in kilograms |
Each level adds information to the previous one. Nominal and ordinal records are categorical; interval and ratio records are quantitative.
Nominal categories have no natural order. Country of birth, political party, and car type are examples. Counts, percentages, and the mode, the most common category, are useful summaries. Sorting countries alphabetically changes their display order without creating a measured ranking.
Ordinal categories have a meaningful order, but the distances between them are not known to be equal. Race places, letter grades, and clothing sizes fit here. First and second place might be 0.2 seconds apart while second and third are 5 seconds apart. A difference of one place does not measure a fixed amount of time. Medians and percentiles can describe ordered positions.
Test what zero means
Interval scales have equal differences, but zero is a chosen reference point. Calendar years and temperatures in Celsius or Fahrenheit have this property. A change from 10 °C to 20 °C is a rise of 10 degrees, just as a change from 20 °C to 30 °C is.
Calling 20 °C "twice as hot" as 10 °C misuses the zero point. The same temperatures are 293.15 K and 283.15 K; their ratio is about 1.04, not 2. A ratio that changes merely because the scale's starting point changes is not a meaningful ratio of the underlying quantity.
Ratio scales have equal differences and a true zero representing none of the quantity. Height, weight, reaction time, counts, and temperature in kelvins are examples. A 6 kg bag has twice the mass of a 3 kg bag. An income of $60,000 is 1.5 times an income of $40,000. Zero kilograms represents no mass; zero degrees Fahrenheit does not represent no temperature.
Read ratings carefully
A single agreement item, from "strongly disagree" through "strongly agree," is ordinal even when coded 1 through 5. The codes do not establish equal psychological distances between answers. The median respects the order without assuming equal gaps. Researchers sometimes combine several items and treat the total or average as interval data; that is an analysis choice to state explicitly.
For a quick classification, a jersey number is nominal, T-shirt size is ordinal, year of birth is interval, and annual rainfall in millimeters and number of text messages are ratio. Rainfall is continuous and the message count is discrete, but both have true zeros. Variable type and measurement level answer related questions, so a ratio variable need not be continuous.
Key Takeaways
- Nominal categories have no natural order; ordinal categories do.
- Interval scales support meaningful differences but lack a true zero.
- Ratio scales have a true zero and support meaningful ratios.
- A single coded agreement item remains ordinal unless equal intervals are justified.
- Both discrete counts and continuous measurements can have a ratio scale.
2Learn about a population from a sample
A sample lets you investigate a group without measuring everyone in it. That shortcut works best when you define the population clearly and use a documented chance process to select cases. Learn to tell a population parameter from a sample statistic, explain why estimates change between samples, and choose among simple random, stratified, cluster, and systematic sampling. The method matters as much as the number of observations.
2.1 Distinguish populations, samples, parameters and statistics
A study usually observes only part of the group it wants to understand. Keep the group, the observed cases, and the numbers describing them separate.
Define who the question is about
The population is the entire group of cases the question concerns. Define it by who, where, and when. "Students" leaves the boundaries unclear; "all full-time undergraduates enrolled at Lakeside College in fall 2026" identifies a particular population.
The sample is the part from which data are actually collected. A census attempts to collect data from every population member. A census may still miss people or record wrong answers; its aim of complete coverage is not a guarantee of error-free data.
Samples save time and money. Sometimes a census is impossible: testing the lifetime of every light bulb destroys the products the manufacturer hopes to sell. A careful sample can also be more accurate than a rushed census with extensive recording errors.
Name the number by the group it describes
A parameter describes a population. A statistic is calculated from a sample and can estimate the corresponding parameter. Population goes with parameter; sample goes with statistic.
| Quantity | Population notation | Sample notation |
|---|---|---|
| Size | ||
| Mean | ||
| Proportion | ||
| Standard deviation |
Greek letters commonly name parameters, but the population proportion uses the Latin letter . Decide what the number describes before assigning its name or symbol.
A polling firm randomly selects 1,200 registered voters in a state. Of them, 660 approve of the governor. The population is all registered voters in that state; the sample consists of the selected voters. The sample approval proportion is:
The 55% is a statistic. The population proportion remains unknown because the poll did not question every voter. A precise calculation from the sample does not turn its result into a population parameter.
Describe the data, then infer beyond them
Descriptive statistics organize and summarize recorded data through tables, graphs, means, or percentages. Reporting that 55% of the sample approves is descriptive.
Inferential statistics use the sample to reach conclusions about the population and describe uncertainty, for example through a margin of error. Estimating statewide approval from the poll is an inference.
Different random samples can produce approval proportions of 0.55, 0.53, and 0.56. This sampling variability changes the statistic while the parameter for the same defined population stays fixed. Larger random samples generally give more precise estimates because their statistics vary less across samples.
When the population is much larger than the sample, precision depends mainly on the number sampled, not the fraction sampled. A random sample of 1,000 can estimate a proportion about as precisely in a city of 100,000 adults as in a country of 100 million. Population size becomes more relevant when the sample is a substantial fraction of it.
Key Takeaways
- Define the population by who, where, and when; identify the cases actually observed as the sample.
- A parameter describes a population; a statistic describes a sample.
- Descriptive statistics summarize data; inferential statistics extend conclusions to a population.
- Sampling variability changes sample statistics across repeated samples.
- For a population much larger than the sample, precision depends mainly on sample size.
2.2 Select a probability sample
A probability sample uses chance, with a known, nonzero selection probability for every population member. It needs a sampling frame: the list or source from which cases are chosen. A random method applied to an incomplete frame still leaves a coverage problem.
Choose a simple random sample
A simple random sample, or SRS, of size gives every possible group of that size the same chance. Label all cases, then let software select distinct labels. "Random people in a hallway" describes a convenient encounter, not a defined chance process.
To select 5 members from a club labeled 01–40, read the digits "71360 58912 36274 06318" in pairs:
- Skip 71: it is out of range.
- Keep 36 and 05.
- Skip 89, then keep 12.
- Skip the repeated 36, then keep 27 and 40.
The chosen members are 05, 12, 27, 36, and 40. Skipping repeated labels gives sampling without replacement, so no person is chosen twice. Sampling with replacement returns each chosen case to the pool. When the population is much larger than the sample, many results are nearly the same under either approach.
Use groups in two different ways
| Method | How groups are used | Main reason to use it |
|---|---|---|
| Stratified random | Draw a separate SRS within every stratum. | Ensure representation and improve precision when groups differ. |
| Cluster | Randomly select some clusters and include everyone within them. | Reduce travel and listing costs. |
A proportional stratified sample takes each group's population share. A college has 12,000 students: 7,200 undergraduates, 3,600 graduate students, and 1,200 professional students. Their shares are 60%, 30%, and 10%. For a sample of 300, the allocations are:
Select an SRS of the allocated size within each group. Stratification works especially well when members within a stratum are similar on the outcome but strata differ from one another.
For a cluster sample of an apartment complex, randomly choose 8 of its 80 buildings and interview every household in those buildings. Only a building list is needed initially. When neighbors resemble one another, the sample often carries less information than an SRS of the same number of households. Varied clusters that resemble small versions of the population are more useful.
Equal individual chances do not guarantee an SRS. In the college example, each student has selection chance 1/40, yet a sample of 300 undergraduates is impossible under the design. An SRS would allow that group.
Take regular steps after a random start
A systematic sample takes every th case, after a random start among the first positions. When population size is an exact multiple of sample size:
A start of 7 selects 7, 27, 47, 67, and so on through 1,187, giving 60 cases. This is not an SRS: adjacent positions can never both appear.
Check for cycles in the list. If every 20th apartment is a corner unit, that interval can select only corner units or none, depending on the start. With a uniformly random start and this exact interval design, the sample mean is still unbiased across all starts. The problem is that a single sample can be very unrepresentative, producing high variability.
Large surveys often use multistage sampling: choose counties, then blocks within counties, then households within blocks. Each stage needs its own documented chance selection. Selecting individual households within chosen clusters adds a sampling stage; it differs from including every household in a one-stage cluster sample.
Key Takeaways
- A probability sample gives every population member a known, nonzero chance.
- An SRS gives every possible sample of the specified size the same chance.
- Stratification selects within every group; one-stage cluster sampling includes everyone in selected groups.
- A systematic sample needs a random start and a check for repeating list patterns.
- Equal selection probabilities for individuals do not establish an SRS.
- Multistage designs select successively smaller groups.
- Without replacement means no case is selected twice.
3Tell observational studies from experiments
A study can reveal a relationship without showing what caused it. Start by asking whether researchers observed existing circumstances or assigned treatments, then look for other variables that could explain the comparison. Random sampling and random assignment answer different questions about what a result supports. Use both to judge whether a finding describes a wider population, supports a causal conclusion, or has narrower reach.
3.1 Classify a study as observational or experimental
Studies can compare groups without being experiments. To classify a study, identify how the groups arose and whether researchers imposed the conditions being compared.
Identify the two variable roles
The explanatory variable may explain or influence another variable. The response variable is the measured outcome. In a study of daily coffee intake and blood pressure, coffee intake is explanatory and blood pressure is the response. These names state the research question's direction; they do not establish that coffee caused a change.
An observational study records variables without assigning treatments. Surveys are observational. In an experiment, researchers deliberately impose treatments and measure the responses.
Consider two coffee studies. Researchers survey 2,000 adults about their coffee intake and record blood pressure. People already chose how much coffee to drink, so this is observational. In a second study, researchers randomly assign 60 volunteers to caffeinated or decaffeinated coffee for four weeks, then measure blood pressure. This is an experiment because researchers imposed the coffee conditions.
The location, equipment, and number of comparison groups do not decide the study type. Comparing smokers and nonsmokers in a laboratory remains observational if the researchers did not assign smoking. Random assignment strengthens an experiment, but an imposed treatment is what distinguishes an experiment from observation.
Read the direction of time
| Study description | How cases and time are organized |
|---|---|
| Retrospective | Look back at records or earlier behavior. |
| Prospective | Identify people, then follow events forward. |
| Case-control | Start with people who have an outcome and controls who do not; compare earlier exposures. |
| Cohort | Start with a group and compare later outcomes across exposure groups. |
A cohort can be prospective or retrospective. Following workers from today onward is prospective; using employment records to identify earlier exposures and subsequent outcomes is retrospective. For case-control studies, "cases" means the people with the outcome, a narrower use than the general data-table meaning of a case.
Observational methods are essential when treatment assignment would be unethical, such as assigning smoking, or impossible, such as assigning birth order. They also suit very long time spans and descriptive questions: an opinion poll aims to measure views as they exist.
Separate a relationship from its cause
Two variables are associated when knowing one tells you something about the other. If heavier coffee drinkers tend to have higher blood pressure, there is an association. Other differences between the groups could help explain it, so the association alone does not establish cause and effect.
An experiment creates a planned comparison. Random assignment then reduces systematic starting differences between the treatment groups, giving a stronger basis for a causal interpretation. Merely collecting more detailed measurements of self-selected groups does not create that assignment.
Key Takeaways
- Explanatory and response variables identify the proposed influence and measured outcome.
- An experiment imposes treatments; an observational study records existing circumstances.
- Case-control studies begin with outcome groups; cohort studies compare outcomes after exposures.
- A cohort study can use prospective follow-up or retrospective records.
- An association alone does not establish cause and effect.
3.2 Recognize confounding and lurking variables
A relationship between two variables may reflect a third variable. Look for differences that could affect both the explanatory variable and the response before deciding what a comparison means.
Find a common explanation
A lurking variable is outside the main explanatory and response variables but affects their relationship. A confounding variable is associated with the explanatory variable and affects the response, making their effects difficult to separate.
Ice cream sales and drowning deaths rise together in hot months. Hot weather increases ice cream purchases and swimming. Their shared seasonal cause explains the association; banning ice cream would not remove the swimming risk.
Supplement users may have less heart disease, but they may also exercise more, smoke less, and have higher incomes. The observed groups differ in several ways at once. Randomized trials of some supplements, including vitamin E, did not confirm the benefit suggested by observational comparisons.
Reverse causation gives another explanation. People who become ill may stop exercising. An association between low exercise and poor health can therefore partly arise because illness reduced exercise. Determine which change came first instead of assuming the question's explanatory variable must be the cause.
Work through a reversal
Hospital survival depends partly on patients' condition at admission. Compare these data:
| Hospital | Good condition | Poor condition | All patients |
|---|---|---|---|
| A | 98 of 100 survive: 98% | 720 of 900 survive: 80% | 818 of 1,000: 81.8% |
| B | 776 of 800 survive: 97% | 150 of 200 survive: 75% | 926 of 1,000: 92.6% |
Within good-condition patients, A has the higher survival rate, 98% versus 97%. Within poor-condition patients, A again has the higher rate, 80% versus 75%. Yet B's combined rate is higher.
Add survivors and patients separately to calculate each overall rate:
Hospital A treats mostly patients in poor condition, while B treats mostly patients in good condition. The combined rates weight these groups differently. A reversal between every within-group comparison and the overall comparison is Simpson's paradox. Averaging the two subgroup percentages equally would ignore the different numbers of patients.
Improve the comparison
Comparing like with like, such as patients in the same condition group, reduces confounding from measured variables. It cannot remove differences in variables that were never measured. Random assignment tends to balance both measured and unmeasured variables across treatments, making a well-run randomized experiment the strongest design for showing a treatment effect.
Observational evidence still matters. A causal case grows stronger when a relationship is strong, consistent across studies and groups, increases with exposure, follows the correct time order, and has a plausible mechanism. The smoking–lung cancer relationship was established through evidence of this kind. A single association and a body of converging evidence deserve different weight.
Key Takeaways
- A confounder is related to the explanatory variable and affects the response.
- A common cause or reverse causation can explain an association.
- Simpson’s paradox reverses the comparison when groups are combined.
- Combined rates depend on subgroup sizes as well as subgroup rates.
- Comparing measured groups can reduce confounding; unmeasured differences remain possible.
- Consistent observational evidence can help build a causal case.
3.3 Decide what a study's conclusions can claim
A study has two separate limits: who its results describe and whether it can identify a cause. Answer those questions by tracing selection into the study and assignment within it.
Trace the two chance processes
Random sampling determines who enters the study. A sound random sample supports generalizing results to the population from which it was drawn.
Random assignment determines who receives each treatment. It tends to balance other characteristics and supports a cause-and-effect comparison in a well-run experiment. It does not make participants a random sample of a wider population.
| Random sample? | Random assignment? | What the design supports |
|---|---|---|
| Yes | Yes | Causal conclusions that can generalize to the sampled population. |
| No | Yes | Causal conclusions for participants; extending them needs evidence about other groups. |
| Yes | No | Population associations, without a causal conclusion from the association alone. |
| No | No | Associations among the studied participants. |
This is the scope of inference. The sampling frame, response process, treatment delivery, and measurements must also be sound; a label such as "randomized" does not repair unrelated failures in the study.
Follow a volunteer experiment
A company recruits 200 employee volunteers. It randomly assigns 100 to standing desks and 100 to regular desks. After three months, the standing-desk group reports less back pain.
The assignment supports assessing whether the desks caused a difference for these volunteers. The recruitment does not establish that the volunteers represent all employees. People with back problems or strong interest in the desks may have been especially willing to join. Extending the result requires evidence that it applies to other employees.
Random assignment also leaves chance differences. A small outcome gap can occur even when the treatment has no effect. A causal finding needs a difference larger than random assignment alone would plausibly produce; statistical inference assesses that chance explanation. Assignment supplies the design basis for the claim, while analysis evaluates the observed evidence.
Follow a population survey
A random sample of 1,500 adults in a country finds that daily readers report higher life satisfaction. Random sampling supports extending that association to the country's adults. Reading was not assigned, so income, free time, health, or another factor could account for the relationship.
Increasing the sample makes the association more precisely measured. It does not untangle those explanations. A very large observational study still lacks random treatment assignment.
Many experiments in medicine and psychology recruit volunteers. Their findings can become relevant to wider groups when the participants resemble those groups and replications agree across settings. The practical question is whether the evidence travels to the people and conditions in the claim, not just how many people took part.
Key Takeaways
- Random sampling supports population generalization.
- Random assignment supports evaluating cause and effect.
- A volunteer experiment can support a causal comparison without establishing population representativeness.
- Chance outcome differences remain possible after random assignment.
- A larger observational sample does not remove confounding.
4Design a sound experiment
An experiment needs more than a treatment and an outcome. Its comparison groups, chance assignments, and measurement procedures must work together to separate the treatment effect from other differences. Learn to describe factors and treatments, choose completely randomized, block, or matched pairs designs, and explain how placebos and blinding improve a comparison. A good plan also anticipates what can be kept consistent and what cannot.
4.1 Name the parts and principles of an experiment
A sound experiment makes the treatment comparison clear and gives chance variation less room to hide it. Start by naming what receives treatment, what is changed, and what is measured.
Describe the pieces
An experimental unit is the person or object receiving a treatment. Human units are participants or subjects. A factor is an explanatory variable controlled by the experimenter; its levels are the values used. A treatment is one complete condition, including one level of every factor.
A garden experiment tests fertilizer at three levels, none, type A, and type B, and watering at two levels, low and high. The response is tomato yield in kilograms. There are:
"Type A with high watering" is one treatment. With 24 plots, assigning 4 plots to each treatment uses all plots. The plots are the experimental units; the tomatoes harvested from them are not additional independently assigned units.
Build a fair comparison
Four principles work together:
- Comparison: measure at least two treatment conditions. A control group receives a placebo, standard treatment, or no treatment and provides a reference for the new treatment.
- Random assignment: use chance to allocate units. This tends to distribute other characteristics across groups before treatment begins.
- Replication: apply each treatment to enough units to distinguish a treatment pattern from ordinary differences between cases.
- Control of other conditions: keep procedures, timing, instruments, and relevant surroundings consistent, except for the treatment differences being tested.
In the garden study, watering is intentionally varied because it is a factor. Soil and the yield-measurement procedure should be kept consistent. Controlling conditions means holding other influences steady; a control group is a comparison condition. These are different uses of "control."
Repair a confounded experiment
An instructor gives a new homework app to her 9 a.m. section and keeps the old method in her 2 p.m. section. A score difference could reflect the app, time of day, students' section choices, or different teaching enthusiasm. Treatment and section are bundled together.
A stronger plan randomly assigns students within both sections to the app or old method. Use the same exam and grading rules, and have grading done without knowing each student's method. Both methods now occur in each section, so section differences no longer fully determine the treatment comparison.
Measuring only the app group before and after would leave other explanations: students may improve through ordinary practice or the passage of time. A comparison group measured over the same period helps separate those changes from a treatment effect.
Interpret repeated evidence
Randomly assigned groups will still differ somewhat by chance. An observed gap supports a treatment effect when it is larger than chance assignment alone would plausibly produce. More experimental units make that comparison more precise; they do not repair a treatment that is always tied to a different classroom or measuring method.
Replication also means repeating a whole experiment with new participants or settings. Multiple units within one experiment address case-to-case variation; a new experiment checks whether the finding holds under new conditions.
Key Takeaways
- An experimental unit receives a treatment; a response is measured on it.
- A treatment is a complete combination of the factors’ levels.
- Comparison, random assignment, replication, and consistent conditions serve different purposes.
- A control group supplies a reference; controlling conditions holds other influences steady.
- A before-and-after change alone leaves explanations unrelated to the treatment.
- Replication can mean multiple units per treatment or a repeat of the entire experiment.
4.2 Randomize treatments with a suitable design
Random assignment needs a reproducible chance process. When a known characteristic strongly affects the outcome, use it to organize that process before treatments begin.
Randomize all units together
In a completely randomized design, assign all experimental units to treatments by chance. For 40 volunteers and two equally sized groups, label volunteers 01–40, have software select 20 different labels for the new treatment, and give the other 20 the standard treatment.
Identical slips bearing the volunteers' names, mixed thoroughly before drawing 20, can serve the same purpose. A coin flip for each person is also random assignment, but may produce unequal group sizes, such as 23 and 17. If equal sizes matter, select a fixed number of distinct labels instead.
Arrival order, researcher preference, and participant choice do not provide random assignment. Early arrivals may be more motivated, and volunteers who choose the new treatment may differ from those choosing the old one.
Randomize within blocks
A block groups units similar in a characteristic expected to affect the response. In a randomized block design, form those blocks first, then assign treatments randomly within each one.
A school tests a reading program with 60 students. Of them, 36 read at grade level and 24 read below grade level. Baseline reading level is likely to affect the final score.
- Form the two reading-level blocks.
- Randomly assign 18 grade-level readers to each program.
- Randomly assign 12 below-grade-level readers to each program.
- Compare programs within each reading-level block.
Each treatment now has both reading levels represented. Comparing within blocks removes much of the variability due to starting level. Giving all strong readers one program and all weaker readers the other would confound reading level with treatment.
Blocking works when the blocking characteristic matters for the response. An unrelated characteristic offers no precision gain. Blocks do not replace randomization, and the blocking characteristic is not the imposed treatment.
Match closely related observations
A matched pairs design uses blocks of two. Pair closely similar units and randomly assign one to each treatment. Alternatively, have each person receive both treatments in random order and compare their two responses.
Suppose 30 people taste two sports drinks. A coin flip decides which drink each person tastes first. Use each person's difference in ratings, which removes the variation between people who generally give high ratings and people who generally give low ones. Randomizing order helps prevent a consistent first-drink effect from favoring one drink.
Keep sampling and assignment separate
Stratification and blocking both group similar cases before using chance. Their roles differ:
| Process | Where it acts | What chance selects |
|---|---|---|
| Stratified sampling | Entry into a study | Members from every population group |
| Randomized blocking | Treatment allocation | Treatments within every block of units |
Choosing 20 people from each age group is stratified sampling. Assigning treatments separately within age groups of already recruited people is blocking. A study may use both at different stages.
Key Takeaways
- A completely randomized design assigns all units by chance.
- Randomly selecting fixed group sizes guarantees balance in numbers; independent coin flips do not.
- Blocking groups units by a relevant characteristic and randomizes within every block.
- Matched pairs compare closely matched units or two responses from the same person.
- Stratification governs selection; blocking governs assignment.
4.3 Use placebos and blinding
People's expectations can change both their experiences and how outcomes are judged. Placebos and blinding protect a treatment comparison from different parts of this problem.
Give the control group a comparable experience
A placebo resembles the active treatment but lacks its active ingredient. Examples include a sugar pill or a saline injection. A placebo effect is a change associated with receiving a treatment and expecting it to help, especially in self-reported outcomes such as pain or fatigue.
In a placebo-controlled experiment, both groups have a comparable treatment experience. The difference of interest is the active ingredient. A no-treatment group has a different experience and cannot separate the active ingredient's effect from the effect of expecting treatment.
State who knows the assignments
Blinding, also called masking, keeps people unaware of who receives which treatment. In a single-blind study, one party, usually participants, is unaware. In a double-blind study, both participants and the people interacting with them or assessing outcomes are unaware.
Two treatment groups alone do not make a study double-blind. Identify the roles that are blinded. Researchers who expect a treatment to work might offer extra encouragement, interpret a rash more favorably, or ask different follow-up questions. Blinding outcome assessors reduces these influences on measurement.
| Design feature | What it addresses |
|---|---|
| Placebo control | Effects of receiving a treatment and expecting benefit |
| Participant blinding | Different expectations about assigned treatment |
| Assessor blinding | Expectations affecting observation or judgment |
Read a real randomized comparison
The aspirin component of the Physicians' Health Study randomly assigned 22,071 male physicians in the United States to aspirin or placebo every other day in a double-blind design. Heart attacks occurred in 139 of 11,037 aspirin participants and 239 of 11,034 placebo participants.
Random assignment, a placebo comparison, and blinding support attributing the lower heart attack rate to aspirin in this group. The participants were male physicians, so extending the result to other populations is a separate question.
Choose feasible and ethical protection
Participants know whether they receive surgery or physical therapy, or whether they attend exercise sessions. Even when participant blinding is impossible, someone who scores a test or measures the outcome can often remain unaware of treatment assignments. Report the actual blinded roles.
An active control is an existing effective treatment used as the comparison. Use it when withholding effective care would expose participants to unacceptable harm. Placebo acceptability depends on the clinical situation and independent ethical review; a treatment's mere existence does not settle every case.
Key Takeaways
- A placebo makes the treatment experience comparable without supplying the active ingredient.
- Blinding participants and assessors addresses different expectation effects.
- Double-blind describes who is unaware, not the number of treatment groups.
- Outcome assessors can sometimes be blinded when participants cannot.
- An active control compares a new treatment with an effective existing one.
5Spot bias in how data were collected
Errors can enter before anyone answers a question, while a value is measured, or when a result becomes a headline. Trace each stage to see whose experience is missing and what might have pushed answers away from the truth. Learn to separate bias from random scatter and to judge the practical size of a reported change. A large sample and a narrow margin of error provide useful information only when you also understand how the data were produced.
5.1 Recognize bias in how a sample was chosen
A sample can be large and still give a misleading picture. Trace how cases became eligible, were selected, and actually responded to find the source of the problem.
Separate systematic error from random scatter
Bias is a method's systematic tendency to miss the truth in the same direction. Sampling variability is the random change from one sample to the next. On a dartboard, an off-center group of darts suggests bias; the spread of the darts represents variability.
A researcher can use a biased method without personal prejudice or dishonesty. Interviewing only midday shoppers may miss people who work then, even if the interviewer treats everyone fairly.
Locate who is missing
| Problem | How cases enter or leave the data |
|---|---|
| Undercoverage | The frame or selection process misses or poorly covers population groups. |
| Convenience sampling | Researchers take the easiest cases to reach. |
| Voluntary response | People choose themselves into an open poll or review process. |
| Nonresponse | Selected people cannot be reached or decline to respond. |
| Survivorship bias | Only cases that passed a selection process remain visible. |
A landline-only frame misses cell-phone-only households. That is undercoverage. Deliberately sampling a small group at a higher known rate is different: unequal selection probabilities can be accounted for in the analysis.
A convenience sample from one mall or a researcher's class may differ from the target population in relevant ways. In a voluntary response sample, people with strong views are especially likely to join, so open online polls and reviews can overstate those views.
Nonresponse occurs after selection. It biases results when the missing respondents differ from respondents on what is being studied. A low response rate raises concern but does not establish the size or direction of bias by itself.
Survivorship bias appears when a study of business success considers only surviving companies. Failed companies may have used the same supposedly successful strategies. Their absence changes the comparison.
Learn from a large failed poll
In 1936, the Literary Digest mailed about 10 million presidential ballots using lists drawn largely from telephone directories and automobile registrations. About 2.4 million came back:
It predicted Alf Landon would win with about 57% of the two-candidate vote. Franklin Roosevelt instead won about 61% of the popular vote. The list favored wealthier households during the Depression, and respondents differed from nonrespondents. Both frame coverage and the return process mattered; the huge response count did not make it representative.
Increasing sample size reduces sampling variability when the sampling process is sound. It does not bring omitted groups into the frame or give quieter people the same participation pattern as outspoken volunteers. A huge biased poll can estimate the wrong value with very little random scatter. Improve the selection and response processes before trusting a larger count.
Key Takeaways
- Bias is systematic error in a method; sampling variability is random sample-to-sample scatter.
- Undercoverage concerns the frame or selection process.
- Convenience and voluntary response samples can differ systematically from the population.
- Nonresponse creates bias when respondents and nonrespondents differ on the study variable.
- Survivorship bias omits cases that failed to remain visible.
- A larger sample does not remove selection bias.
5.2 Recognize bias in how responses were measured
Selecting the right people is only half the task. The process used to ask, measure, and record can systematically change the answers, even in a census.
Examine the question and setting
Response bias occurs when asking or recording responses pushes them away from the truth. A leading question steers an answer through its wording. Compare "Do you support the city spending tax money on a new stadium?" with "Do you support a new stadium that will bring jobs and visitors to the city?" Each highlights a different side of the project.
A double-barreled question asks about two things at once. "Are the cafeteria's food and service good?" cannot distinguish a person who likes the food but dislikes the service. Ask about each separately so the response has a clear meaning.
Several other influences can distort recorded answers:
- Social desirability: people overreport approved behavior such as voting or exercise and underreport behavior they expect others to criticize. Anonymous, self-completed responses often reduce that pressure.
- Interviewer effects: tone, reactions, or appearance influence answers. Consistent wording and trained delivery reduce variation between interviewers.
- Recall bias: memory differs in accuracy or detail between groups. People with an illness may search more thoroughly for earlier exposures than healthy controls do.
- Order effects: earlier questions or option positions shape later responses. Rotating order across respondents spreads this influence.
These mechanisms describe different problems. Choosing a random sample does not neutralize a leading question, and a neutral question cannot include people missing from the frame.
Check the measuring instrument
A scale that reads 1 kg too high each time has systematic measurement bias. A scale whose readings jump around has poor reliability, meaning repeated measurements disagree. The second problem adds scatter; the first shifts the measurements consistently.
Validity asks whether the method measures what it claims to measure. A reliable instrument can be consistently wrong, so repeatability alone is insufficient. Check calibration as well as agreement across repeated readings.
Interpret a margin of error
Sampling error arises from observing a sample instead of the entire population. Nonsampling error covers other failures, including undercoverage, nonresponse, response bias, faulty instruments, and recording mistakes.
A poll's reported margin of error, such as ±3 percentage points, addresses sampling variability under its sampling assumptions. It does not add an allowance for a leading question or hidden nonresponse bias. Those errors can move a result beyond the quoted range.
A census removes the need to estimate from a sample, but people can still misunderstand questions, refuse to answer, or have their values entered incorrectly. Determine which part of data collection failed before deciding what a larger sample or a different collection method would fix.
Key Takeaways
- Leading and double-barreled questions distort what a response means.
- Social pressure, interviewers, memory, and question order can affect answers.
- Reliability means agreement on repetition; validity means measuring the intended thing.
- A margin of error addresses sampling variability, not all data collection errors.
5.3 Judge a claim by how its data were produced
A statistical headline compresses a study into a claim. Check what was measured, how the data were obtained, and how far the conclusion extends before accepting that compression.
Trace the claim back to the design
Ask who conducted and funded the study, what population it concerns, how the sample was chosen, how many people responded, what was measured, and whether treatments were assigned. Then compare the claim with the study's scope of inference.
"Children who eat breakfast get better grades" reports an association if it comes from surveying parents. Income, sleep, or household routines could affect both breakfast and grades. A statement that breakfast causes higher grades goes beyond that observational comparison.
A website may report that 82% of 5,000 readers voted against a new law. The votes describe the people who chose to respond. They do not represent all members of the public or necessarily all readers. The response count supplies no missing chance-selection process.
If a supplement maker says 9 of 12 users felt more energetic after two weeks, ask what comparison was made. Without a control group and blinding, improvement could reflect expectations or changes over time. Random assignment, a suitable placebo control, blinding, and more participants would give a stronger test of the product's effect.
Funding from an interested company is a conflict of interest to examine, not a reason to discard every result. Look for a recorded plan, complete outcome reporting, and independent replication. An anecdote, such as a story about one long-lived smoker, cannot establish the population pattern on its own.
Put relative changes beside absolute changes
The aspirin study's heart attack rates were about 2.17% with placebo and 1.26% with aspirin. The absolute reduction subtracts the rates:
That is roughly 9 fewer heart attacks per 1,000 people over the study. The relative reduction divides the reduction by the comparison group's rate:
The 42% describes the fraction of the original risk removed. The 0.91 percentage points describes the difference in event rates. Both are useful, but they answer different questions. Saying "42 percentage points" would confuse a relative percentage with a subtraction of percentages.
A practical report states both rates, their absolute difference, the relative change, the population, and the time period. A relative reduction without a starting risk can make a small absolute change sound large.
Weigh weaknesses by their consequences
Ask which finding each weakness threatens. A convenience sample limits generalization; unblinded judgment can distort the measured response; a missing control group weakens a causal claim. Some flaws are more serious than others, and a detailed account lets you judge their likely effect. Technical language or a single impressive number cannot replace that account.
Key Takeaways
- Check selection, response, measurement, assignment, funding, and reporting against the claim.
- An observational association does not by itself justify a causal headline.
- An absolute risk difference subtracts rates; a relative change divides by the comparison rate.
- Report starting risks and time periods alongside relative changes.
- Judge a weakness by the conclusion it threatens.
6Apply ethical principles to research
Research depends on people trusting both the way they are treated and the way their information is used. Ethical choices begin with fair recruitment, understandable consent, and independent review, and continue through monitoring, storage, analysis, and reporting. Learn how participant protections and honest reporting address different risks, including hidden exclusions and selective findings. A signed form or an accurate individual number is only part of that work.
6.1 Protect the people in a study
A useful research question does not justify exposing people to unfair or unnecessary harm. Ethical design protects participants before recruitment, during the study, and when their data are reported.
Apply three principles
The Belmont Report, published in the United States in 1979, names three principles. Respect for persons protects informed, voluntary choices and gives extra protection to people with less ability to decide. Beneficence means reducing harm and seeking benefits. Justice means distributing research burdens and benefits fairly.
The World Medical Association's Declaration of Helsinki, first adopted in 1964 and revised in 2024, sets ethical principles for medical research internationally. Ethical standards guide both how a study obtains evidence and how it treats the people providing it.
Make consent an informed choice
Before joining, participants need to understand the study's purpose, activities, risks, possible benefits, and their freedom to decline or withdraw without penalty. Informed consent requires comprehension and a free choice, usually recorded in writing. A signature does not establish that a person understood the information or was free from pressure.
Children need protections suited to their age and ability: parental permission and the child's assent, an age-appropriate agreement. Prisoners and people with impaired decision-making ability also need additional protection. Recruitment must avoid pressure and rewards that overwhelm reasonable judgment.
An independent ethics committee assesses risks, selection, and consent before research begins. In the United States it is called an institutional review board, or IRB. Surveys and observational studies involving personal data also need appropriate ethical oversight; the required process depends on the study, and some qualify for exemption from full IRB review.
Protect identities and monitor harm
| Protection | What researchers can know |
|---|---|
| Confidentiality | They can link records to people but protect the link and do not disclose it in reports. |
| Anonymity | No one, including researchers, can link records to individuals. |
Removing names from a published report provides confidentiality if the researchers retain an identifying key. An online survey is anonymous only when identifying data cannot link responses to people. Patient-record studies are generally confidential, not anonymous.
Risks must be minimized and reasonable in relation to expected benefits. Independent monitoring boards watch large clinical trials and may recommend stopping early for clear benefit or harm. The aspirin part of the Physicians' Health Study stopped early after a clear reduction in heart attacks.
Recognize failures that rules address
The US Public Health Service's Tuskegee study ran from 1932 to 1972. It involved about 600 Black men in Alabama, about 400 with syphilis. Participants were not told their diagnosis, did not give informed consent, and were not offered penicillin after it became standard treatment in the 1940s. These were failures of respect, protection from harm, and fair treatment. Public exposure in 1972 helped prompt the National Research Act of 1974 and the commission that produced the Belmont Report.
Deception requires independent approval and a specific justification. In minimal-risk studies where a necessary part of the purpose is initially withheld, participants are debriefed afterward about the truth. Debriefing does not make coercion or disproportionate risk acceptable.
Key Takeaways
- Respect for persons, beneficence, and justice guide participant protection.
- Informed consent requires understanding and voluntary choice, not only a signature.
- An ethics committee independently evaluates the research plan.
- Confidential records can be linked to people; anonymous records cannot.
- Additional protections are needed when people have less freedom or ability to decide.
- Risks are monitored throughout a study, not just at its start.
6.2 Collect, analyze and report data honestly
A report can mislead even when its printed numbers are accurate. Honest research makes clear how data were obtained, which analyses were planned, and what decisions changed after results were seen.
Distinguish errors from misconduct
Fabrication means inventing data or results. Falsification means manipulating data, methods, or omissions so the research record becomes inaccurate. Plagiarism uses another person's words, ideas, or results without proper credit. Honest mistakes and reasonable differences of interpretation are not research misconduct.
Selective reporting, or cherry-picking, presents only favorable outcomes, groups, or periods. A researcher who measures 10 outcomes and reports only the one that shows a striking difference hides the context needed to interpret it. The report should identify all 10 outcomes and distinguish its main planned question from later discoveries.
See why repeated searches create false alarms
Suppose 20 independent comparisons are made when there are no real effects, each with a 5% false-alarm chance. The expected number of false alarms is:
This is an average across repeated investigations, not a guarantee of exactly one false alarm in each. The chance of no false alarms is the product of twenty 95% chances. Therefore:
Finding one striking result after many tries is much less persuasive than a report that makes it appear to be the only planned comparison.
P-hacking, also called data dredging, includes undisclosed choices such as trying many analyses and reporting only a favorable one, stopping collection when results look good, or adding observations until they do. Exploring data is useful for generating questions. The dishonest step is hiding those choices or presenting exploration as a planned test.
Make decisions visible
Preregistration records hypotheses, main outcomes, sample size, and analysis plans before the relevant results are known. Many clinical trials must register publicly in advance. A record of the plan lets readers identify changes and evaluate exploratory findings as exploratory.
Document data cleaning. A confirmed recording error or a participant who failed stated eligibility criteria can justify an exclusion. Report the reason and what was removed. Deleting inconvenient values to strengthen the desired conclusion is falsification. Where relevant, showing results with and without disputed exclusions reveals how much the conclusion depends on them.
Disclose conflicts of interest, including funding from the company whose product is being tested. Store data securely, remove identifying details before sharing, and honor the uses participants agreed to. Transparency about funding helps readers evaluate incentives; it does not replace sound design or complete reporting.
Key Takeaways
- Fabrication invents data; falsification distorts the record; plagiarism omits proper credit.
- Selective reporting can mislead even when individual numbers are correct.
- Many comparisons increase the chance of at least one false alarm.
- Label exploratory analyses and distinguish them from planned tests.
- Preregister plans, document exclusions, disclose conflicts, and protect shared data.
Types of Variables and Data examples
1Turn a data record into useful information
14 steps
- 1IntroductionStart with the record
A bike-share service records one row per rental: bike ID, payment type, ride duration in minutes, and a satisfaction rating. Before calculating, ask what each row describes and what each column means.
The same digits can be identifiers, measured amounts, or category codes. Their meaning determines whether averaging, ranking, or comparing ratios will answer a useful question.
- 2ExplanationFind the cases
Each row describes a rental, so rentals are the cases. A bike can appear in several rows because it can be rented more than once.
A variable is a characteristic recorded for each rental. Ride duration is a variable; a particular ride’s 18 minutes is one value. The bike ID identifies the rented bike, which is different from identifying the rental event.
- 3ExampleRecord units and methods
The duration column reads "Ride duration (minutes), calculated from checkout and return timestamps." That heading tells you the unit and how the value was obtained.
A rider’s estimate might differ from the timestamp calculation. If the question concerns actual checkout duration, mixing those methods without recording them makes the values harder to compare.
- 4ChallengeChoose the question’s data
The service asks how ride duration differs between weekday and weekend rentals. What must each rental record contain?
---reveal---
Record ride duration with its unit and enough date information to classify the rental as weekday or weekend. The question expects varying durations across rides, so it is statistical. A bike ID alone cannot supply either required variable.
- 5ExplanationRead labels as labels
Bike IDs such as 1042 and 1086 are categorical labels. Their average does not describe a typical bike characteristic. Payment type, such as "pass" or "single ride," is categorical too.
Ride duration is quantitative because its values measure time and support meaningful arithmetic. The test is what the values mean, not whether the screen displays digits.
- 6ExampleSeparate counts from duration
Number of rentals per bike per day is discrete: possible values are separate counts such as 0, 1, and 2. Ride duration is continuous: time can take values between whole minutes.
If the database rounds durations to the nearest minute, the entries become less precise. The underlying time measurement remains continuous.
- 7Key InsightUse binary codes carefully
Suppose four rental records code pass use as 1, 0, 1, and 1. The codes still describe a two-category variable.
Their mean is the pass-use proportion:
The sum counts the pass rentals. This useful coding relationship does not justify averaging arbitrary payment labels numbered 1, 2, and 3.
- 8ChallengeClassify the two records
A rental record includes the customer’s membership code and the number of bikes rented. How do the two variable types differ?
---reveal---
The membership code is categorical because it labels a membership. Number of bikes is quantitative and discrete because it counts bikes. A membership code written with digits does not become a measured amount.
- 9ExplanationAsk whether order is meaningful
Payment category has a nominal scale: no category naturally ranks above another. Satisfaction from "poor" through "excellent" is ordinal: it has an order, but no measured equal gaps.
Replacing those words with 1 through 4 preserves their order. It does not show that moving from poor to fair equals moving from good to excellent.
- 10ExampleTest a true zero
Ride duration has a ratio scale. Zero minutes means no elapsed duration, and a 24-minute ride lasts twice as long as a 12-minute ride.
The outdoor Celsius temperature recorded at rental has an interval scale. A 5-degree difference has meaning, but zero degrees is a reference point, so ratios of Celsius readings do not describe ratios of absolute temperature.
- 11ChallengeDecide what a code permits
A survey codes "poor," "fair," "good," and "excellent" as 1–4. Does the code establish that the gap from poor to fair equals the gap from good to excellent?
---reveal---
No. These remain ordered categories, so the code establishes ranking, not equal distances. A median can describe the ordered responses without requiring equally spaced satisfaction levels.
- 12ConnectionMatch the summary to the scale
Use counts or proportions for payment categories. A distribution of ride durations can support a mean or median because duration measures an amount. A single satisfaction rating supports ordering, but its code alone does not establish equal intervals.
Choosing a summary begins with the measurement scale; a calculator will average codes even when that average has no useful meaning.
- 13ChallengeRead the full record
A service replaces exact durations with "under 15 minutes," "15–29 minutes," and "30 minutes or longer." How does the recorded variable change?
---reveal---
It becomes an ordered categorical variable. The groups preserve some time order but lose exact duration: 16-minute and 28-minute rides now have the same recorded value. Their original continuous times cannot be recovered from the category.
- 14RecapA quick data-reading check
For a new column, ask: What case does it describe? Is the entry a label, count, or measurement? What unit and method were used? Does its scale support order, differences, or ratios? These questions lead to a defensible choice of summary.
2Select a sample you can explain
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionDefine the group before selecting
- 2ExplanationName the unknown and the estimate
- 3ExampleCalculate the observed share
- 4ChallengeSeparate the two proportions
- 5Key InsightUnderstand what a larger sample changes
- 6ExplanationCheck the frame
- 7ExampleDraw distinct random labels
- 8ExplanationRepresent every group
- 9ChallengeIdentify the grouped method
- 10ExampleCalculate a regular interval
- 11TipInspect the list’s cycles
- 12Key InsightEqual chances are not the whole SRS rule
- 13ConnectionRecognize multiple stages
- 14ChallengeExplain the complete plan
- 15RecapAudit the sampling route
3Decide what a study can claim
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTrace a flexible-work claim
- 2ExplanationFind the influence and outcome
- 3ChallengeIdentify who chose
- 4ConnectionTime direction is a separate feature
- 5ExplanationLook for a common influence
- 6ExampleConsider the opposite direction
- 7ExampleCalculate within relevant groups
- 8Key InsightCombine the counts
- 9ChallengeExplain why the headline changes
- 10ExplanationSeparate selection from assignment
- 11ExampleRecruit volunteers, then randomize
- 12ChallengeSet the reach of the result
- 13ChallengeChange one stage of the design
- 14RecapMatch the verb to the evidence
4Build a fair equipment experiment
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionPlan the comparison before collecting
- 2ExplanationName the experimental pieces
- 3ExampleCount complete conditions
- 4ExplanationKeep comparison conditions consistent
- 5ChallengeFind the bundled difference
- 6ExplanationBegin with a chance allocation
- 7ExampleUse experience to form blocks
- 8ChallengeCheck the within-block step
- 9ConnectionConsider each person as a pair
- 10Key InsightDistinguish recruitment from allocation
- 11ExplanationBlind the outcome assessment
- 12ConnectionUse a placebo when expectations matter
- 13ExampleSpecify who is blinded
- 14ChallengeChoose a defensible control
- 15ChallengeAssemble the scanner plan
- 16RecapInspect the experiment’s weak point
5Audit a poll and a reported effect
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow the evidence into the headline
- 2ExplanationIdentify the route into the poll
- 3ChallengeDistinguish missing answers from an open invitation
- 4AnalogyRecognize scatter and displacement
- 5ExampleRead the actual wording
- 6ExplanationCheck the interview setting
- 7ChallengeInterpret the quoted uncertainty
- 8Key InsightRepeatability is not accuracy
- 9ExampleCalculate an absolute change
- 10ExampleCalculate the relative change
- 11ChallengeCatch a misleading conversion
- 12ChallengeJudge the sponsor’s claim
- 13RecapLocate the source of uncertainty
6Protect participants and keep findings honest
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionReview the study before recruitment
- 2ExplanationApply the Belmont principles
- 3ExampleMake refusing a real choice
- 4ChallengeCheck the identifying link
- 5ConnectionKeep protection independent
- 6ExplanationPlan what will be analyzed
- 7ExampleDistinguish cleaning from distortion
- 8Key InsightAccount for all searches
- 9ChallengeReport the unexpected pattern
- 10TipDistinguish the misconduct terms
- 11ChallengeEvaluate both kinds of protection
- 12RecapCheck the complete research process
Types of Variables and Data practice questions
Set 1: Read data and recognize a sound study10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Apply sampling and experimental comparisons10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Choose methods and diagnose weak evidence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Evaluate the reach and quality of conclusions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Integrate design decisions and research claims10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute risk reduction
Active control
Anecdote
Anonymity
Assent
Association
B
Beneficence
Bias
Binary variable
Blinding
Block
C
Case
Case-control study
Categorical variable
Census
Cluster sample
Cohort study
Completely randomized design
Confidentiality
Conflict of interest
Confounding variable
Continuous variable
Control group
Convenience sample
D
Data
Debriefing
Deception
Descriptive statistics
Discrete variable
Double-barreled question
Double-blind study
E
Experiment
Experimental unit
Explanatory variable
Exploratory analysis
F
Fabrication
Factor
Falsification
I
Inferential statistics
Informed consent
Institutional review board
Interval level
Interviewer effect
J
Justice
L
Leading question
Level
Lurking variable
M
Matched pairs design
Mode
Multistage sampling
N
Nominal level
Nonresponse
Nonsampling error
O
Observational study
Order effect
Ordinal level
P
P-hacking
Parameter
Placebo
Placebo effect
Plagiarism
Population
Preregistration
Probability sample
Prospective study
Q
Quantitative variable
R
Random assignment
Random sampling
Randomized block design
Ratio level
Recall bias
Relative risk reduction
Reliability
Replication
Respect for persons
Response bias
Response variable
Retrospective study
Reverse causation
S
Sample
Sampling error
Sampling frame
Sampling variability
Sampling without replacement
Scope of inference
Selective reporting
Simple random sample
Simpson’s paradox
Single-blind study
Social desirability bias
Statistic
Statistical question
Statistics
Stratified random sample
Stratum
Survivorship bias
Systematic sample
T
Treatment
U
Undercoverage
V
Validity
Value
Variability
Variable
Voluntary response sample
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.