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.
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 answerHide 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
| Y | X1 | X2 |
|---|---|---|
| 64 | 6 | 2 |
| 70 | 6 | 1 |
| 85 | 9 | 0 |
| 50 | 5 | 8 |
| 60 | 6 | 2 |
| 72 | 7 | 1 |
| 75 | 8 | 5 |
| 55 | 6 | 9 |
| 80 | 8 | 1 |
| 70 | 6 | 1 |
$n = 10$
Part (i): Multiple Regression Equation
Model: $\hat{Y} = b_0 + b_1 X_1 + b_2 X_2$
Step 1: Summations
| Y | X1 | X2 | X1² | X2² | X1·X2 | X1·Y | X2·Y |
|---|---|---|---|---|---|---|---|
| 64 | 6 | 2 | 36 | 4 | 12 | 384 | 128 |
| 70 | 6 | 1 | 36 | 1 | 6 | 420 | 70 |
| 85 | 9 | 0 | 81 | 0 | 0 | 765 | 0 |
| 50 | 5 | 8 | 25 | 64 | 40 | 250 | 400 |
| 60 | 6 | 2 | 36 | 4 | 12 | 360 | 120 |
| 72 | 7 | 1 | 49 | 1 | 7 | 504 | 72 |
| 75 | 8 | 5 | 64 | 25 | 40 | 600 | 375 |
| 55 | 6 | 9 | 36 | 81 | 54 | 330 | 495 |
| 80 | 8 | 1 | 64 | 1 | 8 | 640 | 80 |
| 70 | 6 | 1 | 36 | 1 | 6 | 420 | 70 |
| 681 | 67 | 30 | 463 | 182 | 185 | 4673 | 1810 |
$$\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.
2079 · 10 marks
Multiple Regression Analysis: IRS Unpaid Taxes Estimation
2078 · 10 marks
Multiple Linear Regression Analysis for Computer Vision Syndrome
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 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]
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 answerHide 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$
2079 · 5 marks
Write short notes on the following. i. Partial and multiple correlation coefficient. ii. Properties of good estimator. [5]
Test of significance of regression
2081 · 5 marks
Multiple Regression Analysis Question
A multiple regression equation yields the following results:
| Source | Sum of square | Degree of freedom |
|---|---|---|
| Regression | 740 | 2 |
| Error | 510 | 17 |
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]
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 answerHide 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
| Part | Result |
|---|---|
| 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$ |
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]
Model adequacy tests
2077 · 5 marks
Write shorts notes on the following: i. Test of equality of two variances ii. Adjusted R2R^2R2 [5]
Make Unit 4 stick
Practice STA215 with flashcards & quizzes