STA404 – Regression & Correlation Analysis: Midterm Important Subjective (22 Solved Q&As)
Statistics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · STA404 Course Page · STA404 MCQ Pack (79 MCQs)
-
What is regression analysis? State its main uses.
Topic: Regression Analysis — Introduction
Regression analysis is a statistical tool used for investigating the relationship between a dependent variable and one or more independent variables. Its main purpose is to estimate (predict) the value of the dependent variable from the known values of the independent variable(s). It is widely used for prediction and forecasting in economics, management, engineering, medical fields, social sciences, sports and physical sciences, and computer sciences.
-
Distinguish between a deterministic model and a probabilistic model, giving one example of each.
Topic: Regression Analysis — Introduction
A deterministic model describes an exact relationship in which the value of Y is determined completely by X, with no error involved. Examples: the conversion F = 32 + (9/5)C between Fahrenheit and Celsius, and the area of a circle, A = πr². A probabilistic (statistical) model includes a random error term "e", because the relationship is not exact. It is written as Y = a + bX + e. Example: the relationship between the weight and height of a person — knowing the height does not fix the weight exactly.
-
Differentiate between the dependent variable and the independent variable.
Topic: Regression Analysis — Introduction
The independent variable (X) is the variable in regression that can be controlled or manipulated by the experimenter. In a scatter plot it is drawn on the horizontal (x) axis. The dependent variable (Y) is the variable that is being predicted or explained; it cannot be controlled or manipulated. In a scatter plot it is drawn on the vertical (y) axis. Example: in studying exam grades, the number of hours studied is the independent variable and the grade obtained is the dependent variable.
-
What is a scatter diagram? What information does it give about the relationship between two variables?
Topic: Scatter Diagram and Least Squares
A scatter diagram (scatter plot) is a graph in which the paired observations of the independent variable X and the dependent variable Y are plotted as points on a plane, with X on the horizontal axis and Y on the vertical axis. It gives a visual idea of the nature and strength of the relationship: if the points cluster around a straight line rising from left to right, the correlation is positive and linear; if the line falls, the correlation is negative; if the points follow a curve, the relationship is non-linear (curvilinear); and if the points are scattered randomly with no pattern, there is no correlation.
-
Write down the normal equations for fitting the regression line Y = a + bX by the method of least squares, and give the resulting formulas for a and b.
Topic: Scatter Diagram and Least Squares
Minimising the sum of squared residuals Σ(Y - a - bX)² with respect to a and b gives the two normal equations: ΣY = na + bΣX ΣXY = aΣX + bΣX² Solving these equations simultaneously gives: b = [nΣXY - (ΣX)(ΣY)] / [nΣX² - (ΣX)²] a = Ȳ - bX̄ where a is the intercept and b is the slope of the fitted line Ŷ = a + bX.
-
For the data X: 2, 4, 6, 8, 10 and Y: 3, 5, 7, 8, 11, fit the regression line of Y on X and estimate the value of Y when X = 12.
Topic: Scatter Diagram and Least Squares
Here n = 5, ΣX = 30, ΣY = 34, ΣXY = (2)(3) + (4)(5) + (6)(7) + (8)(8) + (10)(11) = 6 + 20 + 42 + 64 + 110 = 242, and ΣX² = 4 + 16 + 36 + 64 + 100 = 220. b = [nΣXY - (ΣX)(ΣY)] / [nΣX² - (ΣX)²] = [5(242) - (30)(34)] / [5(220) - (30)²] = (1210 - 1020) / (1100 - 900) = 190 / 200 = 0.95 a = Ȳ - bX̄ = 6.8 - (0.95)(6) = 6.8 - 5.7 = 1.1 So the regression line is Ŷ = 1.1 + 0.95X. For X = 12: Ŷ = 1.1 + 0.95(12) = 1.1 + 11.4 = 12.5.
-
State the properties of the least squares regression line.
Topic: Scatter Diagram and Least Squares
(1) The least squares regression line always passes through the centre of the data, i.e. the point (X̄, Ȳ). (2) The sum of the residuals (deviations of the observed values of Y from the line) is always zero: Σe = Σ(Y - Ŷ) = 0. (3) The sum of the squared deviations of the observed values of Y from the least squares line is minimum: Σe² = Σ(Y - Ŷ)² = minimum. (4) The line fitted by the least squares method is therefore called the "best fit" line.
-
State the assumptions of the simple linear regression model. What does the abbreviation LINE stand for?
Topic: Scatter Diagram and Least Squares
The assumptions are abbreviated as LINE: L — Linear: the mean of the responses (dependent variable) is a linear function of X. I — Independent: the errors are independent of each other, and there is no relationship between X and the error term "e". N — Normal: the errors are normally distributed. E — Equal variance: the errors have equal variances for all values of X. In addition, the expected (mean) value of the error term is zero.
-
Define correlation and describe its different types.
Topic: Correlation Coefficient
Two variables are said to be correlated if they tend to vary together simultaneously in some direction. The main types are: (1) Positive correlation: both variables increase (or decrease) together, e.g. length of an iron bar and temperature. (2) Negative (inverse) correlation: one variable increases while the other decreases, e.g. volume of a gas and pressure. (3) No (zero) correlation: the movement of the two variables is independent of each other. Correlation may also be simple (one dependent and one independent variable), multiple (one dependent and more than one independent variable) or partial (one independent variable is considered while the others are held constant); and linear or non-linear according to the shape of the scatter diagram.
-
Calculate Karl Pearson's correlation coefficient for the data X: 1, 2, 3, 4, 5 and Y: 2, 3, 5, 4, 6, and interpret the result.
Topic: Correlation Coefficient
Here n = 5, ΣX = 15, ΣY = 20, ΣXY = (1)(2) + (2)(3) + (3)(5) + (4)(4) + (5)(6) = 2 + 6 + 15 + 16 + 30 = 69, ΣX² = 55 and ΣY² = 90. r = [nΣXY - (ΣX)(ΣY)] / √{[nΣX² - (ΣX)²] [nΣY² - (ΣY)²]} r = [5(69) - (15)(20)] / √{[5(55) - 225] [5(90) - 400]} = (345 - 300) / √(50 × 50) = 45 / 50 = 0.9 Since r = +0.9, there is a strong positive correlation between X and Y.
-
State the main properties of Karl Pearson's correlation coefficient r.
Topic: Correlation Coefficient
(1) The value of r always lies between -1 and +1, i.e. -1 ≤ r ≤ +1. (2) r is a pure number: there are no units associated with it. (3) The value of r remains unchanged if the X and Y values are interchanged (r is symmetric in X and Y). (4) r = +1 indicates a perfect positive correlation and r = -1 a perfect negative correlation; the closer |r| is to 1, the stronger the linear relationship. (5) r = 0 indicates that there is no linear relationship between the variables.
-
"Correlation is not causation." Explain this statement.
Topic: Correlation Coefficient
This statement warns that a strong correlation between two variables does not by itself prove that one variable causes the other. The observed association may be produced by a third (lurking) variable that influences both, or it may be a pure coincidence. There could be other reasons why the data show a good correlation, so a cause-and-effect conclusion requires evidence beyond the correlation coefficient.
-
Distinguish between correlation and regression.
Topic: Correlation Coefficient
Correlation measures only the strength and direction of the linear relationship between two variables; it is symmetric (r between X and Y is the same as r between Y and X) and it is a unit-free number. It does not say which variable depends on which. Regression, on the other hand, is used to predict or estimate the value of the dependent variable from the independent variable. It is not symmetric: the regression line of Y on X is different from the regression line of X on Y, and the regression coefficients have units and a cause-and-effect direction (X is used to explain Y).
-
What is Spearman's rank correlation coefficient? Write its formula and state its main features.
Topic: Rank Correlation
Spearman's rank correlation coefficient measures the correspondence (agreement) between two sets of rankings. It was developed by the British psychologist Charles Edward Spearman in 1904. Its formula is: rs = 1 - 6Σd² / [n(n² - 1)] where d is the difference between the two ranks of the same item and n is the number of items. Main features: its range is from -1 to +1; it is interpreted in the same way as Karl Pearson's correlation coefficient; and it is a distribution-free measure, because no strict assumption is made about the population from which the sample is drawn.
-
Two judges rank five contestants as follows. Judge A: 1, 2, 3, 4, 5; Judge B: 2, 1, 4, 3, 5. Compute Spearman's rank correlation coefficient and interpret it.
Topic: Rank Correlation
The rank differences are: d = 1 - 2 = -1, 2 - 1 = 1, 3 - 4 = -1, 4 - 3 = 1, 5 - 5 = 0. So Σd² = 1 + 1 + 1 + 1 + 0 = 4, and n = 5. rs = 1 - 6Σd² / [n(n² - 1)] = 1 - 6(4) / [5(25 - 1)] = 1 - 24 / 120 = 1 - 0.2 = 0.8 The value rs = 0.8 shows a strong agreement between the rankings of the two judges.
-
What is multiple regression? Write its general form and explain the meaning of the partial regression coefficients.
Topic: Multiple and Partial Regression
Multiple regression is the regression of one dependent variable on two or more independent variables. With k independent variables its general form is: Ŷ = a + b₁X₁ + b₂X₂ + ... + bkXk The coefficients b₁, b₂, ..., bk are called partial regression coefficients. Each one measures the change in Y for a one-unit change in the corresponding independent variable, while all the other independent variables are held constant. In this model Y is the dependent variable, the Xs are the independent variables, and k is the number of independent variables.
-
Write down the normal equations used to fit the multiple regression equation Ŷ = a + b₁X₁ + b₂X₂.
Topic: Multiple and Partial Regression
For the model Ŷ = a + b₁X₁ + b₂X₂, the three normal equations are: ΣY = na + b₁ΣX₁ + b₂ΣX₂ ΣX₁Y = aΣX₁ + b₁ΣX₁² + b₂ΣX₁X₂ ΣX₂Y = aΣX₂ + b₁ΣX₁X₂ + b₂ΣX₂² Solving these three equations simultaneously gives the values of the constants a, b₁ and b₂, which are then substituted into the model.
-
What is the coefficient of determination? Compute it when SSR = 300 and SSE = 200, and interpret the result.
Topic: Multiple and Partial Regression
The coefficient of determination, denoted by r² (or CoD), is the proportion of the total variation in the dependent variable that is explained by the regression on the independent variable(s): CoD = SSR / SST, where SST = SSR + SSE. Here SST = 300 + 200 = 500, so CoD = 300 / 500 = 0.6. Interpretation: 60% of the total variation in Y is explained by its regression on X, and the remaining 40% is unexplained (residual) variation.
-
Describe the steps of the t-test used for testing the significance of a regression coefficient (slope).
Topic: Statistical Inference in Regression and Correlation
Step 1: State the hypotheses. H₀: β = 0 (there is no linear relationship between X and Y) against H₁: β ≠ 0 (two-tailed; one-tailed forms β > 0 or β < 0 are also possible). Step 2: Decide the level of significance α, most frequently 5%. Step 3: Compute the test statistic t = (b - β) / S.E.(b), which follows the t-distribution with df = n - 2. Step 4: Find the critical (tabulated) value of t for df = n - 2 at the chosen level of significance. Step 5: Make the decision: if the calculated |t| exceeds the critical value, reject H₀ and conclude that the slope (regression coefficient) is significant; otherwise do not reject H₀. Summarise the results.
-
How is the significance of a correlation coefficient tested? Test the significance of r = 0.9 obtained from a sample of size n = 5 at the 5% level.
Topic: Statistical Inference in Regression and Correlation
The significance of the sample correlation coefficient is tested with the statistic: t = r√(n - 2) / √(1 - r²), with df = n - 2, under H₀: ρ = 0. For r = 0.9 and n = 5: t = 0.9√(5 - 2) / √(1 - 0.81) = 0.9(1.732) / 0.436 = 1.559 / 0.436 = 3.58. The critical value of t with 3 degrees of freedom at the 5% level (two-tailed) is 3.182. Since the calculated value 3.58 is greater than 3.182, H₀ is rejected: the correlation coefficient is statistically significant.
-
What is the standard error of estimate? Compute it when SSE = 180 and n = 20.
Topic: Statistical Inference in Regression and Correlation
The standard error of estimate, also called the standard deviation of regression, measures the average spread (scatteredness) of the observed values of Y about the fitted regression line. It is computed as: S(YX) = √[SSE / (n - 2)] For SSE = 180 and n = 20: S(YX) = √[180 / (20 - 2)] = √(180 / 18) = √10 ≈ 3.16. The smaller this value, the closer the observations lie to the regression line and the better the fit.
-
How is a second-degree (parabolic) curve Y = a + bX + cX² fitted by the method of least squares? State the normal equations.
Topic: Statistical Inference in Regression and Correlation
A second-degree (parabolic) curve has the form Y = a + bX + cX². Fitting it by the method of least squares gives three normal equations: ΣY = na + bΣX + cΣX² ΣXY = aΣX + bΣX² + cΣX³ ΣX²Y = aΣX² + bΣX³ + cΣX⁴ The required sums are computed from the data, the three equations are solved simultaneously for a, b and c, and the values are substituted into the equation of the curve.