All Exams Test series for 1 year @ ₹349 only
Question

For the two variables X and Y, the following observations are tabulated.

X:344
Y:10109

The Spearman's correlation coefficient is:

This question was previously asked in
SSC CGL 2020 (Tier-2) Statistics Previous Year Paper 3 (28-Jan-2022)
The correct answer is

-0.125

Calculating Spearman's Correlation Coefficient for X and Y Data

This solution demonstrates the step-by-step calculation of the Spearman's rank correlation coefficient ($ \rho $) for the provided paired observations of variables X and Y.

What is Spearman's Rank Correlation Coefficient?

Spearman's rank correlation coefficient is a statistical measure used to evaluate the strength and direction of association between two ranked variables. It assesses how well the relationship between two variables can be described using a monotonic function (a function that is either entirely non-increasing or entirely non-decreasing). It's useful even when the relationship isn't strictly linear.

Key Steps in Calculation

The calculation involves the following steps:

  1. Ranking Data: Assign ranks to the observations for each variable (X and Y) independently.
  2. Handling Ties: If there are repeated values (ties) in the data for a variable, assign the average of the ranks they would occupy.
  3. Calculating Rank Differences: Find the difference ($ d_i $) between the ranks of corresponding pairs of X and Y observations.
  4. Squaring Differences: Square each of the rank differences ($ d_i^2 $).
  5. Summing Squared Differences: Calculate the sum of all the squared differences ($ \sum d_i^2 $).
  6. Applying the Formula: Use the Spearman's correlation formula to find $ \rho $.

Data Analysis and Ranking

The given observations are:

  • Variable X: 3, 4, 4
  • Variable Y: 10, 10, 9

The total number of observations is $ n = 3 $.

Ranking Variable X

The values for X are 3, 4, 4. Sorting these gives 3, 4, 4.

  • The value 3 is the smallest, so it gets rank 1.
  • The two values of 4 are tied for the 2nd and 3rd positions. To handle this tie, we calculate the average rank: $ \frac{2 + 3}{2} = 2.5 $. Both 4s receive the rank 2.5.
  • The ranks for X are: 1, 2.5, 2.5.

Ranking Variable Y

The values for Y are 10, 10, 9. Sorting these gives 9, 10, 10.

  • The value 9 is the smallest, so it gets rank 1.
  • The two values of 10 are tied for the 2nd and 3rd positions. The average rank is calculated as: $ \frac{2 + 3}{2} = 2.5 $. Both 10s receive the rank 2.5.
  • The ranks for Y are: 2.5, 2.5, 1.

Calculating Rank Differences ($ d_i $) and Squared Differences ($ d_i^2 $)

We create a table to track the ranks, their differences, and the squared differences:

Observation Index X Value Rank(X) Y Value Rank(Y) $ d_i = \text{Rank}(X) - \text{Rank}(Y) $ $ d_i^2 $
1 3 1 10 2.5 $ 1 - 2.5 = -1.5 $ $ (-1.5)^2 = 2.25 $
2 4 2.5 10 2.5 $ 2.5 - 2.5 = 0 $ $ 0^2 = 0 $
3 4 2.5 9 1 $ 2.5 - 1 = 1.5 $ $ (1.5)^2 = 2.25 $
Sum $ \sum d_i^2 = 2.25 + 0 + 2.25 = 4.5 $

Spearman's Correlation Formula Application

The formula for Spearman's rank correlation coefficient ($ \rho $) is:

$ \rho = 1 - \frac{6 \sum d_i^2}{n(n^2 - 1)} $

Using the values we calculated:

  • Number of observations, $ n = 3 $.
  • Sum of squared differences in ranks, $ \sum d_i^2 = 4.5 $.

Now, substitute these values into the formula:

$ \rho = 1 - \frac{6 \times 4.5}{3(3^2 - 1)} $

First, calculate the numerator:

$ 6 \times 4.5 = 27 $

Next, calculate the denominator:

$ 3(3^2 - 1) = 3(9 - 1) = 3 \times 8 = 24 $

Now, complete the calculation for $ \rho $:

$ \rho = 1 - \frac{27}{24} $

$ \rho = 1 - 1.125 $

$ \rho = -0.125 $

Final Result

The Spearman's correlation coefficient for the given data is $ -0.125 $. This suggests a very weak negative monotonic relationship between the variables X and Y.

Was this answer helpful?

Similar Questions

  1. The product of partial regression coefficient \(b_1{_2}{_.3}\) \(b_2{_3}{_.1}\) \(b_3{_1}{_.2}\)  equals to:

  2. If six hand-writings were ranked by two judges in a competition and the rankings are as follows:

    Hand Writing
    123456
    Judge1654321
    Judge2123456

    Then the value of Spearman's rank correlation coefficient is
  3. If the difference between the rank of the 4 observations are 2.5, 0.5, -1.5, -1.5, then Spearman's rank correlation coefficient equals to:

  4. For the data set

    x:1234
    y:4532

    the regression coefficient b yx (y on x) equals to:

  5. For the variables X and Y, we collect 4 observations with ∑x = 10, ∑y = 14,  ∑x 2= 30, ∑y 2= 54, ∑xy = 31. The regression line y on x is

  6. The coefficient of correlations is r between X and Y having standard deviation σx and σy. The tangent of the between two lines of regression is:

  7. In Spearman rank correlation coefficient r s= 1 - \(\dfrac{6∑ d^2}{n(n^2-1)}\) , the maximum value of ∑d 2in case of untied rank is:

  8. If the correlation coefficient between x and y is 0.5 and the regression coefficient of y on x is 0.5, then the regression coefficient of x on y is:

  9. If X 1, X 2, … X nis a simple random sample without replacement of size n from a finite population of N units with mean μ and variance σ 2, the covariance of (X i, Xj ) will be:

  10. If x = X- \(\bar{X}\)  and y = Y -  \(\bar{Y}\)  and the number of pairs (X, Y) is n, then the Karl Pearson's coefficient of correlation is:


Important Questions from Correlation and Regression

  1. For testing the significance of overall regression the test to be used is
  2. Including relevant lagged values of the dependent variable on the right hand side of a regression equation could lead to which one of the following ?
  3. If OLS is used in the presence of auto-correlation, which of the following will be likely consequences ?
    i. Coefficients estimates may be misleading.
    ii. Hypothesis tests could reach the wrong conclusions.
    iii. Forecasts made from the model could be biased.
    iv. Standard errors may be inappropriate.
  4. Regression analysis is of particular interest
  5. Which of the following can be linked with those providing method for estimating black money in India ?
    I. Kaldor’s approach
    II. NIPFP method
    III. O.P. Chopra’s method
    IV. Arjun Sengupta
    Codes :
Need Expert Advice?
Upcoming Exams
SSC CPO
November 23, 2026
SSC CHSL
November 30, 2026
Test Series
SSC CGL img
SSC
SSC CGL (Tier I + Tier II) 2026 Mock Test Series - Latest Pattern
2509 Tests 6 Tests Free
8926 Attempts
4.2(945)
English, Hindi
More Questions from SSC CGL

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App