Linear Regression Tutorial | Simple Linear Regression | Python Machine Learning Tutorial Part 1

preview_player
Показать описание
Linear Regression Tutorial | Simple Linear Regression | Machine Learning Algorithms in Python Part 1
Hello and welcome to Machine learning tutorial powered by Acadgild. In this tutorial, you will be to learn about the Linear Regression which models one of the simplest kind of relationships between variables.
What is Regression Analysis?
• Regression Analysis Investigates the relationship between dependent and independent variables
• Used for forecasting, time series modeling and finding causal relationships between variables.
• Determines significant relationships between independent and dependent variables
• Determines the strength of the impact of multiple independent variables on dependent variables
• Allows to find relationships between variables measured at different scales.
What is Simple Linear Regression?
It is the model that describes
• For finding relationships between two variables
• The relationship is not deterministic, but static
• The idea is to find the line that best fits the data
• The relationship expressed as y=B0+B1*x+e, which is the regression model
What is Multiple Linear Regression?
• Uses several explanatory variables to predict the outcome of the response variable
• Model is given as: y = B0+B1xi1+B2xi2+….+ Bpxip+E where I = 1,2,…, n
• The line gives how the mean response μy changes with the explanatory variables
• Data = Fit + Residual
• Residual is the deviations of observations from their means.
Lease Square Method:
• Used to minimize the residual.
• The best fitting line is calculated by minimizing the sum of the squares of the vertical deviations from each data point on the line.

Algorithm Advantages:
• Very easy and intuitive to use and understand
• When relationships between the independent variables and the dependent variable are almost linear, shows optimal results
• Even when it doesn’t fit the data exactly, we can use it to find the nature of the relationship between the two variables.

Disadvantages of Linear Regression:
• Limited to Linear relationships
• Very sensitive to anomalies in the data (or Outliers)
• If we have a number of parameters greatest than the number of samples available, then the model starts to model the noise rather than the relationship between the variables.

Assumptions of Linear Regression:
• Linear relationship
• Multivariate normality
• No or little multicollinearity
• No auto-correlation
• Homoscedasticity

In the next video, we will look at the implementation of simple linear regression and multiple linear regression in Python. Please subscribe and stay tuned for more such videos.

#machinelearningtutorial, #linearRegression #MachineLearning, #Simplelinearregression, #linear, #regression

For more updates on courses and tips follow us on:
Рекомендации по теме
Комментарии
Автор

If you have any questions on Linear Aggression, please shootout your queries in the comment section and our experts will get in touch with you.

Acadgild
Автор

I found this as informative, and let me know where linear regression is mostly using.

BEPEC
Автор

Can linear regression be used to predict rainfall data for upcoming years???

prajwal_
Автор

If we want to do for stock market prediction using data sets is taken on x and y I'm unable to get it which one to be taken on x and y....mam plz explain this

divyasampathirao