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.

Branches of Statistics Diagram
  • 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.

Probability versus Statistical Inference
  • 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 μ\mu, population proportion pp).

    • Statistic: A numerical value that summarizes data from a Sample (e.g., sample mean xˉ\bar{x}, sample proportion p^\hat{p}).

    • 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 6,4826{,}482 adolescents aged 13 to 18 in the United States, finding that over 12%12\% experience suicidal ideation.

    • Population: All U.S. adolescents aged 13 to 18.

    • Sample: The 6,4826{,}482 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 (12%12\%) of the 6,4826{,}482 surveyed adolescents who experience suicidal ideation.

  • Example Case Study — Left-Handedness Proportions:

    • Context: Approximately 11%11\% 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 (11%11\% or 0.110.11).

    • Sample Statistic: The proportion of left-handed students in the observed class (395≈0.0316\frac{3}{95} \approx 0.0316 or 3.16%3.16\%).

  • 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.

Heatmap of Crime in Austin by ZIP Code

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).

Classification of Variables Hierarchy Chart
  • 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:

    1. Nominal Level: Data organized into mutually exclusive categories with no implicit mathematical order or scale.

    2. Ordinal Level: Data sorted into ordered categories. Ranks reflect order, but mathematical differences between ranks are meaningless.

    3. 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).

    4. 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 6 ft6\,\text{ft} is twice as tall as 3 ft3\,\text{ft} ; height, weight, exact age, income, salary, duration).

Levels of Measurement Categories Chart
  • 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 nn 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 kk members, and subsequently every kthk^{\text{th}} individual on the list is sampled.


Simple Random Sampling DiagramStratified Random Sampling DiagramCluster Sampling DiagramSystematic Sampling Diagram
  • 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 nn, 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:

        1. Measurement and Processing Errors: Instruments out of calibration, typos in data entry (e.g., entering age 52 instead of 25), software bugs.

        2. Response Bias: Distorted answers caused by leading question phrasing, interviewer tone, social desirability, or question ordering.

        3. 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.

Types of Observational Studies Flowchart
  • 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:

    1. Control: Compare treatment groups directly against an untreated or placebo control group to isolate treatment effects from external background noise.

    2. Randomization: Use random allocation to assign experimental units to treatment groups, neutralizing selection bias and balancing unmeasured lurking variables evenly across groups.

    3. Replication: Apply treatments to a sufficiently large sample of units within the experiment, or repeat the entire experiment across multiple settings to ensure reliability.

    4. 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.

Completely Randomized vs Block Design Diagram
  • 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 (ff).

    • Relative Frequency Table: Displays categories alongside their relative proportions (Relative Frequency=fn\text{Relative Frequency} = \frac{f}{n}) or percentages (Relative Frequency×100%\text{Relative Frequency} \times 100\%).

    • 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 100%100\%, 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.


Side-by-Side Bar Chart ExampleStacked Bar Chart ExampleStandardized Stacked Bar Chart ExampleMosaic Plot of Titanic Survivors

Section 6: Summarizing & Displaying Quantitative Data

  • Summation Notation Notation (∑\sum):

    • Sum of values: ∑i=1nxi=x1+x2+⋯+xn\sum_{i=1}^n x_i = x_1 + x_2 + \dots + x_n

    • Sum of squared values: ∑i=1nxi2=x12+x22+⋯+xn2\sum_{i=1}^n x_i^2 = x_1^2 + x_2^2 + \dots + x_n^2

    • Square of the sum: (∑i=1nxi)2=(x1+x2+⋯+xn)2\left(\sum_{i=1}^n x_i\right)^2 = (x_1 + x_2 + \dots + x_n)^2

  • Measures of Central Tendency:

    • Sample Mean (xˉ\bar{x}): The arithmetic average of sample observations. A point estimator of population parameter μ\mu.         xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^n x_i}{n}

    • Population Mean (μ\mu): The arithmetic average of all units in a finite population of size NN.         μ=∑i=1NxiN\mu = \frac{\sum_{i=1}^N x_i}{N}

    • Weighted Mean (xˉw\bar{x}_w): Calculates the average when data values contribute unequally based on weights wiw_i         xˉw=∑i=1nwixi∑i=1nwi=w1x1+w2x2+⋯+wnxnw1+w2+⋯+wn\bar{x}_w = \frac{\sum_{i=1}^n w_i x_i}{\sum_{i=1}^n w_i} = \frac{w_1 x_1 + w_2 x_2 + \dots + w_n x_n}{w_1 + w_2 + \dots + w_n}

    • Median (MM or Q2Q_2): The 50th percentile value dividing an ordered dataset into two equal halves.

      • Position Formula: Median Position=n+12\text{Median Position} = \frac{n+1}{2}

      • If nn is odd: Median is the exact single middle value.

      • If nn 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:

    • Q0Q_0: Minimum value

    • Q1Q_1: First quartile (25th percentile) = Median of the lower half of sorted data.

    • Q2Q_2: Second quartile (50th percentile) = Overall Median MM.

    • Q3Q_3: Third quartile (75th percentile) = Median of the upper half of sorted data.

    • Q4Q_4: Maximum value

    • Rule for Halves: If nn is odd, exclude the median Q2Q_2 from lower and upper halves when computing Q1Q_1 and Q3Q_3. If nn is even, split the dataset evenly in half.

    • Tukey's Five-Number Summary: The ordered set: Minimum,Q1,Median,Q3,Maximum\text{Minimum}, Q_1, \text{Median}, Q_3, \text{Maximum}.

  • Measures of Variability / Spread:

    • Range: Difference between maximum and minimum values. Highly non-resistant.         Range=Maximum−Minimum\text{Range} = \text{Maximum} - \text{Minimum}

    • Sample Variance (s2s^2): Average of squared deviations from the sample mean divided by n−1n-1 degrees of freedom.         s2=∑i=1n(xi−xˉ)2n−1s^2 = \frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1}

    • Population Variance (σ2\sigma^2):         σ2=∑i=1N(xi−μ)2N\sigma^2 = \frac{\sum_{i=1}^N (x_i - \mu)^2}{N}

    • Sample Standard Deviation (ss): Square root of sample variance. Measured in original data units. Non-resistant.         s=∑i=1n(xi−xˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1}}

    • Interquartile Range (IQRIQR): The spread of the middle 50%50\% of data. Highly resistant to outliers.         IQR=Q3−Q1IQR = Q_3 - Q_1

  • 1.5 ×\times IQR Outlier Detection Rule:

    • Calculate Lower Fence=Q1−1.5×IQR\text{Lower Fence} = Q_1 - 1.5 \times IQR

    • Calculate Upper Fence=Q3+1.5×IQR\text{Upper Fence} = Q_3 + 1.5 \times IQR

    • 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 (IQRIQR).

  • 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 Q1Q_1 to Q3Q_3 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 (xx vs yy).


Unimodal, Bimodal, and Multimodal HistogramsBox Plot Elements DiagramRelationship between Mean, Median, and Mode in Skewed Distributions
  • Describing Quantitative Distributions (S.C.O.S.):

    1. Shape: Modality (unimodal, bimodal, multimodal), symmetry, and direction of skewness.

      • Symmetric (Bell-shaped): Mean≈Median≈Mode\text{Mean} \approx \text{Median} \approx \text{Mode}

      • Right-Skewed (Positively Skewed): Long tail to the right. Mean>Median>Mode\text{Mean} > \text{Median} > \text{Mode}

      • Left-Skewed (Negatively Skewed): Long tail to the left. Mean<Median<Mode\text{Mean} < \text{Median} < \text{Mode}

    2. Center: Report Mean (if symmetric) or Median (if skewed).

    3. Spread: Report Standard Deviation (if symmetric) or IQR/Range (if skewed).

    4. 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 (SS or Ω\Omega): The set containing all possible outcomes of a probability experiment.

    • Event (A,B,CA, B, C): Any defined subset of the sample space SS.

  • Three Approaches to Assigning Probabilities:

    1. Classical (Theoretical) Probability: Assumes all outcomes in sample space SS are equally likely.         P(E)=n(E)n(S)=Number of outcomes in event ETotal number of outcomes in sample space SP(E) = \frac{n(E)}{n(S)} = \frac{\text{Number of outcomes in event } E}{\text{Total number of outcomes in sample space } S}

    2. Empirical (Statistical / Relative Frequency) Probability: Probability calculated from observed experimental data or historical frequencies.         P(E)=Frequency of event ETotal number of trials n=fnP(E) = \frac{\text{Frequency of event } E}{\text{Total number of trials } n} = \frac{f}{n}

    3. 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 nn increases, the sample relative frequency p^n\hat{p}_n converges toward the true theoretical population probability pp.

  • Probability Axioms & Rules:

    • Axiom 1 (Non-Negativity): For any event AA, 0≤P(A)≤10 \le P(A) \le 1

    • Axiom 2 (Normalization): For sample space SS, P(S)=1P(S) = 1

    • Axiom 3 (Complement Rule): P(Ac)=1−P(A)P(A^c) = 1 - P(A), where AcA^c is the complement of AA

  • Event Relationships & Operations:

    • Intersection (A∩BA \cap B): Event "AA and BB"—outcomes belonging to both AA and BB simultaneously.

    • Union (A∪BA \cup B): Event "AA or BB"—outcomes belonging to AA, or BB, or both.

    • Disjoint (Mutually Exclusive) Events: Two events that cannot occur simultaneously. If AA and BB are disjoint, A∩B=∅A \cap B = \emptyset and P(A∩B)=0P(A \cap B) = 0

Venn Diagrams of Intersection, Union, and Complement
  • Addition Rule of Probability:

    • General Addition Rule (Any two events):         P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)

    • Special Addition Rule (Disjoint events):         P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

  • Discrete Probability Distribution Requirements:

    1. Listed events must be mutually exclusive (disjoint).

    2. Each individual probability must satisfy 0≤P(xi)≤10 \le P(x_i) \le 1

    3. The sum of all probabilities across the sample space must equal 1 (∑P(xi)=1\sum P(x_i) = 1).

Section 8: Conditional Probability, Independence, & Bayes' Theorem

  • Independence of Events:

    • Two events AA and BB are independent if the occurrence of one does not affect the probability of the other.

    • Multiplication Rule for Independent Events:         P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B)

    • Critical Rule: Disjoint events with non-zero probabilities can never be independent! If AA and BB are disjoint, P(A∩B)=0eqP(A)×P(B)P(A \cap B) = 0 eq P(A) \times P(B).

  • 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., P(Right-handed)=87100=0.87P(\text{Right-handed}) = \frac{87}{100} = 0.87).

    • Joint Probability: Probability of two intersection outcomes occurring together using interior cell count divided by grand total (e.g., P(Right-handed ∩ Female)=44100=0.44P(\text{Right-handed } \cap \text{ Female}) = \frac{44}{100} = 0.44).

    • 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:     P(A∣B)=P(A∩B)P(B)for P(B)>0P(A|B) = \frac{P(A \cap B)}{P(B)} \quad \text{for } P(B) > 0     Read as "Probability of AA given BB".

  • Checking Independence using Conditional Probability:     Events AA and BB are independent if and only if:     P(A∣B)=P(A)orP(B∣A)=P(B)P(A|B) = P(A) \quad \text{or} \quad P(B|A) = P(B)

  • 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.         P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}

    • Generalized Form across kk exhaustive partition events A1,A2,…,AkA_1, A_2, \dots, A_k:         P(A1∣B)=P(B∣A1)P(A1)P(B∣A1)P(A1)+P(B∣A2)P(A2)+⋯+P(B∣Ak)P(Ak)P(A_1|B) = \frac{P(B|A_1)P(A_1)}{P(B|A_1)P(A_1) + P(B|A_2)P(A_2) + \dots + P(B|A_k)P(A_k)}

  • 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 (X,Y,ZX, Y, Z) denote the random variable; lowercase letters (x,y,zx, y, z) denote specific realized values.

    • Discrete Random Variable: Has a countable set of distinct numeric values (0,1,2,…0, 1, 2, \dots).

    • Continuous Random Variable: Can take on any uncountable real value within a continuous interval (e.g., time, weight, length).

  • Expected Value (E[X]E[X] / Mean μ\mu) of a Discrete Random Variable:

    • The long-run average outcome computed as a weighted sum of all possible values times their probabilities.         μ=E[X]=∑i=1kxi×P(X=xi)\mu = E[X] = \sum_{i=1}^k x_i \times P(X = x_i)

  • Continuous Random Variables & Density Curves:

    • For any continuous random variable XX, the probability of observing any exact single point value is zero:         P(X=x)=0P(X = x) = 0

    • Probabilities are calculated strictly over intervals as the area under the probability density curve between two boundary points:         P(a≤X≤b)P(a \le X \le b)

  • Continuous Uniform Distribution:

    • A continuous random variable XX uniformly distributed over interval [a,b][a, b] has a flat, rectangular density height of 1b−a\frac{1}{b - a}.

    • Probability over sub-interval [c,d][c, d] (where a≤c<d≤ba \le c < d \le b) is calculated geometrically:         P(c≤X≤d)=Width×Height=(d−c)×1b−a=d−cb−aP(c \le X \le d) = \text{Width} \times \text{Height} = (d - c) \times \frac{1}{b - a} = \frac{d - c}{b - a}

Section 10: Statistical Computing & Technology Guides

Guide to Selecting Data Description Methods Hierarchy Chart
  • Microsoft Excel Procedures:

    • Enabling Analysis ToolPak (Windows): File →\rightarrow Options →\rightarrow Add-ins →\rightarrow Manage: Excel Add-ins →\rightarrow Go →\rightarrow Check Analysis ToolPak →\rightarrow OK. Creates a "Data Analysis" button under Data tab.

    • Enabling Analysis ToolPak (Mac): Tools →\rightarrow Excel Add-ins →\rightarrow Check Analysis ToolPak →\rightarrow 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 Q1Q_1; =QUARTILE.INC(data, 3) for Q3Q_3

      • Variance: =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 MATH →\rightarrow PRB menu →\rightarrow Select 5: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 →\rightarrow Set Working Directory →\rightarrow 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)</code></p></li><li><p>Median:<code>median(datavariable)</code></p></li><li><p>Median: <code>median(datavariable)

      • Variance: var(datavariable)</code></p></li><li><p>StandardDeviation:<code>sd(datavariable)</code></p></li><li><p>Standard Deviation: <code>sd(datavariable)

      • Quantiles: quantile(datavariable,0.25)</code>or<code>quantile(datavariable, 0.25)</code> or <code>quantile(datavariable, probs = c(0.25, 0.50, 0.75))

    • Graphics:

      • Histogram: hist(datavariable,main="Title",xlab="XLabel",col="lightgreen")</code></p></li><li><p>Boxplot:<code>boxplot(datavariable, main = "Title", xlab = "X Label", col = "lightgreen")</code></p></li><li><p>Boxplot: <code>boxplot(datavariable, main = "Title", col = "lightgreen")

      • Side-by-Side Plots: par(mfrow = c(1, 2)) before running plot commands.