4 Multiple Correlation And Regression

Statistics II · Unit 4 · 6 hrs

Multiple correlation and regression

Exam-focused notes for Multiple correlation and regression (Statistics II, STA215): what the TU syllabus asks and how it has actually been tested, with 13 solved past questions from this unit.

Multiple correlation and regression in short

Simple correlation and regression describe the relationship between two variables; this chapter extends both ideas to three or more variables, where a dependent variable is related to the joint and separate effects of several independent variables at once.

Multiple correlation and regression: notes

Multiple and partial correlation

Multiple correlation measures the strength of the linear relationship between one variable and the joint effect of two or more others. If $X_1$ is the dependent variable and $X_2, X_3$ are independent variables, the multiple correlation coefficient is denoted $R_{1.23}$ and computed from the three simple correlation coefficients $r_{12}, r_{13}, r_{23}$ as $$R_{1.23} = \sqrt{\frac{r_{12}^2+r_{13}^2-2r_{12}r_{13}r_{23}}{1-r_{23}^2}}$$ It always lies between 0 and 1 (a value outside this range signals that the three simple correlations are mutually inconsistent), and its square, the coefficient of multiple determination $R_{1.23}^2$, gives the proportion of the variation in $X_1$ explained jointly by $X_2$ and $X_3$.

Partial correlation measures the relationship between two variables after removing (holding constant) the linear effect of one or more other variables. The partial correlation between $X_1$ and $X_2$ eliminating the effect of $X_3$ is $$r_{12.3} = \frac{r_{12}-r_{13}r_{23}}{\sqrt{1-r_{13}^2}\sqrt{1-r_{23}^2}}$$ and lies between $-1$ and $+1$; its square is the coefficient of partial determination.

Worked example. Three variables have simple correlations $r_{12}=0.6$, $r_{13}=0.4$, $r_{23}=0.35$. The multiple correlation of $X_1$ with the joint effect of $X_2$ and $X_3$ is $$R_{1.23} = \sqrt{\frac{(0.6)^2+(0.4)^2-2(0.6)(0.4)(0.35)}{1-(0.35)^2}} = 0.633$$ so $R_{1.23}^2=0.401$: about 40% of the variation in $X_1$ is jointly explained by $X_2$ and $X_3$. The partial correlation between $X_1$ and $X_2$, eliminating $X_3$, is $$r_{12.3} = \frac{0.6-(0.4)(0.35)}{\sqrt{1-(0.4)^2}\sqrt{1-(0.35)^2}} = 0.536$$ which is lower than the simple correlation $r_{12}=0.6$, showing that part of the raw association between $X_1$ and $X_2$ was carried indirectly through $X_3$.

What this unit covers

  • Multiple and partial correlation
  • Introduction of multiple linear regression
  • Hypothesis testing of multiple regression
  • Test of significance of regression
  • Test of individual regression coefficient
  • Model adequacy tests
  • Problems and illustrative examples related to computer Science and IT

Introduction of multiple linear regression

2081 · 10 marks

Multiple Regression Analysis

Show solved answer

Multiple Regression Analysis

Purpose of Multiple Regression Analysis

Multiple regression analysis is applied to:

  • Establish a functional relationship between one dependent variable $Y$ and two or more independent variables $X_1, X_2, \ldots$
  • Predict/estimate the value of the dependent variable from known independent variables
  • Measure the separate effect of each independent variable while holding the others constant
  • Identify which independent variables are significant contributors to the variation in $Y$
  • Provide a more realistic model since real phenomena depend on several factors simultaneously

Given Data

YX1X2
6462
7061
8590
5058
6062
7271
7585
5569
8081
7061

$n = 10$


Part (i): Multiple Regression Equation

Model: $\hat{Y} = b_0 + b_1 X_1 + b_2 X_2$

Step 1: Summations

YX1X2X1²X2²X1·X2X1·YX2·Y
646236412384128
7061361642070
859081007650
5058256440250400
606236412360120
7271491750472
7585642540600375
5569368154330495
8081641864080
7061361642070
681673046318218546731810

$$\sum Y = 681,\ \sum X_1 = 67,\ \sum X_2 = 30,\ \sum X_1^2 = 463,$$ $$\sum X_2^2 = 182,\ \sum X_1 X_2 = 185,\ \sum X_1 Y = 4673,\ \sum X_2 Y = 1810$$

Step 2: Means

$$\bar{Y} = 68.1,\quad \bar{X}_1 = 6.7,\quad \bar{X}_2 = 3.0$$

Step 3: Normal Equations

$$681 = 10b_0 + 67b_1 + 30b_2 \quad (1)$$ $$4673 = 67b_0 + 463b_1 + 185b_2 \quad (2)$$ $$1810 = 30b_0 + 185b_1 + 182b_2 \quad (3)$$

Solution

Eliminate $b_0$ using (1) and (2): multiply (1) by $6.7$: $$4562.7 = 67b_0 + 448.9b_1 + 201b_2 \quad (4)$$ $(2) - (4)$: $$110.3 = 14.1b_1 - 16b_2 \quad (5)$$

Eliminate $b_0$ using (1) and (3): multiply (1) by $3$: $$2043 = 30b_0 + 201b_1 + 90b_2 \quad (6)$$ $(3) - (6)$: $$-233 = -16b_1 + 92b_2 \quad (7)$$

From (5): $14.1b_1 - 16b_2 = 110.3$ From (7): $-16b_1 + 92b_2 = -233$

Solve. From (5): $b_1 = \dfrac{110.3 + 16b_2}{14.1}$.

Substitute in (7): $$-16\left(\frac{110.3 + 16b_2}{14.1}\right) + 92b_2 = -233$$

$$-16(110.3 + 16b_2) + 92(14.1)b_2 = -233(14.1)$$

$$-1764.8 - 256b_2 + 1297.2b_2 = -3285.3$$

$$1041.2b_2 = -1520.5$$

$$b_2 = -1.4603$$

Then: $$b_1 = \frac{110.3 + 16(-1.4603)}{14.1} = \frac{110.3 - 23.365}{14.1} = \frac{86.935}{14.1} = 6.1656$$

From (1): $$b_0 = \frac{681 - 67(6.1656) - 30(-1.4603)}{10}$$ $$= \frac{681 - 413.10 + 43.81}{10} = \frac{311.71}{10} = 31.171$$

Regression Equation

$$\boxed{\hat{Y} = 31.171 + 6.166,X_1 - 1.460,X_2}$$


Part (ii): Interpretation of $b_1$ and $b_2$

  • $b_1 = 6.166$: Holding the number of absent days ($X_2$) constant, a one-unit increase in the aptitude test score ($X_1$) raises the job-satisfaction score ($Y$) by about 6.17 units. The positive sign shows a direct relationship.

  • $b_2 = -1.460$: Holding the aptitude test score ($X_1$) constant, each additional day of absence ($X_2$) decreases the job-satisfaction score ($Y$) by about 1.46 units. The negative sign shows an inverse relationship.


Part (iii): Estimate for $X_1 = 9,\ X_2 = 6$

$$\hat{Y} = 31.171 + 6.166(9) - 1.460(6)$$ $$= 31.171 + 55.494 - 8.760$$ $$= \boxed{77.91}$$

The estimated job-satisfaction score is approximately 78.

Open this answer on its own page →

2079 · 10 marks

Multiple Regression Analysis: IRS Unpaid Taxes Estimation

For the multiple regression model $Y = \beta0 + \beta1 X1 + \beta2 X2 + \epsilon$, the error term $\epsilon$ must satisfy: 1. Zero mean: $E(\epsiloni) = 0$ for all $i$. 2. Constant variance (homoscedasticity): $Var(\epsiloni) = \sigma^2$ for all $i$. 3. Independence (no autocorrelation):

Open this answer on its own page →

2078 · 10 marks

Multiple Linear Regression Analysis for Computer Vision Syndrome

ID CVS (Y) Age X₁ Work hrs X₂ ---------------------------------- 001 6 24 4 007 7 26 5 125 5 30 6 231 11 41 8 99 3 47 3 299 29.0 50 6 145 28 52 7 $n = 7$. CVS measured on scale 0 to 50. Dependent variable: Scale of CVS ($Y$) - it is the outcome the study wants to explain. Independent variables: A...

Open this answer on its own page →

2077 · 10 marks

Multiple Linear Regression Analysis

Obs Lifetime (years) Play time (hrs/day) RAM (MB) ------------------------------------------------------ 1 5 2 8 2 1 8 2 3 7 1 6 4 2 5 3 5 3 6 2 6 4 3 4 7 6 2 7 $n = 7$. Dependent variable: Lifetime (Y), since it is being affected/explained. Independent variables: $X1$ = Play time, $X2$ = RAM. Y ...

Open this answer on its own page →

2075 · 10 marks

From the following information of variables X₁, X₂, and Y:

  • $\Sigma X_1 = 272$
  • $\Sigma X_2 = 441$
  • $\Sigma Y = 147$
  • $\Sigma X_1^2 = 7428$
  • $\Sigma X_2^2 = 19461$
  • $\Sigma Y^2 = 2173$
  • $\Sigma X_1 Y = 4013$
  • $\Sigma X_1 X_2 = 12005$
  • $\Sigma X_2 Y = 6485$
  • $n = 10$

Fit a regression equation Y on X₁ and X₂. Interpret the regression coefficients. [10]

Multiple Linear Regression (MLR) is a statistical technique that models the relationship between one dependent variable and two or more independent variables. It allows us to estimate/predict the dependent variable using several predictors simultaneously. General form (two predictors): $$\hat{Y} ...

Open this answer on its own page →

Multiple and partial correlation

2081 · 5 marks

Explain the concept of multiple and partial correlation coefficients. Consider three variables X1, X2 and X3. If $r_{12}=0.40$, $r_{23}=0.50$ and $r_{13}=0.6$ find $R_{123}$ and $r_{23.1}$. [5]

Three variables $X1, X2, X3$ with zero-order correlation coefficients: $$r{12} = 0.40, \quad r{23} = 0.50, \quad r{13} = 0.60$$ Note on notation: The problem statement contains a typo. "$R{123}$" is standardly interpreted as the multiple correlation coefficient $R{1.23}$, and "$r{234}$" is a typo...

Open this answer on its own page →

2080 · 5 marks

Define multiple correlation. In a trivariate distribution X1, X2, and X3, the simple correlation coefficients are given as r12= 0.5, r23=0.6 and r13=0.7. Find i. partial correlation coefficient between X1 and X2 keeping X3 constant. ii. multiple correlation coefficient assuming X1 as dependent variable. [5]

Show solved answer

Multiple Correlation and Partial Correlation

Definition of Multiple Correlation

Multiple correlation is the correlation between one variable (the dependent variable) and the combined linear effect of two or more other variables (independent variables) taken together. For a trivariate distribution $X_1, X_2, X_3$, the multiple correlation coefficient $R_{1.23}$ measures the degree of association between $X_1$ and the joint effect of $X_2$ and $X_3$. Its square gives the proportion of variance in $X_1$ explained by $X_2$ and $X_3$.

Given Data

  • $r_{12} = 0.5$
  • $r_{23} = 0.6$
  • $r_{13} = 0.7$

Part (i): Partial Correlation $r_{12.3}$

$$r_{12.3} = \frac{r_{12} - r_{13},r_{23}}{\sqrt{(1 - r_{13}^2)(1 - r_{23}^2)}}$$

Numerator: $$0.5 - (0.7)(0.6) = 0.5 - 0.42 = 0.08$$

Denominator: $$\sqrt{(1 - 0.49)(1 - 0.36)} = \sqrt{(0.51)(0.64)} = \sqrt{0.3264} = 0.5713$$

Result: $$r_{12.3} = \frac{0.08}{0.5713} = 0.1400$$

A weak positive partial correlation between $X_1$ and $X_2$ when $X_3$ is held constant.


Part (ii): Multiple Correlation $R_{1.23}$

$$R_{1.23} = \sqrt{\frac{r_{12}^2 + r_{13}^2 - 2,r_{12},r_{13},r_{23}}{1 - r_{23}^2}}$$

Numerator: $$(0.5)^2 + (0.7)^2 - 2(0.5)(0.7)(0.6) = 0.25 + 0.49 - 0.42 = 0.32$$

Denominator: $$1 - (0.6)^2 = 1 - 0.36 = 0.64$$

Result: $$R_{1.23} = \sqrt{\frac{0.32}{0.64}} = \sqrt{0.5} = 0.7071$$

Interpretation: $R_{1.23}^2 = 0.50$, so about 50% of the variation in $X_1$ is jointly explained by $X_2$ and $X_3$.


Final Answers

  • $r_{12.3} = 0.1400$
  • $R_{1.23} = 0.7071$
Open this answer on its own page →

2079 · 5 marks

Write short notes on the following. i. Partial and multiple correlation coefficient. ii. Properties of good estimator. [5]

--- Definition: The partial correlation coefficient measures the degree of linear relationship between two variables while eliminating (holding constant) the effect of one or more other variables. For three variables X1, X2, and X3, the partial correlation coefficients are: Partial correlation be...

Open this answer on its own page →

Test of significance of regression

2081 · 5 marks

Multiple Regression Analysis Question

A multiple regression equation yields the following results:

SourceSum of squareDegree of freedom
Regression7402
Error51017

i) What is the total sample size?

ii) How many independent variables are being considered?

iii) Compute the coefficient of determination and interpret its value.

iv) Compute the standard error of estimate.

v) Test the hypothesis that the overall fit of the model is significant or not. Assume $\alpha=0.05$.

[5]

Source Sum of Squares (SS) Degrees of Freedom (df) --------------------------------------------------- Regression 740 2 Error 510 17 Total 1250 19 $\alpha = 0.05$ --- $$df{Total} = df{Reg} + df{Error} = 2 + 17 = 19$$ Since $df{Total} = n - 1$: $$n - 1 = 19 \implies n = 20$$ $$k = df{Reg} = 2$$ Tw...

Open this answer on its own page →

2080 · 10 marks

Regression Analysis: Computer Program Efficiency

Given regression equation: $$Y = 52.7 - 2.87X_1 + 0.85X_2$$

Where:

  • Y = Processed requests per hour
  • X₁ = Data size (gigabytes)
  • X₂ = Number of tables
  • Total sum of squares (TSS) = 1452
  • Sum of squares due to regression (SSR) = 1143.3
  • Standard error of b₂ = 0.55
  • n = 7 observations
Show solved answer

Multiple Regression Analysis - Verified Model Answer

Given Data

  • Regression equation: $\hat{Y} = 52.7 - 2.87X_1 + 0.85X_2$
  • Total Sum of Squares: $SST = 1452$
  • Sum of Squares due to Regression: $SSR = 1143.3$
  • Standard error of $b_2$: $S_{b_2} = 0.55$
  • Sample size: $n = 7$; number of predictors: $k = 2$
  • Significance level: $\alpha = 0.05$
  • Data table (Y, X1, X2) as given.

a) Interpretation of $b_1$ and $b_2$

$b_1 = -2.87$: Holding number of tables ($X_2$) constant, each additional gigabyte of data size decreases the processed requests by about 2.87 per hour on average.

$b_2 = +0.85$: Holding data size ($X_1$) constant, each additional table used increases the processed requests by about 0.85 per hour on average.


b) Significance of the Overall Model (F-test)

$$SSE = SST - SSR = 1452 - 1143.3 = 308.7$$

$$MSR = \frac{SSR}{k} = \frac{1143.3}{2} = 571.65$$

$$MSE = \frac{SSE}{n-k-1} = \frac{308.7}{4} = 77.175$$

$$F_{cal} = \frac{MSR}{MSE} = \frac{571.65}{77.175} = 7.41$$

Critical value at $\alpha=0.05$, $df_1=2$, $df_2=4$: $$F_{tab}(2,4) = 6.94$$

Since $F_{cal}=7.41 > F_{tab}=6.94$, reject $H_0$.

Conclusion: The overall regression model is statistically significant at 0.05.


c) Significance of $X_2$ (Number of Tables)

Hypotheses: $H_0: \beta_2 = 0$ vs $H_1: \beta_2 \neq 0$

$$t_{cal} = \frac{b_2}{S_{b_2}} = \frac{0.85}{0.55} = 1.545$$

Critical value (two-tailed) at $\alpha=0.05$, $df = n-k-1 = 4$: $$t_{tab} = 2.776$$

Since $|t_{cal}| = 1.545 < 2.776$, fail to reject $H_0$.

Conclusion: There is no significant relationship between processed requests and number of tables at the 0.05 level.


d) Percentage of Variation Explained ($R^2$)

$$R^2 = \frac{SSR}{SST} = \frac{1143.3}{1452} = 0.7874$$

$$R^2 \times 100 = 78.74%$$

About 78.74% of the variation in processed requests is explained by data size and number of tables together.


e) Standard Error of Estimate

$$S_e = \sqrt{\frac{SSE}{n-k-1}} = \sqrt{\frac{308.7}{4}} = \sqrt{77.175} = 8.785$$

$S_e \approx 8.79$ requests per hour.


f) Estimate for $X_1 = 9$, $X_2 = 8$

$$\hat{Y} = 52.7 - 2.87(9) + 0.85(8)$$ $$= 52.7 - 25.83 + 6.80 = 33.67$$

Estimated processed requests $\approx 33.67$ per hour.


Summary

PartResult
a$b_1=-2.87$, $b_2=+0.85$ (interpreted above)
b$F=7.41 > 6.94$: model significant
c$t=1.545 < 2.776$: $X_2$ not significant
d$R^2 = 78.74%$
e$S_e = 8.79$
f$\hat{Y} = 33.67$
Open this answer on its own page →

2079 · 5 marks

ANOVA Analysis for Multiple Regression Model

Source SS df MSS F --------------- Regression 12.62 2 ? ? Error 0.78 12 ? Total 13.40 14 - Number of independent variables: $k = 2$ - Total $df = n - 1 = 14 \Rightarrow n = 15$ --- MSS due to Regression: $$MSR = \frac{SSR}{dfR} = \frac{12.62}{2} = 6.31$$ MSS due to Error: $$MSE = \frac{SSE}{dfE} ...

Open this answer on its own page →

2075 · 5 marks

Suppose we are given following information with n=7, multiple regression model is $\hat{A} = 8.15 + 0.6 X_1 + 0.54 X_2$. Here, Total sum of square = 1493, and Sum of square due to error = 91. Find i) $R^2$ and interpret it. ii) Test the overall significance of model [5]

  • Sample size: $n = 7$ - Model: $\hat{A} = 8.15 + 0.6X1 + 0.54X2$ - Number of independent variables: $k = 2$ - Total Sum of Squares: $SST = 1493$ - Sum of Squares due to Error: $SSE = 91$ --- Sum of Squares due to Regression: $$SSR = SST - SSE = 1493 - 91 = 1402$$ $$R^2 = \frac{SSR}{SST} = \frac{...
Open this answer on its own page →

Model adequacy tests

2077 · 5 marks

Write shorts notes on the following: i. Test of equality of two variances ii. Adjusted R2R^2R2 [5]

The test of equality of two variances (also called the F-test) is used to determine whether two population variances are equal. It is based on the F-distribution and is a parametric test. - Null Hypothesis (H₀): σ₁² = σ₂² (The two population variances are equal) - Alternate Hypothesis (H₁): σ₁² ≠...

Open this answer on its own page →