RTUComputer ScienceYr 2024 · Sem 32024

Q1Advanced Engineering Mathematics

Question

10 marks

If be the acute angle between the two lines of regression of variables and , show that:

where , , have their usual meaning. Explain the significance where and .

Answer

Detailed proof of the angle between two regression lines, exploring the underlying concepts of correlation, regression coefficients, and geometric interpretation.

In statistical modeling, regression analysis is a powerful predictive technique that investigates the relationship between a dependent (target) and independent variable(s) (predictor). When studying two continuous random variables, and , we often seek to understand not just if they are correlated, but how one can be used to mathematically predict the other. This gives rise to two distinct lines of regression: the regression of on , and the regression of on . The geometric angle between these two lines provides profound insights into the strength and nature of the linear correlation between the variables.

1. Fundamentals of Linear Regression

Let us consider a bivariate data set consisting of pairs of observations . The primary objective of linear regression is to find the "best-fitting" straight line through these points. The universally accepted criterion for this "best fit" is the Principle of Least Squares, which minimizes the sum of the squared deviations (errors) of the observed data points from the line.

Because we can measure these deviations either vertically (errors in predicting ) or horizontally (errors in predicting ), we obtain two distinct regression lines.

  • Regression Line of Y on X: This line is constructed by minimizing the vertical distances (errors in ). It is mathematically used to predict the value of for a given, fixed value of .
  • Regression Line of X on Y: Conversely, this line is constructed by minimizing the horizontal distances (errors in ). It is used to predict the value of for a given, fixed value of .

2. Equations of the Regression Lines

Let and denote the arithmetic means of the and series, respectively. Let and denote their respective standard deviations, and let represent the Pearson correlation coefficient between and .

The fundamental equation for the regression line of on is given by:

Here, is the regression coefficient of on , which represents the slope of this line relative to the x-axis. It is calculated as:

Substituting back into the equation, we get:

Similarly, the fundamental equation for the regression line of on is given by:

Where is the regression coefficient of on . It is calculated as:

Substituting , we get:

To analyze the geometric relationship between these lines in the standard Cartesian coordinate system (where is a function of ), we must rearrange this second equation into the standard slope-intercept form (). Solving for , we get:

3. Deriving the Angle Between the Lines ()

From Equation 1 and Equation 2, we can identify the true mathematical slopes of the two regression lines:

  • Slope of the line of on :
  • Slope of the line of on :

From basic coordinate geometry, if is the acute angle between two intersecting straight lines with slopes and , the tangent of this angle is given by the well-known formula:

We now substitute our expressions for and into this trigonometric identity:

Let us carefully simplify the numerator by factoring out the common term :

Now, let us simplify the denominator. Notice that the correlation coefficient perfectly cancels out in the multiplication:

Putting the simplified numerator and denominator back into the tangent formula:

Since standard deviations and are always strictly positive, and we are looking for the acute angle (meaning must be positive), we can write the final canonical formula as:

4. Critical Analysis and Special Cases

This derived formula is remarkably elegant because it directly links the geometric separation of the lines to the statistical strength of their correlation. Let us deeply analyze the extreme cases to understand its physical significance.

Case A: Perfect Linear Correlation ( or )

When the variables exhibit a perfect linear relationship, all data points lie exactly on a single straight line. In this scenario, . Substituting this into our formula yields . Therefore, , which implies that the angle . Geometrically, this means the angle between the two regression lines vanishes; they completely coincide and become identical. There is no distinction between minimizing vertical errors versus horizontal errors because there are zero errors.

Case B: Absolutely No Linear Correlation ()

When the variables are completely uncorrelated linearly, . Substituting this into our formula causes the denominator of the first fraction to become zero (). As a result, the value of approaches infinity (). The angle whose tangent is infinity is radians, or 90 degrees. Geometrically, the two regression lines are perfectly perpendicular (orthogonal) to each other. Specifically, they align parallel to the X and Y coordinate axes, indicating that knowledge of one variable provides absolutely no predictive power over the other.

5. Graphical Representation

The relationship between the correlation coefficient and the angle between the regression lines can be visualized in the following diagram.

r = 0 (No Correlation)Y on XX on Y90°r ≈ 0.6 (Moderate)Y on XX on Yθr = 1 (Perfect)Y on X & X on Yθ = 0°
Back to Paper