STATII

📚 STATII.pdf

Brief overview

This document provides a comprehensive guide to statistical analysis techniques, focusing on understanding relationships between multiple variables. It covers foundational concepts in univariate and bivariate analysis before progressing to advanced multivariate methods, crucial for robust research design and interpretation.

Key points

  • Introduction to multivariate analysis techniques and their strategic application.
  • Multivariate techniques for analyzing both quantitative and categorical data.
  • Univariate statistical parameters and core inferential statistics principles.
  • Analysis of association, statistical control, and interaction effects.
  • Comprehensive coverage of bivariate and multiple regression analysis.
  • Advanced regression techniques and methods for scale construction.

1. Introduction to multivariate analysis techniques

1.1 Overview of multivariate analysis

Multivariate analysis encompasses statistical techniques designed to examine the relationships among three or more variables. Its application varies widely depending on the research question, the types of variables involved, and the nature of the relationships being investigated.

🔑 Important: The choice of a multivariate technique is fundamentally driven by the research objective and the characteristics of the data.

1.2 Types of variables

Variables in quantitative research can be categorized based on their measurement level and observability.

Variable TypeDescriptionMeasurement LevelObservabilityExample
QuantitativeDirectly measurable variables.Interval or RatioManifestAge, income
Dichotomous CategoricalCategorical variables with exactly two categories.Nominal or OrdinalManifestSex, employment status
Polytomous CategoricalCategorical variables with three or more categories.Nominal or OrdinalManifestRegion, education level
LatentVariables not directly measured but inferred from other observed variables.Interval or Ratio (inferred)LatentComplex attitudes, underlying opinions

1.3 Types of relationships

Understanding the nature of relationships between variables is crucial for selecting appropriate multivariate techniques.

Relationship TypeDescription
SymmetricNo distinction is made between dependent and independent variables; all variables are considered equally related.
Asymmetric (Linear)An independent variable exerts a consistent, proportional effect on a dependent variable. A unit change in the independent variable always results in the same magnitude of change in the dependent variable.
Asymmetric (Non-linear)The effect of an independent variable on a dependent variable changes over its range. The magnitude of change in the dependent variable per unit change in the independent variable is not constant; it can increase or decrease gradually.
Interaction effectThe combined effect of two or more independent variables on a dependent variable is greater than the sum of their individual effects. The influence of one independent variable on the dependent variable depends on the level of another independent variable.
Spurious CausalityAn observed relationship between two variables is not causal but is entirely explained by a third, extraneous variable that influences both. The initial association disappears when this confounding variable is controlled for.
Indirect CausalityThe relationship between two variables is mediated by a third variable. The independent variable affects the mediating variable, which in turn affects the dependent variable. The mediating variable acts as a conduit for the causal pathway.
Suppression EffectA suppressor variable, when statistically controlled, reveals or strengthens a true relationship between two other variables that was masked or attenuated in the bivariate analysis. It can arise from opposing direct and indirect effects that cancel each other out.
Interactive StructureThe effect of one independent variable on the dependent variable is conditional upon the level of another independent variable, and vice versa. This is a specific form of interaction where the impact of each predictor varies depending on the other.

1.4 Elaboration and statistical control

Multivariate analysis techniques allow for the examination of relationships beyond simple bivariate associations through statistical control and elaboration.

  • Statistical control: Involves examining the relationship between two variables while holding one or more other variables constant. This helps to discern genuine causal relationships from spurious ones or to understand mediating pathways.

    • With cross-tabulations, this is achieved by comparing bivariate tables for the total sample with tables for specific subgroups defined by the control variable.
    • In regression techniques, it corresponds to comparing model specifications with and without control variables.
  • Elaboration: A systematic process of analyzing bivariate relationships by introducing control variables. It helps to understand the nature of the association, distinguishing between spuriousness, indirect causality, suppression, and interaction.

🔑 Important: Elaboration of bivariate relationships through statistical control is the cornerstone of understanding complex causal pathways in multivariate analysis.

2. Multivariate techniques for quantitative and categorical data

2.1 Understanding measurement levels

Measurement is the process of assigning numerical values to categories or characteristics. The type of numerical value assigned depends on the measurement level of the variable.

Understanding these levels is crucial to prevent performing theoretically meaningless statistical operations.

2.2 Measurement scales and their properties

The hierarchical nature of measurement scales dictates the types of mathematical operations that are statistically meaningful.

Measurement LevelPropertiesPermitted OperationsExamples
NominalCategories are distinct; no inherent order.ClassificationGender, nationality, political party
OrdinalCategories have a rank order; differences are not quantifiable.Classification, RankingEducation level, Likert scale responses
IntervalOrdered categories with equal intervals; no true zero.Classification, Ranking, Addition/SubtractionTemperature (°C/°F), IQ scores
RatioOrdered categories, equal intervals, and a true zero.All arithmetic operations, RatiosAge, income, height, weight

The hierarchy of measurement levels: Ratio > Interval > Ordinal > Nominal.

2.3 Quantitative vs. qualitative values

While social sciences often use quantitative values (numbers) for simplicity and analytical flexibility, it is critical to remember the underlying measurement level to avoid invalid calculations.

  • Quantitative values facilitate easier computer processing, are more unambiguous than qualitative labels, and enable advanced analytical techniques like regression.
  • Qualitative values (categories) are essential for nominal and ordinal data and must be appropriately handled, often through coding, when used in quantitative models.

2.4 Multivariate analysis techniques

Multivariate techniques extend basic statistical methods to analyze the influence of multiple independent variables on a dependent variable. The choice of technique depends primarily on the measurement level of the dependent variable.

2.5 Analyzing quantitative dependent variables

When the dependent variable is quantitative (interval or ratio scale), techniques like multiple regression and analysis of variance are appropriate.

  • Multiple Regression

    • Focuses on the convergent causal structure with a quantitative dependent variable.
    • Allows for both quantitative and categorical independent variables (when coded appropriately).
    • Example: Analyzing political trust (quantitative) based on age, education level, and public perception of government performance (quantitative and categorical).
  • Analysis of Variance (ANOVA) / Covariance Analysis

    • These techniques are often equivalent to multiple regression, especially when using dummy variables for categorical predictors.
    • Suitable for examining the effect of categorical independent variables on a quantitative dependent variable, while controlling for other covariates.
    • Example: Testing the effect of gender (categorical) on ethnocentrism (interval) after controlling for age (quantitative).

2.6 Analyzing categorical dependent variables

When the dependent variable is categorical, specific regression models are employed.

  • Logistic Regression

    • Used for a dichotomous dependent variable (two categories).
    • Models the probability of an event occurring based on independent variables.
    • Example: Analyzing school dropout rates (dichotomous) based on nationality, migration age, and regional educational culture.
  • Multinomial Logit Models (Multinomial Logistic Regression)

    • Handles polytomous dependent variables (three or more unordered categories).
    • Examines the probability of belonging to each category of the dependent variable.
    • Example: Analyzing employment regime (full-time, part-time, inactive/unemployed) based on gender, education level, and other factors.

2.7 Data reduction techniques

When the goal is to reduce a large number of observed variables into a smaller set of underlying latent variables or scales.

  • Principal Component Analysis (PCA)

    • Constructs new latent variables (components) that maximize the explained variance from the original items.
    • Components can be correlated if an oblique rotation is used.
    • Uses all information from original items, including unique variance.
  • Principal Factor Analysis (PFA)

    • Decomposes item variance into common variance (shared with other items) and unique variance (specific to the item).
    • Constructs scales based on shared variance only.
    • Latent variables can be correlated with oblique rotation.
    • Example: Identifying underlying attitudes from a battery of Likert-scale items measuring religion, politics, and emancipation.

PCA and PFA are non-dependent techniques primarily for data reduction, unlike regression or logit models which are dependent.

2.8 Handling categorical independent variables

Categorical independent variables (nominal or ordinal) must be appropriately coded to be included in regression analyses designed for quantitative variables.

2.9 Dummy variables

  • Represent categorical variables with binary (0/1) coding.
  • For a polytomous variable with kk categories, k−1k-1 dummy variables are created, with one category serving as the reference category.
  • The coefficients of dummy variables in a regression model represent the difference in the dependent variable compared to the reference category.
  • The mean of a dummy variable equals the proportion of observations in the category coded as 1.
  • The variance of a dummy variable is the product of the proportions of observations in the 0 and 1 categories.

Dummy variables allow categorical predictors to be used in regression models.

2.10 Effect coding

  • Also converts a categorical variable with kk categories into design variables, typically using values of -1, 0, and 1.
  • The sum of coefficients for the design variables is constrained such that their unweighted mean is zero.
  • Coefficients represent the difference between a category and the overall mean of the dependent variable, rather than a specific reference category.
  • Effect coding is useful when dealing with a large number of categories and when comparison to the grand mean is more informative than comparison to a single reference category.

Both dummy coding and effect coding are valid strategies for incorporating categorical predictors; the choice depends on the desired interpretation of coefficients.

🔑 Important: When converting categorical variables into dummy or effect codes, always ensure the number of created variables is appropriate for the number of categories (k-1 for dummy/effect coding with k categories) to avoid multicollinearity issues.

🔑 Important: Understanding the measurement level of your variables is paramount for selecting appropriate multivariate techniques and interpreting results correctly. </reading_level>

2.11 Measurement levels and data preparation

  • Measurement levels: The level of measurement dictates the types of operations permissible and the statistical techniques applicable.
    • Nominal: Categories with no inherent order (e.g., gender, region). Operations: Frequency counts, proportions.
    • Ordinal: Categories with a meaningful order but unequal intervals (e.g., education level, satisfaction scale). Operations: Rank-based statistics, median.
    • Interval: Ordered categories with equal, but arbitrary, intervals (e.g., temperature in Celsius). Operations: Addition, subtraction, means.
    • Ratio: Ordered categories with equal intervals and a true zero point (e.g., height, income). Operations: All arithmetic operations.

Measurement level hierarchy: Ratio > Interval > Ordinal > Nominal. Operations valid for higher levels are generally applicable to lower levels, but not vice versa.

  • Data exploration: Before multivariate analysis, conduct thorough data exploration using frequency tables and graphical representations to identify:

    • Missing values: Incorrectly coded values (e.g., 99 for age) that must be declared as missing to avoid skewed analyses.
    • Outliers: Extreme values that may disproportionately influence results and warrant investigation.
    • Low cell counts: Categories with very few observations, which may need to be collapsed into an 'other' category to ensure stable estimates.
  • Frequency distributions: Summarize the occurrence of each value or category.

    • Absolute frequency (FiF_i): The number of times a specific value (xix_i) is observed. ∑Fi=n\sum F_i = n.
    • Relative frequency (fif_i): The proportion of observations for a specific value (xix_i). fi=Fi/nf_i = F_i / n. ∑fi=1\sum f_i = 1.

Relative frequency (fif_i) represents the probability of randomly selecting an observation from category ii.

2.12 Frequency tables and graphical representations

  • Nominal variables:

    • Frequency tables: Display absolute and relative frequencies. Order of categories is arbitrary (alphabetic, numeric, or by frequency). Cumulative frequencies are not meaningful.
    • Graphical representations:
      • Histogram: Rectangles represent values, with area proportional to frequency. Bars are best separated as x-axis distances lack intrinsic meaning.
      • Circle/Pie chart: Sectors represent values, with area proportional to frequency. Best for a limited number of categories.
      • Pictogram: Figures represent frequencies. Often ambiguous regarding proportionality (height, area, or volume).
  • Ordinal variables:

    • Frequency tables: Similar to nominal, but categories are ordered intrinsically (x1<x2<⋯<xkx_1 < x_2 < \dots < x_k).
    • Cumulative frequencies:
      • Absolute cumulative frequency (K(xi)K(x_i)): Number of observations less than or equal to xix_i. K(xi)=∑j≤iFjK(x_i) = \sum_{j \le i} F_j.
      • Relative cumulative frequency (k(xi)k(x_i)): Proportion of observations less than or equal to xix_i. k(xi)=∑j≤ifjk(x_i) = \sum_{j \le i} f_j.
      • Bar chart: Bar height is proportional to frequency. X-axis is ordered but bars are equally spaced due to lack of a measurement unit.
      • Histogram: Similar to nominal, but x-axis is ordered.
      • Cumulative frequency function: A step function representing cumulative frequencies. Large steps indicate high frequencies for those values.

The cumulative frequency function for an ordinal variable is a non-strictly monotonically increasing step function.

  • Interval and ratio variables:
    • Frequency tables: Typically grouped into classes (intervals) when the number of unique values is large, especially for continuous variables.
      • Bar chart: X-axis is ordered and has a measurement unit. Bars are spaced according to this unit.
      • Frequency polygon: Connects the tops of bar charts (or histogram bars). Areas under the curve have meaning.
      • Histogram: X-axis has a measurement unit. Area is proportional to frequency within intervals.
      • Cumulative frequency function: Step function on a scaled x-axis.

2.13 Grouping data into classes

  • Rationale: To manage large numbers of unique values, especially for continuous variables, and to facilitate modeling non-linear relationships.
  • Determining class boundaries:
    • Range (VV): Difference between the maximum and minimum observed values (V=max⁡xi−min⁡xiV = \max x_i - \min x_i).
    • Number of classes (kk): Empirically determined, typically 5-15, or via Sturges' rule: k=1+3.322log⁡10nk = 1 + 3.322 \log_{10} n.
    • Class length (ll): Approximated as l=V/kl = V/k. Equal class lengths are recommended.
    • Class limits: Define the boundaries of each class (e.g., 30≤x<4030 \le x < 40).
    • Exact class limits: Continuous intervals used for calculations, e.g., for discrete variable 23, the exact class is [22.5, 23.5[.
    • Class midpoint (xix_i): The average of the exact class limits.

When grouping data, the choice of class boundaries and length can impact the interpretation of distributions and relationships.

2.14 Dummy variables in multivariate analysis

  • Purpose: To incorporate categorical independent variables into regression models that inherently require numerical predictors.
  • Creation: A categorical variable with kk categories is typically converted into k−1k-1 dummy variables.
  • Reference category: One category is designated as the baseline (reference) category, against which other categories are compared. This category is omitted from the model.
  • Interpretation: The coefficient of a dummy variable represents the difference in the dependent variable's expected value between that category and the reference category, holding other variables constant.

Dummy variables transform qualitative attributes into quantitative inputs for regression models.

  • Properties of dummy variables:
    • Mean: The mean of a dummy variable equals the proportion of observations in the category coded as 1.
    • Variance: The variance of a dummy variable is p(1−p)p(1-p), where pp is the proportion of observations in the category coded as 1.

The variance of a dummy variable is the product of the proportion of observations in the category with value 1 and the proportion in the category with value 0.

  • Effect coding: An alternative to dummy coding where categories are coded as -1, 0, or 1.
    • Unweighted mean: The unweighted mean of an effect-coded variable is 0.
    • Weighted mean: The weighted mean reflects the difference in frequencies between groups coded as 1 and -1.
    • Coding: For kk categories, k−1k-1 variables are created. One category is coded as -1 for all effect-coded design variables.

🔑 Important: Effect coding assigns -1 to one category across all design variables, differentiating it from dummy coding where one category is omitted.

3. Univariate statistical parameters and inferential statistics

3.1 Parameters of location (central tendency)

  • Location parameters (also called central tendency or position parameters) describe the central point or typical value of a distribution.
  • They should ideally fall between the minimum and maximum observed values.
  • The choice of location parameter depends on the measurement level of the variable.

3.2 Mode

  • Mode (x0x_0): The most frequently occurring value or category in a dataset.
    • For individual data: the value with the highest frequency.
    • For grouped data: the midpoint of the class with the highest frequency (modal class).
  • Advantage: Easily determined from frequency tables.
  • Disadvantages: Not necessarily unique (bimodal distributions), does not consider frequencies of other values.

📝 Example: In a survey on safety perceptions, "seldom" (value 2) was the mode, indicating it was the most frequent response.

3.3 Quantiles and Median

  • Quantiles divide the ordered data into proportions.
  • The qq-quantile is the value below which a proportion qq of observations fall.
  • Median (xmedx_{med}): The value that divides the data into two equal halves (50% below, 50% above).
    • For individual data with NN observations:
      • If NN is odd, it's the middle value.
      • If NN is even, it's the average of the two middle values.
    • For grouped data, it's calculated using linear interpolation.

🔑 Important: The median is less sensitive to extreme values than the mean, making it a more robust measure for skewed distributions (e.g., income).

3.4 Special Quantiles

  • Quartiles (Q1, Q2, Q3) divide data into four equal parts. Q2 is the median.
  • Deciles (D1-D9) divide data into ten equal parts. D5 is the median.
  • Percentiles (P1-P99) divide data into one hundred equal parts. P50 is the median.
Quantile TypeDivisionExample (for nn observations)
Quartiles4 partsQ1 (25th25^{th} percentile), Q2 (50th50^{th} percentile/median), Q3 (75th75^{th} percentile)
Deciles10 partsD1 (10th10^{th} percentile), ..., D5 (50th50^{th} percentile/median), ..., D9 (90th90^{th} percentile)
Percentiles100 partsP1 (1st1^{st} percentile), ..., P50 (50th50^{th} percentile/median), ..., P99 (99th99^{th} percentile)

3.5 Arithmetic Mean

  • Arithmetic Mean (xˉ\bar{x}): The sum of all observations divided by the number of observations.
    • Applicable to interval and ratio scales.
    • Uses all observed values.
    • Crucial for bivariate and multiple regression models.

🔑 Important: The mean is sensitive to outliers. For skewed data, the median often provides a more representative central value.

Data TypeFormula
Individual Dataxˉ=∑xin\bar{x} = \frac{\sum x_i}{n}
Grouped Dataxˉ=∑xifin\bar{x} = \frac{\sum x_i f_i}{n} (where xix_i are class midpoints)
Grouped Data 2xˉ=∑(class midpoint×relative frequency)\bar{x} = \sum (\text{class midpoint} \times \text{relative frequency})

3.6 Geometric Mean

  • Geometric Mean (GG): The nthn^{th} root of the product of nn observations.
    • Requires strictly positive ratio-scale data.
    • Used for calculating average growth rates and in log-linear analyses.
    • log⁡(G)=xˉlog⁡\log(G) = \bar{x}_{\log}, the arithmetic mean of the logarithms of the observations.

| Individual Data | G=x1⋅x2⋅⋯⋅xnnG = \sqrt[n]{x_1 \cdot x_2 \cdot \dots \cdot x_n} | | Grouped Data | G=x1f1⋅x2f2⋅⋯⋅xkfknG = \sqrt[n]{x_1^{f_1} \cdot x_2^{f_2} \cdot \dots \cdot x_k^{f_k}} |

3.7 Harmonic Mean

  • Harmonic Mean (HH): The reciprocal of the arithmetic mean of the reciprocals of the observations.
    • Applicable to ratio scales with strictly positive values.
    • Rarely used in general statistics; common for calculating average speeds.
Data TypeFormula
Individual DataH=n∑1xiH = \frac{n}{\sum \frac{1}{x_i}}
Grouped DataH=n∑fixiH = \frac{n}{\sum \frac{f_i}{x_i}} (where xix_i are class midpoints)

3.8 Moments and Measures of Spread

3.9 Moments

  • Moments are statistical measures used to describe the shape and characteristics of a distribution.
  • Moments around the origin (aka_k): Used to calculate the arithmetic mean (k=1).
    • ak=1n∑xika_k = \frac{1}{n}\sum x_i^k
  • Central moments (mkm_k): Moments calculated around the arithmetic mean.
    • mk=1n∑(xi−xˉ)km_k = \frac{1}{n}\sum (x_i - \bar{x})^k
    • m1=0m_1 = 0 (central moment of rank 1 is always zero).
    • m2m_2 is the variance (central moment of rank 2).
    • m3m_3 and m4m_4 are the basis for skewness and kurtosis coefficients.

3.10 Measures of Spread (Dispersion)

  • Spread measures quantify the variability or dispersion of data points around a central value.
  • They are crucial for understanding the reliability and extent of differences within a dataset.
  • The choice of spread measure depends on the variable's measurement level.
  • A spread of 0 indicates no variation (all observations are identical).

3.11 Range

  • Range (VV): The difference between the maximum and minimum observed values.
    • Applicable to ordinal, interval, and ratio scales.
    • Simple but highly sensitive to outliers.
Data TypeFormula
Individual DataV=max⁡(xi)−min⁡(xi)V = \max(x_i) - \min(x_i)
Grouped DataV=Upper bound of max class−Lower bound of min classV = \text{Upper bound of max class} - \text{Lower bound of min class}

3.12 Interquantile Distances

  • Interquartile Range (II): The difference between the third quartile (Q3) and the first quartile (Q1).
    • Measures the spread of the middle 50% of the data.
    • Less sensitive to outliers than the range.
    • I=Q3−Q1I = Q3 - Q1.
  • Interdecile Range (DD): The difference between the ninth decile (D9) and the first decile (D1).
    • Measures the spread of the middle 80% of the data.
    • D=D9−D1D = D9 - D1.

3.13 Variance and Standard Deviation

  • Variance (s2s^2): The average of the squared differences from the arithmetic mean.

    • Represents the average squared deviation from the mean.
    • For a sample, it's typically calculated using n−1n-1 in the denominator (unbiased estimator of population variance).
    • Unit of measurement is the square of the original data.
    • s2=m2=1n∑(xi−xˉ)2s^2 = m_2 = \frac{1}{n}\sum (x_i - \bar{x})^2 (population variance) or 1n−1∑(xi−xˉ)2\frac{1}{n-1}\sum (x_i - \bar{x})^2 (sample variance).
  • Standard Deviation (ss): The square root of the variance.

    • "Average" deviation from the mean.
    • Returns the measure to the original unit of the data.
    • s=s2s = \sqrt{s^2}.

🔑 Important: Variance and standard deviation are fundamental in many inferential statistical techniques, including regression and ANOVA.

3.14 Mean Absolute Deviation

  • Mean Absolute Deviation (ee): The average of the absolute values of the deviations from the mean.
    • Intuitively clear but less mathematically tractable for further analysis compared to variance.
    • e=1n∑∣xi−xˉ∣e = \frac{1}{n}\sum |x_i - \bar{x}|.

3.15 Shape Parameters (Skewness and Kurtosis)

  • These parameters describe the asymmetry and peakedness of a distribution, respectively.
  • They are derived from central moments of rank 3 (skewness) and rank 4 (kurtosis).
  • The normal distribution has zero skewness and a specific kurtosis value (Fisher's definition).

3.16 The Normal Distribution

  • The normal distribution (or Gaussian distribution) is a bell-shaped, symmetric probability distribution.
  • It is defined by its mean (μ\mu) and variance (σ2\sigma^2).
  • The probability density function is given by: f(x)=1σ2πexp⁡(−12(x−μσ)2)f(x) = \frac{1}{\sigma\sqrt{2\pi}} \exp\left(-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2\right)
  • A standardized normal distribution, Z=x−μσZ = \frac{x-\mu}{\sigma}, has a mean of 0 and a standard deviation of 1 (N(0,1)N(0,1)).

🔑 Important: The normal distribution is central to inferential statistics due to the Central Limit Theorem.

3.17 Properties and Applications

  • Empirical Rule (68-95-99.7 Rule): For a normal distribution:
    • ~68% of data falls within ±1\pm 1 standard deviation of the mean.
    • ~95% of data falls within ±1.96\pm 1.96 standard deviations of the mean.
    • ~99.7% of data falls within ±3\pm 3 standard deviations of the mean.
  • Standardized Scores (z-scores): zi=xi−xˉsz_i = \frac{x_i - \bar{x}}{s}
    • Indicate how many standard deviations an observation is from the mean.
    • Allow for comparison of scores across different distributions.
    • A z-score of 1.96 indicates an observation is at the 97.5th percentile.

🔑 Important: Z-scores standardize variables, enabling comparison and relative positioning of observations regardless of their original units.

3.18 Inferential Statistics: Sampling and Distributions

  • Inferential statistics: Drawing conclusions about a population based on a sample.
  • Aims to generalize findings from a sample to a larger population.

3.19 Sampling

  • Sampling: The process of selecting a subset of individuals or observations from a larger population.
  • Random sampling is crucial for ensuring representativeness and minimizing bias.

3.20 Sampling Distributions

  • A sampling distribution is a probability distribution of a statistic (e.g., sample mean) calculated from all possible samples of a given size drawn from a population.
  • It describes the behavior of sample statistics.

3.21 Central Limit Theorem (CLT)

  • The Central Limit Theorem states that for a sufficiently large sample size (nn), the sampling distribution of the sample mean will be approximately normally distributed, regardless of the population's original distribution.
  • The mean of the sampling distribution equals the population mean (μxˉ=μ\mu_{\bar{x}} = \mu).
  • The standard deviation of the sampling distribution (standard error) is σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}.

🔑 Important: The CLT is foundational, enabling the use of normal distribution theory for inference even when the population distribution is unknown or non-normal.

3.22 Hypothesis Testing

  • Hypothesis testing: A formal procedure to decide whether to reject or fail to reject a null hypothesis (H0H_0) based on sample evidence.
  • Key steps:
    1. Formulate null (H0H_0) and alternative (HaH_a) hypotheses.
    2. Choose a significance level (α\alpha).
    3. Collect sample data and calculate a test statistic.
    4. Determine the p-value or compare the test statistic to a critical value.
    5. Make a decision: reject H0H_0 if the p-value is less than α\alpha (or test statistic falls in rejection region), otherwise fail to reject H0H_0.

3.23 Test Statistics and Distributions

  • When population variance is known, Z-tests are used.
  • When population variance is unknown, and sample size is small, the t-distribution is used.
  • The t-distribution is similar to the normal distribution but has fatter tails, accounting for the added uncertainty from estimating the population standard deviation from the sample.
  • The shape of the t-distribution depends on degrees of freedom (dfdf), typically n−1n-1 for a single sample mean.

🔑 Important: Use the t-distribution when estimating population standard deviation from sample data, especially with smaller sample sizes.

3.24 Confidence Intervals

  • Confidence intervals provide a range of plausible values for an unknown population parameter, based on sample data.
  • A 100(1−α)%100(1-\alpha)\% confidence interval means that if we were to take many samples and construct an interval for each, 100(1−α)%100(1-\alpha)\% of those intervals would contain the true population parameter.
  • For a population mean (μ\mu):
    • If σ\sigma is known: xˉ±zα/2σn\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}
    • If σ\sigma is unknown: xˉ±tα/2,dfsn\bar{x} \pm t_{\alpha/2, df} \frac{s}{\sqrt{n}} (using the t-distribution)

🔑 Important: Confidence intervals provide a measure of precision for our estimate of a population parameter. A wider interval indicates less precision.

3.25 Univariate descriptive statistics: parameters of location, spread, and shape

Univariate statistics describe the distribution of a single variable. Key parameters include measures of location, spread, and shape.

3.26 Measures of location

  • Mean (xˉ\bar{x}): The arithmetic average, calculated as the sum of all values divided by the number of observations. It is sensitive to outliers.
  • Median (xCx_C): The middle value in an ordered dataset. It is robust to outliers.
  • Mode: The most frequently occurring value in a dataset. It can be used for any level of measurement but may not be unique or exist.

3.27 Measures of spread

  • Range: The difference between the maximum and minimum values in a dataset. It is highly sensitive to outliers.
  • Variance (σ2\sigma^2 or s2s^2): The average of the squared deviations from the mean. It is an even central moment and is expressed in squared units of the original variable, making interpretation difficult.
  • Standard deviation (σ\sigma or ss): The square root of the variance. It is expressed in the same units as the original variable, facilitating interpretation.
  • Coefficient of variation (vv): The ratio of the standard deviation to the mean (v=sxˉv = \frac{s}{\bar{x}}). It is a dimensionless measure, useful for comparing the relative dispersion of variables with different units or scales.

v=sxˉv = \frac{s}{\bar{x}}

3.28 Measures of shape

  • Skewness: Measures the asymmetry of a probability distribution.

    • Symmetric distribution: Mean, median, and mode are equal. Skewness coefficients are typically zero.
    • Positive (left) skew: The tail of the distribution extends to the right. Generally, mode ≤\le median ≤\le mean. Skewness coefficients are positive.
    • Negative (right) skew: The tail of the distribution extends to the left. Generally, mean ≤\le median ≤\le mode. Skewness coefficients are negative.
  • Kurtosis: Measures the "tailedness" or peakedness of a probability distribution relative to a normal distribution.

    • Leptokurtic: Higher peak and thinner tails than a normal distribution. Kurtosis coefficients are positive (Fisher's g2>0g_2 > 0) or greater than 3 (Pearson's b2>3b_2 > 3).
    • Mesokurtic: Similar peak and tails to a normal distribution. Kurtosis coefficients are zero (Fisher's g2=0g_2 = 0) or equal to 3 (Pearson's b2=3b_2 = 3).
    • Platykurtic: Lower peak and fatter tails than a normal distribution. Kurtosis coefficients are negative (Fisher's g2<0g_2 < 0) or less than 3 (Pearson's b2<3b_2 < 3).

Skewness: Measures asymmetry. Kurtosis: Measures peakedness/tailedness.

3.29 Coefficients for skewness

  • Pearson's empirical skewness coefficient (SS): S=xˉ−modesS = \frac{\bar{x} - \text{mode}}{s}.
  • Yule and Kendall's coefficient (YY): Compares the distance between quartiles (Y=Q1−Q2Q2−Q3Y = \frac{Q_1 - Q_2}{Q_2 - Q_3}).
  • Third central moment (m3m_3): An odd central moment that indicates skewness. For a symmetric distribution, m3=0m_3 = 0.
  • Fisher's skewness coefficient (g1g_1): A standardized measure based on the third central moment (g1=m3s3g_1 = \frac{m_3}{s^3}). g1=0g_1 = 0 for symmetric distributions.
  • Pearson's skewness coefficient (b1b_1): b1=g12b_1 = g_1^2. It indicates asymmetry but not the direction. b1=0b_1 = 0 for symmetric distributions.

3.30 Coefficients for kurtosis

  • Pearson's kurtosis coefficient (b2b_2): Compares the fourth central moment to the square of the variance. b2=3b_2 = 3 for a normal distribution.
  • Fisher's kurtosis coefficient (g2g_2): A standardized measure (g2=b2−3g_2 = b_2 - 3). g2=0g_2 = 0 for a normal distribution.
CoefficientFormula (if applicable)Interpretation for SymmetryInterpretation for Kurtosis
Pearson (SS)xˉ−modes\frac{\bar{x} - \text{mode}}{s}S≈0S \approx 0 (symmetric)N/A
Yule & Kendall (YY)Q1−Q2Q2−Q3\frac{Q_1 - Q_2}{Q_2 - Q_3}Y=0Y = 0 (symmetric)N/A
Third Moment (m3m_3)1n∑(xi−xˉ)3\frac{1}{n}\sum(x_i - \bar{x})^3m3=0m_3 = 0 (symmetric)N/A
Fisher (g1g_1)m3s3\frac{m_3}{s^3}g1=0g_1 = 0 (symmetric)N/A
Pearson (b1b_1)g12g_1^2b1=0b_1 = 0 (symmetric)N/A
Pearson (b2b_2)m4s4\frac{m_4}{s^4}N/Ab2=3b_2 = 3 (mesokurtic)
Fisher (g2g_2)b2−3b_2 - 3N/Ag2=0g_2 = 0 (mesokurtic)

Note: The chi-squared distribution is typically positively skewed, especially with low degrees of freedom, and approaches normality as degrees of freedom increase. The t-distribution is platykurtic, meaning it has fatter tails than the normal distribution, especially with fewer degrees of freedom.

3.31 Inferential statistics: from samples to populations

Inferential statistics aims to generalize findings from a sample to a larger population. This process relies on probability theory and is only valid for probability samples (e.g., simple random samples).

3.32 Sampling and sampling distributions

  • Population: The entire group of interest.
  • Sample: A subset of the population from which data is collected.
  • Sampling: The process of selecting a sample.
  • Sample statistic: A numerical value calculated from sample data (e.g., sample mean xˉ\bar{x}).
  • Population parameter: A numerical characteristic of the population (e.g., population mean μ\mu). Sample statistics serve as estimators for population parameters.
  • Sampling distribution: The probability distribution of a sample statistic (e.g., the distribution of sample means) obtained from all possible samples of a given size drawn from the same population.

Key idea: Sample statistics estimate population parameters. The reliability of this estimation depends on the properties of the sampling distribution.

3.33 Properties of estimators

  • Unbiasedness (Purity): An estimator is unbiased if the mean of its sampling distribution is equal to the population parameter it estimates. E(θ^)=θE(\hat{\theta}) = \theta.
    • The sample mean (xˉ\bar{x}) and sample variance (s2s^2) are unbiased estimators of the population mean (μ\mu) and variance (σ2\sigma^2), respectively, under simple random sampling.
  • Accuracy (Precision): An estimator is more accurate if its sampling distribution has a smaller variance (lower standard error). This means the sample statistic varies less across different samples.

Unbiasedness: Average of estimator equals parameter. Accuracy: Little variation in estimator across samples (low standard error).

3.34 The Central Limit Theorem (CLT)

The CLT is a cornerstone of inferential statistics. It states that, regardless of the population's distribution, the sampling distribution of the sample mean will approach a normal distribution as the sample size (nn) becomes sufficiently large.

  • Conditions:
    • The population has a mean (μ\mu) and a finite variance (σ2\sigma^2).
    • Samples of size nn are drawn randomly.
  • Outcome: The sampling distribution of the sample mean (xˉ\bar{x}) will:
    • Have a mean equal to the population mean (μxˉ=μ\mu_{\bar{x}} = \mu).
    • Have a variance equal to σ2n\frac{\sigma^2}{n} and a standard deviation (standard error) equal to σn\frac{\sigma}{\sqrt{n}}.
  • Approximation: For a sufficiently large nn (often considered n≥30n \ge 30 or n≥100n \ge 100, depending on the skewness of the population distribution), the sampling distribution of xˉ\bar{x} can be approximated by a normal distribution.

CLT: For large nn, the distribution of sample means is approximately normal, regardless of the population distribution.

  • Standard Error (SESE): The standard deviation of the sampling distribution of a statistic. For the sample mean: SE(xˉ)=σxˉ=σnSE(\bar{x}) = \sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}.

    Standard Error: Measures the typical deviation of sample means from the population mean.

3.35 Hypothesis testing

Hypothesis testing is a formal procedure for making decisions about population parameters based on sample data.

  • Null Hypothesis (H0H_0): A statement about a population parameter that is assumed to be true until evidence suggests otherwise (e.g., H0:μ=μ0H_0: \mu = \mu_0).
  • Alternative Hypothesis (HaH_a or H1H_1): A statement that contradicts the null hypothesis.
  • Type I Error (α\alpha): Rejecting a true null hypothesis. The probability of a Type I error is denoted by α\alpha (significance level).
  • Type II Error (β\beta): Failing to reject a false null hypothesis.
  • Power of a test (1−β1-\beta): The probability of correctly rejecting a false null hypothesis.

3.36 Steps in hypothesis testing (for population mean, σ\sigma known)

  1. State assumptions: Measurement level (interval/ratio), population distribution (normal or large nn), sample design (e.g., EAS).
  2. Determine sampling distribution under H0H_0: Using the CLT, define the distribution of the test statistic (e.g., z-score) if H0H_0 were true.
  3. Choose significance level (α\alpha) and critical region: Define α\alpha (e.g., 0.05, 0.01). Determine the critical value(s) that bound the rejection region (critical region) such that the probability of observing a test statistic in this region, if H0H_0 is true, is α\alpha.
  4. Calculate the test statistic: Compute the value of the test statistic from the sample data (e.g., a z-score).
    • z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{ \sigma/\sqrt{n} }
  5. Make a decision: Compare the calculated test statistic to the critical value(s).
    • If the test statistic falls into the critical region, reject H0H_0.
    • Otherwise, fail to reject H0H_0.

Decision rule: If test statistic is in the critical region, reject H0H_0.

  • p-value: The probability of observing a test statistic as extreme as, or more extreme than, the one calculated from the sample, assuming H0H_0 is true. If p-value ≤α\le \alpha, reject H0H_0.

3.37 Confidence intervals

A confidence interval provides a range of plausible values for an unknown population parameter, based on sample data.

  • Confidence level (1-α\alpha): The probability that the interval contains the true population parameter (e.g., 90%, 95%, 99%). A higher confidence level leads to a wider interval.
  • Calculating a confidence interval for the population mean (μ\mu) when σ\sigma is known:
    • The interval is typically of the form: xˉ±Zα/2×SE(xˉ)\bar{x} \pm Z_{\alpha/2} \times SE(\bar{x})
    • Where Zα/2Z_{\alpha/2} is the critical z-value corresponding to the desired confidence level.
    • SE(xˉ)=σnSE(\bar{x}) = \frac{\sigma}{\sqrt{n}}

Confidence Interval=xˉ±Zα/2σn\text{Confidence Interval} = \bar{x} \pm Z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

  • Factors affecting interval width:
    • Confidence level (α\alpha): Higher confidence →\rightarrow wider interval.
    • Population standard deviation (σ\sigma): Larger σ\sigma →\rightarrow wider interval.
    • Sample size (nn): Larger nn →\rightarrow narrower interval (more precision).

3.38 The t-distribution

When the population standard deviation (σ\sigma) is unknown and must be estimated from the sample standard deviation (ss), the t-distribution is used instead of the normal distribution for hypothesis testing and confidence intervals concerning the population mean.

  • Properties:
    • Bell-shaped and symmetric around zero, similar to the normal distribution.
    • Has heavier tails than the normal distribution (is platykurtic), especially with low degrees of freedom. This accounts for the increased uncertainty from estimating σ\sigma.
    • The shape depends on the degrees of freedom (df=n−1df = n-1). As dfdf increases, the t-distribution approaches the normal distribution.
  • Use:
    • For hypothesis tests about the population mean when σ\sigma is unknown.
    • For constructing confidence intervals for the population mean when σ\sigma is unknown.
  • Standard Error using t-distribution: SE(xˉ)=snSE(\bar{x}) = \frac{s}{\sqrt{n}}
  • Test statistic: t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}
  • Confidence Interval using t-distribution: xˉ±tα/2,df×sn\bar{x} \pm t_{\alpha/2, df} \times \frac{s}{\sqrt{n}}

Key distinction: Use Z-distribution when σ\sigma is known, use t-distribution when σ\sigma is unknown and estimated by ss.

🔑 Important: The CLT is fundamental to inferential statistics, allowing generalization from sample data to population characteristics by approximating the sampling distribution of the mean as normal for large sample sizes, or when the population is normally distributed. Understanding the t-distribution is crucial when population variance is unknown, as it provides a more accurate framework for inference.

3.39 Parameters for univariate data

  • Sample variance: An unbiased estimator of population variance is calculated using sample data with the sum of squares (SS) divided by n−1n-1.

σ^2=∑i=1n(xi−xˉ)2n−1\hat{\sigma}^2 = \frac{\sum_{i=1}^{n}(x_i - \bar{x})^2}{n-1}

The hat (^\hat{}) indicates an estimate based on the sample. The division by n−1n-1 accounts for the additional uncertainty when estimating population variance from a sample, particularly with smaller sample sizes.

  • Degrees of freedom (df): Represents the number of independent observations that can vary freely in a calculation. It is generally the number of independent parameters minus the number of constraints or equations. For sample variance, it is n−1n-1 because the sample mean (xˉ\bar{x}) is used, which consumes one degree of freedom.

  • The t-distribution is used for inference when the population standard deviation (σ\sigma) is unknown and must be estimated from the sample.

    The t-distribution is flatter than the normal distribution for small samples, meaning extreme values are more likely, requiring wider intervals for the same confidence level.

3.40 Inferential statistics using the t-distribution

  • Hypothesis testing for population mean (when σ\sigma is unknown): When population mean (μ\mu) and standard deviation (σ\sigma) are unknown, a t-test statistic is used, following the logic of the Central Limit Theorem.

t=xˉ−μσ^/nt = \frac{\bar{x} - \mu}{\hat{\sigma}/\sqrt{n}}

This test statistic follows a t-distribution with n−1n-1 degrees of freedom. It assumes the variable in the population approximates a normal distribution.

> The t-test statistic is the ratio of the parameter estimate to its standard error.
  • Calculating a confidence interval (when σ\sigma is unknown): A confidence interval for the population mean (μ\mu) can be constructed using the t-distribution.

xˉ±tα/2,n−1×σ^n\bar{x} \pm t_{\alpha/2, n-1} \times \frac{\hat{\sigma}}{\sqrt{n}}

Where tα/2,n−1t_{\alpha/2, n-1} is the critical t-value for a given confidence level and degrees of freedom.

Key difference: t-distribution requires σ\sigma to be estimated from sample data (σ^\hat{\sigma}), while z-distribution assumes σ\sigma is known.

3.41 Example: Calculating a confidence interval

📝 Example: Given a sample of n=25n=25 with a mean age of xˉ=39.3\bar{x}=39.3 years and an estimated population standard deviation of σ^=22.258\hat{\sigma}=22.258 years, calculate a 90% confidence interval for the population mean age.

  • Degrees of freedom: df=n−1=25−1=24df = n-1 = 25-1 = 24.
  • For a 90% confidence interval, the critical t-value (tα/2,24t_{\alpha/2, 24}) is approximately 1.7111.711.
  • The 90% confidence interval is calculated as: 39.3±1.711×22.2582539.3 \pm 1.711 \times \frac{22.258}{\sqrt{25}}
  • This yields a confidence interval of: [31.68,46.92][31.68, 46.92] years.

🔑 Important: The choice between the z-distribution and the t-distribution for inference about a population mean hinges on whether the population standard deviation (σ\sigma) is known or unknown. If unknown, the t-distribution is employed, with its shape dependent on the degrees of freedom.

4. Analysis of association and statistical control

4.1 Introduction to association and statistical control

  • The analysis of relationships between variables is fundamental to theory development and empirical research in the social sciences.
  • The choice of an appropriate measure of association is contingent upon the measurement level of the variables involved.

Key distinction: Association measures vary based on variable type: categorical (nominal/ordinal) versus quantitative (interval/ratio).

  • Statistical control allows for the examination of the relationship between two variables (X and Y) while accounting for the potential confounding influence of a third variable (Z).
    • For categorical variables, this is achieved through table splitting.
    • For quantitative variables, partial correlation coefficients are employed.

4.2 Association between nominal and ordinal variables

  • Analyzing the association between two categorical variables involves several objectives:
    • Describing the nature and direction of the association within the sample.
    • Assessing the generalizability of the sample association to the population.
    • Determining the strength of the association.

4.3 Cross-tabulations

  • A cross-tabulation (or contingency table) displays the frequency distribution of respondents across the categories of two or more variables.
  • Cells in a cross-tabulation represent the absolute frequencies (FijF_{ij}) for the combination of a specific value of the row variable (Y) and a specific value of the column variable (X).
  • Marginal distributions are the sums of frequencies across rows (row totals) or columns (column totals), representing the univariate distributions of each variable independently.
  • Conditional distributions describe the distribution of one variable within a specific category of another variable.

Insight: Marginal distributions reveal individual variable frequencies, while conditional distributions and their comparison are key to understanding association.

4.4 Statistical independence and association

  • Statistical independence occurs when the occurrence of one event does not affect the probability of another. For two events A and B: P(A∣B)=P(A)P(A|B) = P(A) and P(B∣A)=P(B)P(B|A) = P(B).
  • In the case of independence, the product rule applies: P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B).
  • Statistically, independence is indicated when the relative conditional distribution of one variable remains constant across all categories of the other variable, and is equal to its marginal distribution.
  • Statistical dependence (association) exists when the relative conditional distributions differ.

4.5 Examining the nature of association: Row and column percentages

  • To compare distributions across categories of another variable, relative frequencies (percentages) are used.
  • Row percentages are calculated by dividing cell frequencies by the row total (Fij/FitotalF_{ij} / F_{i\text{total}}). They are best interpreted by comparing percentages within the same column.
  • Column percentages are calculated by dividing cell frequencies by the column total (Fij/Ftotal jF_{ij} / F_{\text{total } j}). They are best interpreted by comparing percentages within the same row.
  • Conventionally, the dependent variable (Y) is in rows and the independent variable (X) in columns. Thus, column percentages are typically used to compare the distribution of Y across categories of X.

Rule of thumb: Compare percentages across the direction in which percentages were calculated (e.g., compare column percentages across rows).

Dependent Variable (Y)Independent Variable (X)Percentage TypeInterpretation Focus
RowsColumnsColumnCompare within rows; shows Y distribution per X cat
ColumnsRowsRowCompare within columns; shows X distribution per Y cat

4.6 Inferential testing for cross-tabulations: Chi-square test

  • The chi-square test of independence assesses whether an observed association in a sample is likely to reflect a true association in the population.
  • Hypotheses:
    • Null Hypothesis (H0H_0): No statistical independence between variables in the population (i.e., no association).
    • Alternative Hypothesis (HaH_a): A real association exists between variables in the population.
  • Assumptions:
    • Two categorical variables.
    • Independent samples for categories of the independent variable.
  • Calculating Expected Frequencies (FexpF_{exp}): Under H0H_0, expected cell frequencies are calculated using the product rule for independent events: Fexp=Row Total×Column TotalnF_{exp} = \frac{\text{Row Total} \times \text{Column Total}}{n}
  • Chi-Square Test Statistic (χ2\chi^2): This statistic measures the discrepancy between observed (FobsF_{obs}) and expected (FexpF_{exp}) cell frequencies. χ2=∑(Fobs−Fexp)2Fexp\chi^2 = \sum \frac{(F_{obs} - F_{exp})^2}{F_{exp}}
    • A larger χ2\chi^2 value indicates a greater deviation from independence.
    • The χ2\chi^2 value is influenced by both the strength of the association and the sample size.
  • Chi-Square Distribution: The χ2\chi^2 statistic follows a χ2\chi^2 distribution with (r−1)(c−1)(r-1)(c-1) degrees of freedom (df), where rr is the number of rows and cc is the number of columns.
  • Decision Rule: If the calculated χ2\chi^2 value exceeds the critical value for a given alpha level and df, H0H_0 is rejected.
  • Assumptions for Chi-Square Approximation:
    • Minimum sample size of 50.
    • Expected cell frequencies ≥5\ge 5 for most cells.
    • In 2x2 tables, all four expected cell frequencies must be ≥5\ge 5.
    • If these conditions are not met (especially for 2x2 tables), Fisher's exact test or a continuity correction is used.

Key Takeaway: Chi-square tests for association, but its value is inflated by sample size, necessitating association measures for strength.

4.7 Strength of association: Association measures

  • While statistical significance indicates a likely association in the population, it does not quantify the strength of that association. Association measures provide standardized values indicating the magnitude of the relationship.
  • Characteristics of Association Measures:
    • Standardized, typically ranging from 0 (no association) to 1 (perfect association) or -1 to +1 (including direction).
    • Indicate both strength and direction of the relationship.
    • Choice depends on the measurement level of the variables.
    • Symmetric measures treat variables as interchangeable; asymmetric measures distinguish between dependent and independent variables.

4.8 Measures for nominal variables

  • Phi-squared (ϕ2\phi^2):
    • Derived from the chi-square statistic: ϕ2=χ2n\phi^2 = \frac{\chi^2}{n}.
    • Symmetric.
    • Ranges from 0 to 1 for 2x2 or 2xk tables, but can exceed 1 for larger tables. Less frequently used due to the variable upper bound.
  • Cramer's V:
    • A standardized version of chi-square: V=χ2Min(r−1,c−1)×nV = \sqrt{\frac{\chi^2}{\text{Min}(r-1, c-1) \times n}}.
    • Ranges from 0 to 1.
    • Equivalent to ϕ2\phi^2 for 2x2 or 2xk tables.

Comparison: Cramer's V is generally preferred over ϕ2\phi^2 due to its consistent upper bound of 1 across all table dimensions.

4.9 Odds-ratio (α\alpha)

  • The odds-ratio compares the odds of an outcome occurring in one group versus another.
  • Odds: The ratio of the probability of an event occurring to the probability of it not occurring. For a binary outcome Y (1=yes, 2=no) and a predictor X: Odds(Y=1∣X)=P(Y=1∣X)P(Y=2∣X)=F1XF2X\text{Odds}(Y=1|X) = \frac{P(Y=1|X)}{P(Y=2|X)} = \frac{F_{1X}}{F_{2X}}
  • Odds-Ratio (α\alpha): The ratio of odds between two categories of an independent variable (e.g., X1 vs. X2). α=Odds(Y=1∣X=1)Odds(Y=1∣X=2)=F11/F21F12/F22=F11F22F21F12\alpha = \frac{\text{Odds}(Y=1|X=1)}{\text{Odds}(Y=1|X=2)} = \frac{F_{11}/F_{21}}{F_{12}/F_{22}} = \frac{F_{11}F_{22}}{F_{21}F_{12}}
  • Interpretation:
    • α=1\alpha = 1: No association (odds are equal).
    • α>1\alpha > 1: Increased odds of the outcome in the first group compared to the second.
    • α<1\alpha < 1: Decreased odds of the outcome in the first group compared to the second.
    • α\alpha can range from 0 to infinity.
  • The odds-ratio is particularly useful in logistic regression and for analyzing dichotomous dependent variables.

Key Distinction: Odds represent a ratio of probabilities, while odds-ratios compare these ratios between groups.

4.10 Association with ordinal variables

  • Ordinal variables can be analyzed using the chi-square test, odds-ratios, and chi-square-based association measures.
  • Additionally, specific measures for ordinal variables exist that leverage the inherent ranking: Kendall's tau (τa,τb,τc\tau_a, \tau_b, \tau_c), Gamma (γ\gamma), Somers' d, and Spearman's rank correlation coefficient (rsr_s). These are not covered in detail here but are important for ordinal data analysis.

🔑 Important: The choice of association measure is crucial and depends directly on the measurement level of the variables being analyzed. Statistical control methods like table splitting are essential for understanding spurious, indirect, or suppressed relationships.

4.11 Statistical control through table splitting

Statistical control, often implemented via table splitting (or elaboration), involves examining the bivariate association between two variables after accounting for the influence of a third variable. This method allows for a more nuanced understanding of relationships by investigating how they change or persist within specific categories of the control variable.

While it offers a methodologically accessible approach, it can become unwieldy with more than three variables, suggesting a transition to techniques like logistic regression.

4.12 Possible outcomes of table splitting

Upon controlling for a third variable, five distinct outcomes can emerge, each offering unique interpretative insights.

OutcomeDescriptionKey Characteristic
ReplicatieThe bivariate association remains consistent across categories of the third variable.Association persists, indicating the third variable has little to no moderating effect.
SchijnverbandThe bivariate association weakens or disappears, and the third variable is a causal antecedent.The observed relationship is spurious, driven by a common cause that precedes both variables.
InterpretatieThe bivariate association weakens or disappears, and the third variable is an intermediate variable.The third variable acts as a conduit, explaining the relationship between the initial two variables.
SuppressieThe bivariate association strengthens or emerges after controlling for the third variable.The control variable has been suppressing or masking the true relationship.
InteractieThe relationship between the two variables differs across the categories of the third variable.The effect of one variable on another is conditional on the level of a third variable.

4.13 Replicatie

Replication occurs when the bivariate association between two variables remains largely unchanged after introducing a third variable. This outcome suggests that the initial relationship is robust and not significantly influenced by the control variable, making it the most common but least analytically interesting finding.

4.14 Schijnverband (Spurious Relationship)

A spurious relationship is identified when an observed bivariate association between two variables diminishes or vanishes after controlling for a third variable, provided this third variable is a causal antecedent. This means the initial association was not a direct causal link but rather an artifact of a shared underlying cause.

The observed association between X and Y is explained by a common cause Z, where Z precedes both X and Y in the causal order.

4.15 Interpretatie (Mediation)

Mediation, or interpretation, is similar to spuriousness in that the bivariate association weakens or disappears after controlling for a third variable. However, the crucial distinction lies in the role of the third variable: it acts as an intermediate variable, causally situated between the original two variables.

Determining mediation versus spuriousness relies on theoretical grounds and researcher judgment, not solely on the statistical output.

In mediation, Z is a bridge linking X to Y; in spuriousness, Z is a common root causing both X and Y.

4.16 Suppressie (Suppression Effect)

Suppression is the opposite scenario to spuriousness or mediation. Here, a bivariate relationship that is weak or non-existent becomes stronger or emerges after controlling for a third variable.

In this case, the control variable acts as a suppressor variable, which actively masks or suppresses the true association between the other two variables.

4.17 Interactie (Interaction/Specification)

Interaction, also termed specification, occurs when the strength or direction of the relationship between two variables changes depending on the categories of a third variable. This indicates that the effect of one variable on another is not uniform but is conditional on the level of the control variable.

Interaction means the effect of X on Y is different for different values of Z.

4.18 Limitations of table splitting

While valuable, table splitting has inherent limitations. It fragments the sample, potentially leading to volatile results for smaller subgroups.

Furthermore, drawing definitive conclusions about net effects after control can be challenging due to sampling fluctuations, often necessitating more formal approaches like interaction tests and net effect estimations. The control for continuous variables also requires recoding into categories, which can lead to information loss.

4.19 Association between interval/ratio variables

Analyzing the association between interval or ratio variables necessitates different techniques than those used for categorical data, primarily to avoid issues of category fragmentation and to leverage the continuous nature of the data.

4.20 Scatterplots

Scatterplots provide a visual representation of the relationship between two quantitative variables. The independent variable (predictor) is typically plotted on the X-axis (abscissa), and the dependent variable (outcome) on the Y-axis (ordinate).

Each point on the plot represents a single observation, defined by its values on both variables.

Scatterplots map bivariate relationships; axes represent independent (X) and dependent (Y) variables.

4.21 Types of dependency

When examining the relationship between two quantitative variables, three forms of dependency can be observed:

Dependency TypeDescriptionPrediction Accuracy
Analytical dependencyThe value of one variable can be determined precisely from the value of the other; an exact relationship exists.Perfect prediction is possible.
Stochastic dependencyAn estimate of one variable can be made from the other, but not with perfect accuracy. A pattern exists.Knowledge of one variable improves prediction accuracy of the other, but variation remains.
Stochastic independenceKnowledge of one variable's value does not improve the prediction accuracy of the other.No systematic relationship; prediction is no better than random chance.

4.22 Covariation and Covariance

Covariation quantifies the degree to which two interval or ratio variables change together. Covariance is the average of the cross-products of the deviations of each variable from its mean.

It indicates the direction and relative magnitude of linear association.

  • Covariation: The sum of cross-products: ∑(xi−xˉ)(yi−yˉ)\sum (x_i - \bar{x})(y_i - \bar{y})
  • Covariance (sxys_{xy}): The average of cross-products: sxy=1n∑(xi−xˉ)(yi−yˉ)s_{xy} = \frac{1}{n} \sum (x_i - \bar{x})(y_i - \bar{y})

The sign of the covariance indicates the direction of the relationship:

  • Positive Covariance: Indicates a positive linear association (as X increases, Y tends to increase).
  • Negative Covariance: Indicates a negative linear association (as X increases, Y tends to decrease).
  • Zero Covariance: Suggests linear independence, though non-linear relationships may still exist.

A key limitation of covariance is its sensitivity to the measurement units of the variables.

4.23 Pearson product-moment correlation coefficient

The Pearson product-moment correlation coefficient (rxyr_{xy}) is a standardized measure of the linear association between two interval or ratio variables. It is calculated by dividing the covariance by the product of the standard deviations of the two variables, effectively removing the influence of measurement units.

rxy=sxysxsy=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2∑(yi−yˉ)2r_{xy} = \frac{s_{xy}}{s_x s_y} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum (x_i - \bar{x})^2} \sqrt{\sum (y_i - \bar{y})^2}}

  • Properties of rxyr_{xy}:
    • Symmetric: The correlation between X and Y is the same as between Y and X.
    • Dimensionless: Unaffected by changes in measurement units.
    • Bounded: Ranges from -1 (perfect negative linear association) to +1 (perfect positive linear association).
    • rxy=0r_{xy} = 0: Indicates linear independence, but not necessarily the absence of any relationship (e.g., non-linear associations).

The strength of the linear relationship is interpreted based on the absolute value of rr:

| ∣r∣|r| Range | Strength of Association | Trend | | :--------------- | :-------------------------- | :---------------------- | | 00 | Linear independence | N/A | | 0<∣r∣≤0.30 < |r| \leq 0.3 | Weak positive/negative | Rising/Falling | | 0.3<∣r∣≤0.70.3 < |r| \leq 0.7 | Moderate positive/negative | Rising/Falling | | 0.7<∣r∣<10.7 < |r| < 1 | Strong positive/negative | Rising/Falling | | r=±1r = \pm 1 | Perfect positive/negative | All points on a line |

  • 🔑 Important: Correlation does not imply causation. Outliers can significantly distort the Pearson correlation coefficient. Always examine a scatterplot before interpreting correlation.

The Pearson correlation coefficient (rr) quantifies linear association strength, bounded by -1 and +1.

🔑 Important: A correlation coefficient of zero does not exclude non-linear relationships. Always visualize data with scatterplots.

4.24 Exercises

🔑 Important: Understanding the five outcomes of statistical control (replication, spuriousness, interpretation, suppression, interaction) is crucial for interpreting bivariate associations.

🔑 Important: For interval/ratio variables, scatterplots are essential for visualizing relationships before calculating measures like covariance or Pearson correlation. Correlation measures only linear association.

5. Bivariate and multiple regression analysis (part 1)

5.1 Introduction to regression analysis

  • Linear regression: A statistical technique used to examine the relationship between a dependent variable (interval/ratio scale) and one (bivariate) or more (multiple) independent variables (interval/ratio scale) 82.

5.2 Bivariate linear regression

  • Bivariate linear regression: An asymmetric technique for analyzing one dependent variable in relation to a single independent variable, both of interval or ratio scale.
  • Purpose: To explain variance in the dependent variable (YY) by its relationship with an independent variable (XX).
  • Theoretical grounding: The choice of dependent and independent variables is guided by theoretical considerations.
  • Hypothesis: A proposed directional relationship between variables (e.g., satisfaction with institutions leading to higher political trust).

5.3 Data and operationalization

  • Variables: Operationalized using scales (e.g., Cronbach's α\alpha for reliability).
  • Scores: Scales range from minimum (e.g., 0 for complete lack of trust/satisfaction) to maximum (e.g., 30 for complete trust, 50 for complete satisfaction) 83.

5.4 Graphical representation

  • Scatterplot: Essential precursor to regression; visualizes the relationship between two quantitative variables.
    • Identifies non-linear relationships or outliers.
    • Can display the mean of the dependent variable and the regression line.
  • Linearity assumption: The scatterplot helps determine if a linear model is appropriate.

5.5 Model of bivariate regression

  • General form: y=a+bxy = a + bx.
    • a (intercept): The value of yy when x=0x=0; the point where the line crosses the y-axis.
    • b (slope/regression coefficient): The change in yy for a one-unit change in xx 84.
  • Population model: Yi=α+βXi+ϵiY_i = \alpha + \beta X_i + \epsilon_i.
    • YiY_i: Observed dependent variable.
    • XiX_i: Observed independent variable (predictor).
    • ii: Analysis unit (respondent).
    • α\alpha: Population intercept.
    • β\beta: Population regression coefficient.
    • ϵi\epsilon_i: Error term (residual), the difference between observed and expected scores.
  • Sample model: yi=α∗+β∗Xi+eiy_i = \alpha^* + \beta^* X_i + e_i.
    • Sample estimates (α∗,β∗\alpha^*, \beta^*) of population parameters (α,β\alpha, \beta).
    • eie_i: Sample residuals.

Statistical models are incomplete representations of reality, highlighting specific aspects to provide useful insights, akin to a city map.

5.6 Assumptions of the bivariate regression model (Gauss-Markov assumptions)

  • These assumptions pertain to the distribution of the error term (ϵi\epsilon_i).
AssumptionDescriptionMathematical Notation
NormalityThe error term (ϵi\epsilon_i) is normally distributed.ϵi∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2)
Zero MeanThe average value of the error term is zero.E(ϵi)=0E(\epsilon_i) = 0
HomoscedasticityThe error term has a constant variance (σ2\sigma^2) across all values of the independent variable (XX). The spread of prediction errors is consistent.Var(ϵi)=σ2Var(\epsilon_i) = \sigma^2
No AutocorrelationResiduals are uncorrelated with each other for different observations. This is often violated in time-series data or clustered samples.Cov(ϵi,ϵj)=0Cov(\epsilon_i, \epsilon_j) = 0 for i≠ji \neq j
  • Independent variable (XX) values are considered fixed/given.
  • The variance of XX is non-zero and finite.
  • XX is not correlated with the residuals (ϵi\epsilon_i).

The model describes how the expected value of YY changes as XX increases, with expected values lying on a line and actual values distributed around it.

5.7 Objectives of bivariate regression

  1. Finding the regression line: Determine the parameters (α,β\alpha, \beta) that best represent the relationship between YY and XX.
  2. Assessing strength of association: Calculate the correlation coefficient (rr) and coefficient of determination (R2R^2).
  3. Generalizability: Test if the sample findings can be generalized to the population.

5.8 Estimation of regression parameters

  • Methods: Ordinary Least Squares (OLS), Best Linear Unbiased Estimation (BLUE), Maximum Likelihood Estimation (MLE) 87.
  • OLS Criterion: Minimizes the sum of squared errors (SSE), i.e., the squared vertical distances between observed values (yiy_i) and the regression line (y^i\hat{y}_i).
    • SSE=∑ei2=∑(yi−y^i)2=∑(yi−(α∗+β∗xi))2SSE = \sum e_i^2 = \sum (y_i - \hat{y}_i)^2 = \sum (y_i - (\alpha^* + \beta^* x_i))^2 88.
  • Derivation of OLS estimators: Achieved by calculating partial derivatives of SSE with respect to α∗\alpha^* and β∗\beta^*, setting them to zero, and solving the system of normal equations 89.
  • OLS Estimator Formulas:
    • Intercept: α∗=yˉ−β∗xˉ\alpha^* = \bar{y} - \beta^* \bar{x}.
    • Slope: β∗=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2=sxysx2\beta^* = \frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{\sum(x_i - \bar{x})^2} = \frac{s_{xy}}{s_x^2}.
      • sxys_{xy}: Covariance between XX and YY.
      • sx2s_x^2: Variance of XX.

The OLS estimators for α\alpha and β\beta provide the best linear unbiased estimates (BLUE) under the Gauss-Markov conditions.

  • Properties of OLS estimators:

    • Unbiased: The average of the sampling distribution of α∗\alpha^* and β∗\beta^* equals the population parameters α\alpha and β\beta.
    • Minimum Variance: Among all linear unbiased estimators, OLS estimators have the smallest variance.
  • Example calculation: For political trust (PTRUST) and satisfaction with institutions (PERFORM):

    • β∗=0.5794\beta^* = 0.5794
    • α∗=−2.9487\alpha^* = -2.9487
    • Regression Equation: PTRUSTi=−2.9487+0.5794⋅PERFORMi+eiPTRUST_i = -2.9487 + 0.5794 \cdot PERFORM_i + e_i
    • Expected PTRUST: E(PTRUSTi)=−2.9487+0.5794⋅PERFORMiE(PTRUST_i) = -2.9487 + 0.5794 \cdot PERFORM_i 90.

5.9 Interpretation of regression parameters

  • Intercept (α∗\alpha^*): The expected value of the dependent variable when the independent variable is zero.
    • For the example: If PERFORM=0PERFORM = 0, expected PTRUST=−2.9487PTRUST = -2.9487.
  • Slope (β∗\beta^*): The expected change in the dependent variable for a one-unit increase in the independent variable.
    • For the example: A 1-point increase in PERFORMPERFORM is associated with a 0.57940.5794-point increase in PTRUSTPTRUST.
    • β∗<0\beta^* < 0: Negative linear relationship.
    • β∗=0\beta^* = 0: No linear relationship.
    • β∗>0\beta^* > 0: Positive linear relationship.

The standardized regression coefficients are asymmetric measures of association; reversing the dependent and independent variables yields a different regression equation 91.

5.10 Expected values and residuals

  • Expected value (y^i\hat{y}_i): The predicted value of the dependent variable for a given value of the independent variable (xix_i). Calculated as y^i=α∗+β∗xi\hat{y}_i = \alpha^* + \beta^* x_i. 86.
  • Residual (eie_i): The difference between the observed value (yiy_i) and the expected value (y^i\hat{y}_i). It represents the error in prediction. 85.
    • ei=yi−y^i=yi−(α∗+β∗xi)e_i = y_i - \hat{y}_i = y_i - (\alpha^* + \beta^* x_i).
Residual InterpretationMeaning
Positive eie_iUnderscores: Observed value is higher than predicted.
ei=0e_i = 0Observed value exactly matches the predicted value.
Negative eie_iOvershoots: Observed value is lower than predicted.
  • Sum of residuals: Always equals zero (∑ei=0\sum e_i = 0).
  • Sum of squared residuals (SSE): Used for significance testing.
    • Example calculation for SSESSE: 308.30308.30 for the PTRUST/PERFORM data.

Residuals reflect unexplained variance in YY that is independent of XX.

5.11 Partial correlation

  • Partial correlation coefficient: Measures the association between two interval/ratio variables after controlling for one or more other variables.
  • Order: Indicates the number of control variables (e.g., zero-order is bivariate correlation, first-order has one control variable).
  • Application: Used to assess if a bivariate relationship is spurious (a "shaindverband") or genuinely causal.
    • Example: Investigating the relationship between secularization (VOTE1919) and fertility decline (Delta Ig), controlling for industrialization (AGCO1900).

First-order partial correlation (rAB.Cr_{AB.C}) assesses the relationship between A and B after accounting for the influence of C 94.

🔑 Important: Regression analysis quantifies linear relationships between variables, with OLS providing optimal parameter estimates under specific assumptions, and residuals indicating unexplained variance. 92 93.

5.12 Regression analysis basics

  • Regression analysis quantifies the linear relationship between variables.
  • The accuracy of predictions from a regression line is determined by the dispersion of data points around it; tighter clusters indicate stronger relationships and more precise predictions.

5.13 The Pearson correlation coefficient (rr)

  • The correlation coefficient (rr) measures the strength and direction of a linear association between two variables.
  • It can be calculated as the correlation between the dependent and independent variables, or between observed and predicted values (in which case rr is always positive).

Properties of the correlation coefficient (rr)

PropertyDescription
Measure of associationAssesses the extent to which high values of variable X are associated with high values of variable Y.
Undefined casesUndefined when the standard deviation of either variable (sXs_X or sYs_Y) is zero.
BoundsBounded between -1 and +1.
Perfect correlationr=+1r = +1 or r=−1r = -1 when all points lie on a straight line (perfect positive or negative association).
Unit invarianceUnlike covariance, it is insensitive to the units of measurement of the variables.

The Pearson correlation coefficient (rr) ranges from -1 (perfect negative linear relationship) to +1 (perfect positive linear relationship), with r=0r=0 indicating linear independence.

5.14 Explained variance and residual variance

5.15 The coefficient of determination (R2R^2)

  • The coefficient of determination (R2R^2) is the square of the Pearson correlation coefficient (rr).
  • It provides two key interpretations:
    • Proportional Reduction in Error (PRE): R2R^2 quantifies the extent to which the prediction error for the dependent variable (YY) is reduced by using the independent variable (XX) in a regression model, compared to predicting using only the mean of YY.
    • Variance Partitioning: R2R^2 indicates the proportion of the variance in the dependent variable (YY) that is explained by the variance of the independent variable (XX).

R2R^2 represents the proportion of variance in YY explained by XX.

5.16 Variance decomposition in regression

  • The total variation in the dependent variable can be additively decomposed into a explained component (Regression Sum of Squares, SSR) and an unexplained component (Error Sum of Squares, SSE).
  • This decomposition can be visualized with a person's score being above the mean, with the deviation from the mean split into the explained part (difference between predicted and mean value) and the unexplained part (residual, difference between observed and predicted value).

SST=SSE+SSRSST = SSE + SSR

Where:

  • SSTSST is the Total Sum of Squares (total variation).

  • SSRSSR is the Regression Sum of Squares (explained variation).

  • SSESSE is the Error Sum of Squares (unexplained variation).

  • Explained variance (SSRSSR) is the variance of YY multiplied by R2R^2.

  • Unexplained variance (SSESSE) is the variance of YY multiplied by (1−R2)(1 - R^2).

Regression variance decomposition

ComponentSum of Squares FormulaRepresents
Total Sum of Squares (SSTSST)∑(yi−yˉ)2\sum (y_i - \bar{y})^2Total variation in the dependent variable YY.
Regression Sum of Squares (SSRSSR)∑(y^i−yˉ)2\sum (\hat{y}_i - \bar{y})^2Variation in YY explained by the independent variable XX.
Error Sum of Squares (SSESSE)∑(yi−y^i)2\sum (y_i - \hat{y}_i)^2Variation in YY not explained by XX (the residuals).
  • R2=SSRSSTR^2 = \frac{SSR}{SST} represents the proportion of total variance explained by the regression.
  • sY⋅X2=SSEn−2s_{Y \cdot X}^2 = \frac{SSE}{n-2} represents the residual variance (variance of YY after regressing on XX).

The sum of squares of the observed values around the regression line (SSESSE) is maximal when r=0r=0.

5.17 Interpreting regression parameters

5.18 Unstandardized regression coefficients

  • Unstandardized regression coefficients (aa for intercept, bb for slope) represent:
    • The predicted value of the dependent variable when the independent variable(s) are zero (intercept).
    • The expected change in the dependent variable for a one-unit change in the independent variable (slope).
  • These coefficients are dependent on the units of measurement of the variables, making direct comparison of effect strengths across different variables difficult.

5.19 Standardized regression coefficients

  • Standardized regression coefficients (β∗\beta^*) are obtained by regressing standardized variables (mean=0, standard deviation=1).
  • They are unit-free and allow for the comparison of the relative strengths of independent variables' effects, regardless of their original measurement units.
  • In bivariate regression, the standardized regression coefficient is equal to the correlation coefficient (rr).

β1∗=b1sXsY\beta_1^* = b_1 \frac{s_X}{s_Y}

  • When using standardized variables, the intercept (α∗\alpha^*) is always 0.
  • The standardized regression equation reflects changes in terms of standard deviations.

For standardized variables, a one-standard deviation increase in XX leads to a β∗\beta^* standard deviation increase in YY.

5.20 Inferential statistics for regression parameters

  • To generalize findings from a sample to a population, inferential statistics are employed.
  • These methods account for the possibility of finding a relationship in a sample even if none exists in the population.

Inferential tests for regression parameters

Test/IntervalPurpose
t-testTests the statistical significance of the intercept and regression coefficient(s).
Confidence intervalsProvides a range of plausible values for the population regression parameters.
Model comparison (F-test)Tests the overall significance of the regression model.
  • OLS estimators (α\alpha and β\beta) have sampling distributions.
  • The standard error of OLS estimators quantifies the variability of these estimators across different samples.

Var(α^X)=σe2(1n+xˉ2∑(xi−xˉ)2)Var(\hat{\alpha}_X) = \sigma_e^2 \left( \frac{1}{n} + \frac{\bar{x}^2}{\sum(x_i - \bar{x})^2} \right) Var(β^X)=σe2∑(xi−xˉ)2Var(\hat{\beta}_X) = \frac{\sigma_e^2}{\sum(x_i - \bar{x})^2}

Where σe2\sigma_e^2 is the population variance of the error term (eie_i).

OLS estimators (α^,β^\hat{\alpha}, \hat{\beta}) are normally distributed with means equal to the population parameters (a,ba, b) and variances equal to Var(α^)Var(\hat{\alpha}) and Var(β^)Var(\hat{\beta}).

🔑 Important: Understanding both unstandardized and standardized coefficients is crucial. Unstandardized coefficients indicate the magnitude of effect in original units, while standardized coefficients allow for direct comparison of effect strengths across variables with different scales.

6. Bivariate and multiple regression analysis (part 2)

6.1 Inferential statistics in bivariate regression

Bivariate regression analysis extends beyond estimation to hypothesis testing and confidence interval construction for population parameters.

6.2 Estimating population variance and standard errors

  • Variance of the error term (σ2\sigma^2): This population variance is unknown and must be estimated from sample data.
  • Unbiased estimator of σ2\sigma^2 (s2s^2): Calculated as the sum of squared residuals divided by the degrees of freedom (n−2n-2). Two degrees of freedom are lost due to estimating the regression constant and coefficient. s2=∑i=1n(yi−y^i)2n−2=∑i=1nei2n−2s^2 = \frac{\sum_{i=1}^{n}(y_i - \hat{y}_i)^2}{n-2} = \frac{\sum_{i=1}^{n}e_i^2}{n-2}
  • Standard error of the estimate: The square root of s2s^2, often reported by statistical software.
  • Estimated variances of estimators: s2s^2 is used to estimate the variances of the intercept (α^\hat{\alpha}) and slope (β^\hat{\beta}) estimators, denoted as sα^2s_{\hat{\alpha}}^2 and sβ^2s_{\hat{\beta}}^2. sα^2=s2(1n+xˉ2∑i=1n(xi−xˉ)2)s_{\hat{\alpha}}^2 = s^2 \left( \frac{1}{n} + \frac{\bar{x}^2}{\sum_{i=1}^n (x_i - \bar{x})^2} \right) sβ^2=s2∑i=1n(xi−xˉ)2s_{\hat{\beta}}^2 = \frac{s^2}{\sum_{i=1}^n (x_i - \bar{x})^2}
  • Estimated standard errors: The square roots of sα^2s_{\hat{\alpha}}^2 and sβ^2s_{\hat{\beta}}^2, denoted as sα^s_{\hat{\alpha}} and sβ^s_{\hat{\beta}}, represent the estimated standard deviations of the sampling distributions of α^\hat{\alpha} and β^\hat{\beta}. sα^=s2(1n+xˉ2∑i=1n(xi−xˉ)2)s_{\hat{\alpha}} = \sqrt{s^2 \left( \frac{1}{n} + \frac{\bar{x}^2}{\sum_{i=1}^n (x_i - \bar{x})^2} \right)} sβ^=s2∑i=1n(xi−xˉ)2s_{\hat{\beta}} = \sqrt{\frac{s^2}{\sum_{i=1}^n (x_i - \bar{x})^2}}

6.3 Hypothesis testing for the intercept (α\alpha)

  • Null hypothesis (H0H_0): The population intercept is zero (α=0\alpha = 0).
  • Alternative hypothesis (HaH_a): The population intercept is not zero (α≠0\alpha \neq 0).
  • T-test: The null hypothesis is tested by calculating a t-statistic, which measures how many standard errors the OLS estimator (α^\hat{\alpha}) deviates from the hypothesized population value of 0. t=α^−0sα^∼tn−2t = \frac{\hat{\alpha} - 0}{s_{\hat{\alpha}}} \sim t_{n-2} The ratio follows a t-distribution with n−2n-2 degrees of freedom.

6.4 Confidence interval for the intercept (α\alpha)

  • A (1−α)(1-\alpha) percent confidence interval for α\alpha is calculated as: α^−sα^×tα/2,n−2≤α≤α^+sα^×tα/2,n−2\hat{\alpha} - s_{\hat{\alpha}} \times t_{\alpha/2, n-2} \le \alpha \le \hat{\alpha} + s_{\hat{\alpha}} \times t_{\alpha/2, n-2} Where tα/2,n−2t_{\alpha/2, n-2} is the critical value from the t-distribution.
  • Interpretation: The probability that the confidence interval encompasses the true population value of α\alpha is (1−α)(1-\alpha) percent.

6.5 Hypothesis testing for the regression coefficient (β\beta)

  • Null hypothesis (H0H_0): The population slope is zero (β=0\beta = 0).
  • Alternative hypothesis (HaH_a): The population slope is not zero (β≠0\beta \neq 0).
  • T-test: Similar to the intercept test, the t-statistic measures the deviation of the OLS estimator (β^\hat{\beta}) from the hypothesized population value of 0. t=β^−0sβ^∼tn−2t = \frac{\hat{\beta} - 0}{s_{\hat{\beta}}} \sim t_{n-2} This also follows a t-distribution with n−2n-2 degrees of freedom.

6.6 Confidence interval for the regression coefficient (β\beta)

  • A (1−α)(1-\alpha) percent confidence interval for β\beta is calculated as: β^−sβ^×tα/2,n−2≤β≤β^+sβ^×tα/2,n−2\hat{\beta} - s_{\hat{\beta}} \times t_{\alpha/2, n-2} \le \beta \le \hat{\beta} + s_{\hat{\beta}} \times t_{\alpha/2, n-2}
  • Interpretation: The probability that the confidence interval encompasses the true population value of β\beta is (1−α)(1-\alpha) percent.

6.7 Model comparison procedure and F-test

  • Purpose: Compares a full regression model (with an independent variable) to a restricted model (with only a constant). It tests whether the addition of an independent variable significantly improves the model's explanatory power.
  • Null hypothesis (H0H_0): The regression parameter of the independent variable is zero in the population (β=0\beta = 0), meaning the variable has no effect.
  • F-test: Based on the partitioning of the total variance of the dependent variable (SSTSST) into explained variance (SSRSSR) and unexplained variance (SSESSE). F=(SSEr−SSEf)/(dfr−dff)SSEf/dffF = \frac{(SSE_r - SSE_f) / (df_r - df_f)}{SSE_f / df_f} Where:
    • SSErSSE_r is the unexplained variance in the restricted model.
    • SSEfSSE_f is the unexplained variance in the full model.
    • dfrdf_r and dffdf_f are the degrees of freedom for the restricted and full models, respectively.
  • Distribution: The F-statistic follows an F-distribution with (dfr−dff)(df_r - df_f) degrees of freedom in the numerator and dffdf_f in the denominator.
  • Significance: H0H_0 is rejected if the calculated F-value is sufficiently large or if the p-value (overschrijdingskans) is below a predetermined significance level (e.g., 0.05 or 0.01). A significant F-test indicates a significant effect of the independent variable.

The F-test is always a one-sided test.


6.8 Illustrative examples of hypothesis testing

The application of t-tests and confidence intervals in bivariate regression is demonstrated with empirical examples.

📝 Example: Analysis of political trust and satisfaction with government institutions.

  • Estimated variance (s2s^2): Calculated from the residuals. s2=∑ei2n−2=17.13s^2 = \frac{\sum e_i^2}{n-2} = 17.13
  • Standard error of α^\hat{\alpha} (sα^s_{\hat{\alpha}}): sα^=s2(1n+xˉ2∑(xi−xˉ)2)=17.13(120+(5.61)2∑(xi−5.61)2)≈4.962s_{\hat{\alpha}} = \sqrt{s^2 \left( \frac{1}{n} + \frac{\bar{x}^2}{\sum (x_i - \bar{x})^2} \right)} = \sqrt{17.13 \left( \frac{1}{20} + \frac{(5.61)^2}{\sum (x_i - 5.61)^2} \right)} \approx 4.962
  • T-test for α^\hat{\alpha}: t=α^−0sα^=−2.9494.962≈−0.594t = \frac{\hat{\alpha} - 0}{s_{\hat{\alpha}}} = \frac{-2.949}{4.962} \approx -0.594 With n−2=18n-2 = 18 degrees of freedom and a 5% significance level, the critical t-value is approximately 2.101. Since ∣−0.594∣<2.101|-0.594| < 2.101, the null hypothesis (H0:α=0H_0: \alpha = 0) cannot be rejected.

The intercept is not statistically significantly different from zero.

  • 95% Confidence Interval for α\alpha: −2.949−4.962×2.101≤α≤−2.949+4.962×2.101-2.949 - 4.962 \times 2.101 \le \alpha \le -2.949 + 4.962 \times 2.101 −13.374≤α≤7.476-13.374 \le \alpha \le 7.476 The interval includes zero, reinforcing the conclusion that the intercept is not significantly different from zero.

  • Standard error of β^\hat{\beta} (sβ^s_{\hat{\beta}}): sβ^=s2∑(xi−xˉ)2=17.13∑(xi−5.61)2≈0.161s_{\hat{\beta}} = \sqrt{\frac{s^2}{\sum (x_i - \bar{x})^2}} = \sqrt{\frac{17.13}{\sum (x_i - 5.61)^2}} \approx 0.161

  • T-test for β^\hat{\beta}: t=β^−0sβ^=0.5790.161≈3.589t = \frac{\hat{\beta} - 0}{s_{\hat{\beta}}} = \frac{0.579}{0.161} \approx 3.589 With n−2=18n-2 = 18 degrees of freedom and a 5% significance level, the critical t-value is approximately 2.101. Since ∣3.589∣>2.101|3.589| > 2.101, the null hypothesis (H0:β=0H_0: \beta = 0) is rejected.

The slope is statistically significantly different from zero.

  • 95% Confidence Interval for β\beta: 0.579−0.161×2.101≤β≤0.579+0.161×2.1010.579 - 0.161 \times 2.101 \le \beta \le 0.579 + 0.161 \times 2.101 0.241≤β≤0.9190.241 \le \beta \le 0.919 The interval does not include zero, confirming that satisfaction with government institutions has a significant effect on political trust.

📝 Example: Regression of net monthly income on years of education.

  • Regression Equation: INCOMEi=403.090+22.719×LEEFTIJDi+ei\text{INCOME}_i = 403.090 + 22.719 \times \text{LEEFTIJD}_i + e_i
  • Intercept (α^=403.090\hat{\alpha} = 403.090): Expected income when years of education is 0.
    • Standard Error (sα^=216.747s_{\hat{\alpha}} = 216.747): Standard deviation of the sampling distribution of the intercept.
    • T-value (t=1.860t = 1.860): Measures deviation from H0:α=0H_0: \alpha = 0.
    • P-value (0.067): Probability of observing a t-value as extreme as 1.860 if H0H_0 is true. Since 0.067>0.050.067 > 0.05, H0H_0 is not rejected; the intercept is not significantly different from zero at the 5% level.
  • Regression Coefficient (β^=22.719\hat{\beta} = 22.719): Expected increase in income for one additional year of education.
    • Standard Error (sβ^=5.119s_{\hat{\beta}} = 5.119): Standard deviation of the sampling distribution of the slope.
    • T-value (t=4.438t = 4.438): Measures deviation from H0:β=0H_0: \beta = 0.
    • P-value (0.000): Probability of observing a t-value as extreme as 4.438 if H0H_0 is true. Since 0.000<0.050.000 < 0.05, H0H_0 is rejected; the coefficient is statistically significant.

🔑 Important: For both intercept and coefficient tests, the p-value (overschrijdingskans) directly indicates the significance of the estimate. A p-value less than the chosen alpha level (e.g., 0.05) leads to rejection of the null hypothesis.

6.9 Multiple regression analysis

Multiple regression extends bivariate regression by incorporating two or more independent variables to predict a dependent variable, allowing for the estimation of partial effects.

6.10 The multiple regression model

  • General form for population: yi=α+β1x1i+β2x2i+⋯+βkxki+ϵiy_i = \alpha + \beta_1 x_{1i} + \beta_2 x_{2i} + \dots + \beta_k x_{ki} + \epsilon_i Where:

    • yiy_i is the observed value of the dependent variable for observation ii.
    • x1i,x2i,…,xkix_{1i}, x_{2i}, \dots, x_{ki} are the observed values of the independent variables for observation ii.
    • α\alpha is the intercept (expected value of yy when all independent variables are zero).
    • β1,β2,…,βk\beta_1, \beta_2, \dots, \beta_k are the partial regression coefficients, representing the change in the expected value of yy for a one-unit increase in the respective independent variable, holding all other independent variables constant.
    • ϵi\epsilon_i is the error term, representing the unexplained variation in yy.
  • Estimated form for sample: y^i=α^+β^1x1i+β^2x2i+⋯+β^kxki\hat{y}_i = \hat{\alpha} + \hat{\beta}_1 x_{1i} + \hat{\beta}_2 x_{2i} + \dots + \hat{\beta}_k x_{ki} The error term in the sample is ei=yi−y^ie_i = y_i - \hat{y}_i.

6.11 Interpretation of partial regression coefficients

  • Partial effect: β^j\hat{\beta}_j represents the estimated change in the dependent variable (yy) for a one-unit increase in independent variable xjx_j, while holding all other independent variables in the model constant. This is crucial for isolating the unique contribution of each predictor.
  • Example: In a model predicting political trust (yy) with satisfaction with government institutions (x1x_1) and years of education (x2x_2):
    • β^1\hat{\beta}_1 (for x1x_1) estimates the change in political trust for a one-unit increase in satisfaction, given a constant level of education.
    • β^2\hat{\beta}_2 (for x2x_2) estimates the change in political trust for an additional year of education, given a constant level of satisfaction.

6.12 Assumptions of multiple regression

For valid statistical inference, the error term (ϵ\epsilon) is assumed to follow certain conditions:

AssumptionNotationDescription
Normalityϵi∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2)The error term is normally distributed with a mean of 0 and a constant variance (σ2\sigma^2).
HomoscedasticityVar(ϵi)=σ2\text{Var}(\epsilon_i) = \sigma^2The variance of the error term is constant across all levels of the independent variables.
No AutocorrelationCov(ϵi,ϵj)=0\text{Cov}(\epsilon_i, \epsilon_j) = 0 for i≠ji \neq jError terms are uncorrelated with each other, typically ensured by independent random sampling.
Independent VariablesVar(xji)≠0\text{Var}(x_{ji}) \ne 0Independent variables have non-zero variance and are not correlated with the error term.
Sample SizeN>kN > kThe number of observations (NN) must be greater than the number of independent variables (kk).
No Perfect MulticollinearityNot perfect linear relationship among xx'sIndependent variables are not perfectly linearly related to each other, allowing for unique estimation of effects.

6.13 Estimation of parameters (OLS)

  • Ordinary Least Squares (OLS): The most common method for estimating the regression parameters (α^,β^j\hat{\alpha}, \hat{\beta}_j).
  • Minimization objective: OLS minimizes the sum of squared residuals (SSE), which is the sum of the squared vertical distances between the observed values (yiy_i) and the predicted values (y^i\hat{y}_i) on the regression plane. SSE=∑i=1n(yi−(α^+β^1x1i+⋯+β^kxki))2SSE = \sum_{i=1}^n (y_i - (\hat{\alpha} + \hat{\beta}_1 x_{1i} + \dots + \hat{\beta}_k x_{ki}))^2
  • BLUE (Best Linear Unbiased Estimators): Under certain conditions (Gauss-Markov theorem), OLS estimators are BLUE, meaning they are unbiased and have the lowest variance among all linear unbiased estimators.

🔑 Important: OLS aims to find the regression plane that best fits the data by minimizing the sum of squared vertical errors.

6.14 Graphical representation of multiple regression

While bivariate regression is visualized with a line on a 2D scatterplot, multiple regression typically involves higher dimensions.

  • Three-dimensional space: For two independent variables (x1,x2x_1, x_2) and one dependent variable (yy), the data points form a scatterplot in a 3D space. The OLS regression provides a best-fitting regression plane rather than a line.
  • Interpretation of the plane: The regression plane represents the expected value of the dependent variable (E(y)E(y)) given the values of the independent variables.
  • Error term in 3D: The error term (ϵi\epsilon_i) is the vertical distance of each data point from this regression plane.

🔑 Important: Multiple regression uses a plane (or hyperplane in higher dimensions) to model the relationship between the dependent variable and multiple independent variables.

🔑 Important: This section (part 2) focuses on the inferential statistics (hypothesis testing, confidence intervals) for bivariate regression parameters and introduces the foundational concepts, model, and estimation of multiple regression, emphasizing the interpretation of partial effects.

6.15 Interpreting partial regression coefficients

  • Partial regression coefficients in multiple regression represent the change in the expected value of the dependent variable (YY) for a one-unit increase in an independent variable (XkX_k), while holding all other independent variables (XjX_j where j≠kj \neq k) constant.
  • This is achieved by regressing YY on the residuals of XkX_k after controlling for other XX variables. The resulting coefficient for XkX_k reflects its unique contribution to YY's variance.
  • In contrast, bivariate regression coefficients represent the total or gross effect, which includes direct and indirect effects mediated through other variables. Multiple regression coefficients represent net or direct effects, isolating the independent contribution of each predictor.

6.16 Calculation via residuals

  • The partial regression coefficient for X2X_2 in predicting YY (βYX2.X1\beta_{Y X_2.X_1}) can be obtained by regressing YY on the residuals of X2X_2 after regressing X2X_2 on X1X_1.
  • These residuals (RESX2RES_{X_2}) represent the variance in X2X_2 that is independent of X1X_1.

The partial coefficient represents the effect of a variable after controlling for other variables in the model.

6.17 Unstandardized regression equation

  • The unstandardized regression equation takes the form: E(Y)=α+β1X1+β2X2+...+βkXkE(Y) = \alpha + \beta_1 X_1 + \beta_2 X_2 + ... + \beta_k X_k
  • Intercept (α\alpha): The expected value of YY when all independent variables (XiX_i) are zero. This interpretation is only meaningful if Xi=0X_i=0 is a realistic value within the data.
  • Partial regression coefficients (βk\beta_k): Quantify the expected change in YY for a one-unit increase in XkX_k, holding all other XjX_j constant.

The unstandardized equation allows for direct interpretation in the original units of the variables.

6.18 Centering independent variables

  • To make the intercept more interpretable, especially when zero is not a meaningful value for an independent variable, continuous predictors can be centered.
  • Centering involves subtracting the mean of the independent variable from each observation: Xcentered=X−XˉX_{centered} = X - \bar{X}.
  • When predictors are centered, the intercept represents the expected value of YY when all independent variables are at their mean values. The partial regression coefficients remain unchanged.

6.19 Predicted values and residuals

  • The unstandardized equation is used to calculate the predicted value (Y^\hat{Y}) for an individual respondent: Y^=α+β1X1+β2X2+...+βkXk\hat{Y} = \alpha + \beta_1 X_1 + \beta_2 X_2 + ... + \beta_k X_k
  • The residual (ee) is the difference between the observed value (YY) and the predicted value (Y^\hat{Y}): e=Y−Y^e = Y - \hat{Y}

6.20 Strength of linear dependency

  • The multiple correlation coefficient (RR) measures the strength of the linear relationship between the dependent variable (YY) and the set of independent variables (X1,X2,...,XkX_1, X_2, ..., X_k). It is the Pearson correlation between observed YY and predicted Y^\hat{Y} values.
  • The coefficient of determination (R2R^2) is the square of the multiple correlation coefficient (R2=RR^2 = R). It indicates the proportion of variance in YY that is explained by the independent variables.

R2R^2: Proportion of variance in YY explained by the predictors.

6.21 Proportional Reduction in Error (PRE)

  • R2R^2 can be interpreted as the proportional reduction in prediction error (or variance) when using the multiple regression model compared to a model that only predicts the mean of YY.
  • R2=SST−SSESST=SSRSSTR^2 = \frac{SST - SSE}{SST} = \frac{SSR}{SST}, where SSTSST is the total sum of squares, SSESSE is the error sum of squares, and SSRSSR is the regression sum of squares.

6.22 Variance partitioning and multicollinearity

  • The total explained variance (R2R^2) is not simply the sum of variances explained by each independent variable in bivariate regressions, especially when predictors are correlated (multicollinearity).
  • Multicollinearity leads to an overlap in the variance explained by predictors. As multicollinearity increases, the marginal increase in R2R^2 when adding a new predictor diminishes.
  • The partial correlation coefficient (rYX2.X1r_{Y X_2.X_1}) quantifies the unique variance in YY explained by X2X_2 after controlling for X1X_1.
  • The semipartial correlation coefficient (rY(X1.X2)r_{Y(X_1.X_2)}) quantifies the unique variance in YY explained by X1X_1 after controlling for X2X_2.
  • R2R^2 can be decomposed using semipartial correlations: RY.X1X22=rY.X22+rY(X1.X2)2R^2_{Y.X_1X_2} = r^2_{Y.X_2} + r^2_{Y(X_1.X_2)}. This illustrates how R2R^2 is the sum of the variance explained by X2X_2 plus the additional variance explained by X1X_1 after accounting for X2X_2.

6.23 Adjusted R2R^2

  • R2R^2 tends to inflate as more predictors are added to the model, even if they are not statistically significant.
  • Adjusted R2R^2 corrects for the number of independent variables (pp) and the sample size (NN), providing a more conservative estimate of model fit. Radj2=1−SSE/(N−p)SST/(N−1)R^2_{adj} = 1 - \frac{SSE / (N - p)}{SST / (N - 1)}
  • Adjusted R2R^2 is particularly important for small sample sizes or when many predictors are included.

Adjusted R2R^2 penalizes the addition of unnecessary predictors.

6.24 Standardized regression equation

  • In a standardized regression equation, all variables (dependent and independent) are converted to z-scores (mean=0, standard deviation=1). ZY=β1∗ZX1+β2∗ZX2+...+βk∗ZXkZ_Y = \beta^*_1 Z_{X_1} + \beta^*_2 Z_{X_2} + ... + \beta^*_k Z_{X_k}
  • The standardized intercept (α∗\alpha^*) is always zero.
  • Standardized partial regression coefficients (βk∗\beta^*_k or beta coefficients) indicate the expected change in the standard deviation units of YY for a one-standard-deviation increase in XkX_k, holding other XjX_j constant.
  • These coefficients allow for direct comparison of the relative strengths of effect of different independent variables on the dependent variable, irrespective of their original units.

Beta coefficients allow for direct comparison of the impact of different predictors.

6.25 Interpretation of beta coefficients

  • A beta coefficient of 0.6230.623 for ZX1Z_{X_1} and 0.1400.140 for ZX2Z_{X_2} means that a one-standard-deviation increase in X1X_1 is associated with a 0.6230.623-standard-deviation increase in YY (holding X2X_2 constant), while a one-standard-deviation increase in X2X_2 is associated with a 0.1400.140-standard-deviation increase in YY (holding X1X_1 constant).
  • If standardized coefficients exceed ±1\pm 1, it suggests strong multicollinearity among the independent variables, making it difficult to isolate their individual effects.

🔑 Important: Standardized coefficients are crucial for comparing the relative impact of predictors measured on different scales.

🔑 Important: Multiple regression allows for the isolation of unique effects of predictors, but the interpretation of coefficients and model fit metrics like R2R^2 and adjusted R2R^2 requires careful consideration of multicollinearity and sample size.

7. Bivariate and multiple regression analysis (part 3)

7.1 Significance testing in multiple regression

  • Inference for population parameters: Crucial for generalizing sample findings to the broader population, even if no relationship exists in the population, a sample might exhibit one.

  • Model comparison procedure: Compares a full model (with independent variables) against a restricted model (without them). The null hypothesis (H0H_0) posits no significant added value from the additional parameters in the full model.

  • Overall model significance (H0H_0): For multiple regression, H0H_0 states that all partial regression coefficients for the independent variables in the population are zero: H0:βY.X1=βY.X2=⋯=0H_0: \beta_{Y.X_1} = \beta_{Y.X_2} = \dots = 0.

  • Overall model significance (HaH_a): The alternative hypothesis (HaH_a) is that at least one independent variable has a significant effect in the population.

  • F-test: Assesses if the increase in explained variance by the full model over the restricted model is sufficiently large to reject H0H_0. The F-statistic is calculated as: F=SSEr−SSEfdfr−dffSSEfdffF = \frac{\frac{SSE_r - SSE_f}{df_r - df_f}}{\frac{SSE_f}{df_f}} where:

    • SSErSSE_r: Unexplained variation in the restricted model.
    • SSEfSSE_f: Unexplained variation in the full model.
    • dfrdf_r: Degrees of freedom in the restricted model.
    • dffdf_f: Degrees of freedom in the full model.

    The F-ratio's numerator reflects the improvement in explained variance (reduction in unexplained variance) relative to the number of additional parameters; the denominator reflects the unexplained variance in the full model relative to its degrees of freedom.

  • Interpreting the F-test: If the p-value (observed significance level) associated with the F-statistic is less than the alpha level (commonly 0.05 or 0.01), H0H_0 is rejected, indicating that at least one independent variable has a significant effect in the population.

7.2 T-tests for partial regression coefficients

  • Standard error of partial regression coefficients: Estimates the variability of OLS estimators across different samples. For two independent variables (X1,X2X_1, X_2): Var(β^YX1.X2)=σ2∑(X1i−Xˉ1)2(1−rX1X22)Var(\hat{\beta}_{Y X_1.X_2}) = \frac{\sigma^2}{\sum(X_{1i} - \bar{X}_1)^2 (1 - r_{X_1 X_2}^2)} Var(β^YX2.X1)=σ2∑(X2i−Xˉ2)2(1−rX1X22)Var(\hat{\beta}_{Y X_2.X_1}) = \frac{\sigma^2}{\sum(X_{2i} - \bar{X}_2)^2 (1 - r_{X_1 X_2}^2)} The correlation between independent variables (rX1X2r_{X_1 X_2}) directly impacts standard errors: higher correlation leads to larger standard errors.

  • OLS estimators distribution: OLS estimators (β^YX1.X2\hat{\beta}_{YX_1.X_2} and β^YX2.X1\hat{\beta}_{YX_2.X_1}) are normally distributed with means equal to their population parameters and variances as specified above. β^YX1.X2∼N(βYX1.X2,σ2∑(X1i−Xˉ1)2(1−rX1X22))\hat{\beta}_{Y X_1.X_2} \sim N(\beta_{Y X_1.X_2}, \frac{\sigma^2}{\sum(X_{1i} - \bar{X}_1)^2 (1 - r_{X_1 X_2}^2)}) β^YX2.X1∼N(βYX2.X1,σ2∑(X2i−Xˉ2)2(1−rX1X22))\hat{\beta}_{Y X_2.X_1} \sim N(\beta_{Y X_2.X_1}, \frac{\sigma^2}{\sum(X_{2i} - \bar{X}_2)^2 (1 - r_{X_1 X_2}^2)})

  • Estimating error variance (σ2\sigma^2): This is estimated using the residual sum of squares (SSESSE) and degrees of freedom: s2=∑(Yi−Y^i)2N−k−1s^2 = \frac{\sum(Y_i - \hat{Y}_i)^2}{N-k-1} where kk is the number of independent variables. The standard error of the estimate is s=s2s = \sqrt{s^2}.

  • Estimated standard errors: sβ^YX1.X2=s2∑(X1i−Xˉ1)2(1−rX1X22)s_{\hat{\beta}_{Y X_1.X_2}} = \sqrt{\frac{s^2}{\sum(X_{1i} - \bar{X}_1)^2 (1 - r_{X_1 X_2}^2)}} sβ^YX2.X1=s2∑(X2i−Xˉ2)2(1−rX1X22)s_{\hat{\beta}_{Y X_2.X_1}} = \sqrt{\frac{s^2}{\sum(X_{2i} - \bar{X}_2)^2 (1 - r_{X_1 X_2}^2)}}

  • T-test for partial coefficients (H0H_0): Tests whether a specific partial regression coefficient is zero in the population: H0:βYX1.Xk=0H_0: \beta_{Y X_1.X_k} = 0.

  • T-statistic calculation: The t-statistic measures how many standard errors the OLS estimate deviates from the hypothesized population value : t=β^YX1.Xk−0sβ^YX1.Xkt = \frac{\hat{\beta}_{YX_1.X_k} - 0}{s_{\hat{\beta}_{YX_1.X_k}}} This statistic follows a t-distribution with N−k−1N-k-1 degrees of freedom.

    The t-test for individual coefficients assesses the unique contribution of each predictor after accounting for others in the model.

  • Confidence intervals for partial coefficients: A (1−α)×100%(1-\alpha) \times 100\% confidence interval for a partial regression coefficient (β\beta) is calculated as: β^±tα/2,N−k−1×sβ^\hat{\beta} \pm t_{\alpha/2, N-k-1} \times s_{\hat{\beta}} where tα/2,N−k−1t_{\alpha/2, N-k-1} is the critical t-value for a two-tailed test with N−k−1N-k-1 degrees of freedom.

    If a confidence interval for a coefficient does not contain zero, it indicates a statistically significant effect at the chosen alpha level.

7.3 T-test for the regression constant

  • Regression constant estimator: The OLS estimate of the intercept (α^\hat{\alpha}) estimates the population intercept (α\alpha).

  • Variance and standard error of the intercept: sα2=s2(1N+Xˉ2∑(Xi−Xˉ)2)s_{\alpha}^2 = s^2 \left( \frac{1}{N} + \frac{\bar{X}^2}{\sum(X_i - \bar{X})^2} \right) (simplified for bivariate case, generalizes for multiple variables) sα=sα2s_{\alpha} = \sqrt{s_{\alpha}^2}

  • T-test for the intercept (H0H_0): Tests if the population intercept is zero: H0:α=0H_0: \alpha = 0.

  • T-statistic calculation: t=α^−0sαt = \frac{\hat{\alpha} - 0}{s_{\alpha}} This follows a t-distribution with N−k−1N-k-1 degrees of freedom.

  • Confidence interval for the intercept: α^±tα/2,N−k−1×sα\hat{\alpha} \pm t_{\alpha/2, N-k-1} \times s_{\alpha} If the interval does not contain zero, the intercept is statistically significant.

    The intercept represents the expected value of the dependent variable when all independent variables are zero. Its significance tests if this baseline expectation differs from zero.

7.4 Model comparison for partial coefficients

  • Testing the net effect: The significance of a single independent variable's unique contribution (net effect) can be tested by comparing a full model with the variable against a restricted model without it.
  • H0H_0 for net effect: H0:βYX1.X2,…,Xk=0H_0: \beta_{Y X_1.X_2, \dots, X_k} = 0, meaning the specific variable X1X_1 adds no significant explanatory power beyond the other variables.
  • F-statistic for net effect: An F-test is calculated using the difference in SSE between the restricted and full models, analogous to the overall model F-test but with 1 degree of freedom in the numerator. F=SSEr−SSEf1SSEfN−k−1F = \frac{\frac{SSE_r - SSE_f}{1}}{\frac{SSE_f}{N-k-1}} This test is equivalent to the t-test for the partial regression coefficient of the variable added.

7.5 Regression diagnostics: Linearity assumption

  • Linearity assumption: Regression models assume a linear relationship between the dependent variable (YY) and independent variable(s) (XX). For any value of XX, the expected value of YY lies on a straight line: E(Y∣X)=α+βXE(Y|X) = \alpha + \beta X.

  • Consequences of violation: Non-linear relationships will lead to biased conclusions and a poor description of the association between YY and XX.

  • Detection methods:

    • Before estimation: Scatterplots of YY versus XX, or plots of observed conditional means of YY against XX.
    • After estimation: Scatterplot of residuals (ϵ\epsilon) versus predicted values (Y^\hat{Y}) or versus each independent variable.
  • Interpreting residual plots:

    • Linearity met: A random scattering of residuals around zero indicates linearity.
    • Linearity violated: Systematic patterns (e.g., U-shapes, curves) suggest a non-linear relationship.

    Always start with a scatterplot; if linearity is violated, a linear model is inappropriate.

7.6 Non-linear model specification

  • Addressing non-linearity: If non-linearity is detected, consider:

    • Transforming variables.
    • Using non-linear model specifications (e.g., polynomial functions).
    • Employing model comparison (F-test) to assess if the non-linear model significantly improves fit over the linear model.
  • Polynomial functions:

    • Quadratic (2nd degree): f(x)=ax2+bx+cf(x) = ax^2 + bx + c. Has one inflection point (minimum or maximum at x=−b/(2a)x = -b/(2a)). The sign of 'a' determines concavity (∪ if a>0a>0, ∩ if a<0a<0).
    • Cubic (3rd degree): f(x)=ax3+bx2+cx+df(x) = ax^3 + bx^2 + cx + d. Has two inflection points. The sign of 'a' determines the initial trend (peak then valley if a>0a>0, valley then peak if a<0a<0).

    The behavior of polynomial functions is ultimately dominated by the term with the highest power of xx.

  • Testing non-linear terms: The null hypothesis for testing a non-linear term (e.g., X2X^2) is H0:βX2=0H_0: \beta_{X^2} = 0. If rejected, the non-linear specification significantly improves the model fit.

The selection of polynomial degrees should be guided by theoretical considerations and visual inspection of scatterplots.

🔑 Important: Significance testing in multiple regression involves both overall model evaluation (F-test) and individual predictor assessment (t-tests and confidence intervals), accounting for interdependencies among predictors. Ensuring the linearity assumption is met is critical for valid interpretations of individual predictor effects.

7.7 Model specification and interaction effects

  • Additive model assumption: Assumes that the effect of one independent variable (X1X_1) on the dependent variable (YY) is constant across all values of another independent variable (X2X_2), and vice versa.

    • Equation: Y=α+β1X1+β2X2Y = \alpha + \beta_1 X_1 + \beta_2 X_2
    • Intuition: The slope for X1X_1 is the same regardless of X2X_2's value.
  • Interaction effect: Occurs when the effect of one independent variable on the dependent variable depends on the level of another independent variable.

    • Introduced by adding a product term (X1×X2X_1 \times X_2) to the model.
    • Equation: Y=α+β1X1+β2X2+β3(X1×X2)Y = \alpha + \beta_1 X_1 + \beta_2 X_2 + \beta_3 (X_1 \times X_2)
  • Interpretation of interaction:

    • The coefficient (β3\beta_3) quantifies how the effect of X1X_1 on YY changes as X2X_2 increases, and vice versa.
    • Example: Smoking and alcohol consumption both increase heart disease risk individually. Their combined effect might be synergistic, meaning the interaction term captures the 'much worse than the sum of the parts' effect.

The inclusion of interaction terms fundamentally alters the interpretation of main effects, as their impact becomes conditional on the levels of other predictors.

7.8 Testing for interaction

  • Model comparison: The significance of an interaction term is tested by comparing a model with the interaction term to an additive model (without the interaction).
    • Null hypothesis (H0H_0): β3=0\beta_3 = 0 (i.e., the interaction term does not significantly improve the model).
  • F-test for model comparison: Used to assess if the addition of the interaction term provides a statistically significant increase in explanatory power.
    • An F-statistic significantly greater than the critical F-value (based on degrees of freedom) leads to rejection of H0H_0.

7.9 Multicollinearity

  • Definition: A phenomenon where independent variables in a multiple regression model are highly correlated with each other, meaning they explain largely the same variance in the dependent variable.

  • Symptoms of multicollinearity:

    • Increased standard errors of coefficients: Leads to less precise estimates of partial regression coefficients, making it harder to reject H0H_0 for individual coefficients.
    • High overall model significance (F-test) but non-significant individual t-tests: The model as a whole might be significant, but no single predictor stands out.
    • Drastic coefficient changes: Regression coefficients change substantially when other variables are added or removed.
    • Standardized coefficients > 1 or < -1: Indicates a strong discrepancy between a predictor's variance and its residual variance after accounting for other predictors.
  • Detection methods:

    • Correlation matrix: Inspect pairwise correlations between independent variables; values above ±0.60\pm 0.60 warrant further investigation.
    • Tolerance: Measures the proportion of variance in an independent variable not explained by other independent variables.
      • Formula: Tolerancei=1−RX1⋅X2...Xk2Tolerance_i = 1 - R_{X_1 \cdot X_2...X_k}^2
      • A tolerance <0.10< 0.10 indicates a multicollinearity problem.
    • Variance Inflation Factor (VIF): The reciprocal of tolerance.
      • Formula: VIFi=1/ToleranceiVIF_i = 1 / Tolerance_i
      • A VIF >10> 10 indicates a multicollinearity problem 134.
  • Remediation strategies:

    • Remove one variable: If multiple indicators of the same dimension are included (e.g., symptoms of depression).
    • Increase sample size: Reduces standard errors, but often impractical.
    • Dimensionality reduction: Use techniques like Principal Component Analysis (PCA) or Principal Factor Analysis (PFA) to create uncorrelated components that represent the original variables.
    • Assign common variance: Attribute shared variance to a causal antecedent variable and remove it from the effect variable (e.g., assigning variance of performance to education years).

Multicollinearity inflates standard errors, reducing the precision of individual predictor effects and potentially masking their significance.

7.10 Absence of autocorrelation

  • Assumption: Residues for different observations are uncorrelated.
    • Formula: Cov(ϵi,ϵj)=0Cov(\epsilon_i, \epsilon_j) = 0 for i≠ji \neq j
  • Context: Less likely to be violated in cross-sectional social science research. Crucial in time-series analysis and clustered data (e.g., students within the same class).

7.11 Homoscedasticity assumption

  • Assumption: The error term (ϵi\epsilon_i) has a constant variance (σ2\sigma^2) across all levels of the independent variable(s).
    • Formula: Var(ϵi)=σ2Var(\epsilon_i) = \sigma^2
  • Heteroscedasticity: Violation where the error variance differs across observations.
    • Consequences: Underestimates true standard errors, leading to an increased risk of Type I errors (falsely rejecting H0H_0).

    • Scatterplot of residuals vs. predicted values:

      • Homoscedasticity: Residues show similar spread across predicted values.
      • Heteroscedasticity: Patterns like 'megaphone' (increasing spread), 'inverse megaphone' (decreasing spread), or 'halter' (spread at extremes, narrow in center) appear 136.
    • Alternative estimation methods: Weighted Least Squares (WLS), Generalized Least Squares (GLS).

    • Transformations: Apply transformations to the dependent and/or independent variables (e.g., Y\sqrt{Y}, ln⁡(Y)\ln(Y)).

Heteroscedasticity distorts significance tests by making effects appear more significant than they are.

7.12 Normality of residuals assumption

  • Assumption: The error term (ϵi\epsilon_i) is normally distributed.

  • Importance: Primarily affects significance testing. In large samples, the Central Limit Theorem often ensures the sampling distribution of coefficients is normal, even if the error term isn't. Crucial for small samples (N<(10+20k)N < (10 + 20k) where kk is the number of independent variables).

    • Histogram of standardized residuals: Compare to a standard normal distribution.

    • Normal Probability Plot (NPP): Compares cumulative distribution of standardized residuals to the cumulative standard normal distribution. Deviations from a straight line indicate non-normality.

    • Transformation of the dependent variable: The Box-Cox transformation framework can guide the selection of appropriate transformations (e.g., Y\sqrt{Y}, ln⁡(Y)\ln(Y), Y2Y^2) to achieve normality.

7.13 Outliers and leverage points

  • Outliers (Uitbijters): Observations with large residuals, indicating poor prediction by the model.

    • Detection: Scatterplot of residuals vs. predicted values; cases with residuals >±3> \pm 3 standard deviations require investigation.
    • Remediation: Remove if due to data errors; otherwise, they might indicate missing variables.
  • Leverage Points: Observations with unusual values for independent variables, which can exert a strong influence on regression parameters, irrespective of their residual size.

    • Detection: Uses diagnostics that assess the influence of each observation on the regression coefficients.
    • DFBETAs and Standardized DFBETAs: Measure the change in regression coefficients when an observation is removed. Standardized DFBETA values >1> 1 or <−1< -1 indicate potential high influence 138.

Leverage points can distort the perceived relationship between variables, creating an illusion of significance where none exists.

7.14 DFBETA and Standardized DFBETA

  • DFBETA: Measures the change in a specific regression coefficient when an observation is omitted.
  • Standardized DFBETA: Standardizes the DFBETA by the standard error of the coefficient, making it easier to compare influence across different coefficients.

Identifying and understanding outliers and leverage points is crucial for robust regression analysis, ensuring that conclusions are not unduly influenced by a few anomalous observations.

8. Bivariate and multiple regression analysis (part 4)

8.1 Multiple regression with dummy variables

Multiple regression models a quantitative dependent variable as a linear, additive function of continuous independent variables. When incorporating categorical independent variables (nominal or ordinal), dummy variables are employed.

For a categorical variable with kk categories, k−1k-1 dummy variables are created.

The core assumptions for inference in regression analysis, particularly with dummy variables, include:

  • Normality: The error term (ϵi\epsilon_i) is normally distributed with a mean of 0 and a constant variance (σ2\sigma^2), i.e., ϵi∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2). This implies residuals are symmetrically distributed around zero.
  • Homoscedasticity: The variance of the error term is constant across all levels of the independent variables (Var(ϵi)=σ2Var(\epsilon_i) = \sigma^2).
  • No autocorrelation: Residuals are uncorrelated for different observations (Cov(ϵi,ϵj)=0Cov(\epsilon_i, \epsilon_j) = 0 for i≠ji \neq j).
  • Independent variables have non-zero variance and are not correlated with the error term.
  • The number of observations exceeds the number of independent variables.
  • Absence of perfect multicollinearity (no perfect linear relationships among independent variables).

The regression parameters are typically estimated using Ordinary Least Squares (OLS) to minimize the sum of squared errors (SSESSE). OLS estimators are BLUE (Best Linear Unbiased Estimators) and MLE (Maximum Likelihood Estimators), meaning they are unbiased and have the lowest variance among linear unbiased estimators.

OLS estimators provide unbiased and efficient estimates of population parameters.

8.2 Dummy variables

  • A dummy variable is a dichotomous variable coded as 0 or 1.
  • It can be treated as an interval variable in regression.
  • The category assigned the value 0 serves as the reference category.

The mean of a dummy variable (pp) represents the proportion of cases in the category coded as 1, which is also the probability of belonging to that category. Its variance is p(1−p)p(1-p).

8.3 Regression with a dichotomous independent variable

When an 'Integratie & Asssimilatie' (INTASS) factor score (standardized with mean=0, std. dev.=1) is regressed on a nationality dummy variable (e.g., TURK=1 for Turkish, 0 for Moroccan), the model E(INTASS)i=α+βTURK⋅TURKiE(INTASS)_i = \alpha + \beta_{TURK} \cdot TURK_i is used.

  • The intercept (α\alpha) represents the expected score for the reference category (Moroccan men).
  • The regression coefficient (βTURK\beta_{TURK}) indicates the difference in the expected score between the group coded as 1 (Turkish men) and the reference category.

A negative βTURK\beta_{TURK} suggests Turkish men score lower on INTASS than Moroccan men, indicating a stronger focus on ethnic identity.

VariableDescription
α\alpha (Intercept)Expected INTASS score for the reference category (Moroccan men).
βTURK\beta_{TURK} (Coeff.)Difference in expected INTASS score between Turkish and Moroccan men.

In the example, a correlation coefficient (r=0.383r = 0.383) indicates a moderately strong relationship between nationality and INTASS scores. The coefficient of determination (R2=0.146R^2 = 0.146) shows that 14.6% of the variance in INTASS scores is explained by nationality.

Significance testing for the nationality variable

  • Model comparison (F-test): Tests if the model including the nationality variable provides a significant improvement over a model with only a constant (H0:βTURK=0H_0: \beta_{TURK} = 0). A significant F-test (e.g., F=471.207F = 471.207) leads to rejecting the null hypothesis, indicating a population difference between groups.
  • T-test for regression coefficient: Tests if an individual regression coefficient is significantly different from zero (H0:βTURK=0H_0: \beta_{TURK} = 0). A significant t-value (e.g., t=−21.707t = -21.707) rejects the null hypothesis, confirming a significant difference in INTASS scores between Turkish and Moroccan men.

The F-test assesses the overall model fit, while t-tests assess individual coefficient significance.

8.4 Regression with polytomous independent variables

Polytomous (nominal or ordinal) independent variables with kk categories require k−1k-1 dummy variables. This avoids imposing unwarranted assumptions about the meaning of numerical differences between categories.

For the 'Gewest' (region) variable with three categories (Flanders, Brussels, Wallonia), two dummy variables are needed (e.g., BRUSSEL and WALLONIE). Flanders serves as the reference category.

Including a third dummy variable for Flanders would lead to perfect multicollinearity if the intercept is retained.

Choice of reference category

  • Avoid very small categories to prevent large standard errors and non-significant coefficients.
  • Select a category that yields meaningful comparisons (e.g., modal category, lowest/highest category for ordinal variables).
  • Avoid unclear groups (e.g., missing values).

The model E(Int&Ass)i=α+βBRUSSEL⋅BRUSSELi+βWALLONIE⋅WALLONIEiE(Int\&Ass)_i = \alpha + \beta_{BRUSSEL} \cdot BRUSSEL_i + \beta_{WALLONIE} \cdot WALLONIE_i is used.

  • The intercept (α\alpha) represents the expected INTASS score for the reference category (Flanders).
  • βBRUSSEL\beta_{BRUSSEL} represents the difference in expected INTASS score between Brussels and Flanders.
  • βWALLONIE\beta_{WALLONIE} represents the difference in expected INTASS score between Wallonia and Flanders.

Dummy regression allows for accurate comparison of means across multiple categories without assuming interval properties.

For the regional analysis, the F-test (F=55.160F = 55.160) indicated a significant overall effect of region on INTASS scores, leading to the rejection of H0:βBRUSSEL=βWALLONIE=0H_0: \beta_{BRUSSEL} = \beta_{WALLONIE} = 0. T-tests confirmed significant differences for both Brussels and Wallonia compared to Flanders.

  • R=0.197R = 0.197 indicates a weak association between region and INTASS scores.
  • R2=0.039R^2 = 0.039 indicates that 3.9% of the variance in INTASS scores is explained by regional differences.

It is essential that the overall F-test for a categorical variable is significant before interpreting individual dummy variable t-tests.

8.5 Dummy regression versus linear regression

Using a dummy variable approach is preferred over treating categorical variables as continuous in linear regression. For instance, coding regions as 1, 2, 3 implicitly assumes that the difference between Region 1 and 2 is the same as between 2 and 3, which is often not true.

Dummy coding allows for distinct mean differences between each category and the reference category.

8.6 Regression with quantitative and dummy independent variables

Multiple regression can accommodate a mix of quantitative and dummy independent variables. The model extends additively, with coefficients for dummy variables representing differences between categories and coefficients for quantitative variables representing change per unit increase.

The model equation is: E(Y)=α+β1X1+β2D1+β3D2+...E(Y) = \alpha + \beta_1 X_1 + \beta_2 D_1 + \beta_3 D_2 + ...

  • The intercept (α\alpha) represents the expected value of YY when all quantitative variables are zero and all dummy variables are zero (i.e., for the reference category).
  • Coefficients for quantitative variables (β1\beta_1) indicate the change in YY for a one-unit increase in that variable, holding other variables constant.
  • Coefficients for dummy variables (β2,β3\beta_2, \beta_3) indicate the difference in the expected value of YY between that dummy category and the reference category, holding other variables constant.

In a model with migration age (MIGLFT), nationality (TURK), and region (BRUSSEL, WALLONIE), the equation would be: E(Int&Ass)=0.640−0.022⋅MIGLFT−0.738⋅TURK+0.213⋅BXL+0.209⋅WALE(Int\&Ass) = 0.640 - 0.022 \cdot MIGLFT - 0.738 \cdot TURK + 0.213 \cdot BXL + 0.209 \cdot WAL

  • Intercept (0.6400.640): Expected INTASS for a second-generation Moroccan man in Flanders (MIGLFT=0MIGLFT=0, TURK=0TURK=0, BXL=0BXL=0, WAL=0WAL=0).
  • bTURKb_{TURK} (−0.738-0.738): Turkish men score 0.7380.738 standard deviations lower than Moroccan men on INTASS, controlling for migration age and region. This is the net effect of nationality.
  • bMIGLFTb_{MIGLFT} (−0.022-0.022): For each year increase in migration age, INTASS scores decrease by 0.0220.022 standard deviations, controlling for nationality and region.

Analyzing models with both quantitative and dummy variables allows for a nuanced understanding of effects while controlling for confounding factors.

🔑 Important: The interpretation of coefficients in multiple regression hinges on holding all other independent variables constant, allowing for the isolation of individual effects.

8.7 Model comparison and interpretation of coefficients

The efficacy of a regression model is assessed by comparing a "full" model (including all predictors) against a "restricted" model (a subset of predictors or just the constant). An F-test is employed to determine if the inclusion of additional variables in the full model significantly improves the explanatory power over the restricted model.

  • Null Hypothesis (H0H_0): All regression coefficients in the added variables are zero (β1=β2=⋯=βk=0\beta_1 = \beta_2 = \dots = \beta_k = 0).
  • Test Statistic: F=SSRr−SSRfSSRf×dffdfr−dffF = \frac{\text{SSR}_r - \text{SSR}_f}{\text{SSR}_f} \times \frac{df_f}{df_r - df_f} where SSR denotes the sum of squared residuals, dfdf represents degrees of freedom, rr refers to the restricted model, and ff to the full model.
  • Decision: If the calculated F-statistic exceeds the critical F-value (based on numerator and denominator degrees of freedom and the chosen significance level), H0H_0 is rejected, indicating a significant contribution of the additional variables.

The text illustrates this with examples testing the significance of:

  • All independent variables against a model with only the constant (F=196.491F = 196.491, p<0.001p < 0.001).

  • The net effect of migration age after controlling for nationality and region (F=231.132F = 231.132, critical value 3.84).

  • The net effect of nationality after controlling for migration age and region (F=437.839F = 437.839, critical value 3.84).

  • The net effect of region after controlling for migration age and nationality (F=18.100F = 18.100, critical value 3.00).

  • Multiple Correlation Coefficient (RR): Measures the strength of the linear relationship between the independent variables collectively and the dependent variable. A value of R=0.472R=0.472 indicates a moderate association.

  • Multiple Determination Coefficient (R2R^2): Represents the proportion of variance in the dependent variable explained by the independent variables. An R2=0.223R^2=0.223 signifies that 22.3% of the variance in integration scores is accounted for by the model's predictors 155.

🔑 Important: Model comparison with F-tests is crucial for evaluating the incremental predictive power of adding new variables to a regression model.

8.8 Interactions between categorical variables

Additive models assume that the effect of one independent variable on the dependent variable is constant across all levels of other independent variables. However, real-world relationships are often more complex, necessitating the inclusion of interaction terms.

  • Additive Specification: Assumes constant effects, e.g., the difference in integration scores between Turkish and Moroccan men is uniform across all regions and migration ages.

  • Interaction Specification: Allows effects to vary. For example, the difference in integration scores between nationalities might differ by region, or regional differences might vary by nationality. This is achieved by including product terms (dummy variable multiplied by another dummy variable) in the regression equation.

    📝 Example: To model an interaction between a BRUSSEL dummy and a TURK dummy, an interaction term INT2=BRUSSEL×TURKINT2 = BRUSSEL \times TURK is created. This term is 1 only for Turkish men in Brussels and 0 otherwise 156.

The interpretation of main effects changes when interaction terms are included:

  • Main Effects: The coefficients for categorical predictors (like nationality and region) in an additive model represent the average difference between that category and the reference category, holding all other variables constant.

  • Interaction Model:

    • The main effect coefficient for a category (e.g., TURK) now reflects the difference only for the reference category of the interacting variable (e.g., for men in Flanders).
    • The interaction term coefficient quantifies how much the difference between the interacting categories deviates from this baseline in other categories (e.g., the additional difference in the nationality effect for Turkish men in Brussels compared to Flanders).

    🔑 Important: Including interaction terms means that the interpretation of the main effects is conditional on the levels of the other interacting variables.

An F-test is used to assess the significance of adding a block of interaction terms. If the F-test for the interaction terms is not significant, the assumption of additivity (i.e., no interaction) is not rejected, suggesting that the more parsimonious additive model is sufficient 157.

8.9 Interactions between continuous and categorical variables

Similar to interactions between categorical variables, this allows the effect of a continuous variable to vary across different categories of a categorical variable.

  • Additive Model Assumption: The effect of a continuous predictor (e.g., migration age) is the same for all categories of a categorical predictor (e.g., nationality or region).

  • Interaction Model: Product terms are created by multiplying the continuous variable with each dummy variable representing a category of the categorical predictor. For example, INT4=TURK×MIGRATIELEEFTIJDINT4 = TURK \times MIGRATIELEEFTIJD.

    📝 Example: The term INT4INT4 will be 0 for Moroccan respondents and equal to MIGRATIELEEFTIJD for Turkish respondents 158.

Interpreting coefficients in such a model:

  • Intercept: Represents the predicted value for the reference category (all dummy variables are 0) when the continuous variable is also 0.

  • Main Effect of Continuous Variable: In an additive model, this reflects its effect across all categories. In an interaction model, it reflects the effect for the reference category of the categorical predictor.

  • Coefficients of Categorical Main Effects: Reflect the difference between that category and the reference category at the reference level of the continuous variable.

  • Interaction Term Coefficients: Quantify how the effect of the continuous variable changes for each specific category of the categorical predictor compared to the reference category.

    🔑 Important: When interaction terms are present, the 'main effect' coefficients for both the continuous and categorical variables become conditional on the levels of the interacting variables. For instance, the effect of migration age in the interaction model reflects the effect for the reference group (e.g., Moroccan men in Flanders). The interaction term then specifies the deviation from this effect for other groups (e.g., Turkish men).

An F-test is again used to determine if the block of interaction terms significantly improves the model fit compared to the additive model 159.

8.10 Testing for additivity and model specification

In practice, it is often necessary to consider interactions between multiple variables simultaneously, including combinations of categorical and continuous predictors.

  • Risk of Overspecification: Testing many interaction terms individually can lead to "overfitting," where the model fits the sample data too closely and may not generalize well to new data. The problem is exacerbated if one tests numerous interactions at a conventional significance level (e.g., 5%), as random chance might lead to some significant results even without true population interactions.
  • Practical Strategy:
    • Theory-driven testing: Prioritize testing interaction terms that are theoretically justified.
    • Block testing: Test blocks of interaction terms (e.g., all 2-way interactions, then all 3-way interactions) against the additive model. This approach conserves degrees of freedom and provides a more robust assessment of whether interactions are generally important. If a block of interactions is significant, then individual terms within that block can be examined more closely.
    • Saturated model: A model including all possible interaction terms. Comparing the saturated model to the additive model can reveal the overall importance of interactions.

🔑 Important: While interaction models offer greater flexibility and potentially better fit, caution must be exercised to avoid overfitting. A balanced approach involves theoretical grounding and systematic testing of interaction blocks.

The final model can be a saturated model or a more parsimonious one, depending on the significance of the interaction terms. Bivariate regressions can then be performed for specific subgroups identified by the model to further understand localized relationships 161.

9. Bivariate and multiple regression analysis (part 5)

9.1 Non-linear relationships

  • Linear function: yi=a+bxiy_i = a + bx_i. Assumes a constant change in Y for a unit change in X.
  • Quadratic function: yi=a+bxi+cxi2y_i = a + bx_i + cx_i^2. The effect of X on Y is not constant.
    • Convex shape (∪\cup) if c>0c > 0.
    • Concave shape (∩\cap) if c<0c < 0.
  • Cubic function: yi=a+bxi+cxi2+dxi3y_i = a + bx_i + cx_i^2 + dx_i^3. Allows for more complex curves with potential inflection points.
    • Initial peak then dip if d>0d > 0.
    • Initial dip then peak if d<0d < 0.

The choice of polynomial function depends on theoretical considerations and empirical fit, tested via model comparison.

9.2 Testing for linearity assumptions

  • Model expansion: The linearity assumption can be tested by expanding the model specification to include polynomial terms (e.g., xi2x_i^2, xi3x_i^3).
  • Model comparison procedure: A model comparison framework, often employing an F-test, is used to determine if the inclusion of higher-order polynomial terms significantly improves the model's explanatory power compared to a linear model.

9.2.1 Quadratic function application

  • Quadratic model equation: E(Int&Ass)=0.723−0.737×TURK+0.211×BXL+0.211×WAL−0.040×MIGLFT_LIN+0.001×MIGLFT_QUAE(\text{Int\&Ass}) = 0.723 - 0.737 \times \text{TURK} + 0.211 \times \text{BXL} + 0.211 \times \text{WAL} - 0.040 \times \text{MIGLFT\_LIN} + 0.001 \times \text{MIGLFT\_QUA}
  • Coefficient interpretation:
    • Intercept: Expected score for the reference category (Moroccan male in Flanders, born in Belgium or migrated before age 1).
    • βTURK\beta_{\text{TURK}}: Difference in expected 'Int&Ass' score between Turkish and Moroccan males, controlling for regional and migration age differences.
    • βBXL\beta_{\text{BXL}}: Difference in expected 'Int&Ass' score for respondents in Brussels vs. Flanders, controlling for nationality and migration age.
    • βWAL\beta_{\text{WAL}}: Difference in expected 'Int&Ass' score for respondents in Wallonia vs. Flanders, controlling for nationality and migration age.
    • βMIGLFT_LIN\beta_{\text{MIGLFT\_LIN}} and βMIGLFT_QUA\beta_{\text{MIGLFT\_QUA}}: These coefficients together define the non-linear effect of migration age. The term with the highest power generally dominates.

The quadratic model suggests that while higher migration age initially leads to lower integration scores, this effect eventually reverses, leading to higher scores at very advanced migration ages.

9.2.2 F-test for quadratic term

  • Hypothesis: H0:βMIGLFT_QUA=0H_0: \beta_{\text{MIGLFT\_QUA}} = 0 (the quadratic term does not improve the model).
  • F-statistic calculation: F=(SSEreduced−SSEfull)/(dfreduced−dffull)SSEfull/dffull=SSRadded/dfaddedMSEfullF = \frac{(\text{SSE}_{\text{reduced}} - \text{SSE}_{\text{full}}) / (\text{df}_{\text{reduced}} - \text{df}_{\text{full}})}{\text{SSE}_{\text{full}} / \text{df}_{\text{full}}} = \frac{\text{SSR}_{\text{added}} / \text{df}_{\text{added}}}{\text{MSE}_{\text{full}}} The provided calculation yields F=22.59F = 22.59.
  • Decision: With a critical F-value of 3.84 (at α=0.05\alpha=0.05, 1 df numerator, 2742 df denominator), the observed F-value (22.5922.59) significantly exceeds the critical value. Therefore, the null hypothesis is rejected, indicating that the non-linear (quadratic) effect of migration age better fits the observed data than a linear model.

9.3 Cubic function analysis

  • Cubic model equation: E(Int&Ass)=0.734−0.736×TURK−0.210×BXL+0.211×WAL−0.045×MIGLFT%+0.001×MIGLFTQUA+0.000×MIGLFTCUBE(\text{Int\&Ass}) = 0.734 - 0.736 \times \text{TURK} - 0.210 \times \text{BXL} + 0.211 \times \text{WAL} - 0.045 \times \text{MIGLFT}_{\%\text{}} + 0.001 \times \text{MIGLFT}_{\text{QUA}} + 0.000 \times \text{MIGLFT}_{\text{CUB}}
  • Cubic term interpretation: The interpretation of the cubic term suggests an initial dip followed by a peak, but then a downward turn at very high migration ages, potentially moving towards a linear trend again. The coefficient for the cubic term is 0.0000.000, indicating it has negligible impact.

9.3.1 F-test for cubic term

  • Hypothesis: H0:βMIGLFT_CUB=0H_0: \beta_{\text{MIGLFT\_CUB}} = 0 (the cubic term does not improve the model).
  • F-statistic calculation: The provided calculation yields F=0.68F = 0.68.
  • Decision: With a critical F-value of 3.84 (at α=0.05\alpha=0.05, 1 df numerator, 2741 df denominator), the observed F-value (0.680.68) is lower than the critical value. Therefore, the null hypothesis is not rejected, indicating that the cubic effect does not provide a significantly better fit than the quadratic effect.

The quadratic model is preferred over the cubic model as it offers a better fit without unnecessary complexity.

🔑 Important: Model comparison using F-tests is crucial for selecting the appropriate polynomial order to capture non-linear relationships accurately, balancing explanatory power with parsimony. </document_content>

10. Advanced regression techniques and scale construction (part 1)

10.1 Regression with dummy variables and effect coding

  • Dummy variable encoding: Categorical independent variables with kk categories are represented by k−1k-1 binary (0/1) dummy variables.
  • Interpretation of dummy coefficients: The regression coefficient for a dummy variable represents the difference in the expected outcome between the category coded as 1 and the reference category (coded as 0 for all dummy variables).
  • Intercept in dummy coding: The intercept represents the expected outcome for the reference category.
  • Model comparison using F-test: This tests whether the inclusion of dummy variables for a categorical predictor significantly improves the model fit compared to a model without that predictor. The null hypothesis (H0H_0) is that all coefficients for the dummy variables are zero.
  • T-tests for individual coefficients: Used to test the null hypothesis that a specific regression coefficient (representing the difference between a category and the reference category) is zero in the population.

Dummy coding offers easy interpretation of group differences relative to a reference category.

  • Effect coding (EC): Categorical variables with kk categories are coded using k−1k-1 design variables that take values of -1, 0, and 1. The unweighted mean of each design variable is 0.
  • Interpretation of EC coefficients:
    • The intercept represents the unweighted mean of the dependent variable across all categories.
    • A positive coefficient for a specific category indicates that the group scores higher than the overall mean; a negative coefficient indicates a lower score.
    • The difference between any two group means can be calculated using the EC coefficients.
  • Comparison of dummy and effect coding:
    • Both methods yield identical model-level statistics (e.g., FF-test, R2R^2, predicted values, residuals).
    • The interpretation of individual coefficients differs: dummy coding compares to a reference category, while effect coding compares to the overall mean.
    • The choice depends on the research question: reference category comparison (dummy) or overall mean comparison (effect).

Effect coding allows for direct interpretation of group differences relative to the global mean.

Coding SchemeReference CategoryInterpretation of CoefficientIntercept Represents
Dummy CodingExplicitly definedDifference in expected outcome compared to the reference category.Expected outcome for the reference category
Effect CodingImplicit (overall mean)Difference in expected outcome compared to the unweighted mean of all categories.Unweighted mean of the dependent variable

10.2 Analysis of Variance (ANOVA)

  • Historical context: Regression and ANOVA originated from different traditions (economics vs. psychology) but are variations of the General Linear Model.
  • Terminology: In ANOVA, categorical independent variables are called "factors," and quantitative dependent variables are analyzed.
  • Relationship to Regression:
    • One-way ANOVA is equivalent to regression with one dichotomous (dummy) independent variable.
    • nn-way ANOVA is equivalent to regression with nn categorical independent variables.
    • Analysis of Covariance (ANCOVA) involves categorical and quantitative independent variables.

10.3 T-test for differences between means

  • Application: Comparing the means of a quantitative variable between two groups.
  • Null Hypothesis (H0H_0): The population means of the two groups are equal (μ1=μ2\mu_1 = \mu_2).
  • Test Statistic: A tt-statistic is calculated as the difference between sample means divided by the standard error of the difference.
  • Standard Error Estimation:
    • Homoscedasticity (σ12=σ22\sigma_1^2 = \sigma_2^2): Assumes equal population variances, using a pooled estimate of the standard error. The tt-distribution has (n1+n2−2)(n_1 + n_2 - 2) degrees of freedom.
    • Heteroscedasticity (σ12≠σ22\sigma_1^2 \neq \sigma_2^2): Assumes unequal population variances, using separate variance estimates (often leading to a larger standard error). Degrees of freedom are adjusted (Welch's tt-test).
  • Levene's Test for Equality of Variances: Used to assess the homoscedasticity assumption.
    • If p≥0.05p \geq 0.05, assume equal variances ("equal variances assumed").
    • If p<0.05p < 0.05, assume unequal variances ("equal variances not assumed").
  • Interpretation: If the observed tt-statistic falls in the critical region (or pp-value is below the significance level), the null hypothesis is rejected, indicating a statistically significant difference between group means.

The tt-test examines if the difference between two group means is larger than expected by chance.

10.4 One-way Analysis of Variance (ANOVA)

  • Application: Comparing the means of a continuous dependent variable across two or more groups.
  • Null Hypothesis (H0H_0): The population means of all groups are equal (μGroup1=μGroup2=⋯=μGroupk\mu_{Group1} = \mu_{Group2} = \dots = \mu_{Group k}).
  • Partitioning Variance: Total variance (SSTSST) is decomposed into between-group variance (SSBSSB) and within-group variance (SSWSSW).
    • SSTSST: Variability of individual scores around the global mean.
    • SSBSSB: Variability of group means around the global mean.
    • SSWSSW: Variability of scores within each group around their respective group mean.
  • Test Statistic (F-ratio): The ratio of between-group variance to within-group variance (F=MSBMSWF = \frac{MSB}{MSW} or SSB/dfbetweenSSW/dfwithin\frac{SSB/df_{between}}{SSW/df_{within}}).
    • MSBMSB (Mean Square Between) and MSWMSW (Mean Square Within) are unbiased estimates of the population variance under H0H_0.
    • If group means differ in the population, MSBMSB will be larger than MSWMSW, resulting in an F>1F > 1.
  • Interpretation: If the calculated FF-ratio exceeds the critical value from the FF-distribution (or p<αp < \alpha), the null hypothesis is rejected, indicating that at least two group means differ significantly.

ANOVA tests if any of the group means differ from each other, not which specific ones.

10.5 Post-hoc tests and the problem of multiple comparisons

  • Purpose: When a significant FF-test in ANOVA indicates that group means differ, post-hoc tests are used to identify which specific group pairs have significantly different means.
  • Problem of Repeated Testing: Performing multiple pairwise comparisons increases the probability of a Type I error (false positive). The cumulative probability of at least one false positive error rises with the number of tests.
  • Bonferroni Correction: A conservative method to control the family-wise error rate (α\alpha). The significance level for each individual comparison (β\beta) is adjusted: β=αN\beta = \frac{\alpha}{N}, where NN is the number of comparisons.
  • Contrast tests: Planned comparisons between specific group means, often used in regression but also applicable in ANOVA.

Bonferroni correction makes individual tests stricter to control the overall false positive rate.

10.6 N-way ANOVA and ANCOVA

  • N-way ANOVA: Extends ANOVA to include multiple categorical independent variables (factors). It tests for main effects of each factor and interaction effects between factors.
  • Analysis of Covariance (ANCOVA): Extends ANOVA by including quantitative independent variables (covariates) alongside categorical factors. It controls for the effect of covariates on the dependent variable.
  • Interaction Effects: An interaction occurs when the effect of one factor on the dependent variable depends on the level of another factor. In ANOVA, interactions between categorical factors are tested.
  • Regression vs. ANOVA for interactions:
    • ANOVA typically tests interactions between categorical factors.
    • Regression models are more general and can test interactions between any combination of categorical and quantitative variables (factors and covariates).
    • When interactions between covariates and factors are expected, regression is generally preferred over ANOVA.
  • Equivalence in significance testing: For main effects and interactions between categorical variables, significance testing in ANOVA and dummy-variable regression is equivalent. The choice of method may depend on software capabilities and the researcher's preference for interpreting results.

ANCOVA allows controlling for the influence of continuous variables when comparing group means.


🔑 Important: Understanding the interpretation of coefficients for dummy and effect coding, and the logic behind ANOVA's F-test and post-hoc corrections, are crucial for correctly analyzing and reporting differences between groups. The choice between regression and ANOVA depends on the nature of the independent variables and the research questions regarding interactions.

10.7 Introduction to logistic regression

  • When dependent variables are categorical, standard linear regression is inappropriate.
  • Many phenomena of interest in the social sciences are discrete or categorical (e.g., having a child, voting, becoming ill).
  • These often manifest as dichotomous variables, suitable for dummy coding.

🔑 Important: Logistic regression addresses the limitations of using linear regression with dummy dependent variables.

10.8 Limitations of the Linear Probability Model (LPM)

  • LPM overview: Uses a dichotomous dependent variable (0/1) within a linear regression framework.
  • Interpreting LPM:
    • The mean of a dummy variable represents the probability of that outcome.
    • Regression coefficients can indicate changes in probability per unit change in independent variables.
  • Problems with LPM:
    • Predicted values outside: Predicted probabilities can be negative or exceed 1, which is statistically impossible 1.
    • Violation of Gauss-Markov assumptions:
      • Heteroscedasticity: The variance of the error term is not constant. The variance of a dummy variable is p(1−p)p(1-p), which changes as pp changes.
      • Non-linear relationship: The effect of an independent variable on the probability of the outcome is often not linear; it is typically S-shaped.

🔑 Important: The LPM violates fundamental assumptions, leading to unreliable predictions and significance tests.

10.9 Logistic regression: A robust alternative

  • Core principle: Solves LPM issues by applying a logit transformation to the dichotomous dependent variable.
  • Estimation: Uses maximum likelihood estimation (MLE) instead of ordinary least squares (OLS).
  • Hypothesis testing: Employs Likelihood Ratio tests and Wald statistics to replace F-tests and t-tests.
  • Extensibility: Can be readily extended to multinomial logistic regression for dependent variables with more than two categories.

10.10 Logit transformation

  • Rationale: To overcome the bounded nature of dichotomous outcomes (0 to 1) by transforming them.
  • Transformation steps:
    1. Odds: The ratio of the probability of an event occurring to the probability of it not occurring. Odds(y=1)=P(y=1)1−P(y=1)\text{Odds}(y=1) = \frac{P(y=1)}{1 - P(y=1)}
      • Odds range from 0 to positive infinity.
    2. Logit: The natural logarithm of the odds. Logit(y=1)=ln⁡(Odds(y=1))=ln⁡(P(y=1)1−P(y=1))\text{Logit}(y=1) = \ln(\text{Odds}(y=1)) = \ln\left(\frac{P(y=1)}{1 - P(y=1)}\right)
      • The logit transformation maps probabilities from the (0, 1) interval to the entire real number line (−∞-\infty to +∞+\infty).

🔑 Important: The logit transformation linearizes the relationship between the independent variables and the log-odds of the outcome.

10.11 Odds and Odds Ratios

  • Odds:

    • Represent the relative likelihood of an event occurring.
    • An odds of 1 means the probability of the event is 0.50.
    • Odds > 1 indicate a probability > 0.50; Odds < 1 indicate a probability < 0.50.
    • For a specific group (e.g., by nationality), odds are conditional odds.

    📝 Example: If the odds of staying in school for Moroccan men are 2.91, it means for every one Moroccan man who doesn't stay in school, there are 2.91 who do. This is equivalent to 291.39 out of every 100 non-participants.

  • Odds Ratio (OR):

    • Measures the association between a categorical independent variable and a dichotomous dependent variable.
    • It is the ratio of conditional odds between two groups.
    • A neutral value is 1, indicating no association (the conditional odds are equal for both groups).
    • An OR > 1 means the odds of the event are higher in the first group compared to the second.
    • An OR < 1 means the odds of the event are lower in the first group compared to the second.

    📝 Example: An odds ratio of 0.609 comparing Turkish men to Moroccan men for dropping out of school means the odds of dropping out are 0.609 times smaller for Turkish men, or 60.9% of the odds for Moroccan men.

🔑 Important: Odds ratios are the primary interpretation metric for the effects of independent variables in logistic regression, representing multiplicative changes in odds.

10.12 Multinomial logit models

  • Extends logistic regression to handle dependent variables with more than two unordered categories.
  • Example: Predicting voting behavior across multiple parties.
  • The model compares the odds of each category against a designated reference category.

11. Advanced regression techniques and scale construction (part 2)

11.1 Logistic regression and the logit transformation

  • Logit transformation: Converts probabilities (bounded between 0 and 1) into a scale that ranges from −∞-\infty to +∞+\infty. This is achieved by taking the natural logarithm of the odds: Logit(y)=ln⁡(P(y=1)1−P(y=1))Logit(y) = \ln\left(\frac{P(y=1)}{1-P(y=1)}\right).
  • Properties of logit:
    • Symmetric around 0: If odds are < 1, logit is < 0; if odds are = 1, logit is = 0; if odds are > 1, logit is > 0.
    • Enables modeling non-linear probability relationships as linear relationships in the logit scale.
    • Constant differences in logits often correspond to varying differences in probabilities.

Logit transformation linearizes the relationship between probabilities and independent variables, making them suitable for regression analysis.

11.2 The logistic regression equation

  • The logistic regression equation models the logit of the dependent variable as a linear combination of independent variables: Logit(y=1)=ln⁡(P(y=1)1−P(y=1))=α+β1x1+β2x2Logit(y=1) = \ln\left(\frac{P(y=1)}{1-P(y=1)}\right) = \alpha + \beta_1 x_1 + \beta_2 x_2

  • Interpretation of coefficients (β\beta):

    • α\alpha: The expected logit when all independent variables are zero (intercept or reference category baseline).
    • βk\beta_k: The change in the expected logit for a one-unit increase in xkx_k, holding other variables constant. This represents the net effect.
  • Exponentiating the logistic regression equation yields a multiplicative model in terms of odds: P(y=1)1−P(y=1)=eα×eβ1x1×eβ2x2\frac{P(y=1)}{1-P(y=1)} = e^{\alpha} \times e^{\beta_1 x_1} \times e^{\beta_2 x_2}

  • Interpretation of exponentiated coefficients (eβe^\beta):

    • eαe^\alpha: The expected odds when all independent variables are zero (baseline odds).
    • ekβe^\beta_k: The odds ratio for a one-unit increase in xkx_k, holding other variables constant. This signifies the multiplicative change in odds.

The regression equation can be interpreted in terms of additive effects on the logit scale or multiplicative effects on the odds scale.

11.3 Probability calculation and interpretation

  • The probability P(y=1)P(y=1) can be derived from the odds using the formula: P(y=1)=eα+β1x1+β2x21+eα+β1x1+β2x2=Odds1+OddsP(y=1) = \frac{e^{\alpha + \beta_1 x_1 + \beta_2 x_2}}{1 + e^{\alpha + \beta_1 x_1 + \beta_2 x_2}} = \frac{Odds}{1 + Odds}
  • While logits exhibit linear relationships and odds exhibit multiplicative relationships with independent variables, probabilities do not maintain constant linear or multiplicative relationships.

Understanding the transformation back from logit/odds to probability is crucial for practical interpretation.

11.4 Estimation of regression parameters

  • For logistic regression, Ordinary Least Squares (OLS) is inappropriate due to the binary nature of the dependent variable and the non-linear relationship between predictors and probability.
  • Maximum Likelihood (ML) estimation is used. This method selects parameter values that maximize the likelihood of observing the sample data.
    • The Likelihood function (L) is the product of probabilities for each observation: L=∏i=1npiyi(1−pi)(1−yi)L = \prod_{i=1}^{n} p_i^{y_i} (1-p_i)^{(1-y_i)}.
    • To simplify calculations, the natural logarithm of the likelihood function (Log Likelihood (LL)) is maximized: LL=ln⁡(L)=∑i=1nln⁡(Li)LL = \ln(L) = \sum_{i=1}^{n} \ln(L_i).
    • In practice, software often minimizes −2×LL-2 \times LL (deviance).
  • ML estimators are characterized by:
    • Consistency: Estimates converge to true population values as sample size increases.
    • Asymptotic Efficiency: Standard errors are minimal in large samples.
    • Asymptotic Normality: Sampling distribution approximates a normal distribution for large samples, enabling significance testing and confidence intervals.

ML estimation finds parameters that make the observed data most probable, utilizing iterative optimization rather than closed-form solutions.

11.5 Model comparison and evaluation

  • Model Chi-Square (χ2\chi^2): Analogous to the F-test in linear regression, it tests the null hypothesis that all regression coefficients (except the intercept) are zero. It reflects the improvement in fit from a null model to the full model (Δ−2LL\Delta -2LL).
  • Nested models: Models where one is a restricted version of another (e.g., by setting coefficients to zero). Model comparison techniques are suitable for nested models.
  • Information Criteria (AIC, BIC): Used for comparing non-nested models by balancing model fit (deviance) with model complexity (number of parameters). Lower values indicate a preferred model.
    • AIC: AIC=−2LL+2pAIC = -2LL + 2p
    • BIC: BIC=−2LL+(ln⁡(n)p)BIC = -2LL + (\ln(n)p)
  • Pseudo R-squared measures (e.g., Cox & Snell, Nagelkerke): Provide an indication of the proportion of variance explained, but are not directly interpretable as in linear regression.

Model comparison is essential for selecting the best-fitting and most parsimonious logistic regression model.

11.6 Significance testing of predictors

  • Individual predictor significance can be tested using:
    • Likelihood Ratio Test (LRT): Compares the deviance of a full model with a reduced model where a specific variable is omitted. Significant improvement in fit indicates the variable's importance.
    • Wald Statistic: The squared ratio of the estimated coefficient to its asymptotic standard error. It tests the null hypothesis that a specific coefficient (βk\beta_k) is zero. Waldχ2=(β^kSE(β^k))2Wald \chi^2 = \left(\frac{\hat{\beta}_k}{SE(\hat{\beta}_k)}\right)^2

The Likelihood Ratio Test is generally preferred over the Wald test due to the former's less biased results, especially with large coefficients.

11.7 Interpretation of coefficients and classification

Type of VariableLogit Interpretation (β\beta)Odds Interpretation (eβe^{\beta})
ContinuousChange in logit for a one-unit increase in the predictor.Odds ratio: Multiplicative change in odds for a one-unit increase.
Dummy Variable (e.g., Turk=1 vs. Turk=0)Difference in logit between the group coded as 1 and the reference group (coded as 0).Odds ratio: Ratio of odds for the group coded as 1 compared to the odds of the reference group.
  • Classification Table: Assesses model performance by comparing predicted group membership (based on a probability threshold, typically 0.50) with observed group membership. It reports the percentage of correctly classified cases.
  • Limitations of Classification Table: Does not detail the distribution of predicted probabilities within correctly or incorrectly classified groups, and may be less informative than model fit statistics for research focused on variable effects.

While classification tables offer a visual summary of predictive accuracy, model chi-square and individual coefficient tests are often more pertinent for understanding relationships.

11.8 Alternative coding schemes

  • Dummy coding (Indicator coding): Compares the odds of each category to a reference category.
  • Effect coding (Deviation coding): Compares the odds of each category to the (geometric) mean odds across all categories. This coding scheme yields an intercept representing the average odds.

The choice of coding scheme for categorical variables impacts the interpretation of the intercept and coefficients but does not alter the overall model fit or substantive conclusions.

🔑 Important: Logistic regression transforms probabilities to logits to achieve linearity, enabling parameter estimation and interpretation via odds ratios, which represent multiplicative effects on the likelihood of an event.

11.9 Assumptions and model evaluation in logistic regression

  • Additivity assumption: Assumes the effect of a predictor is constant across all levels of other predictors. This implies no interaction terms are necessary.
  • Testing additivity: Deviance (-2LL) of a model with interaction terms is compared to an additive model. A non-significant difference indicates the additive model is sufficient.
  • Linearity assumption: Assesses if the effect of a continuous predictor on the logit of the dependent variable is linear. This can be tested by comparing a model with a linear effect to one with a non-linear effect (e.g., quadratic).
  • Hosmer-Lemeshow test: Evaluates the goodness-of-fit for logistic regression by comparing observed and predicted proportions across deciles of risk. A non-significant result suggests the model adequately captures the relationship.

🔑 Important: A significant result from linearity tests suggests incorporating non-linear terms enhances model fit, whereas a non-significant Hosmer-Lemeshow test indicates the logistic curve adequately describes the empirical relationship.

11.10 Multinomial logistic regression

  • Extension of binary logistic regression: Used when the dependent variable has more than two nominal categories.
  • Model structure: Consists of (k-1) sets of regression equations for a dependent variable with k categories. Each set compares a specific category to a reference category.
  • Reference category: Similar to binary logistic regression, one category is designated as the baseline for comparison.

11.11 Model formulation and interpretation

  • For a dependent variable yy with categories {0, 1, 2}, where 0 is the reference, the model includes two equations: logit(y=1)=ln⁡(P(y=1)P(y=0))=∑b1kx1k=Z1\text{logit}(y=1) = \ln\left(\frac{P(y=1)}{P(y=0)}\right) = \sum b_{1k}x_{1k} = Z_1 logit(y=2)=ln⁡(P(y=2)P(y=0))=∑b2kx2k=Z2\text{logit}(y=2) = \ln\left(\frac{P(y=2)}{P(y=0)}\right) = \sum b_{2k}x_{2k} = Z_2
  • Odds and odds-ratios: Exponentiating the logits (eZ1e^{Z_1}, eZ2e^{Z_2}) yields odds-ratios, comparing the odds of being in category 1 or 2 versus category 0.
  • Probability calculation: The probability of being in each category is derived from the odds-ratios, ensuring that the sum of probabilities across all categories equals one.

> Key Relationship: Probability of reference category P(y=0)=11+eZ1+eZ2P(y=0) = \frac{1}{1 + e^{Z_1} + e^{Z_2}}

11.12 Significance testing

  • Overall model significance: A likelihood ratio test compares a restricted model (intercepts only) to a full model (including predictors). A significant result indicates that at least one predictor has a significant effect in at least one regression equation.
  • Individual predictor significance:
    • Likelihood ratio tests: Used to assess the significance of predictor groups (e.g., education level) by comparing models with and without those predictors.
    • Wald chi-square test: Assesses the significance of individual coefficients in each regression equation.

11.13 Interpretation of regression coefficients

  • First regression equation (e.g., part-time work vs. inactivity):
    • Intercept: Represents the logit of the odds for the reference group (e.g., woman with higher education).
    • Predictor coefficients: Indicate the change in the logit of the odds for a one-unit increase in the predictor, relative to the reference category.
  • Second regression equation (e.g., full-time work vs. inactivity):
    • Similar interpretation as the first equation, but for a different outcome category.
  • Odds-ratios: Quantify the multiplicative change in the odds of the outcome category relative to the reference category for a one-unit increase in a predictor.

> Scan Anchor: For multinomial logit, odds-ratios compare each category to the reference.

> Important: When interpreting coefficients in multinomial logistic regression, it's crucial to consider the specific reference category and the outcome being modeled in each of the (k-1) equations.

11.14 Scale construction methods (introduction)

While this section focuses on regression techniques, the underlying concept of constructing meaningful scales is foundational for many analyses, including those using logistic regression. Scale construction aims to combine multiple items or variables into a single, reliable measure that captures a latent construct.

Techniques such as Principal Component Analysis (PCA) and Factor Analysis (PFA) are employed for this purpose. These methods help identify underlying dimensions or factors within a set of observed variables and are essential for developing valid and psychometrically sound scales.

> Important: Understanding scale construction is critical for choosing appropriate variables and ensuring that the constructs measured in regression analyses are well-defined and robust.

🔑 Important: Advanced regression and scale construction are interlinked; robust scales improve the validity and interpretability of regression models.

12. Advanced regression techniques and scale construction (part 3)

12.1 Multinomial logistic regression: extended applications

Multinomial logistic regression extends binary logistic regression to situations where the dependent variable has more than two unordered categories. This technique is particularly useful for modeling choices or outcomes that fall into distinct, non-hierarchical groups.

  • Odds ratios in multinomial logistic regression compare the odds of a specific outcome category versus a reference category, for a one-unit change in an independent variable.
  • Calculating exact probabilities for each category requires combining regression coefficients from the various binary comparisons within the multinomial model.

Example: For a woman with a lower education diploma, the probability of unemployment/inactivity is calculated as 0.6264, for part-time work as 0.1469, and for full-time work as 0.2267 205.

12.2 Causal interpretation and model specification

Regression techniques can be employed to compare different model specifications, allowing for the examination of how independent variables affect dependent variables. This includes assessing whether an effect holds after controlling for a common cause, understanding indirect effects through intermediate variables, or verifying effects after controlling for other factors.

  • Controlling for variables can reveal initial relationships, or test the conditional nature of associations between variables.
  • Causal structures are often visualized in diagrams, distinguishing between antecedent, intermediate, and dependent variables, and between direct, indirect, and total effects.

12.3 Variable types and effect definitions

Different variable types are defined by their position within a causal structure and their influence.

Variable TypeDescriptionPosition in Causal Diagram
Antecedent (Exogenous)Not determined by other factors (e.g., age, gender).Far left
Intermediate (Endogenous)Influenced by antecedent variables (e.g., education level).Between antecedent & dependent
DependentThe outcome variable being explained.Far right
Effect TypeDescription
DirectEffect of an antecedent or intermediate variable on the dependent variable, controlling for others.
IndirectEffect of an antecedent variable on the dependent variable through one or more intermediate variables.
TotalThe sum of direct and indirect effects.

12.4 Quantifying causal diagrams

Causal diagrams are quantified through regression analyses, with a separate regression for each variable that has incoming arrows.

  • For interval/ratio level variables, direct effects are typically represented by standardized partial regression coefficients.
  • Indirect effects are calculated as the product of the relevant direct effects.

Example: The total effect of region on fertility decline is decomposed into direct and indirect effects via industrialization and secularization. The regional difference in fertility transition speed is fully explained by differences in industrialization and secularization 209.

12.5 Alternative strategy for model comparison

An alternative strategy involves comparing results from successive model specifications, applicable to nominal and ordinal variables, and using unstandardized coefficients.

  • Step 1: Regress the dependent variable (Y)(Y) on antecedent variables (A1,A2)(A_1, A_2). Coefficients represent total effects.
  • Step 2: Expand the model with intermediate variables (T1,T2)(T_1, T_2). Coefficients represent direct effects.
  • The difference between total and direct effects estimates the sum of indirect effects.

12.6 Experimental design and causal interpretation

A causal interpretation of regression results is most robust when data originates from an experimental design with random assignment to conditions.

🔑 Important: While non-experimental data can be analyzed with regression, conclusions remain sensitive to the inclusion of relevant control variables and the nature of variation (endogenous vs. exogenous) 211.

12.7 Analysis of specific relationship types

Regression analysis can be used to investigate various problem relationships, including spurious causality, indirect effects (mediation), suppression, and interaction/moderation.

12.8 Spurious causality

A spurious effect occurs when the association between two variables is due to their shared relationship with one or more common causes. In multivariate analysis, this association disappears after controlling for these common causes.

Example: The bivariate association between inactivity and overweight diminishes significantly after controlling for age, suggesting that age is a confounding factor 212.

12.9 Indirect relations (mediation)

Indirect effects occur when the influence of an antecedent variable on a dependent variable is channeled through one or more intermediate variables.

  • The "Decline of Belgian Fertility" example illustrates how regional differences in fertility decline are mediated by industrialization and secularization 213 214.

12.10 Suppression

Suppression occurs when a variable's bivariate association with an outcome is weak or non-existent, but it strengthens the association when included in a multivariate model alongside other predictors.

Example: The relationship between age and subjective security is weak bivariately but strongly positive in a multivariate model including income, as income suppresses the negative effect of age 215.

12.11 Interaction or moderation

Interaction, or moderation, signifies that the nature or strength of an association between two variables changes depending on the value(s) of one or more other characteristics. This is typically modeled using product terms in regression.

Example: The effect of occupational class on subjective health varies significantly across different age groups, indicated by non-parallel lines in a graph.

12.12 Replication

Replication means that the bivariate association between two variables remains largely unchanged after controlling for one or more covariates. However, replication alone does not guarantee causality; a causal effect requires demonstration that a change in one variable generates a change in another under specific conditions.

🔑 Important: For a causal interpretation, the research design and the nature of variation in independent variables (endogenous vs. exogenous) are critical considerations 216.

12.13 Principles of scale construction

  • Scale construction aims to reduce information from a battery of items (statements, questions) into a limited number of new variables or scales.
  • This is primarily done for rating items, not ranking methods.

🔑 Important: The goal is to measure an underlying attitude or opinion accurately using multiple manifest variables.

12.14 Item and scale properties

  • Discriminatory power: Ability of an item or scale to distinguish between divergent opinions.
  • Unidimensionality: Whether a battery of items measures a single concept or multiple dimensions.
  • Reproducibility: How well the total score reflects individual item response patterns.
  • Item equivalence: Whether all items measure the underlying attitude equally well and are assigned equal weight.
  • Statistical measurement level: The level of measurement of the resulting scale for further analysis.

12.15 Summated ratings scales

These scales are a rudimentary form of scale construction, primarily involving summing scores from multiple items.

  • Rating method: Items are presented individually (no explicit comparison); respondents indicate degree of agreement or applicability via a numerical score.
  • Item score: A quotation indicating the presence/absence or degree of agreement with a formulated opinion.

Likert scale

  • A Likert scale is a type of summated ratings scale where items are scored on a bipolar continuum.
  • Scores are reversed if the item's statement is in the opposite direction of the intended attitude.
  • Summing scores across items provides a total scale score.

📝 Example: A respondent agrees with "I feel discriminated against at school" and "I feel protected by my religion" on a 5-point scale. Scores are summed after ensuring they are oriented consistently.

Cumulative categorical index scale

  • Similar to Likert scales, but often uses dichotomous item scores (present/absent).
  • Sum of scores across items forms the scale.

Disadvantages of simple summated scales

  • Non-reproducibility: Intermediate total scores can be obtained through diverse item response patterns.
  • Assumed item equivalence: All items are given equal weight in the total score calculation, which may not reflect respondent perception.
  • No unidimensionality check: Items may not be valid indicators of the same underlying dimension.
  • Ordinal scale scores: Lack of a constant unit of measurement or an absolute zero point.

🔑 Important: Simple summation methods can obscure underlying response patterns and assume item comparability that may not exist.

12.16 Testing scale properties

  • Discrimination power test:
    • A priori: Compare scale scores between groups with known opposing opinions; remove items where these groups do not differ significantly.
    • A posteriori: Divide respondents into quartiles based on total score; remove items where the lowest and highest quartiles do not differ significantly.
  • Unidimensionality test:
    • Examine inter-item correlations: uniformly high suggests unidimensionality.
    • If multiple dimensions are present, inter-item correlations are high within groups but low across groups. The battery can then be split into multiple unidimensional scales.

12.17 Reliability of sum scales

  • Reliability refers to the consistency of measurement: repeated measurements with the same instrument should yield similar results.
  • In scale construction, individual items are treated as quasi-repeated measures of the same concept.
  • Reliability increases with a larger number of items and higher inter-item correlations.

Cronbach's alpha (α\alpha)

  • An indicator of scale reliability, ranging from 0 to 1.
  • Formula: α=kk−1(1−∑σi2σtotal2)\alpha = \frac{k}{k-1} \left( 1 - \frac{\sum \sigma^2_i}{\sigma^2_{total}} \right), where kk is the number of items, ∑σi2\sum \sigma^2_i is the sum of item variances, and σtotal2\sigma^2_{total} is the total score variance.

🔑 Important:

  • α>0.70\alpha > 0.70: Acceptable scale
  • α>0.80\alpha > 0.80: Good scale
  • α>0.90\alpha > 0.90: Excellent scale
  • Nadeel: Cronbach's alpha assumes item equivalence.

📝 Example: In the European Social Survey, a sum scale (PTRUST) had α=0.874\alpha = 0.874, indicating good reliability. Removing items generally decreased reliability.

12.18 Principal Component Analysis (PCA)

PCA is a data reduction technique that constructs new variables (principal components) from a set of original items. It aims to capture as much information (variance) from the original items as possible.

12.19 PCA for data reduction

  • New variables (principal components) are calculated as weighted averages of standardized items.
  • Weights are chosen to maximize the average squared correlation (eigenvalue) between the new variable and the original items.

12.20 PCA for data representation

  • Examines how original items reflect different respondent characteristics (latent dimensions).
  • Each item may partially measure multiple characteristics.
  • PCA aims to replace original items with new, uncorrelated variables that measure a single characteristic more clearly.
  • Component loadings: Correlations between original items and new variables, indicating the extent to which items measure specific characteristics. Items within the same new variable should correlate highly.

🔑 Important: PCA seeks a new set of axes (principal components) that best represent the variance in the data, effectively summarizing the information in the original items.

12.21 Intuitive approach: Eigenvalues and eigenvectors

  • PCA can be understood geometrically: original items can be represented as axes in a multi-dimensional space.
  • The goal is to find a new set of orthogonal axes (principal components) that capture the maximum variance in the data.
  • The variance of projected points onto the first principal component axis represents its eigenvalue (λ\lambda).
  • If items are perfectly correlated, one component is sufficient. If not, a second component (PC2), orthogonal to the first, is sought to maximize remaining variance.
  • Initially, as many components as items are sought (the "initial solution"), but typically a limited number of components captures most of the variation.
  • The rotation of the original axis system to the new principal component system is described by eigenvectors, with no loss of information.

📝 Example: Two items measuring feelings of discrimination (X and Y) might be highly positively correlated. PCA can represent the differences in discrimination feelings with two principal components (PC1 capturing the primary dimension of discrimination, PC2 a secondary, orthogonal dimension).

12.22 PCA vs. Linear Regression

FeaturePrincipal Component Analysis (PCA)Linear Regression
ObjectiveData reduction; creating new variables that maximize variance.Modeling the relationship between dependent and independent variables.
Number of new variablesReplaces original variables with an equal number of new variables.Predicts one dependent variable using one or more independent variables.
Variance explainedMaximizes variance of new variables sequentially.Minimizes the sum of squared vertical distances to the regression line.
Correlation assumptionAims to create uncorrelated components.Assumes relationships between independent and dependent variables.

🔑 Important: PCA is a data reduction and representation technique, distinct from regression, which focuses on predictive relationships between variables.

📝 Example: Items "Religion provides comfort" and "Religion protects me from evil" from the 'Migration History & Social Mobility' surveys are potential candidates for PCA to form latent scales.

🔑 Important: At the core of advanced scale construction lies the ability to reduce complex survey data into meaningful, reliable, and valid latent variables that can be used in subsequent analyses.

13. Advanced regression techniques and scale construction (part 4)

13.1 Principal component analysis (PCA) principles

  • PCA: A data reduction technique aiming to efficiently represent the variance within a set of items using a limited number of components.
  • Components are linear combinations of standardized original items.
  • Components are uncorrelated (orthogonal) and sequentially extract maximum variance.

13.1.1 Eigenvalues and eigenvectors

  • The core of PCA involves analyzing the eigenvalue structure of the correlation matrix (RR).
  • The equation (R−λI)u=0(R - \lambda I)u = 0 is used to find eigenvalues (λ\lambda) and eigenvectors (uu).
  • Eigenvalues (λ\lambda): Represent the variance explained by each principal component.
    • The sum of eigenvalues equals the number of original items, signifying that components collectively contain the same information.
    • The proportion of an eigenvalue to the number of items indicates the variance extracted by that component.
      • λk\frac{\lambda}{k} represents the variance explained by a component.
  • Eigenvectors (uu): Provide the coefficients (loadings) for creating the principal components from standardized items.
    • Component 1: C1=u11⋅zItem1+u12⋅zItem2+…C_1 = u_{11} \cdot z_{\text{Item1}} + u_{12} \cdot z_{\text{Item2}} + \dots
    • Component 2: C2=u21⋅zItem1+u22⋅zItem2+…C_2 = u_{21} \cdot z_{\text{Item1}} + u_{22} \cdot z_{\text{Item2}} + \dots

13.1.2 Interpretation of PCA results

  • Component matrix: Displays component loadings, which are correlations between original items and the principal components.
    • These loadings indicate which items strongly associate with a component, helping to define its meaning.
    • Squared loadings represent the proportion of an item's variance explained by a component.
  • Communalities: The sum of squared loadings for an item across all retained components.
    • Initial communalities: Assume as many components as items, so all item variance is explained.
    • Extracted communalities: Reflect the proportion of item variance explained by the retained components.

The sum of squared loadings per column equals the component's eigenvalue.


13.2 Dimensionality reduction and component selection

  • The goal is to retain a limited number of components that capture the majority of information.
  • Key criteria for selecting the number of components:
CriterionDescription
Kaiser CriterionRetain components with eigenvalues greater than 1. Components with λ<1\lambda < 1 explain less variance than a single original standardized item.
Scree PlotVisualizes eigenvalues. Select components before the "elbow" or "knik" in the plot, where eigenvalues flatten out, indicating a drop in explained variance.
InterpretabilityRetain components that are conceptually meaningful and can be clearly interpreted in the context of the research question.
  • Example: If initial components have eigenvalues of 1.667, 0.334, the Kaiser criterion would retain only the first component. The scree plot would show a sharp drop after the first component.

13.3 Rotation of components

  • Rotation aims to achieve a "simple structure" in the component matrix, improving interpretability.
  • Simple Structure Criteria (Thurstone):
    • Each component has few high loadings.
    • High loadings for different components correspond to different items.
    • Each item has only one high loading.

13.3.1 Orthogonal rotation

  • Maintains the orthogonality (uncorrelated nature) of components.

  • Sacrifices some variance extraction for a simpler structure.

  • Common methods:

    • Varimax: Simplifies columns (components) by maximizing the variance of squared loadings within each component. Most common.
    • Quartimax: Simplifies rows (items).
    • Equamax/Biquartimax: Combines row and column simplification.
  • Impact of Rotation: Communalities remain unchanged. The distribution of explained variance (eigenvalues) between components shifts to improve interpretability.

13.3.2 Oblique rotation

  • Relaxes the orthogonality constraint, allowing components to be correlated.

  • Provides a more flexible solution, potentially revealing non-orthogonal relationships between latent constructs.

  • Output includes:

    • Pattern matrix: Contains standardized regression coefficients for items predicting components.
    • Structure matrix: Contains zero-order correlations between items and components.
    • Component correlation matrix: Shows the correlations between the rotated components.
  • Decision: If component correlations are negligible, orthogonal rotation is sufficient. If substantial, oblique rotation is preferred.

Orthogonal rotation keeps components independent; oblique rotation allows them to be related.


13.4 Principal Factor Analysis (PFA)

  • PFA: A technique primarily focused on explaining the correlations or covariances among items, rather than total variance.
  • Key Distinction from PCA:
    • PFA models the common variance (shared among items), excluding unique variance.
    • PCA models the total variance.
  • Factors: In PFA, the latent variables are called factors, representing common variance. In PCA, they are called components, representing total variance.
  • PFA uses a reduced correlation matrix with estimated communalities on the diagonal, whereas PCA uses a standard correlation matrix with 1s on the diagonal.
  • This focus on common variance makes PFA often more suitable for scale construction when the goal is to identify underlying latent constructs.

PFA focuses on the shared "essence" of items, while PCA accounts for all their variations.

🔑 Important: PCA and PFA share principles in initial solution calculation and rotation, but their fundamental goal (total variance vs. common variance) dictates their applicability in scale construction.

Zie ook