MIDTERM STAT 303 REVIEW
Section 1: Introduction to Statistics & Fundamental Concepts
Definition of Statistics: Statistics is the science of collecting, classifying, organizing, summarizing, analyzing, and interpreting data for the purpose of making informed decisions. It provides the foundation for evidence-based reasoning across business, government, and the social, medical, and physical sciences.
Core Purpose of Studying Statistics:
Equips individuals with the skills necessary to become informed, critical consumers of numerical and quantitative information.
Provides essential tools for navigating massive volumes of data encountered in daily life (e.g., sports, politics, medicine, news).
Enables researchers to design and conduct formal scientific studies to investigate real-world questions (e.g., health impacts of food, drug cure rates, behavior patterns).
Branches of Statistics:
Descriptive Statistics: Methods involved in organizing, summarizing, and presenting data in an informative and readable manner (e.g., constructing tables, calculating averages, generating charts).
Inferential Statistics: Methods used to determine properties, make predictions/decisions, or draw conclusions about an entire population based on data collected from a representative sample.

Probability vs. Statistical Inference:
Probability: Reasons from a known population to calculate the likelihood of observing specific characteristics in a sample.
Statistical Inference: Reasons in the reverse direction—analyzing data from an observed sample to draw conclusions about the unknown characteristics of the larger population.

Fundamental Statistical Vocabulary:
Data: Any collection of numbers, characters, images, or other items that provide information about entities. Syntactically, "data" is a plural noun (e.g., "data are…"). A single value in a dataset is called a datum.
Population: The complete collection or set of all units (individuals, objects, or events) of interest in a study. Populations are classified as either finite (countable) or infinite.
Sample: A representative subset of units drawn from the population.
Census: A data collection process that gathers measurements from every single member of the population.
Parameter: A numerical value that summarizes a characteristic of an entire Population (e.g., population mean , population proportion ).
Statistic: A numerical value that summarizes data from a Sample (e.g., sample mean , sample proportion ).
Unit / Subject / Individual: The specific entity from which data are observed or collected (e.g., a person, animal, plant, transaction, or object).
Variable: Any specific characteristic or attribute recorded for each individual element of a population or sample.
Example Case Study — Suicidal Ideation Among Adolescents:
Context: A study by Dr. Matthew Nock of Harvard University and colleagues analyzed survey data from adolescents aged 13 to 18 in the United States, finding that over experience suicidal ideation.
Population: All U.S. adolescents aged 13 to 18.
Sample: The surveyed U.S. adolescents.
Variable: Presence of suicidal ideation (Categorical: Yes/No).
Population Parameter: The true proportion of all U.S. adolescents who experience suicidal ideation.
Sample Statistic: The proportion () of the surveyed adolescents who experience suicidal ideation.
Example Case Study — Left-Handedness Proportions:
Context: Approximately of Americans are left-handed. An instructor counts 3 left-handed students out of 95 total students in STAT 302 Section 510 during an exam.
Population: All Americans.
Sample: The 95 students present in STAT 302 Section 510.
Variable: Hand dominance (Categorical: Right / Left).
Population Parameter: The true proportion of all Americans who are left-handed ( or ).
Sample Statistic: The proportion of left-handed students in the observed class ( or ).
Example Case Study — Crime Analysis in Austin, Texas:
Scenario 1: A heat map displaying the total number of police reports across 5-digit ZIP codes in Austin represents descriptive statistics, as it summarizes existing recorded data.
Scenario 2: A trend plot showing daily police reports with a blue fitted line extending beyond present data into 2023–2025 represents inferential statistics, as the extended blue line attempts to predict future population outcomes.

Section 2: Variable Types & Levels of Measurement
Primary Classification of Variables:
Qualitative (Categorical) Variables: Variables describing attributes, labels, or non-numerical categories. Measurements convey information regarding qualitative attributes (e.g., car model, day of the week, ZIP code, blood type, gender).
Quantitative (Numerical) Variables: Variables representing numerical measurements or counts. Measurements convey information regarding numerical amounts (e.g., GPA, height, income, number of text messages).

Sub-Categorization of Qualitative Variables:
Nominal: Categories are strictly qualitative, non-overlapping, and have no natural ranking, order, or priority (e.g., eye color, nationality, major field, ZIP code, automotive color).
Ordinal: Categories exhibit a natural sequential order or ranking, but differences between category steps cannot be quantitatively measured or defined (e.g., course letter grades [A, B, C, D, F], rating scales [poor, good, excellent], competition placements [1st, 2nd, 3rd]).
Sub-Categorization of Quantitative Variables:
Discrete: Variables resulting from a counting process, taking on isolated numerical values (typically integers or whole numbers with gaps between possible values) (e.g., number of students in a class, number of books on a shelf, number of languages spoken).
Continuous: Variables resulting from a measuring process, capable of taking any real value within a continuous interval or continuum (e.g., height, weight, exact age, temperature, wait time).
Four Levels of Measurement:
Nominal Level: Data organized into mutually exclusive categories with no implicit mathematical order or scale.
Ordinal Level: Data sorted into ordered categories. Ranks reflect order, but mathematical differences between ranks are meaningless.
Interval Level: Data ordered numerically where exact differences between measurements are meaningful and equal. However, there is no true zero point (a value of zero is arbitrary and does not mean total absence of the quantity). Multiplication and ratios are invalid (e.g., 0^\n\circ\text{C} or 0^\n\circ\text{F} temperature, IQ scores, credit scores, SAT/ACT test scores).
Ratio Level: Data possessing all properties of the interval level plus a true zero point (zero indicates complete absence of the property). Ratios are fully meaningful (e.g., a height of is twice as tall as ; height, weight, exact age, income, salary, duration).

Converting Continuous Variables to Ordinal Categories:
Naturally continuous quantitative variables (such as age, annual income, or temperature) can be grouped into discrete interval bins (e.g., Age grouped as 0–10, 11–20, 21–30; Income grouped as lower class, middle class, upper class).
Once grouped into ordered bins, the variable loses its exact continuous numerical status and is reclassified as an ordinal variable.
Section 3: Sampling Methods & Sources of Error
Rationale for Sampling:
Inaccessibility: Inability to access an entire population (e.g., measuring the length of all fish in the Atlantic Ocean).
Resource Constraints: Strict limits on time, budget, software, and human labor.
Destructive Testing: Measurements that destroy the item being tested (e.g., testing matchstick quality, measuring battery life, crash-testing vehicles).
Sampling Principles:
A sample must reflect the key structural characteristics of its target population.
Sampling With Replacement: Individuals may be selected more than once. The population pool remains identical across draws (e.g., rolling a die repeatedly).
Sampling Without Replacement: Once selected, an individual is removed from the population pool and cannot be chosen again (e.g., drawing lottery tickets).
Random Sampling Methods:
Simple Random Sampling (SRS): Every distinct group/combination of individuals in the population has an equal probability of being chosen. Sampling is executed directly from a complete master list (frame) of the population.
Stratified Random Sampling: The population is divided into non-overlapping, homogeneous subgroups called strata (where subjects within a stratum share similar characteristics). An SRS is then conducted independently within every single stratum.
Clustered Random Sampling: The population is divided into non-overlapping subgroups called clusters (typically heterogeneous, naturally occurring geographic or physical groupings). An SRS of clusters is selected, and a complete census is conducted on all individuals within the chosen clusters.
Multistage Cluster Sampling: Similar to cluster sampling, but rather than taking a census of every member in selected clusters, a random sample of individuals is drawn from within each selected cluster.
Systematic Random Sampling: Population members are arranged in a sequential list. A random starting point is selected among the first members, and subsequently every individual on the list is sampled.




Non-Random Sampling Methods:
Convenience Sampling: Selecting individuals that are most easily accessible to the researcher. Caution: Convenience samples are rarely representative and cannot be used to make valid inferences about a broader population.
Comparative Matrix: Stratified vs. Cluster vs. Multistage Sampling:
Feature | Stratified Sampling | Cluster Sampling | Multistage Sampling |
|---|---|---|---|
Group Homogeneity | Groups (strata) are homogeneous internally (subjects within a group are similar, but differ from other groups). | Groups (clusters) are heterogeneous internally (diverse subjects within each group). | Groups are heterogeneous internally, containing large numbers of diverse subjects. |
Group Selection | All strata are sampled (some subjects chosen from every stratum). | A random subset of clusters is chosen (all subjects taken from selected clusters). | A random subset of clusters is chosen, then a random sample of subjects is taken within those clusters. |
Primary Advantage | Ensures representation of small/key subgroups. | Highly cost-effective and logistically feasible over wide areas. | Economical and feasible for massive, multi-tiered populations. |
Errors in Data Collection:
Sampling Error: The inherent statistical difference between a sample statistic and the true population parameter being estimated, caused strictly by observing a sample rather than the full population.
Causes: Natural population variability, small sample size, selection bias.
Minimization: Increase sample size , use probability-based random sampling, stratify key groups.
Non-Sampling Error: Errors that occur during data collection, recording, coding, or analysis, completely independent of the sampling scheme.
Types/Causes:
Measurement and Processing Errors: Instruments out of calibration, typos in data entry (e.g., entering age 52 instead of 25), software bugs.
Response Bias: Distorted answers caused by leading question phrasing, interviewer tone, social desirability, or question ordering.
Non-Response Bias: Systemic bias introduced when a significant fraction of selected individuals refuse or fail to respond (e.g., voluntary response surveys attracting mostly dissatisfied individuals).
Section 4: Study Designs & Data Collection
Classification of Statistical Studies:
Observational Study: A study where researchers observe, measure, and record variables as they naturally exist without applying any treatment or intervention.
Outcome: Can establish association/correlation between variables, but cannot establish causation.
Experimental Study (Experiment): A controlled study where researchers deliberately apply a treatment or intervention to subjects to measure response outcomes.
Outcome: Can establish causality (cause-and-effect relationships) due to random assignment of treatments.
Variable Relationships:
Associated (Dependent) Variables: Variables that display a functional connection or dependence on one another.
Independent Variables: Variables that display no connection, relationship, or mutual dependence.
Types of Observational Studies:
Retrospective (Case-Control) Study: Data are gathered from historical records (e.g., medical charts, past archives) covering an earlier period in time prior to the start of the study.
Cross-Sectional Study: Data are observed, measured, and collected at a single, specific point in time.
Prospective (Longitudinal / Cohort) Study: A defined cohort sharing common characteristics is selected and followed forward in time, with periodic data collection conducted over an extended duration.

Experimental Design Terminology:
Response (Outcome / Dependent) Variable: The quantitative or qualitative output measure used to evaluate the effect of treatments.
Explanatory (Covariate / Factor / Independent) Variable: Variables manipulated by the experimenter believed to influence the response variable.
Treatments: Specific experimental conditions applied to subjects. If an experiment uses multiple factors, a treatment is a unique combination of specific levels across all factors.
Confounding Variable: An external variable associated with both the explanatory and response variables, making it impossible to isolate the true cause of the observed effect.
Lurking Variable: A hidden, unmeasured variable not included in the study design that influences the relationship between the primary variables.
Placebo: A dummy or sham treatment (e.g., sugar pill, saline injection) that has no active chemical or physical ingredient.
Placebo Effect: The psychological phenomenon where subjects show real or reported improvement purely because they believe they are receiving an active treatment.
Single-Blind Experiment: Subjects do not know whether they are receiving the active treatment or a placebo.
Double-Blind Experiment: Neither the subjects nor the clinical researchers/data collectors interacting with them know who is assigned to the treatment or placebo groups.
Four Fundamental Principles of Experimental Design:
Control: Compare treatment groups directly against an untreated or placebo control group to isolate treatment effects from external background noise.
Randomization: Use random allocation to assign experimental units to treatment groups, neutralizing selection bias and balancing unmeasured lurking variables evenly across groups.
Replication: Apply treatments to a sufficiently large sample of units within the experiment, or repeat the entire experiment across multiple settings to ensure reliability.
Blocking: Group subjects with similar known characteristics (e.g., gender, age category) into blocks prior to randomization, then randomly assign treatments within each block to eliminate variability caused by the blocking variable.
Major Types of Experimental Designs:
Completely Randomized Design: Experimental units are randomly allocated across all treatment groups without prior grouping or blocking.
Randomized Block Design: Units are first segregated into homogenous blocks based on a key nuisance variable, and units within each block are then randomly assigned to treatments.
Matched Pairs Design: Subjects are paired into sets based on tight similarities (e.g., identical twins, left and right eyes of the same patient, or pre-test/post-test measurements on the exact same subject). Treatments are randomly allocated within each pair.

Inferential Scope Matrix (Sampling vs. Assignment):
Study / Selection Type | Random Assignment to Treatments | Non-Random Assignment to Treatments |
|---|---|---|
Random Sample from Population | Causal inferences can be drawn and generalized to the entire population (ideal scenario). | Associational inferences (non-causal) can be generalized to the entire population. |
Non-Random Sample from Population | Causal inferences can be drawn, but only within the sample (cannot generalize to population). | Associational inferences can be identified within the sample, but cannot generalize to population. |
Section 5: Summarizing & Displaying Categorical Data
Numerical Summary Methods for Categorical Data:
Frequency Table: Organizes categories alongside their raw counts ().
Relative Frequency Table: Displays categories alongside their relative proportions () or percentages ().
Cumulative Frequency: The running total of frequencies across sequential categories.
Contingency Table (Two-Way Frequency Table): A grid table displaying counts for two categorical variables simultaneously, showing joint distribution across rows and columns.
Graphical Displays for Categorical Data:
Bar Chart (Bar Graph / Plot): Uses separate bars where bar height/length is proportional to the frequency or relative frequency of each category. Bars must not touch (reflecting discrete category separations).
Side-by-Side Bar Chart: Displays individual bars for sub-categories side-by-side within each primary category, allowing absolute group comparisons.
Stacked Bar Chart: Combines sub-categories into a single composite bar where total bar height equals total frequency.
Standardized Stacked Bar Chart: Scales every stacked bar to , displaying the relative percentage distribution of sub-categories across groups.
Mosaic Plot: A graphical display for contingency tables where the area of each rectangle is directly proportional to the number of observations in that specific combination of categories. Rectangle widths represent primary group proportions, while heights represent conditional proportions.
Pie Chart: A circular chart sliced into sectors proportional to category percentages. Limitation: Slices are difficult for human eyes to compare accurately, especially when categories exceed 5 or 6 or when slice sizes are similar.




Section 6: Summarizing & Displaying Quantitative Data
Summation Notation Notation ():
Sum of values:
Sum of squared values:
Square of the sum:
Measures of Central Tendency:
Sample Mean (): The arithmetic average of sample observations. A point estimator of population parameter .
Population Mean (): The arithmetic average of all units in a finite population of size .
Weighted Mean (): Calculates the average when data values contribute unequally based on weights
Median ( or ): The 50th percentile value dividing an ordered dataset into two equal halves.
Position Formula:
If is odd: Median is the exact single middle value.
If is even: Median is the mean of the two central middle values.
Mode: The data value that occurs with the highest frequency. Can be unimodal, bimodal, multimodal, or have no mode.
Selecting Measures of Center:
Mean: Best for symmetric quantitative data without extreme outliers (uses all data values).
Median: Best for skewed quantitative data or datasets containing extreme outliers (resistant/robust measure).
Mode: Typically used for categorical data or identifying peaks in continuous distributions.
Percentiles, Quartiles, and Tukey's Five-Number Summary:
: Minimum value
: First quartile (25th percentile) = Median of the lower half of sorted data.
: Second quartile (50th percentile) = Overall Median .
: Third quartile (75th percentile) = Median of the upper half of sorted data.
: Maximum value
Rule for Halves: If is odd, exclude the median from lower and upper halves when computing and . If is even, split the dataset evenly in half.
Tukey's Five-Number Summary: The ordered set: .
Measures of Variability / Spread:
Range: Difference between maximum and minimum values. Highly non-resistant.
Sample Variance (): Average of squared deviations from the sample mean divided by degrees of freedom.
Population Variance ():
Sample Standard Deviation (): Square root of sample variance. Measured in original data units. Non-resistant.
Interquartile Range (): The spread of the middle of data. Highly resistant to outliers.
1.5 IQR Outlier Detection Rule:
Calculate
Calculate
Any data observation falling strictly below the Lower Fence or strictly above the Upper Fence is classified as a potential outlier.
Robust Statistics Concept:
A statistic is robust (resistant) if its value is not heavily distorted by extreme outliers.
Non-robust statistics: Mean, Standard Deviation, Variance, Range.
Robust statistics: Median, Interquartile Range ().
Graphical Displays for Quantitative Data:
Histogram: Adjoining vertical bars representing frequency/relative frequency over continuous equal-width bins/classes.
Box Plot (Box-and-Whisker Plot): Graphical depiction of the Five-Number Summary. Box spans to with a line at Median. Whiskers extend to the smallest and largest non-outlier data points; outliers are plotted as individual points beyond fences.
Time Series Plot: Bivariate plot tracking a quantitative variable over sequential time intervals (x-axis = Time).
Scatterplot: Plot displaying bivariate quantitative relationships ( vs ).



Describing Quantitative Distributions (S.C.O.S.):
Shape: Modality (unimodal, bimodal, multimodal), symmetry, and direction of skewness.
Symmetric (Bell-shaped):
Right-Skewed (Positively Skewed): Long tail to the right.
Left-Skewed (Negatively Skewed): Long tail to the left.
Center: Report Mean (if symmetric) or Median (if skewed).
Spread: Report Standard Deviation (if symmetric) or IQR/Range (if skewed).
Outliers / Unusual Features: Note gaps, multiple clusters, or extreme values.
Section 7: Fundamentals of Probability
Definition of Randomness: A process is random if individual short-term outcomes are uncertain, but long-term outcomes display a stable, predictable relative frequency distribution.
Probability Definitions:
Probability Trial / Experiment: A repeatable process whose outcome is subject to uncertainty.
Outcome: A single possible result of a trial.
Sample Space ( or ): The set containing all possible outcomes of a probability experiment.
Event (): Any defined subset of the sample space .
Three Approaches to Assigning Probabilities:
Classical (Theoretical) Probability: Assumes all outcomes in sample space are equally likely.
Empirical (Statistical / Relative Frequency) Probability: Probability calculated from observed experimental data or historical frequencies.
Subjective Probability: Probability assigned based on personal expert judgment, intuition, context, or experience when no classical model or empirical data exists.
The Law of Large Numbers (LLN): As the number of independent trials increases, the sample relative frequency converges toward the true theoretical population probability .
Probability Axioms & Rules:
Axiom 1 (Non-Negativity): For any event ,
Axiom 2 (Normalization): For sample space ,
Axiom 3 (Complement Rule): , where is the complement of
Event Relationships & Operations:
Intersection (): Event " and "—outcomes belonging to both and simultaneously.
Union (): Event " or "—outcomes belonging to , or , or both.
Disjoint (Mutually Exclusive) Events: Two events that cannot occur simultaneously. If and are disjoint, and

Addition Rule of Probability:
General Addition Rule (Any two events):
Special Addition Rule (Disjoint events):
Discrete Probability Distribution Requirements:
Listed events must be mutually exclusive (disjoint).
Each individual probability must satisfy
The sum of all probabilities across the sample space must equal 1 ().
Section 8: Conditional Probability, Independence, & Bayes' Theorem
Independence of Events:
Two events and are independent if the occurrence of one does not affect the probability of the other.
Multiplication Rule for Independent Events:
Critical Rule: Disjoint events with non-zero probabilities can never be independent! If and are disjoint, .
Probabilities from Contingency / Two-Way Tables:
Marginal Probability: Probability of a single variable outcome calculated using table row or column totals divided by table grand total (e.g., ).
Joint Probability: Probability of two intersection outcomes occurring together using interior cell count divided by grand total (e.g., ).
Conditional Probability: Probability of an event occurring given that another condition has already occurred, calculated by restricting the sample space to the given row/column.
Conditional Probability Formula: Read as "Probability of given ".
Checking Independence using Conditional Probability: Events and are independent if and only if:
Tree Diagrams & Sequential Decisions:
Tree diagrams systematically list sequential conditional events.
Sum of probabilities leaving any branching node must equal 1.
Multiply probabilities along sequential branches to find joint intersection probabilities.
Bayes' Theorem:
Allows updating prior probabilities based on new evidence or diagnostic test results.
Generalized Form across exhaustive partition events :
Sampling From Small Populations:
With Replacement: Probabilities remain constant across successive draws. Draws are independent.
Without Replacement: Probabilities change dynamically on successive draws based on previous outcomes. Draws are dependent.
Section 9: Random Variables & Probability Distributions
Random Variables:
A numerical variable whose value is determined by the outcome of a random process. Capital letters () denote the random variable; lowercase letters () denote specific realized values.
Discrete Random Variable: Has a countable set of distinct numeric values ().
Continuous Random Variable: Can take on any uncountable real value within a continuous interval (e.g., time, weight, length).
Expected Value ( / Mean ) of a Discrete Random Variable:
The long-run average outcome computed as a weighted sum of all possible values times their probabilities.
Continuous Random Variables & Density Curves:
For any continuous random variable , the probability of observing any exact single point value is zero:
Probabilities are calculated strictly over intervals as the area under the probability density curve between two boundary points:
Continuous Uniform Distribution:
A continuous random variable uniformly distributed over interval has a flat, rectangular density height of .
Probability over sub-interval (where ) is calculated geometrically:
Section 10: Statistical Computing & Technology Guides

Microsoft Excel Procedures:
Enabling Analysis ToolPak (Windows): File Options Add-ins Manage: Excel Add-ins Go Check Analysis ToolPak OK. Creates a "Data Analysis" button under Data tab.
Enabling Analysis ToolPak (Mac): Tools Excel Add-ins Check Analysis ToolPak OK.
Random Number Generation Formulas:
=RANDBETWEEN(bottom, top): Generates random integers between bottom and top (with replacement).=RAND(): Generates random decimal numbers between 0 and 1.=RANDARRAY(rows, cols, min, max): Creates arrays of random numbers (Excel 365/2021).
Built-In Statistical Functions:
Sum:
=SUM(data)Mean:
=AVERAGE(data)Median:
=MEDIAN(data)Mode:
=MODE.SNGL(data)or=MODE.MULT(data)Quartiles:
=QUARTILE.INC(data, 1)for ;=QUARTILE.INC(data, 3)forVariance:
=VAR.S(data)(Sample);=VAR.P(data)(Population)Standard Deviation:
=STDEV.S(data)(Sample);=STDEV.P(data)(Population)
TI-83 / TI-84 Calculator Commands:
Generating Random Integers: Press
MATHPRB menu Select5:randInt(. Syntax:randInt(lower, upper, n). Example:randInt(1, 6, 3)generates 3 random integers between 1 and 6.
R & RStudio Commands:
Set Working Directory: Session Set Working Directory To Source File Location.
Simple Random Sampling:
sample(1:90, size = 10, replace = FALSE)Reading Files:
CSV:
data <- read.csv("file.csv")TXT:
data <- read.table("file.txt", header = TRUE, sep = "\t")Excel:
library(readxl); data <- read_excel("file.xlsx")
Summary Statistics:
Mean:
mean(datavariable)Variance:
var(datavariable)Quantiles:
quantile(datavariable, probs = c(0.25, 0.50, 0.75))
Graphics:
Histogram:
hist(datavariable, main = "Title", col = "lightgreen")Side-by-Side Plots:
par(mfrow = c(1, 2))before running plot commands.