๐Ÿ  Home
Correlation & Regression
Unit IV ยท Lecture 29

BDS113 โ€” Introduction to Statistics

Partial & Multiple Correlation

Three Variables ยท Partial Correlation ยท Multiple Correlation ยท Coefficient of Alienation


Unit IV ยท Lecture 29 of 40 ยท B.Sc. Data Science, 1st Year, Semester II

Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿค” Why Partial & Multiple Correlation?


๐Ÿ“– The Limitation of Simple Correlation

Pearson's r measures the relationship between two variables. But in reality, a variable y may be influenced by several variables simultaneously (xโ‚, xโ‚‚, xโ‚ƒ, โ€ฆ). Simple correlation between y and xโ‚ may be inflated because xโ‚ is correlated with xโ‚‚, which also affects y. We need tools to isolate the effect of one variable while controlling for others.


๐Ÿ’ก Analogy: The Confounding Chef

You notice that restaurants with more staff get higher ratings (positive correlation). But restaurants with more staff also tend to be more expensive. Is it the staff count or the price that drives ratings? Partial correlation answers this: it measures the correlation between staff count and ratings after removing the effect of price. It isolates the "direct" relationship.


๐Ÿ“– Notation: Three Variables

Let xโ‚, xโ‚‚, xโ‚ƒ be three variables.

rโ‚โ‚‚ = simple correlation between xโ‚ and xโ‚‚
rโ‚โ‚ƒ = simple correlation between xโ‚ and xโ‚ƒ
rโ‚‚โ‚ƒ = simple correlation between xโ‚‚ and xโ‚ƒ

These are called zero-order correlations (no variables controlled).

๐Ÿ“– Two Key Concepts

Partial correlation: The correlation between two variables after removing the linear effect of one or more other variables.

Multiple correlation: The correlation between one variable (y) and a set of predictors (xโ‚, xโ‚‚, โ€ฆ, xโ‚–) jointly. It measures how well the combination of predictors explains y.

Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿ“ Partial Correlation Coefficient


๐Ÿ“– Definition

The partial correlation rโ‚โ‚‚.โ‚ƒ measures the correlation between xโ‚ and xโ‚‚ after removing the linear effect of xโ‚ƒ from both. It is a first-order partial correlation (one variable controlled).


๐Ÿ“– Formula

rโ‚โ‚‚.โ‚ƒ = (rโ‚โ‚‚ โˆ’ rโ‚โ‚ƒ ยท rโ‚‚โ‚ƒ) / โˆš[(1 โˆ’ rโ‚โ‚ƒยฒ)(1 โˆ’ rโ‚‚โ‚ƒยฒ)]

Where rโ‚โ‚‚, rโ‚โ‚ƒ, rโ‚‚โ‚ƒ are the three zero-order (simple) correlations among the three variables.

Interpretation: rโ‚โ‚‚.โ‚ƒ tells us the correlation between xโ‚ and xโ‚‚ that remains after we have "factored out" (controlled for) the influence of xโ‚ƒ on both.


๐Ÿ’ก Notation: rโ‚โ‚‚.โ‚ƒ is read as "the correlation between 1 and 2, controlling for 3." The dot (.) separates the variables being correlated (before the dot) from the variables being controlled (after the dot).
Correlation & Regression
Unit IV ยท Lecture 29

โœ๏ธ Example: Partial Correlation


๐Ÿ“ Problem

Three variables xโ‚ (income), xโ‚‚ (spending), xโ‚ƒ (age) have the following correlations:
rโ‚โ‚‚ = 0.80 (income & spending), rโ‚โ‚ƒ = 0.60 (income & age), rโ‚‚โ‚ƒ = 0.50 (spending & age).
Find the partial correlation between income and spending, controlling for age.


๐Ÿ“– Solution

rโ‚โ‚‚.โ‚ƒ = (rโ‚โ‚‚ โˆ’ rโ‚โ‚ƒ ยท rโ‚‚โ‚ƒ) / โˆš[(1 โˆ’ rโ‚โ‚ƒยฒ)(1 โˆ’ rโ‚‚โ‚ƒยฒ)]

Numerator: rโ‚โ‚‚ โˆ’ rโ‚โ‚ƒ ยท rโ‚‚โ‚ƒ = 0.80 โˆ’ (0.60)(0.50) = 0.80 โˆ’ 0.30 = 0.50

Denominator: โˆš[(1 โˆ’ 0.36)(1 โˆ’ 0.25)] = โˆš[(0.64)(0.75)] = โˆš0.48 = 0.6928

rโ‚โ‚‚.โ‚ƒ = 0.50 / 0.6928 = 0.7217


Result

rโ‚โ‚‚.โ‚ƒ = 0.722

The simple correlation (rโ‚โ‚‚ = 0.80) dropped to 0.722 after controlling for age. The correlation between income and spending is still strong, but part of the original association was due to the shared influence of age.


๐Ÿ’ก Key Insight: If rโ‚โ‚‚.โ‚ƒ โ‰ˆ rโ‚โ‚‚, then xโ‚ƒ is not a confounding variable โ€” the relationship between xโ‚ and xโ‚‚ is genuine. If rโ‚โ‚‚.โ‚ƒ โ‰ˆ 0 while rโ‚โ‚‚ is large, then the apparent relationship was entirely due to xโ‚ƒ (a spurious correlation).
Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿ“ Multiple Correlation Coefficient


๐Ÿ“– Definition

The multiple correlation coefficient Rโ‚.โ‚‚โ‚ƒ measures how well both xโ‚‚ and xโ‚ƒ together predict xโ‚. It is the correlation between xโ‚ and the best linear combination of xโ‚‚ and xโ‚ƒ.


๐Ÿ“– Formula (Three Variables)

Rยฒโ‚.โ‚‚โ‚ƒ = (rโ‚โ‚‚ยฒ + rโ‚โ‚ƒยฒ โˆ’ 2ยทrโ‚โ‚‚ยทrโ‚โ‚ƒยทrโ‚‚โ‚ƒ) / (1 โˆ’ rโ‚‚โ‚ƒยฒ)

Rโ‚.โ‚‚โ‚ƒ = โˆšRยฒโ‚.โ‚‚โ‚ƒ (always taken as positive)

Properties:
  โ€ข 0 โ‰ค Rโ‚.โ‚‚โ‚ƒ โ‰ค 1 (always non-negative)
  โ€ข Rโ‚.โ‚‚โ‚ƒ โ‰ฅ max(|rโ‚โ‚‚|, |rโ‚โ‚ƒ|) โ€” adding predictors never decreases R
  โ€ข Rยฒโ‚.โ‚‚โ‚ƒ = proportion of variance in xโ‚ explained by xโ‚‚ and xโ‚ƒ jointly

Correlation & Regression
Unit IV ยท Lecture 29

โœ๏ธ Example: Multiple Correlation


๐Ÿ“ Problem

Using the same correlations: rโ‚โ‚‚ = 0.80, rโ‚โ‚ƒ = 0.60, rโ‚‚โ‚ƒ = 0.50. Find Rโ‚.โ‚‚โ‚ƒ.


๐Ÿ“– Solution

Rยฒโ‚.โ‚‚โ‚ƒ = (rโ‚โ‚‚ยฒ + rโ‚โ‚ƒยฒ โˆ’ 2ยทrโ‚โ‚‚ยทrโ‚โ‚ƒยทrโ‚‚โ‚ƒ) / (1 โˆ’ rโ‚‚โ‚ƒยฒ)

  = (0.64 + 0.36 โˆ’ 2(0.80)(0.60)(0.50)) / (1 โˆ’ 0.25)
  = (0.64 + 0.36 โˆ’ 0.48) / 0.75
  = 0.52 / 0.75
  = 0.6933

Rโ‚.โ‚‚โ‚ƒ = โˆš0.6933 = 0.8327


Result

Rโ‚.โ‚‚โ‚ƒ = 0.833

Age and spending together explain 69.3% of the variation in income (Rยฒ = 0.693). This is better than either variable alone (rโ‚โ‚‚ยฒ = 0.64, rโ‚โ‚ƒยฒ = 0.36).

Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿ“ Coefficient of Alienation


๐Ÿ“– Definition

The coefficient of alienation measures the lack of association โ€” the proportion of variance not explained.

For simple correlation: k = โˆš(1 โˆ’ rยฒ)
For multiple correlation: K = โˆš(1 โˆ’ Rยฒ)


๐Ÿ“– Interpretation

k = 0: Perfect correlation (r = ยฑ1). No alienation.

k = 1: Zero correlation (r = 0). Complete alienation.

Example: If r = 0.8, then k = โˆš(1โˆ’0.64) = โˆš0.36 = 0.6. The "alienated" portion is 0.6.

๐Ÿ’ก Relationship

rยฒ + kยฒ = 1 (for simple correlation)
Rยฒ + Kยฒ = 1 (for multiple correlation)

The coefficient of alienation is the complement of the coefficient of determination in the Pythagorean sense. As one increases, the other decreases.

Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿ”‘ Summary: Partial & Multiple Correlation


Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿง  Quick Quiz โ€” Lecture 29


Q1: Partial correlation rโ‚โ‚‚.โ‚ƒ measures:

A) The correlation between all three variables
B) The correlation between xโ‚ and xโ‚‚ after removing the effect of xโ‚ƒ
C) The average of rโ‚โ‚‚, rโ‚โ‚ƒ, and rโ‚‚โ‚ƒ
D) The correlation between xโ‚ƒ and the residuals

Q2: The multiple correlation Rโ‚.โ‚‚โ‚ƒ is always:

A) Between โˆ’1 and +1
B) Between 0 and 1
C) Greater than 1
D) Negative

Q3: If rโ‚โ‚‚ = 0.80 and rโ‚โ‚‚.โ‚ƒ = 0.10, this suggests:

A) xโ‚ƒ has no effect on the relationship
B) The original correlation was mostly due to xโ‚ƒ (spurious)
C) The relationship is stronger after controlling for xโ‚ƒ
D) xโ‚ and xโ‚‚ are perfectly correlated

Q4: The coefficient of alienation when r = 0.6 is:

A) 0.36
B) 0.80
C) 0.64
D) 0.60

Q5: Rโ‚.โ‚‚โ‚ƒ is always greater than or equal to:

A) rโ‚โ‚‚ + rโ‚โ‚ƒ
B) max(|rโ‚โ‚‚|, |rโ‚โ‚ƒ|)
C) rโ‚‚โ‚ƒ
D) 0
Correlation & Regression
Unit IV ยท Lecture 29

๐Ÿ“ Homework & Next Lecture


๐Ÿ“ Practice Tasks

1. Given rโ‚โ‚‚ = 0.70, rโ‚โ‚ƒ = 0.50, rโ‚‚โ‚ƒ = 0.40. Find rโ‚โ‚‚.โ‚ƒ and Rโ‚.โ‚‚โ‚ƒ.

2. Given rโ‚โ‚‚ = 0.90, rโ‚โ‚ƒ = 0.85, rโ‚‚โ‚ƒ = 0.95. Find rโ‚โ‚‚.โ‚ƒ. What does the result suggest?

3. If Rโ‚.โ‚‚โ‚ƒ = 0.90, what percentage of variance in xโ‚ is explained by xโ‚‚ and xโ‚ƒ jointly? What is the coefficient of alienation?

4. Explain the difference between simple, partial, and multiple correlation with an example.

5. BONUS: Show that if rโ‚โ‚ƒ = 0 or rโ‚‚โ‚ƒ = 0, then rโ‚โ‚‚.โ‚ƒ = rโ‚โ‚‚. Interpret this result.


Upcoming

Lecture 30: Spearman's Rank Correlation โ€” a non-parametric alternative to Pearson's r.