Foundations of Statistical Science and AI Concepts: Master Study Guide
Module 1: Descriptive Statistics and Data Basics
Statistics is the science of learning from data by exploring, summarizing, modelling, estimating, and testing information. Descriptive statistics summarize raw data through tabular and graphical representations, and compute central tendency and variability measures.
Scales of Measurement
Data are categorized into multiple scales:
- Nominal: Unordered categorical data (e.g., gender, colour).
- Ordinal: Categories with a meaningful order but unquantifiable distances (e.g., school grades).
- Metric (Quantitative): Contains exact numeric values. Can be interval (arbitrary zero, e.g., dates) or ratio scale (absolute zero, enabling multiplication/division). Can be discrete (countable) or continuous (infinite precision).
Measures of Location (Central Tendency)
Location parameters summarize the "middle" or "average" of a dataset.
Arithmetic Mean: The sum of values divided by population size. It is not robust to outliers or scale-invariant.
Geometric Mean: Used for averaging growth factors (like interest rates). It is the N-th root of the product of N numbers.
Harmonic Mean: Used when averaging rates or ratios defined in relation to a unit (e.g., speeds).
Weighted Arithmetic Mean: Applied when certain data points contribute more to the average.
Median: The middle value separating the higher and lower halves of ordered data, highly robust against outliers.
For an odd :
For an even :
Mode: The most frequent value in a dataset.
Measures of Variability (Dispersion)
Variability defines the extent to which values differ from each other.
- Variance: The average squared deviation from the arithmetic mean. Empirical variance of a population is given by:
Using Steiner's theorem, this simplifies to: - Standard Deviation ( ): The square root of variance, reverting to the original unit of measurement.
- Coefficient of Variation: A standardized, unitless measure of relative variation compared to the mean.
- Kurtosis: Measures the "peakedness" or tailedness of a distribution. It computes the fourth central moment:
Module 2: Bivariate Data, Correlation, and Linear Regression
Bivariate data involves pairs of variables visualized via scatterplots.
Correlation
- Covariance: Measures the monotonic relationship between two variables.
For a sample, the estimator uses : - Bravais-Pearson Correlation Coefficient ( ): Normalizes covariance by the product of the standard deviations, returning a dimensionless value between -1 and +1.
- Spearman's Rank Correlation: Used for ordinal data or skewed metric data, computing Pearson correlation on the sorted ranks of the data to capture general monotonic trends.
Linear Regression
Linear regression models a response variable based on an explanatory variable .
- Regression Line: .
- Residuals ( ): The deviation between observed values and predictions, .
- Goodness of Fit ( ): The coefficient of determination partitions the total variation:
- Sum of Squares Total (SQT):
- Sum of Squares Explained (SQE):
- Sum of Squares Residual (SQR):
Module 3: Probability Theory and Combinatorics
Probability theory provides the mathematical foundation for inductive statistics.
Combinatorics (Counting Rules)
- Permutation without repetition: Arrangement of distinct objects.
- Permutation with repetition: Arrangement of objects containing duplicate groups.
- Combination without repetition: Selection of objects from without order and without replacement.
- Combination with repetition: Selection of objects from without order, but with replacement.
- Variation without repetition: Selection of objects from where order matters, without replacement.
- Variation with repetition: Selection of objects from where order matters, with replacement.
Probability Rules and Bayes' Theorem
- Additive Rule: For the union of events.
- Multiplicative Rule: For the intersection of events. If dependent:
- Conditional Probability: .
- Law of Total Probability: Computes an overall probability via disjoint sub-events.
- Bayes' Theorem: Reverses conditional probabilities.
Module 4: Random Variables and Probability Distributions
A random variable transforms experimental outcomes into real numbers ( ).
Discrete vs. Continuous
- Discrete Random Variables: Utilize a Probability Mass Function (PMF), . Expected value and variance are:
- Continuous Random Variables: Utilize a Probability Density Function (PDF) where areas under the curve equal probabilities. The Cumulative Distribution Function (CDF) is:
Expected value and variance are:
Key Distributions
- Binomial Distribution: Models the number of successes in independent Bernoulli trials with replacement.
, (where ). - Hypergeometric Distribution: Models successes in draws without replacement from population containing successes.
- Poisson Distribution: Models the frequency of rare events over a fixed interval ( , ).
- Normal (Gaussian) Distribution: Symmetric, bell-shaped continuous distribution defined by and .
- Standard Normal Distribution: Mean , Variance . Computed via Z-transformation:
- Chi-Square Distribution: Formed by the sum of squared independent Standard Normal variables.
Central Limit Theorem
The sum (or mean) of independent, identically distributed random variables converges to a normal distribution for sufficiently large ( ).
Module 5: Inductive Statistics and Hypothesis Testing
Inductive statistics estimates population parameters based on sample data. Point estimators should be unbiased (expected value converges to true parameter) and consistent (precision increases with sample size).
Confidence Intervals
A range bounding the true parameter with a specific probability.
- Mean, Known Variance:
- Mean, Unknown Variance: Uses the t-distribution with degrees of freedom.
Statistical Significance Testing
Hypothesis tests challenge a null hypothesis ( ) against an alternative hypothesis ( ).
- One-Sample Gauss Test (z-Test): Compares mean to reference with known variance.
- Two-Sample t-Test (Independent): Compares two means assuming homogeneous variances.
Where pooled variance is: - F-Test for Homoscedasticity: Tests variance equality.
- Categorical Tests:
- Chi-Square Goodness-of-Fit: Tests a distribution against reference frequencies .
- McNemar's Change Test: Analyzes paired/dependent categorical data.