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.
- Prepare
- Artificial Intelligence
- Statistics and Machine Learning
- Correlation and Regression Lines - A Quick Recap #4
- Discussions
Correlation and Regression Lines - A Quick Recap #4
Correlation and Regression Lines - A Quick Recap #4
Sort by
recency
|
17 Discussions
|
Please Login in order to post a comment
Solving for x using the first equation is correct, but not the second. Why is that? I assume it has to do with the line _ on _ but I don't get why
Here is the code in Python 3:
x=[i for i in range(0,20)]
''' 4x - 5y + 33 = 0 x = ( 5y - 33 ) / 4 y = ( 4x + 33 ) / 5
''' t=7 print( ( 9 * t + 107 ) / 20 )
It's very simple. They are giving two different regression equations just to ensure you pick the correct one. Since we are given a value of 'y' and are asked to estimate a value of 'x', we need to pick the equation for 'y regressed on x'. Then you just need to plug in your value for y and solve for x.
As I understand it, there could be a third variable (which is dependent on both x and y) involved implicitly, which is why we get two regression results?