We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
In a simple linear regression with 1 independent variable 'x', B1 (coefficient of x in the regression equation) is equal to
r(stdx/stdy)
where r is the Pearson correlation coefficient.
So given that B1 is the same for both regression equations, we know that the ratio stdx/stdy must be the same, since r is the same value in both equations. (r is the correlation between x and y). And then as a direct result, we get r = B1.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 8: Pearson Correlation Coefficient II
You are viewing a single comment's thread. Return to all comments →
In a simple linear regression with 1 independent variable 'x', B1 (coefficient of x in the regression equation) is equal to
r(stdx/stdy)
where r is the Pearson correlation coefficient.
So given that B1 is the same for both regression equations, we know that the ratio stdx/stdy must be the same, since r is the same value in both equations. (r is the correlation between x and y). And then as a direct result, we get r = B1.