Basics of Machine Learning -Part II
Photo by Arseny Togulev This is the second part of the series on the Basics of Machine Learning. Please refer to this link for part 1. Assumptions of Simple Linear Regression Below are the main assumptions of linear regression: There is a linear relationship between X and Y. Error terms are normally distributed. Error terms are independent of each other. Change in one error term should not impact the other error terms. Error terms have constant variance i.e. variance shouldn’t increase or decrease as the error values change. Also, they shouldn’t follow any pattern. If the variance is not constant or homoscedastic then the inferences made on the model would be unreliable. Checking the Model Fit: We should always make sure that the model fit is really a good fit and is not by a chance. There are many ways to test it. T-Test: The t-distribution is also a kind of normal distribution; it is also symmetric and single-peaked, bu...