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
Linear regression is a statistical method used to model the relationship between two variables, typically denoted as X and Y. When we want to predict the value of Y based on the value of X, we find the regression line of Y on X. This line is the best-fitting straight line through the data points that minimizes the sum of the squared differences between the observed Y values and the predicted Y values.
The equation of a linear regression line of Y on X is usually represented as:
\(\hat{y} = a + bx\)
where:
To find the equation of the regression line, we need to calculate the values of the slope (\(b\)) and the y-intercept (\(a\)) using the given data.
The formula for the slope (\(b\)) of the regression line of Y on X using sums of the variables is:
\(b = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\)
where:
The formula for the y-intercept (\(a\)) is based on the mean values of X and Y and the calculated slope (\(b\)):
\(a = \bar{y} - b\bar{x}\)
where:
We are given the following information from 4 observations:
First, let's calculate the means of X and Y:
\(\bar{x} = \frac{\sum x}{n} = \frac{10}{4} = 2.5\)
\(\bar{y} = \frac{\sum y}{n} = \frac{14}{4} = 3.5\)
Next, let's calculate the slope (\(b\)) using the formula:
\(b = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\)
\(b = \frac{(4)(31) - (10)(14)}{(4)(30) - (10)^2}\)
\(b = \frac{124 - 140}{120 - 100}\)
\(b = \frac{-16}{20}\)
\(b = -0.8\)
Now, let's calculate the y-intercept (\(a\)) using the formula:
\(a = \bar{y} - b\bar{x}\)
\(a = 3.5 - (-0.8)(2.5)\)
\(a = 3.5 - (-2.0)\)
\(a = 3.5 + 2.0\)
\(a = 5.5\)
Now that we have the slope (\(b = -0.8\)) and the y-intercept (\(a = 5.5\)), we can write the equation for the regression line y on x:
\(\hat{y} = a + bx\)
\(\hat{y} = 5.5 + (-0.8)x\)
This can be written as:
\(\hat{y} = -0.8x + 5.5\)
Or, using 'y' to represent the predicted value:
\(y = -0.8x + 5.5\)
Let's compare our calculated regression line equation with the given options:
The calculated regression line \(y = -0.8x + 5.5\) matches Option 3.
| Calculation Step | Formula / Value | Result |
|---|---|---|
| Number of observations (n) | Given | 4 |
| Sum of X (\(\sum x\)) | Given | 10 |
| Sum of Y (\(\sum y\)) | Given | 14 |
| Sum of X\(^2\) (\(\sum x^2\)) | Given | 30 |
| Sum of XY (\(\sum xy\)) | Given | 31 |
| Mean of X (\(\bar{x}\)) | \(\frac{\sum x}{n}\) | \(\frac{10}{4} = 2.5\) |
| Mean of Y (\(\bar{y}\)) | \(\frac{\sum y}{n}\) | \(\frac{14}{4} = 3.5\) |
| Slope (b) | \(\frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\) | \(\frac{(4)(31) - (10)(14)}{(4)(30) - (10)^2} = \frac{124 - 140}{120 - 100} = \frac{-16}{20} = -0.8\) |
| Y-intercept (a) | \(\bar{y} - b\bar{x}\) | \(3.5 - (-0.8)(2.5) = 3.5 + 2.0 = 5.5\) |
| Regression Line y on x | \(y = a + bx\) | \(y = 5.5 + (-0.8)x \implies y = -0.8x + 5.5\) |
| Concept | Description | Formula (for y on x) |
|---|---|---|
| Regression Line Equation | Equation modeling the linear relationship between Y and X | \(y = a + bx\) |
| Slope (b) | Change in Y per unit change in X; direction and steepness of the line | \(\frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}\) |
| Y-intercept (a) | Value of Y when X is 0; where the line crosses the Y-axis | \(\bar{y} - b\bar{x}\) |
| Mean of X (\(\bar{x}\)) | Average value of X | \(\frac{\sum x}{n}\) |
| Mean of Y (\(\bar{y}\)) | Average value of Y | \(\frac{\sum y}{n}\) |
Linear regression is a fundamental tool in statistics for understanding the relationship between variables. The regression line y on x helps us predict the dependent variable (Y) based on the independent variable (X). Similarly, we could calculate the regression line x on y, which predicts X based on Y, but the formulas for slope and intercept would be different.
The strength and direction of the linear relationship can also be measured by the correlation coefficient (r), while the coefficient of determination (r\(^2\)) tells us the proportion of the variance in Y that is predictable from X. These measures are often calculated alongside the regression line to provide a more complete picture of the relationship.
Assumptions are made when performing linear regression, such as linearity of the relationship, independence of errors, homogeneity of variances (homoscedasticity), and normality of errors. Violations of these assumptions can affect the validity of the regression results.
The product of partial regression coefficient \(b_1{_2}{_.3}\) \(b_2{_3}{_.1}\) \(b_3{_1}{_.2}\) equals to:
If six hand-writings were ranked by two judges in a competition and the rankings are as follows:
| Hand Writing | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| Judge1 | 6 | 5 | 4 | 3 | 2 | 1 |
| Judge2 | 1 | 2 | 3 | 4 | 5 | 6 |
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:
For the data set
| x: | 1 | 2 | 3 | 4 |
| y: | 4 | 5 | 3 | 2 |
the regression coefficient b yx (y on x) equals to:
For the two variables X and Y, the following observations are tabulated.
| X: | 3 | 4 | 4 |
| Y: | 10 | 10 | 9 |
The Spearman's correlation coefficient is:
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:
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:
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:
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:
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: