1. Home
  2. Explore
  3. Statistics
  4. Statistics and Measurement Scales

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Statistics and Measurement Scales

Introduction to Statistics: Study Notes

1. What Statistics Is and How Data Are Described

Definitions and purpose

Statistics is the study of how to collect, organize, analyze, and interpret numerical information and data. It is also described as both the science of uncertainty and the technology of extracting information from data.

Statistical analysis does not eliminate uncertainty. Instead, it uses data to make decisions when outcomes cannot be known with certainty. For example, restaurant ratings may suggest that a restaurant will be enjoyable, but they cannot guarantee a particular customer’s experience. In healthcare and public health, statistical evidence helps guide decisions despite similar uncertainty. Public health agencies, for instance, study influenza viruses to help decide which strains to include in a future vaccine. Their choices are evidence-informed, but they cannot guarantee that a vaccine will work equally well in every situation.

Statistics therefore helps answer two related questions:

  • What should be done?

  • How can available evidence help determine what should be done?

Individuals and variables

In statistics, individuals are the people or objects included in a study. An individual is not necessarily a person. Depending on the study, individuals might be:

  • Patients, animals, or other research participants

  • Hospitals, clinics, or healthcare programs

  • Geographic areas, such as states

A variable is a characteristic of an individual that is measured or observed. A study of hospitals might measure each hospital’s rate of nosocomial infections or its in-hospital mortality rate. A study of patients might measure blood pressure, diagnosis, or age.

A study is planned partly by identifying the individuals of interest and deciding which variables to measure about them.

Populations, samples, and data

A population is the complete group of people or objects that share a defined theme and are under consideration. The exact wording of the theme determines who belongs to the population. For example, “nurses employed at a particular hospital” and “nurses who belong to a professional association” describe different populations.

A sample is a subset of a population. It is smaller than the population, but it may or may not represent the population well. A sample consisting only of intensive-care nurses, for example, would be a biased basis for describing all nurses at a hospital. A sample that includes nurses from multiple departments may be more representative.

  • Population data include data from every individual in the population. Collecting data from every member is called a census.

  • Sample data include data from only some individuals in the population. Using a sample usually requires less time and effort than conducting a census.

Parameters and statistics

A parameter is a numerical measure describing an entire population. A statistic is a numerical measure describing a sample.

A population parameter describes the population; a sample statistic describes the sample.

A mean age calculated from every person in a population is a parameter. A mean age calculated from only surveyed members of that population is a statistic. In everyday speech, the word statistic is sometimes used loosely for either kind of number. In statistical work, it is important to identify whether a measure comes from a population or a sample.

A common notation convention is:

  • NNN denotes a population size.

  • nnn denotes a sample size.

  • For example, N=25N = 25N=25 indicates a population of 25 individuals, while n=25n = 25n=25 indicates a sample of 25 individuals.

Government data covering a whole population can sometimes produce parameters. Surveys and studies that collect data from only some members produce statistics. A sample statistic can be used to draw conclusions about its population, but uncertainty remains.

Descriptive and inferential statistics

Descriptive statistics organize, summarize, or display information from either a population or a sample. Examples include making charts or calculating summary measures to describe the data that have been collected.

Inferential statistics use information from a sample to draw conclusions about a population. Because a sample does not contain every member of its population, conclusions drawn from it are indirect and uncertain.

This distinction matters because a descriptive summary can be made from either population data or sample data, while statistical inference uses sample information to make claims about a population.

Classifying variables and levels of measurement

Variables are first classified as quantitative or qualitative.

  • A quantitative variable is a numerical measurement. Examples include systolic blood pressure, platelet count, and certain measures of time. A useful informal test is whether calculating a mean would be meaningful.

  • A qualitative variable describes a category, label, or characteristic. Examples include country of origin and type of health insurance.

A variable does not become quantitative merely because its categories are written as numbers. Cancer stages and trauma-center levels, for example, may use numbers as labels, but those numbers represent categories rather than measurements.

Quantitative variables can be further classified as interval or ratio. Both have meaningful differences between values. Their key distinction is whether the variable has a true zero.

  • Interval data have meaningful differences between values but no true zero. Calendar years are one example: a difference of one year has a consistent meaning, but the year numbering does not represent an absence of time.

  • Ratio data have meaningful differences and a true zero, indicating none of the quantity being measured. Blood pressure and platelet count can be zero, even though such values may be incompatible with life.

The difference between categories is another way to distinguish a qualitative variable from a quantitative one. Numbered job levels may be qualitative if the steps between levels do not represent equal, meaningful quantities. The numbers are then labels, not measurements.

Qualitative variables can be classified as nominal or ordinal:

  • Nominal data consist of categories that have no natural order. Examples include country of origin and type of health insurance.

  • Ordinal data consist of categories with a natural order, but the differences between successive categories are not measurable or consistently meaningful. Cancer stages are an example: the stages can be ordered, but the difference between one pair of stages is not necessarily equivalent to the difference between another pair.

A practical classification sequence is:

  1. Decide whether the variable is quantitative or qualitative.

  2. If quantitative, decide whether it is interval or ratio by checking for a true zero.

  3. If qualitative, decide whether its categories have a natural order. If they do, it is ordinal; if not, it is nominal.


2. Sampling: Frames, Errors, and Methods

Why sampling is used

A sample is often used because collecting data from an entire population would be impractical, expensive, or time-consuming. A well-designed sample can provide useful information about a population while requiring fewer resources than a census.

Sampling frame and undercoverage

A sampling frame is the list or defined set of individuals from which a sample is selected. It might be a concrete list, such as a student register, or a theoretical set, such as everyone who presents to an emergency department during a specified period.

The sampling frame should include the members of the population who could appropriately be selected for the study. Undercoverage occurs when some population members are omitted from the sampling frame. For example:

  • A staff list may omit temporary employees.

  • A student list may not yet include newly enrolled students.

  • A list of emergency-department patients may cover only daytime visits, even though the intended population includes patients at all hours.

A sample selected from an incomplete frame cannot represent population members who had no chance of being selected.

Sampling error and nonsampling error

Sampling error is the natural difference between a sample measure and the corresponding population measure. A sample mean will generally differ from the population mean, and a sample percentage will generally differ from the population percentage. This is an unavoidable consequence of sampling, not necessarily a mistake.

Nonsampling error is an error introduced by problems in the study process. It can result from:

  • A poor or outdated sampling frame

  • Undercoverage or duplicate entries

  • Poor sample design

  • Sloppy data collection

  • Inaccurate measurement instruments

  • Bias or other problems introduced by researchers

Sampling error is an ordinary feature of using a sample. Nonsampling error is a problem researchers should try to prevent. A simulation is a numerical representation of a real-world process; for example, repeatedly drawing samples from known population data can illustrate how sample means vary from the population mean.

Simple random sampling

A simple random sample of size nnn is selected so that every possible sample of size nnn from the population has an equal chance of selection.

Two common ways to carry out simple random sampling are:

  1. Randomly draw unique identifiers. Start with a complete, accurate list, assign each individual a unique identifier, and select identifiers randomly—for example, by drawing slips of paper from a container.

  2. Generate random numbers. Assign each individual a unique random number, sort the list by those numbers, and select the required number of individuals from the resulting order.

Both methods depend on having a suitable sampling frame. A list that is incomplete, outdated, or inaccurate can cause nonsampling error even if the selection from the list is random.

Simple random sampling works well when a reliable list exists. It is difficult to use when the population members are not known in advance, such as patients who will arrive at an emergency department during an upcoming period.

Stratified sampling

In stratified sampling, the population is divided into distinct subgroups called strata, and a simple random sample is then selected from each stratum.

The strata are based on a specified characteristic, such as grade, department, age group, income range, or geographic setting. Every individual must be assigned to one stratum. The method is useful when the researcher wants to ensure representation from groups that a simple random sample might miss, particularly a small but important group.

For example, a school survey might sample students from each grade rather than risk obtaining too few students from a smaller grade. A hospital survey might sample providers from each department so that a small department is not omitted.

Stratified sampling has limitations:

  • The population must be divided into strata before sampling.

  • The researcher needs enough information to assign individuals to the correct stratum.

  • Sampling the same number from a small stratum and a large stratum can overrepresent the smaller group in the sample. Further statistical adjustment may be needed to return estimates to the population’s proportions.

Systematic sampling

In systematic sampling, individuals are placed in an order, a random starting point is chosen, and then every kkkth individual is selected. The value of kkk determines the selection interval.

For example, a researcher might choose a random starting patient and then invite every third eligible patient who arrives. The method can be used with an existing list or with a naturally ordered flow of individuals, such as people entering a clinic.

Systematic sampling is relatively easy to carry out, but it can be distorted if the order has a repeating pattern. This is called periodicity. If the selection interval repeatedly matches a pattern in the population—for example, if every selected day has a different kind of patient flow—the sample may be biased.

Cluster sampling

Cluster sampling is useful when geography is central to the research question, such as investigating a possible health effect associated with a factory or other fixed location.

The general process is to:

  1. Divide the relevant geographic area into clusters.

  2. Randomly select some of those clusters.

  3. Collect data from the individuals within the selected clusters.

This method can be practical when the researcher needs to study people in particular locations. However, people who live in the same area may resemble one another in ways relevant to the study. Their shared characteristics can make it difficult to separate the effect of the geographic factor under investigation from other factors associated with the area.

Convenience sampling

Convenience sampling uses individuals who are readily available. Examples include surveying patients in a waiting room, students in a class, or people who attend a health fair.

It may be appropriate when resources are limited, when a question is low risk, or when other sampling methods are not feasible. Its principal limitation is bias: the available group may differ substantially from the population of interest. It may also omit important subpopulations. Convenience samples therefore should not be treated as representative without good reason.

Multistage sampling

Multistage sampling combines different sampling methods across successive stages. A large study might:

  1. Select geographic regions or states.

  2. Select counties within those regions.

  3. Select schools within counties.

  4. Select classrooms or individuals within schools.

Large government surveys may use multiple stages to draw a manageable sample that represents a broad population. The National Health and Nutrition Examination Survey is an example: it samples counties, areas within counties, households, and then individuals within households.


3. Planning Studies, Bias, and Experiments

Steps in conducting a statistical study

A statistical study is planned in a sequence so that the data collected can answer the research question.

  1. State the hypothesis or research question. This defines what the study is intended to examine.

  2. Identify the individuals of interest. The researcher must specify exactly who or what is being studied.

  3. Specify the variables to measure. The chosen variables should relate to the hypothesis.

  4. Choose between a population and a sample. If the whole population is available and appropriate, it may be used; otherwise, a sample is selected and a sampling method chosen.

  5. Consider ethical concerns before collecting data. This includes privacy, burden, risk, and the invasiveness of procedures.

  6. Collect the data.

  7. Use descriptive or inferential statistics to address the hypothesis.

  8. Report the findings and limitations. Reports should note concerns about data collection or analysis and make recommendations for future studies.

The sequence matters. If researchers begin collecting data before clarifying the hypothesis, individuals, and variables, they may not know whether they collected the information needed to answer the question.

Ethics and human participants

Research involving people may require approval from an ethics board. In the United States, an Institutional Review Board (IRB) reviews studies involving human participants. Depending on the study, participants may need to provide informed consent. Research involving children may require a parent’s consent as well as the child’s assent.

Ethical considerations can affect the study design, especially when research involves sensitive questions, invasive procedures, pain, or other burdens.

Experiments and observational studies

An experiment is a study in which the researcher deliberately assigns a treatment or intervention to individuals or other units. The aim is to examine the possible effect of that intervention on measured variables.

An observational study does not assign a treatment or intervention. The researcher measures or observes what participants do or experience naturally. For example, a study may ask participants about a medicine they already take without instructing them to start, stop, or change it.

A study may include both types of research. One part may assign a treatment, while another part observes participants who do not qualify for the experiment.

Replication

Scientific studies should be conducted rigorously enough that other researchers can reproduce the methods. Replication means carrying out a study again, using the same or comparable procedures, to see whether the findings are consistent. Replication helps science distinguish reliable results from findings that may be due to chance, study limitations, or errors.

Survey bias and response problems

Survey design and administration can introduce bias even when the sampling plan is sound.

Nonresponse

Nonresponse occurs when someone selected or invited to participate does not complete the survey. If many people refuse, the respondents may differ from nonrespondents in ways related to the topic. A low response rate can therefore produce a biased picture.

Researchers should consider who is not responding and whether the missing opinions or experiences might differ from those of respondents. Nonresponse is especially concerning when the topic is sensitive or when people’s willingness to respond may depend on their experience.

Inaccurate or dishonest answers

Respondents may:

  • Deliberately give inaccurate answers to personal or sensitive questions.

  • Be unable to recall an answer accurately.

  • Provide an estimate when they do not know the answer.

A survey should not assume that respondents know information they are unlikely to remember or that they will answer sensitive questions truthfully.

Recall bias occurs when memory of an earlier event is inaccurate or influenced by events that occurred afterward. People may remember past experiences differently from how they would have described them at the time.

Question wording and order

Question wording can make assumptions or steer people toward a particular answer. A question that assumes a person uses an application, for example, should provide an option for someone who does not use it. Questions about one topic may also influence responses to later questions, so the order of questions matters.

Response scales should fit the range of people’s possible answers. A scale with too few options may fail to capture meaningful differences; a scale with too many or poorly chosen options may be difficult to use.

Vague terms can be clarified with specific time frames, numbers, or definitions. If a concept must remain somewhat vague, grounding language can help respondents interpret it more consistently.

Interviewer influence

An interviewer can influence responses through verbal and nonverbal behavior, including tone, appearance, clothing, or interview setting. The match between interviewer and participant may also affect responses. Researchers should consider these influences when assigning and training interviewers.

Lurking variables

A lurking variable is a variable associated with the variables being studied that may help explain their apparent relationship, even if it is not the main focus of the study. It may be associated with a condition without directly causing it.

For example, ice-cream sales and the number of murders may both increase during warm weather. Warm weather is a lurking variable that helps explain why the two measures might rise together; the association does not establish that ice cream causes murders.

When plausible lurking variables exist, researchers should consider measuring them. Otherwise, an apparent relationship may be attributed to the wrong cause.

Randomization in experiments

Randomization assigns participants to treatment groups by chance rather than by researcher choice. It can reduce selection bias and tends to distribute both known and unknown lurking variables more evenly across groups.

A randomized experiment commonly proceeds as follows:

  1. Recruit eligible participants after appropriate ethical review.

  2. Measure relevant baseline variables, including the outcome of interest and possible confounders.

  3. Randomly assign participants to treatment groups.

  4. Give each group its assigned treatment or comparison condition.

  5. Measure the outcome again after the relevant period.

A confounder is a variable that could affect the relationship between the treatment and the outcome. Measuring relevant confounders before treatment helps researchers understand the groups and evaluate the results.

Placebos and the placebo effect

A placebo is an inactive or sham treatment used as a comparison condition. A placebo should resemble the real treatment closely enough that participants cannot easily tell which one they received.

The placebo effect is a response that occurs because participants believe they are receiving treatment, rather than because of the treatment’s active ingredient. A control group receiving a placebo helps researchers separate the effect of the active treatment from effects associated with expectations or participation.

For interventions that cannot be replicated with a pill, researchers may use a sham procedure or an attention control. A control condition must be ethically appropriate. If an effective treatment is already available, withholding treatment may not be acceptable; a new treatment may instead be compared with existing treatment.

Blocked randomization and blinding

Blocked randomization helps maintain balance between treatment groups for characteristics the researchers particularly want to keep evenly distributed, such as sex or smoking status. Participants are grouped into blocks based on those characteristics, and the blocks are then randomized to treatment groups. The method can become complicated when many characteristics or uncommon categories must be balanced.

Blinding means deliberately keeping one or more people unaware of treatment assignment to reduce bias in reporting or assessment. In a double-blind study, both participants and study staff do not know the assignments. Other people involved in assessment may also be kept unaware of one another’s findings.

Studies need procedures for urgent situations in which treatment information must be revealed. This is called unblinding.


4. Organizing and Displaying Quantitative Data

Frequency tables

A frequency table organizes quantitative data by listing classes and the number of data values in each class.

  • A class is an interval of data values.

  • The lower class limit is the smallest value included in a class.

  • The upper class limit is the largest value included in a class.

  • The class width describes how wide the class is.

  • The frequency is the number of data values that fall in that class.

Classes are generally chosen to have consistent widths. In practice, researchers may use class limits that are customary in their field so that results can be compared with other studies. A formula-based class width can also be used:

  1. Find the maximum and minimum data values.

  2. Subtract the minimum from the maximum.

  3. Divide the result by the desired number of classes.

  4. Round up to the next whole number to obtain a class width.

  5. Choose class limits that cover the data.

The class limits must include every data value, and each value must be counted exactly once. The frequencies should add up to the total number of observations.

A relative frequency is the proportion of the sample in a class. If fff is the frequency in a class and nnn is the sample size, then

Relative frequency=fn.\text{Relative frequency} = \frac{f}{n}.Relative frequency=nf​.

Relative frequencies can be expressed as proportions or percentages. They are useful for comparing groups of different sizes because they show the share of each group in each class, not merely the number of observations.

Stem-and-leaf displays

A stem-and-leaf display organizes quantitative data while preserving the individual values. The stem contains the leading digit or digits, while each leaf contains the remaining digit or digits.

To construct one:

  1. Identify the stems needed to cover the data.

  2. Read each data value and place its leaf beside the appropriate stem.

  3. Include a stem even if no data value falls on it, so that the display retains the correct sequence.

  4. Check that each value has been included once.

For example, a value such as 474747 could have a stem of 444 and a leaf of 777. A value such as 105105105 may require a stem of 101010 and a leaf of 555, depending on how the display is defined.

Leaves may initially be entered in the order the values are encountered. This is an unordered leaf. They may then be rearranged from smallest to largest to form an ordered leaf. An ordered display can make it easier to inspect the data and construct a frequency table.

Compared with a frequency table, a stem-and-leaf display can be faster to create because it does not require the researcher to decide class limits first.

Frequency histograms and distributions

A frequency histogram is a particular kind of bar chart used for quantitative data. It displays the classes along the horizontal axis and the frequencies along the vertical axis. A relative frequency histogram uses relative frequencies on the vertical axis instead.

A histogram is made from a frequency table. The pattern of its bars can reveal the distribution, or overall shape, of the data. A relative frequency histogram has the same general shape as the frequency histogram for the same data and is especially useful for comparing groups with different sample sizes.

Five common distribution shapes are:

  • Normal distribution: a roughly symmetrical, mound-shaped pattern with one central peak.

  • Uniform distribution: bars are approximately equal in height.

  • Skewed left: the distribution has a longer tail toward smaller values.

  • Skewed right: the distribution has a longer tail toward larger values.

  • Bimodal distribution: the distribution has two peaks.

A histogram can also reveal potential outliers: values that are unusually different from most other values. A large gap between a small group of values and the main body of the data can signal possible outliers. However, a value that appears unusual may be genuine, so it should be investigated rather than automatically removed.

Cumulative frequency

Cumulative frequency is the running total of frequencies as classes are added in order. The cumulative frequency for a class includes the frequencies of that class and all earlier classes. It never decreases as the classes progress.

A graph of cumulative frequency is sometimes called an ogive. It typically rises as classes are added and ends at the total number of observations. Cumulative frequency and relative frequency serve different purposes: cumulative frequency tracks the running number of observations, while relative frequency shows a class’s proportion of the sample.


5. Other Graphs and Choosing a Display

Time-series graphs

A time-series graph displays measurements of the same variable over time. The time periods appear on the horizontal axis, and the measured variable appears on the vertical axis. The same variable should be measured at regular intervals.

Time-series graphs are useful for identifying trends, changes, peaks, and possible outbreaks. Multiple data sets can be shown on one graph to compare their patterns, provided a legend makes the lines distinguishable.

Bar graphs

A bar graph can display qualitative or quantitative data. Its bars should have consistent widths and spacing, and a consistent measurement scale should be used for all bars. Bars may be vertical or horizontal.

The length of each bar represents a frequency or percentage. A bar graph should include a useful title, labels, and units of measurement. A clustered bar graph displays more than one bar for each category, allowing comparisons between groups; a legend is needed to identify the different sets of bars.

The vertical scale affects how dramatic differences appear. A shortened scale can exaggerate differences, while an unnecessarily tall scale can make differences look small. The scale should be chosen and presented carefully, and comparisons should use consistent scales.

A histogram is a special kind of bar graph: it is used for quantitative classes and displays frequency or relative frequency. Ordinary bar graphs do not have those same requirements.

A Pareto chart is a special bar graph in which categories are arranged from highest frequency to lowest. It can help identify the most frequent problems or events. In healthcare, raw counts can be difficult to interpret without context such as the population size and observation period.

Pie charts

A pie chart, also called a circle graph, displays mutually exclusive categories: every individual must belong to exactly one category. It can display qualitative categories or classes of quantitative data.

To construct a pie chart by hand:

  1. Find the total frequency.

  2. Calculate each category’s relative frequency.

  3. Multiply each relative frequency by 360∘360^\circ360∘ to determine its angle in the circle.

  4. Draw and label each sector.

A pie chart is not appropriate when respondents can select several answers. For example, a question asking people to select every color they like does not create mutually exclusive categories. A bar graph is more suitable because one person may contribute to several categories.

Pie charts are easier to create with graphing software. Labels should make the categories and their proportions clear.

Choosing and labeling graphs

The choice of graph depends on the data and the goal:

  • Use a histogram or stem-and-leaf display to inspect a quantitative distribution and possible outliers.

  • Use a time-series graph to examine change over time.

  • Use a bar graph to compare categories or groups.

  • Use a pie chart only when categories are mutually exclusive.

Every graph should be easy to interpret without relying on assumptions. It should have a clear title, labeled axes where appropriate, units of measurement, readable text, and a suitable scale. Too many lines, categories, or tiny labels can make a graph difficult to read.


6. Measures of Central Tendency

Measures of central tendency summarize where quantitative data tend to be centered. The three main measures are the mode, median, and mean. They describe different aspects of a data set and may differ from one another.

Mode

The mode is the value that occurs most frequently. A data set may have:

  • One mode

  • More than one mode

  • No mode, if no value occurs more often than the others

The mode identifies the most common or popular value, but it can change easily when a small number of observations change. It is therefore not resistant to unusual values, and it is not as widely used in healthcare summaries as the mean or median.

Median

The median is the middle value after the data are ordered from smallest to largest. Half the values are at or below the median and half are at or above it. It is also the 50th percentile.

  • For an odd number of values, the median is the single middle value.

  • For an even number of values, the median is the mean of the two middle values.

For an odd number of observations, the position of the median can be found using

n+12.\frac{n+1}{2}.2n+1​.

For an even number of observations, the middle position lies halfway between the two central observations. For example, if there are 100100100 ordered values, the median is the mean of the values in positions 505050 and 515151.

The median is resistant to unusually high or low values because it depends on the middle position, not on the magnitudes of the extremes.

Mean

The sample mean is calculated by adding all the sample values and dividing by the sample size:

xˉ=∑xn.\bar{x} = \frac{\sum x}{n}.xˉ=n∑x​.

Here, ∑x\sum x∑x means the sum of all values, xˉ\bar{x}xˉ is the sample mean, and nnn is the sample size.

The population mean is denoted by μ\muμ and uses the population size NNN:

μ=∑xN.\mu = \frac{\sum x}{N}.μ=N∑x​.

The mean uses every value in the data set, but it is sensitive to unusually high or low observations. A few outliers can pull it away from the center of most of the data.

Trimmed means and weighted averages

A trimmed mean is calculated after removing a specified proportion of the lowest and highest observations. For example, a 5% trimmed mean removes 5% of the observations from each end, then calculates the mean of the remaining data. Trimming can reduce the influence of extreme values, but it also discards data and must be reported clearly.

A weighted average gives different values different contributions to the final mean. If xix_ixi​ is a value and wiw_iwi​ is its weight, then

xˉw=∑xiwi∑wi.\bar{x}_{w} = \frac{\sum x_i w_i}{\sum w_i}.xˉw​=∑wi​∑xi​wi​​.

For example, course components may count for different percentages of a final grade. The weighted average accounts for those differences. If the weights add to 111, the denominator is already 111.

Means, medians, and distribution shape

For a normal, symmetrical distribution, the mean, median, and mode are at or near the same central location.

In a skewed distribution, the mean is pulled toward the tail:

  • In a right-skewed distribution, the mean is typically to the right of the median.

  • In a left-skewed distribution, the mean is typically to the left of the median.

The median is generally less affected by the tail than the mean. Comparing these measures can therefore provide clues about the distribution’s shape.


7. Measures of Variation and Chebyshev’s Theorem

Measures of central tendency do not show how widely the data are spread. Two groups can have the same mean but very different variation. Measures of variation describe how much the values differ from one another or from the center.

Range

The range is the maximum minus the minimum:

Range=max⁡(x)−min⁡(x).\text{Range} = \max(x) - \min(x).Range=max(x)−min(x).

The range is simple to calculate but uses only the two extreme values. It is highly sensitive to outliers and does not describe how values are distributed between the extremes.

Variance and standard deviation

Variance summarizes the squared deviations of values from their mean. Standard deviation is the square root of the variance and gives a measure of spread in the same units as the original data.

For a sample, the variance and standard deviation are

s2=∑(x−xˉ)2n−1,s=s2.s^2 = \frac{\sum (x-\bar{x})^2}{n-1}, \qquad s = \sqrt{s^2}.s2=n−1∑(x−xˉ)2​,s=s2​.

For a population, they are

σ2=∑(x−μ)2N,σ=σ2.\sigma^2 = \frac{\sum (x-\mu)^2}{N}, \qquad \sigma = \sqrt{\sigma^2}.σ2=N∑(x−μ)2​,σ=σ2​.

The sample variance uses n−1n-1n−1 in the denominator, whereas the population variance uses NNN. Sample variance is often the relevant calculation because studies commonly use samples rather than whole populations.

A useful way to calculate the sample variance by hand is:

  1. List the sample values.

  2. Calculate the sample mean, xˉ\bar{x}xˉ.

  3. For each value, calculate its deviation, x−xˉx-\bar{x}x−xˉ.

  4. Square each deviation.

  5. Add the squared deviations to obtain the sum of squares.

  6. Divide by n−1n-1n−1 to get s2s^2s2.

  7. Take the square root to get sss.

Squaring the deviations makes all contributions nonnegative, including deviations below the mean. The defining formulas are often easier to follow than algebraically rearranged computational formulas.

Coefficient of variation

The coefficient of variation (CV) expresses the standard deviation relative to the mean:

CV=sxˉ×100%.\text{CV} = \frac{s}{\bar{x}} \times 100\%.CV=xˉs​×100%.

For population data, the corresponding quantities are σ\sigmaσ and μ\muμ. The CV is a percentage and has no units. It is useful for comparing relative variability across measurements or settings. A larger CV means that the standard deviation is larger relative to the mean, indicating greater variability in relation to the average.

Chebyshev’s theorem and intervals

Chebyshev’s theorem applies to distributions of any shape. For any positive number of standard deviations kkk greater than 111, at least the following proportion of the data lies within kkk standard deviations of the mean:

1−1k2.1-\frac{1}{k^2}.1−k21​.

For example:

  • Within 222 standard deviations: at least 75%75\%75% of the data

  • Within 333 standard deviations: at least approximately 88.9%88.9\%88.9%

  • Within 444 standard deviations: at least 93.75%93.75\%93.75%

The interval is centered on the mean, with lower and upper limits given by

Mean−k(standard deviation)andMean+k(standard deviation).\text{Mean} - k(\text{standard deviation}) \quad \text{and} \quad \text{Mean} + k(\text{standard deviation}).Mean−k(standard deviation)andMean+k(standard deviation).

For sample data, the mean and standard deviation are typically xˉ\bar{x}xˉ and sss; for a population, they are μ\muμ and σ\sigmaσ.

Chebyshev’s theorem provides a guaranteed minimum proportion, not an exact proportion. Its intervals can also be very wide or have limits that do not make practical sense for a particular variable. Its broad applicability comes at the cost of specificity.


8. Percentiles, Quartiles, and Box-and-Whisker Plots

Percentiles and quartiles

The pppth percentile is a value below which approximately p%p\%p% of the observations fall. A percentile describes a position relative to the other values; it does not by itself specify the original measurement.

The three main quartiles are:

  • First quartile, Q1Q_1Q1​: the 25th percentile

  • Second quartile, Q2Q_2Q2​: the 50th percentile, which is the median

  • Third quartile, Q3Q_3Q3​: the 75th percentile

To calculate quartiles by hand:

  1. Order the data from smallest to largest.

  2. Find the median, Q2Q_2Q2​.

  3. Find the median of the lower part of the data to obtain Q1Q_1Q1​.

  4. Find the median of the upper part to obtain Q3Q_3Q3​.

When an even number of values must be divided around the median, the two middle observations may be averaged. Depending on the number of data values, the observations used to calculate the overall median may also be included in one or both halves. The key is to apply the chosen quartile procedure consistently.

Interquartile range

The interquartile range (IQR) measures the spread of the middle half of the data:

IQR=Q3−Q1.\text{IQR} = Q_3 - Q_1.IQR=Q3​−Q1​.

Because it depends on the middle 50% of the data, the IQR is less influenced by extreme values than the range.

Box-and-whisker plots

A box-and-whisker plot, or box plot, displays the five-number summary:

  • Minimum

  • Q1Q_1Q1​

  • Median, Q2Q_2Q2​

  • Q3Q_3Q3​

  • Maximum

The box extends from Q1Q_1Q1​ to Q3Q_3Q3​, so its length represents the IQR. A line within the box marks the median. Whiskers extend to the minimum and maximum in the basic version of the plot.

Box plots help compare spread and distribution shape. For example, a long upper whisker may suggest a right-skewed distribution, while a long lower whisker may suggest a left-skewed distribution. A relatively symmetrical box and whiskers are consistent with more symmetrical data. Box plots offer a compact visual summary, while histograms and stem-and-leaf displays provide other ways to inspect the distribution.


9. Scatterplots and Correlation

Scatterplots and variable roles

A scatterplot (or scatter diagram) displays paired measurements for the same individuals or units. Each individual contributes a pair of values, (x,y)(x,y)(x,y).

  • The explanatory or independent variable, xxx, is plotted on the horizontal axis.

  • The response or dependent variable, yyy, is plotted on the vertical axis.

The choice of which variable is explanatory should reflect the research question and the proposed relationship; it does not prove that xxx causes yyy.

Direction and strength

A scatterplot can show the direction and strength of a linear relationship.

  • A positive correlation means that larger values of xxx tend to occur with larger values of yyy, and smaller values of xxx tend to occur with smaller values of yyy.

  • A negative correlation means that larger values of xxx tend to occur with smaller values of yyy.

  • No linear correlation means the points do not show a clear linear pattern.

Strength describes how closely the points cluster around a straight line:

  • Strong: points lie relatively close to a line.

  • Moderate: points show a line-like pattern but are more spread out.

  • Weak: points are widely scattered around the line.

Outliers, especially those far from the main cluster, can substantially affect the apparent correlation. A scatterplot should therefore be examined before a correlation coefficient is interpreted.

Correlation coefficient

The sample correlation coefficient, rrr, summarizes the direction and strength of a linear relationship. Its values range from −1-1−1 to 111:

  • r=−1r=-1r=−1 indicates perfect negative linear correlation.

  • r=1r=1r=1 indicates perfect positive linear correlation.

  • r=0r=0r=0 indicates no linear correlation.

Real data rarely produce perfect correlations. Values of rrr close to 111 or −1-1−1 indicate stronger linear association; values closer to 000 indicate weaker linear association. The sign gives the direction.

The coefficient is unitless and is unchanged if the two variables are exchanged or converted to different measurement units. The population correlation coefficient is denoted by a Greek symbol; sample-based work commonly uses rrr.

Correlation is not causation

Correlation does not establish that one variable causes another. A lurking variable may affect both variables and create an apparent association. For example, warmer weather may increase both ice-cream sales and outdoor activity, which can affect other outcomes. The observed association alone does not show that one of these outcomes causes the other.


10. Least-Squares Regression and Prediction

Least-squares line

A least-squares line is the line that minimizes the sum of the squared vertical differences between the observed response values and the line’s predicted values. Squaring the differences prevents positive and negative residuals from canceling.

The least-squares line is written as

y^=a+bx,\hat{y}=a+bx,y^​=a+bx,

where:

  • y^\hat{y}y^​ is the predicted value of the response variable.

  • xxx is the explanatory-variable value.

  • bbb is the slope.

  • aaa is the yyy-intercept.

The hat in y^\hat{y}y^​ indicates an estimate or prediction. The slope bbb describes the expected change in y^\hat{y}y^​ for a one-unit increase in xxx. The intercept aaa is the predicted value when x=0x=0x=0, though that value may or may not have a practical interpretation.

The least-squares line passes through the point (xˉ,yˉ)(\bar{x},\bar{y})(xˉ,yˉ​). This is a useful check when calculating the line.

Residuals

A residual is the difference between an observed response and its predicted value:

Residual=y−y^.\text{Residual}=y-\hat{y}.Residual=y−y^​.

A small residual indicates that the prediction is close to the observed value. A good-fitting line generally has relatively small residuals, although the size of a residual must be judged in the context of the variable’s scale.

Prediction and its limits

To predict a response for a new value of xxx, substitute that value into the least-squares equation and calculate y^\hat{y}y^​.

  • Interpolation uses an xxx value within the range of the observed explanatory-variable values.

  • Extrapolation uses an xxx value outside that range.

Interpolation is generally more defensible. Extrapolation is risky because the observed linear pattern may not continue beyond the data.

Coefficient of determination

The coefficient of determination is r2r^2r2, the square of the correlation coefficient, usually expressed as a percentage:

Coefficient of determination=r2×100%.\text{Coefficient of determination}=r^2 \times 100\%.Coefficient of determination=r2×100%.

It describes the percentage of variation in the response variable that is explained by its linear relationship with the explanatory variable in the fitted model. The remaining percentage is not explained by that linear relationship.

A higher coefficient of determination indicates that the line accounts for more of the observed variation. It does not prove that the relationship is causal or that the model is appropriate in every other respect. A scatterplot and an examination of outliers remain important.


11. Normal Distributions and the Empirical Rule

Properties of the normal curve

A normal distribution is symmetrical and mound-shaped. Its key properties include:

  • The highest point lies over the mean.

  • The curve is symmetrical around a vertical line through the mean.

  • The curve approaches the horizontal axis without touching it.

  • The curve changes from bending upward to bending downward at points roughly one standard deviation above and below the mean.

  • The total area under the curve is 111, or 100%100\%100%.

For a normal distribution, the mean, median, and mode coincide at the center.

Chebyshev’s theorem compared with the empirical rule

Chebyshev’s theorem applies to distributions of any shape and gives a minimum proportion within an interval. The empirical rule applies only to approximately normal distributions and gives more specific approximate proportions.

For a normal distribution:

  • About 68%68\%68% of values lie within 111 standard deviation of the mean.

  • About 95%95\%95% lie within 222 standard deviations.

  • About 99.7%99.7\%99.7% lie within 333 standard deviations.

In symbols, these ranges are approximately

μ±σ,μ±2σ,μ±3σ,\mu \pm \sigma,\qquad \mu \pm 2\sigma,\qquad \mu \pm 3\sigma,μ±σ,μ±2σ,μ±3σ,

where μ\muμ is the population mean and σ\sigmaσ is the population standard deviation.

The empirical rule can be used to estimate the percentage of values in different intervals and to answer questions about how much of the data lies above, below, or between particular cut points. For example, the interval from μ−σ\mu-\sigmaμ−σ to μ+σ\mu+\sigmaμ+σ contains approximately 68%68\%68% of the data, with about 34%34\%34% on either side of the mean.

The exact numerical cut points depend on the mean and standard deviation. A larger standard deviation makes the intervals wider; a smaller standard deviation makes them narrower.


12. zzz-Scores and Probabilities

Standard normal distribution and zzz-scores

The standard normal distribution is a normal distribution with mean 000 and standard deviation 111. A zzz-score gives the number of standard deviations a value is above or below its distribution’s mean.

For a value xxx from a population with mean μ\muμ and standard deviation σ\sigmaσ,

z=x−μσ.z=\frac{x-\mu}{\sigma}.z=σx−μ​.
  • A positive zzz-score means xxx is above the mean.

  • A negative zzz-score means xxx is below the mean.

  • A zzz-score near 000 means xxx is near the mean.

Standardizing values makes it possible to compare positions from different normal distributions.

Using a zzz table

A zzz table gives the area, or probability, to the left of a specified zzz-score. The area under a normal curve represents both a proportion of observations and a probability.

If a question asks for the area to the left of a zzz-score, use the table value directly. If it asks for the area to the right, either subtract the left-tail probability from 111 or look up the opposite zzz-score. For an interval between two values, subtract the probability to the left of the lower value and the probability to the right of the upper value from 111.

In general:

  • For P(Z<z)P(Z<z)P(Z<z), use the table value for zzz.

  • For P(Z>z)P(Z>z)P(Z>z), use 1−P(Z<z)1-P(Z<z)1−P(Z<z).

  • For P(z1<Z<z2)P(z_1<Z<z_2)P(z1​<Z<z2​), subtract the two outside tail areas from 111.

A sketch of the normal curve can help identify whether the relevant region is a small tail, a large region, or an interval between two values. It also provides a useful check against choosing the wrong side of the distribution.

Finding an xxx value from a zzz-score

If a zzz-score is known and the original distribution’s mean and standard deviation are known, the corresponding xxx value is

x=μ+zσ.x=\mu+z\sigma.x=μ+zσ.

If a question gives a probability or percentile instead of a zzz-score, the general procedure is:

  1. Use the zzz table to find the corresponding zzz-score.

  2. Identify whether the value is in the upper or lower tail.

  3. Substitute the zzz-score into x=μ+zσx=\mu+z\sigmax=μ+zσ.

For a middle interval, the two limits are found using the negative and positive zzz-scores that bound the specified central proportion.

A zzz table covers only a finite range of values. Probabilities in extreme tails beyond the table’s range are commonly approximated as 000 on the far left or 111 on the far right. When solving problems, a useful sequence is to draw the curve, mark the mean and relevant values, shade the requested area, calculate the zzz-score, and check that the final probability matches the shaded region.


13. Sampling Distributions and the Central Limit Theorem

Statistics, parameters, and inference

A statistic describes a sample; a parameter describes a population. Inference uses sample information to draw conclusions about a population.

Three broad forms of inference are:

  • Estimation: using a sample to estimate a population parameter.

  • Testing: using sample data to make a decision about a population parameter.

  • Regression: using a relationship in data to make predictions.

Frequency distributions versus sampling distributions

A frequency distribution summarizes observed values of a variable, such as the values of a quantitative measurement in a population or sample.

A sampling distribution describes the values of a sample statistic across all possible samples of a specified size from the same population. For example, one can imagine taking every possible sample of size nnn, calculating xˉ\bar{x}xˉ for each sample, and forming a distribution of those sample means.

A sampling distribution is not the distribution of individual observations. It is the distribution of a statistic, such as the sample mean.

Central limit theorem

The central limit theorem describes the sampling distribution of the sample mean:

  • If the population distribution is normal, the sampling distribution of xˉ\bar{x}xˉ is normal.

  • The mean of the sampling distribution is the population mean:

μxˉ=μ.\mu_{\bar{x}}=\mu.μxˉ​=μ.
  • The standard deviation of the sampling distribution is the population standard deviation divided by the square root of the sample size:

σxˉ=σn.\sigma_{\bar{x}}=\frac{\sigma}{\sqrt{n}}.σxˉ​=n​σ​.

When the population distribution is not normal, the sampling distribution of xˉ\bar{x}xˉ is approximately normal for sufficiently large samples; a common guideline is n>30n>30n>30. This result helps explain why sample means can be analyzed with normal-distribution methods even when the original population is not normally distributed.

Because the mean of the sampling distribution of xˉ\bar{x}xˉ equals the population mean, the sample mean is an unbiased estimator of the population mean in this setting.

Standard error and probabilities involving sample means

The standard deviation of the sampling distribution of a statistic is called its standard error. For the sample mean,

Standard error of xˉ=σn.\text{Standard error of }\bar{x} = \frac{\sigma}{\sqrt{n}}.Standard error of xˉ=n​σ​.

The standard error decreases as the sample size increases. Larger samples therefore produce a narrower sampling distribution of sample means.

To find probabilities about a sample mean, use the standardized value

z=xˉ−μσ/n.z=\frac{\bar{x}-\mu}{\sigma/\sqrt{n}}.z=σ/n​xˉ−μ​.

The process is:

  1. Identify the population mean μ\muμ, population standard deviation σ\sigmaσ, and sample size nnn.

  2. Calculate the standard error, σ/n\sigma/\sqrt{n}σ/n​.

  3. Convert the specified sample mean or boundary to a zzz-score.

  4. Use the zzz table to find the requested probability.

The probability for a sample mean can be much smaller than the probability for one individual observation to exceed the same value. A sample mean depends on several observations, so the entire sample must collectively produce an average beyond the specified boundary.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent