Bias and Variance is the common words which we will hear in Machine Learning. Bias: we will see this issue more in parameter Machine Learning algorithms, because most of the parameter algorithms are liner/polynomial, so It will not touch/read all data points, so we will have more error, which leads to under fitting.If you seeContinue reading “Bias-Variance and trade off”
Category Archives: Linear regression
Liner regression assumptions
Linear Assumption. Linear regression assumes that the relationship between your input/independent and output/depended is linear.We can use pearson correlation to check the linearity.if we found there is no linearity between input and output variables We need to transform data to make the relationship linear (e.g. log transform,Box-cox etc..). Data Cleaning. Linear regression assumes that yourContinue reading “Liner regression assumptions”
Types of regression
When I ask what are the types of regression for the beginners, the expected answer will be linear regression and Logistic regression, because these are the two algorithms that all beginners will start with. Now coming to the point we have five types of regression. Linear regression Logistic regression Polynomial regression Ridge Regression Lasso RegressionContinue reading “Types of regression”
How to calculate Simple Liner Regression
Lets calculate linear regression for the below dataset. We have age of the person which we will denote as X and sugar level of the person which we will denote as Y Step 1) To know how to calculate mean refer link. Step 2) To know how to calculate standard deviation refer link Step 3)Continue reading “How to calculate Simple Liner Regression”
Calculating Accuracy
In our previous article we seen how to calculate linear regression by hand, in this article we will discuss how to find the accuracy of our linear regression model which we build. Below are the metrics we need to calculate to check our model accuracy. R^2 (Coefficient of Determination) Adjusted R^2 MSE RMSE First,Continue reading “Calculating Accuracy”