Testing Models Theoretically

Overview

  • Summary to Date
  • Review of linear regression model
  • Partialing out variance
  • Combining similar sources of variance
  • Observable & latent variables
  • Model fit

Summary to Date

Descriptives vs. Inferentials

  • Descriptives good
    • Simple & intuitive
      • Can efficiently describe the sample
    • Robust
      • Because they make no assumptions about the population
  • Mean & SD
    • SD as average distance from the mean
    • SD as a standard unit of measurement
      • Standardized (z) scores
        • Why correlation is so popular
        • And covariance isn’t

Descriptives vs. Inferentials (cont.)

Descriptives vs. Inferentials (end)

  • Robustness of Inferentials (cont.)
    • Assumptions not robust against:
      • Non-independence of participants
        • But may be addressed through model structure
      • Multi-modality (more than one “hump”)
        • Selection bias, even with a large sample
  • Precision and generalizability:

Central Limit Theorum

  • Imagine repeatedly sampling from the same population
    • Each sample gives a slightly different mean
    • The distribution of those means is the sampling distribution
  • (Under suitable conditions) as sample size increases:

\[SE(\bar{X})=\frac{\sigma}{\sqrt{n}}\]

  • The theorem does not say that every statistic or observation is normally distributed

Variance & Covariance

  • Variance = Information
  • Seek to understand that information
    • The more we understand, the better
    • Often quantify “how much we understand” as a signal-to-noise ratio
      • \(\text{Variance understood} = \frac{\text{Variance accounted for}}{\text{Variance }not \text{ accounted for}}\)
  • So, if “accounting” for the effect of one variable on an other:
    • \(\text{Variance understood} = \frac{\text{Covariance}}{\text{Unshared variance}}\)
    • Which is a correlation
      • (When it’s standardized)

Partialing Out Variance

  • Ways to increase the size of the signal to the size of the noise:
  • Increase size of signal
    • Bigger effects
    • Greater range of measurements of effects
  • Decrease size of noise
    • Greater precision of measurement
    • Remove the noise
  • Partial out the variance that is unshared between those variables
    • But is accounted for by some third variable

Ways of Communicating

  • Merging visuals with text
    • What is best described where
    • Visuals as “conversation pieces”
      • Text as highlighting what to focus on in visuals
      • Especially vis-à-vis theory
  • Efficiency & simplicity
    • “Information-to-ink ratio”
  • Strong organization
    • Clear guideposts & structure
  • Common—but not colloquial—language
    • Following writing conventions
    • Avoiding jargon and acronyms

Review of Linear Regression

Basic Strategy

  1. Specify how the predictors relate to the outcome
    • In ordinary linear regression, the expected outcome is linear in the coefficients
  2. Estimate the coefficients
    • Ordinary least squares or maximum likelihood under a specified error model
  3. Evaluate model fit and assumptions
    • For example, \(R^2\), residual plots, and influential observations
  4. Test appropriate hypotheses and interpret coefficients
    • Report effect sizes and confidence intervals, not just p-values

Partialing Out Variance

  • We distinguish associations represented by the predictor(s) from unexplained variation
    • The intercept is the predicted outcome when all predictors equal zero

\[Y = b_{\mkern3mu0} + b_{\mkern3mu1}X_{1} + e\]

  • Adding other predictors separates out—partials out—the variance associated with each:

\[Y = b_{\mkern3mu0} + b_{\mkern3mu1}X_{1} + b_{\mkern3mu2}X_{2} + e\]

Partialing Out Variance

  • Error can also be separated
    • E.g., if we know the sources of those errors (same hospital, neighborhood, etc.)

\[Y = b_{\mkern3mu0} + b_{\mkern3mu1}X_{1} + b_{\mkern3mu2}X_{2} + e_{\mkern3mu1} + e_{\mkern3mu2}\]

  • We can also separate out error and effects of predictors over time
    • Assume that events will be more similar to each other at one time point
    • And that values within a person will tend to be more similar than between people
  • Different ways to do this,

Combining Similar Sources of Variance

Common Sources of Variance

  • Similar predictors may share too much variance
    • If left un-addressed, can lead to “multicollinearity”
    • Which leads to unstable models terms
      • E.g., terms will flip from being significant to not & back depending on what other terms are added to the model
  • Usually addressed by removing one of the multicollinear terms
  • But we can also combine or group those variables…

Combining Sources of Variance (cont.)

  • We do this all the time, in fact
    • Adding up responses to items on the same survey
    • Taking the average of a results from a blood draw
  • But what if we know two variables are related, but not really easily combined?
    • E.g., distance to fresh-produce retailers and meals skipped because of insufficient money
      • A mean distance of 2 km,
      • Plus 3 days of skipped meals
      • Does not create a meaningful score of 5

Observable and Latent Variables

Observable and Latent Variables

  • Some Things We Can See…
    • Distance to fresh-produce retailers & skipped meals
    • Blood pressure & adipose tissue
    • Smiles and cortisol levels
  • Some Things We Can’t See…
    • “Food insecurity”
    • “Health”
    • “Stress”

Observable and Latent Variables (cont.)

  • Things we can observe empirically are sometimes called, well, observable
  • While underlying constructs that help explain them may be latent

Model Testing

Model Fit

  • We can enter theoretically related predictors as a block
    • Reduced model: baseline predictors
    • Full model: baseline predictors plus the new block
  • Compare explained variance using the same participants:

\[\Delta R^2=R^2_{\mathrm{full}}-R^2_{\mathrm{reduced}}\]

  • In ordinary nested linear regression:
    • \(\Delta R^2\) describes the added explained variance
    • A partial F-test can test whether the block improves fit
    • Improvement does not, by itself, establish causation

Model Selection Beyond R2

  • For models fitted with a comparable likelihood, we can use information criteria
    • In MLE, commonly use -2 log likelihood (-2LL or −2ℓ)
    • Likelihood indicates how well the model accounts for the observed outcomes.
    • The logarithm transforms likelihoods into a more mathematically convenient scale.
    • Multiplying by −2 produces a statistic useful for model comparisons.
  • Lower values are preferred among the models compared
  • Especially useful when candidate models are not nested

AIC versus BIC

  • Two common modifications to −2ℓ:
    • Akaike Information Criterion (AIC)
    • Bayesian Information Criterion (BIC)
  • Both penalize additional parameters
    • BIC generally penalizes complexity more strongly in larger samples
    • Neither provides a p-value or replaces diagnostics

\[ \mathrm{AIC} = -2\ln(\hat L) + 2k \]

\[ \mathrm{BIC} = -2\ln(\hat L) + k\ln(n) \]

AIC versus BIC (cont.)

  • Both criteria combine model fit with a penalty for complexity:
Component AIC BIC
Model misfit -2LL -2LL
Complexity penalty 2k k(ln(n))
Sample size in penalty No Yes
Preferred model Lower AIC Lower BIC
  • BIC penalizes additional parameters more strongly than AIC
    • And penalizes for larger samples

Model Testing

  • Remember, −2ℓ is a measure of misfit
    • So larger numbers indicate poorer fit
  • Thus want to see that the model with the “block” of interest has a smaller −2ℓ
    • I.e.:

\[\text{Improvement in Model Fit} =\]

\[(-2\ell)_{\mkern3mu\text{Model without Block}} \mkern3mu- (-2\ell)_{\mkern3mu\text{Model with Block}}\]

  • For nested models fitted by maximum likelihood to the same data,
    • Test the −2ℓ difference against a χ2 distribution
    • With degrees of freedom equal to the number of added parameters

Model Testing (cont.)

  • E.g.:

\(b_{\mkern3mu1}X_{1}\)

\(b_{\mkern3mu1}X_{1} + ( b_{\mkern3mu\mathrm{Distance}}\mkern3muX_{\mathrm{Distance}} + b_{\mkern3mu\mathrm{Skipped}}\mkern3muX_{\mathrm{Skipped}} )\)

  • The second model estimates 2 additional continuous parameters
    • 1 df to estimate effect of distance to fresh produce
    • 1 df to estimate number of skipped meals

Model Testing (cont.)

  • The full model estimates 2 additional parameters (cont.)
    • Assuming each added predictor requires one coefficient
      • Test degrees of freedom: \(\Delta df = 2\)
      • Likelihood-ratio statistic: χ\(^2_{\mathrm{LR}} = 2(\ell_{\mathrm{full}}-\ell_{\mathrm{reduced}})\)
  • If the −2ℓs are 2010 and 2000, respectively:
    • χ\(^2_{\mathrm{LR}} = (-2\ell)_{\mathrm{reduced}} \mkern3mu- (-2\ell)_{\mathrm{full}} = 2010 - 2000 = 10\)
    • Compare χ\(^2\) = 10 with a chi-square distribution with 2 df
    • Critical χ2 \(\approx\) 5.99 at α = .05; p ≈ .0067

Which Model Comparison Should We Use?

Question Method What to report
Did an OLS predictor block add explanatory value? Nested-model partial F-test \(\Delta R^2\), F, df, p
Did nested ML models differ in fit? Likelihood-ratio test χ\(^2_{\mathrm{LR}}\), df, p
Which candidate model balances fit and complexity? AIC or BIC Scores, differences, rationale

The End