StatBCS 7Regression 4 handout without solutions

Table of contents

  1. Statistics for Brain and Cognitive Sciences
  2. Multiple linear regression (MLR)
  3. Test of the regression coefficients
  4. Multicollinearity and Singularity
  5. ANOVA Table for MLR
  6. General Linear F-Test
  7. Advanced: alternative approaches to OLS
  8. Multivariate regression
  9. So, why Multivariate regression is less common?
  10. Path Analysis
  11. Confounder, mediator, moderator, and collider
  12. Fixed versus random effects
  13. Generalized Linear Model
  14. Hat Matrix formulation

1. Statistics for Brain and Cognitive Sciences

1.1 From simple linear regression to multiple linear regression and beyond

The field of statistics for brain and cognitive sciences progresses from foundational models like Simple Linear Regression (SLR) to more complex methodologies such as Multiple Linear Regression (MLR) and various advanced statistical models. This progression allows for increasingly nuanced analyses of complex data structures inherent in cognitive and brain research 1.

1.2 Further extending the SLR

Simple Linear Regression (SLR) serves as a fundamental building block for a wide array of advanced statistical models used in brain and cognitive sciences. These extensions allow researchers to address more intricate hypotheses and account for multiple variables and their interactions 3.

  • Hierarchical model structure: Many complex statistical models can be conceptualized as extensions of SLR, building upon its core principles to incorporate additional factors or relationships.
  • Advanced model types: Models such as ANOVA, ANCOVA, Multiple Regression, Multivariate Regression, MANOVA, MANCOVA, Mixed-effect models, Generalized Linear Models (GLM), Path Analysis, Factor Analysis, and Structural Equation Modeling (SEM) all represent further developments from the basic SLR framework 3.

This diagram illustrates how various statistical models, such as ANOVA, ANCOVA, and SEM, can be seen as extensions of simple linear regression.

📝 Models like ANOVA, ANCOVA, Multiple Regression, Multivariate Regression, MANOVA, MANCOVA, Mixed-effect models, Generalized Linear Models (GLM), Path Analysis, Factor Analysis, and Structural Equation Modeling (SEM) are all extensions of the basic SLR framework 3.

1.3 Multiple linear regression

Multiple Linear Regression (MLR) extends SLR by incorporating multiple independent variables to predict a single dependent variable. This allows for a more comprehensive understanding of the factors influencing an outcome in cognitive and brain science research 2 4.

1.4 Beyond MLR

Beyond MLR, statistical methodologies continue to expand to address even more complex research questions. These advanced techniques are crucial for modeling intricate relationships and structures often encountered in brain and cognitive data 3 4.

  • Advanced topics: The curriculum includes discussions on topics beyond MLR, such as the Hat Matrix formulation, which provides deeper insights into regression diagnostics and influence 3 4.

2. Multiple linear regression (MLR)

2.1 Introduction to MLR in cognitive neuroscience

Multiple Linear Regression (MLR) is a statistical method used to model the linear relationship between a dependent variable and two or more independent variables. In cognitive neuroscience, MLR is applied in contexts such as Statistical Parameter Mapping (SPM) for analyzing functional magnetic resonance imaging (fMRI) data 5.

The General Linear Model (GLM) framework, which encompasses MLR, is fundamental to fMRI analysis. This diagram illustrates the General Linear Model (GLM) used in fMRI analysis, showing the relationship between a response model, single voxel time series, and the resulting Statistical Parametric Maps (SPMs).

  • Design matrix: This matrix contains all experimental predictors and nuisance variables.
  • Experimental paradigm: Includes task/stimulus time courses and their temporal derivatives.
  • Nuisance regressors: Such as head motion parameters and physiological signals.
  • Session constants and drifts: Intercepts for baseline and polynomial drifts 5.
  • Temporal derivatives: Often introduced to account for temporal jitter in the hemodynamic response 6.

2.2 Mathematical formulation of MLR

The MLR model describes the dependent variable YY as a linear combination of pp predictor variables (X1,X2,…,XpX_1, X_2, \ldots, X_p), an intercept α\alpha, and an error term ϵ\epsilon 6. Y=α+β1X1+β2X2+…+βpXp+ϵY = \alpha + \beta_1X_1 + \beta_2X_2 + \ldots + \beta_pX_p + \epsilon In matrix notation, this equation is expressed more compactly, which is particularly useful for handling multiple predictors and observations8. y=Xβ+ey = X\beta + e

  • yy: A vector representing the dependent variable observations.
  • XX: The design matrix, where each column corresponds to a predictor variable (including a column of ones for the intercept) and each row is an observation.
  • β\beta: A vector of regression coefficients, including the intercept α\alpha and the partial regression coefficients βj\beta_j for each predictor.
  • ee: A vector of residual errors 7. Multiple linear regression equation represented in matrix form. This diagram illustrates the relationships between predictor variables (X1, X2,..., Xp), the outcome variable (Y), and an error term (ε) in a multiple linear regression model.

2.3 Geometric interpretation and coefficient interpretation

Geometrically, an MLR with two independent variables (IVs) represents a plane in R3\mathbb{R}^3, extending the concept of Simple Linear Regression (SLR) as a line in R2\mathbb{R}^2 7.

  • Conditional expected value: The expected value of YY given XX is E(Y∣X)=α+∑j=1pβjXjE(Y|X) = \alpha + \sum_{j=1}^p \beta_jX_j.
  • Intercept (α\alpha): Represents the conditional expected value of YY when all independent variables are zero, i.e., α=E(Y∣X=0)\alpha = E(Y|X=0).
  • Partial regression coefficient (βj\beta_j): Indicates the change in YY for a one-unit change in XjX_j, while all other predictors are held constant. βj=E(Y∣Xj=xj+1,Xj′≠j=xj′≠j)−E(Y∣Xj=xj,Xj′≠j=xj′≠j)\beta_j = E(Y|X_j = x_j + 1, X_{j' \neq j} = x_{j' \neq j}) - E(Y|X_j = x_j, X_{j' \neq j} = x_{j' \neq j}) The formula for a partial regression coefficient (beta_j) shows the change in the expected value of Y when X_j increases by one unit, holding other variables constant.

📝 If β1=−0.05\beta_1 = -0.05 in a study of Stroop Interference Score (Y) and Prefrontal Cortex Volume (X1), it means that for every 1 mm3^3 increase in Prefrontal Cortex Volume, the Stroop Interference Score decreases by 0.05 ms, assuming all other regressors are constant 9.

2.4 Ordinary Least Squares (OLS) solution

The Ordinary Least Squares (OLS) method aims to minimize the sum of squared residuals (SSRes=∑i=1nei2SS_{Res} = \sum_{i=1}^n e_i^2). This minimization is achieved by satisfying two conditions:

  • Zero-mean residuals: The sum of residuals must be zero (∑i=1nei=0\sum_{i=1}^n e_i = 0), ensuring the fitting hyperplane passes through the mean of the data points.
  • Null covariances: The covariance between each predictor XjX_j and the residuals ee must be zero (sXj,e=0s_{X_j,e} = 0). These conditions are summarized by the matrix equation XTe=0X^Te = 0 10. The OLS solution for the regression coefficients β^\hat{\beta} is given by the pseudo-inverse of the design matrix. β^=(XTX)−1XTy=X+y\hat{\beta} = (X^TX)^{-1}X^Ty = X^+y
  • (XTX)−1(X^TX)^{-1}: This term involves the inverse of the matrix product of the transpose of the design matrix and the design matrix itself, which contains means and covariances of the independent variables.
  • XTyX^Ty: This vector contains the mean of the dependent variable and its covariances with the independent variables 11. This diagram shows the OLS solution for multiple linear regression, expressed using the pseudo-inverse.

3. Test of the regression coefficients

3.1 Properties of OLS estimators

Ordinary Least Squares (OLS) estimators are characterized as Best Linear Unbiased Estimators (BLUE), meaning they are the most efficient among all linear unbiased estimators. This property ensures that, on average, the estimated coefficients accurately reflect the true population parameters 12.

Formulas for the expected value and variance of regression coefficients in OLS estimation.

  • Expected value: The expected value of the OLS estimator β^\hat{\beta} is equal to the true population parameter β\beta, denoted as E(β^)=βE(\hat{\beta}) = \beta.
  • Variance: The variance of the OLS estimator β^\hat{\beta} is given by Var(β^)=σ2(XTX)−1Var(\hat{\beta}) = \sigma^2(X^TX)^{-1}, where σ2\sigma^2 is the error variance and XX is the matrix of predictors.
  • Standard error: The variance of an individual regression coefficient β^j\hat{\beta}_j is the square of its standard error, Var(β^j)=SE(β^j)2Var(\hat{\beta}_j) = SE(\hat{\beta}_j)^2.
  • This variance can also be expressed as σ2nsxj2(1−Rj2)\frac{\sigma^2}{ns^2_{x_j}(1 - R^2_j)}, where sxj2s^2_{x_j} is the sample variance of predictor XjX_j, and Rj2R^2_j is the R-squared from regressing XjX_j on the other predictors XX.
  • Practical application: Since the true error variance σ2\sigma^2 is typically unknown, the Mean Squared Error (MSE), also known as MSRes, is used as an estimate.
  • Hypothesis testing: With the estimated variance, individual regression coefficients β^j\hat{\beta}_j can be tested using a t-test, similar to Simple Linear Regression (SLR) 12.

3.2 Exercise 1: Expected value and variance of OLS estimators

This exercise requires demonstrating the derivation of the expected value and variance formulas for OLS estimators, as presented in the theoretical framework 12.

4. Multicollinearity and Singularity

4.1 Multiple Linear Regression Coefficient Derivation

The estimation of coefficients in multiple linear regression (MLR) becomes complex as the number of independent variables (pp) increases. For p=2p=2 independent variables, the estimated coefficients (β^\hat{\beta}) can be expressed in matrix form or an expanded form involving partial correlations 13.

This diagram shows the matrix form of the multiple linear regression equation and its expanded form.

  • Partial correlations: These "clean" the relationship between the dependent variable (DV) and one independent variable (IV) by accounting for the contribution of other variables.
  • Coefficient calculation: The partial regression coefficients are proportional to the partial correlations 13.
  • Problematic estimates: If the correlation between two independent variables (rx1x2r_{x_1x_2}) approaches 1, the denominator term 1−rx1x221-r^2_{x_1x_2} approaches 0, causing the estimates of the coefficients (β1^\hat{\beta_1}, β2^\hat{\beta_2}) to inflate towards infinity 14.

4.2 Multicollinearity and Singularity Defined 16

Multicollinearity refers to an excessive correlation between independent variables, specifically when rx1x2≈1r_{x_1x_2} \approx 1. Singularity, or perfect multicollinearity, occurs when rx1x2=1r_{x_1x_2} = 1 15.

  • Problematic nature: When independent variables are highly correlated, they become redundant, and one can be expressed as a function of the others.
  • OLS solution: If one or more IVs are linear combinations of others, the determinant of the (XTX)(X^TX) matrix is 0, making it non-invertible and preventing an Ordinary Least Squares (OLS) solution.
  • Inflated terms: Even if the determinant is not zero but very small, the inverse matrix (XTX)−1(X^TX)^{-1} can have inflated terms, leading to significant issues 16.
IssueConsequence
Inflated SEs of estimatesReduced precision of coefficient estimates
Deflated t-testsIncreased difficulty in detecting significant predictors
False non-significance of p-valuesType II errors (failing to reject a false null hypothesis)
Lack of powerReduced ability to detect true effects
Degrading model predictionsPoor generalization to new data

4.3 Detecting Multicollinearity

Detecting multicollinearity is crucial for ensuring the reliability of regression models. Several methods can be employed to identify its presence 17.

  • Detection methods:
  • Scatterplots: Visual inspection of relationships between independent variables.
  • Singularity of XTXX^TX matrix: Checking if the determinant of the XTXX^TX matrix is zero.
  • Eigenvalue methods: Advanced statistical techniques (not covered in detail).
  • Variance Inflation Factor (VIF): A quantitative measure of multicollinearity for each predictor 17.

The variance of the estimated coefficients, Var(βj^)Var(\hat{\beta_j}), is influenced by several factors: Var(βj^)=SE(βj^)2=σ2nsxj2(1−Rj2)Var(\hat{\beta_j}) = SE(\hat{\beta_j})^2 = \frac{\sigma^2}{ns^2_{x_j}(1-R^2_j)}

  • Noise (σ2\sigma^2): A greater error variance leads to a worse standard error (SE) 17.
  • Sample size (nn) and predictor variance (sxj2s^2_{x_j}): Larger values for nn and sxj2s^2_{x_j} result in a better SE.
  • Rj2R^2_j: A smaller Rj2R^2_j (the RR-squared from regressing XjX_j on other predictors) indicates a better SE, as it means the predictor is less explained by other predictors 18.

Two scatter plots illustrating the effect of error variance on the spread of data points around a regression line.

📝 If the error variance is large, the data points will be widely scattered around the regression line, leading to a larger standard error for the coefficient estimates. Conversely, a small error variance results in data points tightly clustered around the line, yielding a smaller standard error 17.

4.4 Variance Inflation Factor (VIF)

The Variance Inflation Factor (VIF) quantifies the severity of multicollinearity for each independent variable. It is calculated as VIFj=11−Rj2VIF_j = \frac{1}{1-R^2_j}, where Rj2R^2_j is the RR-squared value obtained from regressing the jj-th predictor (XjX_j) on all other predictors 19.

  • Interpretation of VIF values:

  • VIFj=1VIF_j = 1: Indicates no collinearity for predictor XjX_j.

  • 1<VIFj<51 < VIF_j < 5: Suggests moderate collinearity.

  • VIFj≥5VIF_j \ge 5: Points to strong collinearity.

  • VIFj≥10VIF_j \ge 10: Signifies a serious multicollinearity problem 19.

  • Addressing multicollinearity:

  • Predictor removal: Consider removing the predictor that causes the multicollinearity.

  • Outlier detection: Check for outliers or influential data points that might be contributing to the issue.

  • Variable transformation: Try centering variables or removing the intercept by standardizing variables 19.

📝 If a VIF calculation for a predictor XjX_j yields a value of 7, it indicates strong collinearity, suggesting that XjX_j is highly correlated with other predictors in the model. This would prompt investigation into potential solutions such as removing XjX_j or examining outliers 19.

5. ANOVA Table for MLR

The Analysis of Variance (ANOVA) table for Multiple Linear Regression (MLR) systematically partitions the total variability in the dependent variable into components attributable to the regression model and residual error. This framework is crucial for assessing the overall statistical significance of the regression model 20.

5.1 Components of the ANOVA table

The ANOVA table for MLR includes several key components that quantify the sources of variation, their associated degrees of freedom, sums of squares, mean squares, and the F-statistic. The number of predictors, pp, can sometimes be defined as p−1p-1 such that it becomes pp with the intercept, which would alter the table's structure 20.

Source of variationdfSSMSF
RegressionppSSReg=∑i=1n(y^i−yˉ)2SS_{Reg} = \sum_{i=1}^n (\hat{y}_i - \bar{y})^2MSReg=SSRegpMS_{Reg} = \frac{SS_{Reg}}{p}F=MSRegMSResF = \frac{MS_{Reg}}{MS_{Res}}
Residual errorn−p−1n - p - 1SSRes=∑i=1n(yi−y^i)2SS_{Res} = \sum_{i=1}^n (y_i - \hat{y}_i)^2MSRes=SSResn−p−1MS_{Res} = \frac{SS_{Res}}{n-p-1}—
Totaln−1n - 1SSTot=∑i=1n(yi−yˉ)2SS_{Tot} = \sum_{i=1}^n (y_i - \bar{y})^2——
  • Degrees of freedom (df): These represent the number of independent pieces of information used to calculate the sum of squares.
  • Sum of Squares (SS): These measure the total variability from different sources.
  • Mean Squares (MS): These are calculated by dividing the sum of squares by their respective degrees of freedom, representing the average variability.
  • F-statistic: This is the ratio of the mean square regression to the mean square residual, used to test the overall significance of the model 20.

5.2 Conditions and interpretation

For valid estimation and testing in MLR, the sample size nn must be greater than the number of predictors plus one (n>p+1n > p + 1). The overall F-test evaluates whether at least one of the regression parameters is significantly different from zero, indicating that the model as a whole explains a significant portion of the variance in the dependent variable 20.

📝 If an MLR model has 3 predictors (p=3p=3) and a sample size of 20 (n=20n=20), the degrees of freedom for residual error would be 20−3−1=1620 - 3 - 1 = 16. The condition n>p+1n > p+1 (20>3+120 > 3+1) is met, allowing for valid inference.

5.3 Coefficient of multiple determination (R2R^2)

The coefficient of multiple determination (R2R^2) quantifies the proportion of the variation in the dependent variable (DV) that is explained by the multiple linear regression model. It serves as a measure of the model's explanatory power 20.

  • Partial R2R^2: This can be utilized to determine the proportion of variation explained by a specific subset of predictors within the model.
  • Coefficient of multiple correlation (RR): This is the square root of R2R^2, calculated as ryy^r_{y\hat{y}}, representing the correlation between the observed and predicted values of the dependent variable 20.

6. General Linear F-Test

6.1 Overview of the General Linear F-Test

The General Linear F-test is a robust statistical method employed to evaluate the significance of regression coefficients, particularly for subsets of predictors within a model. It determines if at least one partial regression coefficient in a given subset is significantly different from zero 22.

6.2 Procedure for the General Linear F-Test

The General Linear F-test involves comparing a full (unrestricted) model with a reduced (restricted) model to assess the contribution of specific predictors 21.

  • Model estimation:
  • Calculate Ordinary Least Squares (OLS) estimates and the Sum of Squared Residuals (SSResSSRes) for a full model, denoted as SSRes,FSSRes,F.
  • Calculate OLS estimates and SSResSSRes for a reduced model, denoted as SSRes,RSSRes,R.
  • Sequential sum of squares: Define the sequential (extra) sum of squares as the difference between the reduced and full model's SSResSSRes: SSRes,R−SSRes,FSSRes,R - SSRes,F. This value represents the reduction in SSResSSRes (or increase in SSRegSSReg) when moving from the reduced to the full model.
  • F-statistic calculation: Use the F-statistic to test the hypothesis that any parameters present in the full model but absent in the reduced model are null. F=SSRes,R−SSRes,FdfR−dfFSSRes,FdfFF = \frac{\frac{SSRes,R - SSRes,F}{df_R - df_F}}{\frac{SSRes,F}{df_F}} where dfRdf_R and dfFdf_F are the degrees of freedom for the reduced and full models, respectively 21.

📝 Consider a scenario where a full model includes predictors A and B, while a reduced model includes only predictor A. The General Linear F-test would assess if the addition of predictor B significantly improves the model's explanatory power by comparing SSResSSRes from both models.

6.3 Sequential (Extra) Sum of Squares and Partial R-squared

The sequential (extra) sum of squares quantifies the change in SSResSSRes when a group of predictors is added to a model 22.

  • Sequential sum of squares: This value, SSRes,R−SSRes,FSSRes,R - SSRes,F, captures the change due to adding a group of predictors B to an existing group of predictors A in the reduced model. It can also be expressed as SSRes,A−SSRes,A∪BSSRes,A - SSRes,A \cup B.
  • Partial R-squared: This metric indicates the percentage of variation explained by the additional predictors B, given that predictors A are already in the model. Ry,B∣A2=SSRes,A−SSRes,A∪BSSRes,A=SSRes,B∣ASSRes,AR^2_{y,B|A} = \frac{SSRes,A - SSRes,A \cup B}{SSRes,A} = \frac{SSRes,B|A}{SSRes,A} This formula highlights the incremental explanatory power of the added predictors 22.
Model TypeDescription
Full (unrestricted) modelIncludes all predictors under consideration, yielding SSRes,FSSRes,F and dfFdf_F.
Reduced (restricted) modelA smaller model, typically nested within the full model, yielding SSRes,RSSRes,R and dfRdf_R 21.

7. Advanced: alternative approaches to OLS

7.1 Weighted Least Squares (WLS) and Generalized Least Squares (GLS)

Weighted Least Squares (WLS) and Generalized Least Squares (GLS) are advanced regression techniques that address issues with the error variance-covariance matrix, unlike Ordinary Least Squares (OLS) which assumes homoscedasticity and uncorrelated errors. All three methods share the general linear model y=Xβ+ey = X\beta + e, but differ in their assumptions regarding the structure of the error variance-covariance matrix, Θ\Theta 23.

MethodError Variance-Covariance Matrix (Θ\Theta)Assumptions
OLSΘOLS\Theta_{OLS} (diagonal with equal variances)Homoscedasticity, uncorrelated errors
WLSΘWLS\Theta_{WLS} (diagonal with unequal variances)Heteroscedasticity, uncorrelated errors
GLSΘGLS\Theta_{GLS} (general matrix)Heteroscedasticity, correlated errors

Diagrams of variance-covariance matrices for OLS, WLS, and GLS methods.

The estimated coefficient vector β^\hat{\beta} for these linear least squares approaches is given by the formula β^=(XTWX)−1XTWy\hat{\beta} = (X^TWX)^{-1}X^TWy, where W=Θ−1W = \Theta^{-1} is the inverse of the error variance-covariance matrix 23.

  • OLS simplification: For OLS, W=1σ2IW = \frac{1}{\sigma^2}I, which simplifies the general solution to the familiar OLS estimator 23.

8. Multivariate regression

8.1 Limitations of multiple linear regression

Multiple Linear Regression (MLR) is a powerful analytical tool, yet it possesses several limitations that necessitate more advanced statistical models for complex research designs 25.

  • Single dependent variable: MLR is restricted to analyzing only one dependent variable (DV) at a time, which is insufficient when multiple correlated DVs are present.
  • Direct effects only: It models direct relationships between independent variables (IVs) and a single DV, failing to account for direct effects among multiple IVs and DVs simultaneously.
  • Fixed effects: MLR primarily handles fixed effects for predictors, treating only the error term as random.
  • Continuous dependent variables: The DV in MLR must always be continuous.
  • Observed variables: Both IVs and DVs are assumed to be observed, with only the error term being latent.
Limitation of MLRAdvanced Model
Only one DVMultivariate Regression
Models only direct effectsPath Analysis
Only fixed effects for predictorsMixed-Effects Models
DV always continuousGeneralized Linear Models
IVs and DVs are observedLatent Variable Models

8.2 Introduction to multivariate regression

Multivariate regression extends the linear regression framework to scenarios involving multiple dependent variables (DVs) that are often correlated, allowing for a more comprehensive analysis than running separate multiple linear regressions. This approach is particularly useful when researchers are interested in the combined effects of independent variables on a set of related outcomes 26.

📝 A research team studying the relationship between several independent variables (e.g., Pre-Frontal Cortex volume, Dopamine Receptor density, Age, Sex) and a Stroop interference Score (Y1) might also want to analyze two other correlated dependent variables: Task-Switching Cost (Y2) and Working Memory Capacity (Y3). Instead of running three separate MLRs, which would ignore the correlations among Y1, Y2, and Y3, multivariate regression can analyze all three DVs simultaneously 26.

8.3 Formulation of multivariate regression

Multivariate regression is a generalized case involving pp independent variables and dd dependent variables, where each dependent variable is modeled as a linear combination of the independent variables plus an error term. This can be expressed as a system of equations: Y1=α1+β11X1+β12X2+⋯+β1pXp+ϵ1Y2=α2+β21X1+β22X2+⋯+β2pXp+ϵ2…Yd=αd+βd1X1+βd2X2+⋯+βdpXp+ϵdY_1 = \alpha_1 + \beta_{11}X_1 + \beta_{12}X_2 + \dots + \beta_{1p}X_p + \epsilon_1 \\ Y_2 = \alpha_2 + \beta_{21}X_1 + \beta_{22}X_2 + \dots + \beta_{2p}X_p + \epsilon_2 \\ \dots \\ Y_d = \alpha_d + \beta_{d1}X_1 + \beta_{d2}X_2 + \dots + \beta_{dp}X_p + \epsilon_d This system can be compactly represented in matrix notation as Y=XB+EY = XB + E, where YY is the matrix of dependent variable observations, XX is the design matrix of independent variables, BB is the matrix of regression coefficients, and EE is the matrix of error terms 27.

This diagram illustrates the relationships between independent variables (X), dependent variables (Y), and error terms (epsilon) in a multivariate regression model.

8.4 Least squares estimator

The least squares estimator in multivariate regression aims to minimize the residuals, which are collected in a matrix EE. The objective is to minimize the sum of squares and cross-products of these residuals, typically by minimizing the determinant of the ETEE^T E matrix.

The ETEE^T E matrix contains the sums of squared residuals for each dependent variable on its diagonal and the sums of cross-products of residuals between different dependent variables off its diagonal 28.

ETE=(∑i=1nei12∑i=1nei1ei2…∑i=1nei1eid∑i=1nei1ei2∑i=1nei22…∑i=1nei2eid⋮⋮⋱⋮∑i=1nei1eid∑i=1nei2eid…∑i=1neid2)=(SSRes,1SSRes,12…SSRes,1dSSRes,12SSRes,2…SSRes,2d⋮⋮⋱⋮SSRes,1dSSRes,2d…SSRes,d)E^T E = \begin{pmatrix} \sum_{i=1}^n e_{i1}^2 & \sum_{i=1}^n e_{i1}e_{i2} & \dots & \sum_{i=1}^n e_{i1}e_{id} \\ \sum_{i=1}^n e_{i1}e_{i2} & \sum_{i=1}^n e_{i2}^2 & \dots & \sum_{i=1}^n e_{i2}e_{id} \\ \vdots & \vdots & \ddots & \vdots \\ \sum_{i=1}^n e_{i1}e_{id} & \sum_{i=1}^n e_{i2}e_{id} & \dots & \sum_{i=1}^n e_{id}^2 \end{pmatrix} = \begin{pmatrix} SSRes,1 & SSRes,12 & \dots & SSRes,1d \\ SSRes,12 & SSRes,2 & \dots & SSRes,2d \\ \vdots & \vdots & \ddots & \vdots \\ SSRes,1d & SSRes,2d & \dots & SSRes,d \end{pmatrix} The ratio ETEn−p−1\frac{E^T E}{n-p-1} provides an estimate of the variance-covariance matrix Θ\Theta of the errors, analogous to how MSResMSRes estimates σ2\sigma^2 in simple and multiple linear regression 28.

This diagram shows the matrix representation of residuals in multivariate regression, illustrating the calculation of sums of squares and cross-products.

The least squares solution for the matrix of regression coefficients, B^\hat{B}, is given by: B^=(XTX)−1XTY\hat{B} = (X^T X)^{-1}X^T Y This solution effectively stacks multiple individual multiple regressions together, where B^\hat{B} is a matrix containing the estimated regression coefficients for each dependent variable 29.

Formula for the least squares solution in multivariate regression.

8.5 Relationship to MANOVA and MANCOVA

Multivariate regression serves as a foundational framework that encompasses other multivariate analyses depending on the nature of the predictors 29.

  • Multivariate ANOVA (MANOVA): This occurs when all independent variables in the multivariate regression model are categorical. MANOVA assesses whether there are statistically significant differences between two or more groups on multiple dependent variables simultaneously.
  • Multivariate ANCOVA (MANCOVA): This arises when the model includes both categorical and continuous independent variables. MANCOVA extends MANOVA by controlling for the effects of continuous covariates on the dependent variables.

Multivariate approaches, by accounting for correlated errors, can also be utilized for analyzing repeated measures data, offering an alternative to traditional "univariate" methods like within-subjects ANOVA or mixed-design ANOVA, although univariate approaches remain more common in practice 29.

9. So, why Multivariate regression is less common?

9.1 Univariate approaches are simpler

Multivariate regression is less frequently employed than univariate methods primarily due to the comparative ease of implementing and interpreting univariate approaches 30.

9.2 Complexity of test statistics

While multiple linear regression (MLR) typically relies on t-tests or F-tests, multivariate analyses involve several distinct test statistics. These statistics, though generally in agreement, can yield differing results in specific situations, lacking conventional solutions for discrepancies 30.

Multivariate Test StatisticDescription
Wilk’s LambdaLikelihood ratio test for the equality of mean vectors.
Pillai’s TraceSum of the eigenvalues of a specific matrix, robust to violations of assumptions.
Hotelling-Lawley TraceSum of the eigenvalues of another matrix, often used in conjunction with Wilk's Lambda.
Roy’s greatest rootLargest eigenvalue, sensitive to differences along a single dimension.

Sampling distributions: Understanding the sampling distributions of parameters and testing procedures in multivariate analysis necessitates knowledge of multivariate distributions and eigenvalue techniques, which adds to the complexity 30.

9.3 The curse of dimensionality

Multivariate models require the estimation of numerous parameters, leading to data sparsity in higher-dimensional spaces, a phenomenon known as the "curse of dimensionality" 31.

📝 In fMRI studies, a mass-univariate approach (one General Linear Model per voxel) is typically used instead of a multivariate regression encompassing all voxels. This is because the variance-covariance matrix of residuals, which has a size of d×dd \times d (where dd is the number of voxels), becomes singular and cannot be inverted without regularization when d>n−p−1d > n - p - 1 (where nn is time points/subjects and pp is predictors). This singularity arises because a scan often has thousands of voxels but relatively few time points or subjects 31.

Alternative approaches: In situations where multivariate regression is problematic due to dimensionality, it is more common to reverse the problem and predict experimental labels from voxel patterns using methods like Multivoxel Pattern Analysis (MVPA) 31.

10. Path Analysis

10.1 Introduction to path analysis

Path analysis is a statistical technique used to model direct and indirect causal relationships among multiple observed variables, extending beyond simple multiple linear regression when variables directly affect each other in complex ways. This method is distinct from structural equation models, which incorporate latent variables 32 33.

Variable TypeDescription
Exogenous variablesIndependent or external variables that are not caused by other variables in the model.
Endogenous variablesDependent variables within the model that can also act as independent variables for other endogenous variables.

📝 Consider a scenario where cortisol (X1) affects response time variability (Y2). In patients with chronic stress, cortisol also influences hippocampal volume (Y1), which in turn affects response time variability. This forms a system of regressions where Y1 and Y2 are endogenous variables, and X1 is an exogenous variable 32.

This diagram illustrates a path analysis model showing the relationships between variables X1, Y1, and Y2, along with their error terms.

10.2 Direct, indirect, and total effects

In path analysis, particularly in mediation scenarios, the effect of an exogenous variable on an endogenous variable can be decomposed into direct and indirect paths 33.

  • Direct path: This represents the direct effect of one variable on another, not mediated by any other variable in the model.
  • Indirect path: This occurs when the effect of one variable on another is transmitted through an intermediate variable.
  • Total effect: This is the sum of all direct and indirect effects of one variable on another.

For a system defined by the equations: Y1=α1+γ11X1+ϵ1Y_1 = \alpha_1 + \gamma_{11}X_1 + \epsilon_1 Y2=α2+β21Y1+γ21X1+ϵ2Y_2 = \alpha_2 + \beta_{21}Y_1 + \gamma_{21}X_1 + \epsilon_2

Effect TypeFormula
Direct effect of X1→Y2X_1 \to Y_2γ21\gamma_{21}
Indirect effect of X1→Y1→Y2X_1 \to Y_1 \to Y_2β21γ11\beta_{21}\gamma_{11}
Total effect of X1X_1 on Y2Y_2γ21+β21γ11\gamma_{21} + \beta_{21}\gamma_{11}

📝 In the mediation model where X1 affects Y1, and both X1 and Y1 affect Y2, the direct effect of X1 on Y2 is γ21\gamma_{21}. The indirect effect of X1 on Y2 through Y1 is β21γ11\beta_{21}\gamma_{11}. The total effect of X1 on Y2 is the sum of these, γ21+β21γ11\gamma_{21} + \beta_{21}\gamma_{11}, which can be derived by substituting the equation for Y1 into the equation for Y2 33.

This diagram illustrates a path analysis model showing the relationships between variables X1, Y1, and Y2, including direct and indirect effects.

11. Confounder, mediator, moderator, and collider

Understanding the roles of confounders, mediators, moderators, and colliders is critical for accurate causal inference and the interpretation of regression models. Each variable type interacts with the relationship between an independent variable (X) and a dependent variable (Y) in distinct ways, necessitating different analytical approaches 34.

11.1 Variable roles in causal relationships

The relationship between an independent variable (X) and a dependent variable (Y) can be influenced by other variables (Z) in four primary ways, each requiring specific consideration in study design and analysis.

Variable TypeRelationship to X and YAnalytical Implication
ConfounderAffects both X and Y, creating a spurious association between them.Must be controlled for to avoid a fake path X → Y.
MediatorIs caused by X and, in turn, causes Y, explaining part of the direct path X → Y.Creates an indirect path X → Z → Y, adding explanatory power.
ModeratorChanges the strength or direction of the relationship between X and Y.Influences the path X → Y, indicating conditional effects.
ColliderIs caused by both X and Y.Must not be controlled for, as it can induce spurious associations.

📝 Consider the relationship where Traumatic Brain Injury (TBI) severity (X) worsens Executive Functions (Y).

  • Confounder: Age (Z) can affect both TBI severity and Executive Functions. If not controlled, age might create a false association between TBI severity and Executive Functions.
  • Mediator: Attention Deficit (Z) caused by TBI severity (X) might then impact Executive Functions (Y). This suggests an indirect pathway where TBI severity leads to attention deficit, which then impairs executive functions.
  • Moderator: Premorbid IQ or cognitive reserve (Z) could modify the impact of TBI severity (X) on Executive Functions (Y). A higher cognitive reserve might compensate for TBI damage, altering the strength of the X → Y path.
  • Collider: If a study only includes patients hospitalized for both TBI and severe executive dysfunction, hospitalization (Z) acts as a collider. Hospitalization is caused by both severe TBI and severe executive dysfunction. Controlling for hospitalization in such a sample could create a spurious association between TBI severity and executive functions that does not exist in the general population 34.

Diagram illustrating a moderator variable Z that influences the relationship between X and Y.

12. Fixed versus random effects

12.1 Introduction to fixed versus random effects

In statistical modeling, particularly with longitudinal or hierarchical data, it is crucial to distinguish between fixed and random effects. While coefficients in a standard regression model are typically treated as fixed effects, assuming they are specific, non-varying numbers, real-world data often exhibit variability at multiple levels 37.

  • Fixed effects: These coefficients are considered specific, constant numbers, often associated with a particular individual or condition.
  • Random effects: These coefficients are viewed as realizations of a random variable, meaning they are possible draws from a larger population distribution.
  • Variance levels: In many contexts, such as fMRI studies, variance exists both between subjects (group level, σB2\sigma^2_B) and within subjects (individual level, σW2\sigma^2_W), with between-subject variance often being significantly larger (σB2≫σW2\sigma^2_B \gg \sigma^2_W).
  • Mixed-effect modeling: To accurately estimate both types of variance, mixed-effect models are introduced, combining both fixed and random effects 37.

📝 In an fMRI experiment, estimating the effect of a task (β1\beta_1) for each subject and then calculating the mean β1\beta_1 and its variance across participants treats β1\beta_1 as a fixed effect for each individual. However, this approach overlooks the inherent variability between subjects and within each subject over time, which random effects modeling can address 35 37. This diagram illustrates the concept of temporal jitter in fMRI data, showing a "Main task" and its "Temporal derivative" with a "Constant" reference.

12.2 Mixed-effects models with random intercept and slope

When analyzing longitudinal data, such as cognitive recovery (Y) of patients (Z) over months (X) post-surgery, a moderation model might initially be considered. This model, Y=α+β1X+β2Z+β3XZ+ϵY = \alpha + \beta_1X + \beta_2Z + \beta_3XZ + \epsilon, can be rewritten as Y=(α+β2Z)+(β1+β3Z)X+ϵY = (\alpha + \beta_2Z) + (\beta_1 + \beta_3Z)X + \epsilon, where Z provides a fixed change to the coefficients for each person.

However, if the population of persons is considered potentially infinite rather than a categorical Z, a mixed-effects model becomes more appropriate 38.

  • Model formulation: A mixed-effects model with random intercept and slope can be expressed as: Y=α′+β′X+ϵY = \alpha' + \beta'X + \epsilon α′=α+u0\alpha' = \alpha + u_0 β′=β+u1\beta' = \beta + u_1 where u0u_0 and u1u_1 are normally distributed random variables, uj∼N(0,σuj2)u_j \sim N(0, \sigma^2_{u_j}).
  • Coefficient distributions: In this model, both the intercept (α′\alpha') and slope (β′\beta') have distributions: α′∼N(α,σu02)\alpha' \sim N(\alpha, \sigma^2_{u_0}) and β′∼N(β1,σu12)\beta' \sim N(\beta_1, \sigma^2_{u_1}).
  • Parameters to estimate: The parameters to be estimated include the fixed effects (α\alpha, β\beta) and the variances of the random effects (σu0\sigma_{u_0}, σu1\sigma_{u_1}) and the residual error (σ\sigma) 39.
  • Regression lines: This approach allows for potentially infinite regression lines, each with its own intercept and slope, reflecting individual variability 40. This figure illustrates four different scenarios of fixed and random effects in regression analysis, showing the relationship between alpha and beta with various data points and regression lines.

12.3 Comparison of statistical approaches for longitudinal data

Different statistical approaches can be used for analyzing longitudinal data, each with distinct characteristics regarding equations, degrees of freedom, and variance components 41.

  • Approach: Equation, dfX, dfZ, dfXZ, dfRes, Variances
  • ANOVA Within: Y=α+β1X+β2Z+ϵY = \alpha + \beta_1X + \beta_2Z + \epsilon, T−1T-1, n−1n-1, 0, (T−1)(n−1)(T-1)(n-1), σ\sigma
  • Moderation (X categ.): Y=α+β1X+β2Z+β3XZ+ϵY = \alpha + \beta_1X + \beta_2Z + \beta_3XZ + \epsilon, T−1T-1, n−1n-1, (T−1)(n−1)(T-1)(n-1), 0, σ\sigma
  • Moderation (X cont.): Y=α+β1X+β2Z+β3XZ+ϵY = \alpha + \beta_1X + \beta_2Z + \beta_3XZ + \epsilon, 1, n−1n-1, n−1n-1, (T−2)n(T-2)n, σ\sigma
  • Mixed-Effect model: Y=α+u0+(β1+u1)X+ϵY = \alpha + u_0 + (\beta_1 + u_1)X + \epsilon, 1, 0, 0, Debated, σ,σu0,σu1\sigma, \sigma_{u_0}, \sigma_{u_1}
  • ANOVA Within: This model does not allow for testing interactions due to too many fixed effects saturating the model.
  • Moderation models: Using a continuous predictor in a moderation model improves upon the limitations of ANOVA Within.
  • Mixed-effect models: These models significantly reduce the number of parameters to be estimated, although the determination of degrees of freedom for testing remains a subject of debate 41.

12.4 Intraclass correlation coefficient (ICC)

The Intraclass Correlation Coefficient (ICC), denoted as ρ0\rho_0, quantifies the proportion of total variability in an outcome that is attributable to differences between groups 42.

  • Formula: The ICC is defined as: ρ0=σu02σu02+σ2\rho_0 = \frac{\sigma^2_{u_0}}{\sigma^2_{u_0} + \sigma^2} where σu02\sigma^2_{u_0} represents the variance at the group level (between-group variance) and σ2\sigma^2 is the variance at the individual level (within-group variance).
  • Intercept-only ICC: The ρ0\rho_0 calculated this way is an intercept-only or unconditional ICC, as it only provides the ICC at X=0X=0 in the presence of a random slope.
  • Conditional ICC: A conditional ICC, which is a more complex function of X, is less commonly used.
  • Multilevel models: These are a subset of mixed-effect models, characterized by hierarchical structures, though not all mixed-effect models require nested designs 42. The formula for the Intraclass Correlation Coefficient (ICC) is presented, showing the ratio of variance at the group level to the total variance.

12.5 Diagram representations

Random effect models can be represented diagrammatically in several ways, typically illustrating hierarchical structures and latent variables 43.

  • Latent variable approach: One approach treats random effects as latent variables at the same level, where, for instance, u1u_1 acts as a moderator and u0u_0 as an error term.
  • Hierarchical structure approach: Another approach follows a hierarchical structure, including latent variables for the random coefficients at a higher level, explicitly showing the within- and between-subject components 43. Two different diagrammatic representations of random effect models are presented, illustrating hierarchical structures and latent variables.

12.6 Final remarks

Multilevel/mixed-effects models are known by various names, including random-coefficients regression models, hierarchical linear models, and nested data models 44.

  • Random effects distribution: The random effects are typically assumed to follow a multivariate normal distribution with a mean of zero and a specific variance-covariance matrix: (σu02σu0u1σu0u1σu12)\begin{pmatrix} \sigma^2_{u_0} & \sigma_{u_0u_1} \\ \sigma_{u_0u_1} & \sigma^2_{u_1} \end{pmatrix}.
  • Multilevel context: In multilevel models, individuals at the micro-level are grouped, but variables can operate at both micro- and macro-levels.
  • Pooling strategies: Multilevel models represent a compromise (semi-pooling) between running a separate regression for each group (no pooling, e.g., ANCOVA) and conducting a single regression analysis for all data (complete pooling) 44.

13. Generalized Linear Model

13.1 Introduction to Generalized Linear Models

Generalized Linear Models (GLMs) extend the linear regression framework to accommodate dependent variables that are not continuous, such as binary outcomes. When the dependent variable (Y) is a dummy variable, for instance, representing a "Yes/No" diagnosis, its expected value is a probability, which is inherently bounded between zero and one.

Standard regression methods are ill-suited for such constraints, necessitating a transformation of the expected value to a scale where a linear relationship can be modeled 45 46.

Scatter plot showing the relationship between a continuous variable X and a binary variable Y, illustrating a generalized linear model scenario.

13.2 Components of a GLM

A GLM re-frames regression by assuming three core components to handle non-continuous dependent variables: a specific distribution for Y, a linear predictor, and a link function 47.

  • Distribution for Y: This specifies the probability distribution of the dependent variable, such as a Bernoulli distribution for binary outcomes.
  • Linear predictor (η\eta): This is a linear combination of predictor variables, typically expressed as η=α+βX\eta = \alpha + \beta X.
  • Link function (gg): This function transforms the expected value of Y, μ=E(Y∣X)\mu = E(Y|X), such that g(μ)=ηg(\mu) = \eta. The inverse of the link function, g−1(η)g^{-1}(\eta), then maps the linear predictor back to the scale of the expected value, μ=g−1(η)\mu = g^{-1}(\eta) 47.

For a Bernoulli distribution, the canonical link function is the logit function, defined as logit(p)=ln⁡(p1−p)\text{logit}(p) = \ln\left(\frac{p}{1-p}\right), which represents the natural logarithm of the odds of Y=1. This transformation maps probabilities (bounded between 0 and 1) to the entire range of real numbers, making it suitable for linear modeling 47.

📝 For a binary outcome like "Yes/No impairment diagnosis" (Y) based on a continuous test score (X), the expected value E(Y|X) is a probability p(X). The logit function, logit(p)=ln⁡(p1−p)\text{logit}(p) = \ln\left(\frac{p}{1-p}\right), transforms this probability into a linear predictor η=α+βX\eta = \alpha + \beta X, allowing for linear modeling 47.

13.3 Simple Logistic Regression

Logistic regression is a specific type of GLM used for binary outcomes, where the logit of the probability of the outcome is linearly related to the predictor variables. This establishes a linear relationship between the logit of pp and the linear predictor: logit(p)=α+βX\text{logit}(p) = \alpha + \beta X 48.

The relationship between the probability of an event and the linear predictor can be expressed in three equivalent forms:

RepresentationFormula
Logit/Log-oddsln⁡(P(Y=1∣X)1−P(Y=1∣X))=α+βX\ln\left(\frac{P(Y=1\vert X)}{1-P(Y=1\vert X)}\right) = \alpha + \beta X
OddsOY=1(X)=P(Y=1∣X)1−P(Y=1∣X)=eα+βXO_{Y=1}(X) = \frac{P(Y=1\vert X)}{1-P(Y=1\vert X)} = e^{\alpha + \beta X}
ProbabilityP(Y=1∣X)=eα+βX1+eα+βXP(Y=1\vert X) = \frac{e^{\alpha + \beta X}}{1 + e^{\alpha + \beta X}}

The inverse of the logit function is known as the logistic function, which is why this modeling approach is termed logistic regression 48.

Comparison of Logistic Regression Parameter Effects showing how varying intercept and slope affect the logit and probability functions.

13.4 Parameter Interpretation in Logistic Regression

The parameters α\alpha and β\beta in a logistic regression model have specific interpretations related to the log-odds and odds ratio 50.

  • α\alpha (Intercept): This represents the log-odds of the event occurring when all predictor variables (X) are zero. Consequently, eαe^\alpha is the ratio between the probability of a positive outcome versus a negative outcome when the test score is null.
  • β\beta (Slope): This parameter signifies the log of the odds-ratio. For every unit increase in the predictor variable X, the odds of the outcome are multiplied by eβe^\beta. This means that β\beta quantifies the change in the log-odds for a one-unit increase in X 50.

The logistic regression model is expressed as the probability of an event occurring, which is related to an exponentiated linear combination of predictor variables.

14. Hat Matrix formulation

14.1 Hat Matrix formulation in linear regression

The Hat Matrix, denoted as HH, is a fundamental component in the matrix formulation of linear regression, particularly for calculating predicted values. In a matrix representation, the linear regression model is expressed as y=Xβ+ey = X\beta + e, where yy is the vector of observed responses, XX is the design matrix, β\beta is the vector of coefficients, and ee is the vector of residuals 52.

  • OLS solution: The Ordinary Least Squares (OLS) solution for the coefficient vector β^\hat{\beta} is given by β^=(XTX)−1XTy\hat{\beta} = (X^TX)^{-1}X^Ty.
  • Predicted values: The vector of predicted values, y^\hat{y}, is calculated as y^=Xβ^=X(XTX)−1XTy=Hy\hat{y} = X\hat{\beta} = X(X^TX)^{-1}X^Ty = Hy.
  • Hat Matrix (HH): This matrix, H=X(XTX)−1XTH = X(X^TX)^{-1}X^T, is also known as the projection matrix or influence matrix, as it "puts the hat on yy" to produce y^\hat{y} 52.

14.2 Matrix formulation and leverage values

The diagonal elements of the Hat Matrix, known as hat or leverage values (hih_i), quantify the influence of individual observations on their own fitted values. These values indicate the extent to which an observation (xi,yi)(x_i, y_i) controls the regression line 53.

  • Hat/leverage values: For simple linear regression, the ii-th diagonal element hih_i is given by: hi=hii=1n+(xi−xˉ)2∑j=1n(xj−xˉ)2h_i = h_{ii} = \frac{1}{n} + \frac{(x_i - \bar{x})^2}{\sum_{j=1}^n (x_j - \bar{x})^2} This formula shows how yiy_i influences y^i\hat{y}_i as a function of the deviation of xix_i from the mean xˉ\bar{x} 53. Formula for hat/leverage values in matrix formulation of linear regression.

📝 For a simple linear regression, the ii-th leverage value hih_i is hi=1n+(xi−xˉ)2∑j=1n(xj−xˉ)2h_i = \frac{1}{n} + \frac{(x_i - \bar{x})^2}{\sum_{j=1}^n (x_j - \bar{x})^2} 53.

14.3 Exercise 3

This exercise asks to demonstrate that for a simple linear regression, the Hat Matrix HH is a symmetric n×nn \times n matrix with elements hijh_{ij} defined as: hij=1n+(xi−xˉ)(xj−xˉ)∑k=1n(xk−xˉ)2=1n[1+(xˉ−xi)(xˉ−xj)x2ˉ−(xˉ)2]h_{ij} = \frac{1}{n} + \frac{(x_i - \bar{x})(x_j - \bar{x})}{\sum_{k=1}^n (x_k - \bar{x})^2} = \frac{1}{n} \left[ 1 + \frac{(\bar{x} - x_i)(\bar{x} - x_j)}{\bar{x^2} - (\bar{x})^2} \right] This exercise tests the understanding of the matrix formulation of simple linear regression and the properties of the Hat Matrix elements 53.

14.4 Residuals and properties of the Hat Matrix

The Hat Matrix also plays a crucial role in the calculation of residuals and possesses specific mathematical properties that are important for understanding its behavior in linear regression. The residuals represent the difference between the observed and predicted values 54.

  • Residual calculation: The vector of residuals ee can be expressed as e=y−y^=(I−H)ye = y - \hat{y} = (I - H)y, where II is the identity matrix. The matrix (I−H)(I - H) is known as the residual maker matrix. This diagram illustrates the formulation of the hat matrix in multiple linear regression, showing the relationship between residuals, predicted values, and the hat matrix.
  • Variance of residuals: For a single residual eie_i, assuming independent yiy_i, its variance is given by Var(ei)=σ2(1−hi)Var(e_i) = \sigma^2(1 - h_i).
  • Properties of HH and (I−H)(I - H):
  • Symmetry: Both HH and (I−H)(I - H) are symmetric matrices, meaning HT=HH^T = H and (I−H)T=I−H(I - H)^T = I - H.
  • Idempotence: Both matrices are idempotent, satisfying H2=HH^2 = H and (I−H)2=I−H(I - H)^2 = I - H.
  • Sum of squares of residuals (SSRes): The SSRes can be calculated using the Hat Matrix as the inner product eTe=yT(I−H)T(I−H)y=yT(I−H)ye^Te = y^T(I - H)^T(I - H)y = y^T(I - H)y 54.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also