

Assumption #1: Your dependent variable should be measured at the continuous level.However, you should decide whether your study meets these assumptions before moving on. Since assumptions #1 and #2 relate to your choice of variables, they cannot be tested for using Stata. If any of these seven assumptions are not met, you cannot analyse your data using linear because you will not get a valid result. There are seven “assumptions” that underpin linear regression. Please leave your queries if any below.7 Assumptions of Linear regression using Stata I hope this article was helpful to get basic understanding of Linear Regression and math behind it.

It is definitely a good first learning objective! Linear regression is always a good first step (if the data is visually linear) for a beginner. They are like :įinally, almost all regression algorithms have some similar math like linear regression. Also there are certain assumptions for when Linear Regression can be used. We will fail if there is a curved data set. It is clear is that linear regression is a simple approach to predict based on a data that follows a linear trend. In layman’s terms, it shows importance of that feature for predicting dependent variable(y). This coefficient values are generally the weights of that feature. Here also, all the coefficients of X would be obtained by using Gradient Decent, same as for simple linear regression. This would be multiple linear regression and equation for that would be : The same math is applied when there are more than one independent variable. To get the lowest value of cost function Gradient Decent algorithm can be used to get global minima.įinally, we are all set to find linear equation using Gradient Decent to get relationship between two variables.

In short for lowest value of cost function, optimal value of β1 can be obtained. From above it is clear that β1 = 1 is the best value as predicted points are same as actual.
