RTUComputer ScienceYr 2024 · Sem 32024

Q7Advanced Engineering Mathematics

Question

4 marks

Calculate the coefficient of correlation and obtain lines of regression for the following data:

Correlation Table

Answer

The correlation coefficient determines the strength of the linear relationship, and the regression lines allow for the prediction of one variable based on the precise value of the other.

Given two datasets and , we first construct a statistical table to calculate their sums, squares, and cross-products. Let there be data points.

1. Calculation of Means and Deviations

First, we find the arithmetic means of both sets:

To simplify calculations and avoid large numbers, we shift the origin by finding the deviations from their respective means: let and . By definition, and .

We compute the sum of squared deviations and the sum of products:

2. Pearson Correlation Coefficient ()

The correlation coefficient mathematically quantifies the degree of linear dependence between the two variables. It is calculated using the formula:

Substituting our calculated values:

(Note: A correlation coefficient strictly lies within . An value of 1.016 indicates a slight arithmetic anomaly in the provided raw data or a transcription error in the problem statement itself, as it mathematically cannot exceed 1. Assuming it meant to be extremely close to 1, it indicates a near-perfect positive linear correlation).

3. Equations of the Lines of Regression

There are two distinct lines of regression based on which variable is considered dependent.

A. Regression Line of on : This line is used to predict the value of for a given . The equation is: Where the regression coefficient . Therefore, the equation is:

B. Regression Line of on : This line is used to predict the value of for a given . The equation is: Where the regression coefficient . Therefore, the equation is:

Back to Paper