InterviewSolution
| 1. |
What are RMSE and MSE in a linear regression model? |
|
Answer» RMSE: RMSE stands for Root Mean Square Error. In a linear REGRESSION MODEL, RMSE is used to test the PERFORMANCE of the machine learning model. It is used to evaluate the data spread around the line of best fit. So, in simple words, it is used to measure the deviation of the residuals. RMSE is CALCULATED using the formula:
MSE: Mean Squared Error is used to find how close is the line to the actual data. So, we make the difference in the distance of the data points from the line and the difference is squared. This is done for all the data points and the submission of the squared difference divided by the total number of data points gives us the Mean Squared Error (MSE). So, if we are taking the squared difference of N data points and dividing the sum by N, what does it mean? Yes, it represents the average of the squared difference of a data point from the line i.e. the average of the squared difference between the actual and the predicted values. The formula for finding MSE is given below:
So, RMSE is the square root of MSE. |
|