BackStatistical Foundations and Data Analysis: Mini-Textbook Study Notes
Study Guide - Smart Notes
Tailored notes based on your materials, expanded with key definitions, examples, and context.
Statistical Foundations and Data Analysis
Introduction to Statistics
Statistics is the science of collecting, organizing, summarizing, and analyzing data to draw conclusions and quantify the confidence in those conclusions. Proper statistical analysis is essential for supporting or refuting claims, and it is important to recognize that statistical results always carry some uncertainty.
Key Considerations: Proper analysis can support or refute claims; poorly collected data are useless; lurking variables can create spurious relationships; statistical results are never certain, but they provide a measure of uncertainty.
The Statistical Process
The statistical process consists of four main steps, each crucial for valid inference and analysis.
Identify the research objective: Clearly state the question and the population of interest.
Collect the data: Use appropriate sampling or measurement methods.
Describe the data: Summarize with numerical measures, tables, and graphs.
Infer to the population: Extend sample results to the whole population and assess reliability (confidence intervals, hypothesis tests).
Data Types and Levels of Measurement
Types of Data
Data can be classified as quantitative or categorical, each with distinct properties and uses.
Quantitative (Numerical): Measures that can be added, subtracted, multiplied, or divided.
Discrete: Finite or countable set of values (e.g., number of children).
Continuous: Infinite set of values; any value within an interval is possible (e.g., height, weight).
Categorical (Qualitative): Classifications based on attributes (e.g., gender, color).
Levels of Measurement
Levels of measurement determine the mathematical operations that can be performed on data.
Nominal: Names or labels without intrinsic order.
Ordinal: Ordered categories but without meaningful distance (e.g., ranking).
Interval: Ordered with meaningful differences; zero does not indicate absence (e.g., temperature in Celsius).
Ratio: Ordered with meaningful ratios; true zero exists (e.g., weight, age).
Populations, Samples, Parameters, and Statistics
Definitions
Population: The entire set of individuals or objects of interest.
Individual: A single member of the population.
Sample: A subset of the population from which data are collected.
Census: Data collection from every member of the population.
Parameter: A numerical summary that describes a population (e.g., population mean , population standard deviation ).
Statistic: A numerical summary that describes a sample (e.g., sample mean , sample standard deviation ).
Sampling Methods
Types of Sampling
Simple Random Sampling (SRS): Every possible sample of size from a population of size has an equal chance of selection.
Stratified Sampling: The population is divided into non-overlapping subgroups (strata); an SRS is taken from each stratum.
Systematic Sampling: Choose a random start between 1 and and then select every th element.
Cluster Sampling: The population is divided into clusters; a random sample of clusters is selected and all members of chosen clusters are surveyed.
Convenience Sampling: Samples are drawn from readily available subjects; rarely represents the population.
Bias in Sampling
Sampling Bias: The selection procedure favours certain parts of the population.
Nonresponse Bias: Individuals who do not respond differ systematically from respondents.
Response Bias: Answers do not reflect true feelings due to interviewer error, misrepresented answers, question wording, question order, or question type.
Data-Entry Error: Mistakes when transferring data to a computer.
Nonsampling Errors: All errors arising from data collection (sampling bias, nonresponse, response bias, data-entry error).
Sampling Errors: Random variation due to using a sample instead of the whole population.
Observational Studies vs. Experiments
Types of Studies
Observational Study: Researchers record variables without manipulating any factor.
Cross-sectional: Data collected at a single point in time.
Case-control: Retrospective comparison of subjects with a condition to those without.
Cohort: Prospective follow-up of a group over time.
Experiment: Researchers deliberately manipulate one or more explanatory variables (factors) and observe the effect on a response variable.
Variables
Confounding Variable: An explanatory variable whose effect cannot be separated from another factor.
Lurking Variable: An unmeasured factor that influences both the explanatory and response variables.
Design of Experiments
Treatment: Any specific combination of factor levels.
Level: A particular value of a factor (e.g., 0 mg, 50 mg dosage).
Experimental Unit: The individual or object receiving a treatment.
Control Group: Baseline group receiving no treatment or a standard treatment.
Placebo: An inert treatment that mimics the active treatment’s appearance, taste, or procedure.
Blinding: Concealing treatment allocation (single-blind or double-blind).
Experimental Designs
Completely Randomized Design: Each experimental unit is assigned randomly to a treatment.
Matched-Pairs Design: Units are paired on similarity; each pair receives different treatments.
Randomized Block Design: Units are grouped into homogeneous blocks; treatments are assigned randomly within each block.
Steps in Conducting an Experiment
Identify the problem.
Determine factors affecting the response.
Choose the number of experimental units.
Set the levels (treatments) for each factor.
Conduct the experiment, ensuring replication and randomization.
Analyze the data and test the claim.
Organizing Data
Organizing Qualitative Data
Frequency Distribution: Table listing each category and its count.
Relative Frequency: Proportion of observations in a category:
Bar Graph: Rectangles of equal width; height represents frequency or relative frequency.
Pareto Chart: Bar graph ordered from highest to lowest frequency.
Pie Chart: Circular chart where sector area is proportional to category frequency.
Organizing Quantitative Data
Frequency Table (Grouped Data): Data are divided into classes (intervals).
Class Width: Computed as:
Lower and Upper Class Limits: Smallest and largest values that can belong to a class.
Class Midpoint: Average of the lower and upper limits:
Histogram: Bars with width equal to class width; bars touch, representing frequencies or relative frequencies.
Stem-and-Leaf Plot: Stems are leading digits; leaves are trailing digits, sorted within each stem.
Dot Plot: Dots placed above a number line; identical values stack vertically.
Time Plot: Variable plotted against time to reveal trends.
Shapes of Distributions
Uniform: Approximately equal frequency across classes (flat histogram).
Normal (Bell-shaped): Symmetric peak with tapering tails.
Skewed Right: Long tail to the right; mean > median.
Skewed Left: Long tail to the left; mean < median.
Numerically Summarizing Data
Measures of Center
Mean: Sum of all values divided by the number of observations. Sample mean: Population mean:
Median: The middle observation after ordering the data. Odd : position . Even : average of positions and .
Mode: Value(s) occurring most frequently; data may have no mode, one mode, or multiple modes.
Midrange: Average of the minimum and maximum:
Comparing Mean and Median: Outliers pull the mean toward the tail; the median remains stable. In symmetric distributions mean ≈ median; in right-skewed mean > median; in left-skewed mean < median.
Measures of Dispersion (Spread)
Range: Difference between maximum and minimum:
Variance: Average squared deviation from the mean. Sample variance: Population variance:
Standard Deviation: Square root of variance; same units as the original data. Sample standard deviation: Population standard deviation:
Empirical Rule (Normal Approximation)
About 68% within
About 95% within
About 99.7% within
Range Rule of Thumb
Usual values lie within ; values outside are considered unusual.
Chebyshev’s Inequality
For any distribution and any : at least of observations lie within standard deviations of the mean.
Approximate Measures from Grouped Data
Approximate Mean (Grouped): Use class midpoints and frequencies :
Weighted Mean: When each observation has a weight :
Approximate Standard Deviation (Grouped): Compute using midpoints and frequencies:
Measures of Position and Outliers
Z-Score
Number of standard deviations a value is from the mean: Population: Sample:
Percentiles and Quartiles
Percentiles: The th percentile is the value below which % of observations fall.
Quartiles: Divide data into four equal parts:
(25th percentile)
(median, 50th percentile)
(75th percentile)
Interquartile Range (IQR): Spread of the middle 50%:
Outlier Detection (Fence Method)
Lower fence:
Upper fence:
Observations outside these fences are flagged as outliers.
Five-Number Summary and Boxplots
Five-Number Summary: Minimum, , median (), , and maximum.
Boxplot Construction:
Draw a number line covering the data range.
Mark the five-number summary; draw a box from to with a line at the median.
Add “whiskers” from the box to the smallest and largest observations that lie within the fences.
Plot outliers individually (often as asterisks).
Interpreting Boxplots: Box width indicates IQR; whisker length indicates overall spread; outliers are highlighted; the relative positions of median and box reveal skewness.
Graphical Misrepresentation
Common Pitfalls and Avoiding Deception
Inconsistent scales, truncated axes, omitted zero baseline, three-dimensional effects, excessive gridlines or decorations, and omission of data labels can mislead viewers.
Use uniform intervals, label axes with units and source, start axes at zero unless a justified reason is provided, and keep design simple to let the data speak.
Summary of Core Concepts
Statistics transforms raw data into meaningful information through careful definition of population, sampling, measurement, and analysis.
Proper sampling and awareness of bias are essential for valid inference.
Experimental design, including randomization, control, and blinding, isolates causal effects.
Descriptive tools (frequency tables, graphs, measures of center and spread) reveal patterns; inferential tools extend findings to broader contexts.
Example: Suppose a researcher wants to estimate the average height of college students. They use stratified sampling to ensure representation from each year (freshman, sophomore, etc.), calculate the sample mean and standard deviation, and use a confidence interval to infer the population mean. Outliers are checked using the fence method, and results are visualized with a boxplot.