Skip to main content

Multiple Linear Regression.

When we are having more than one input columns and our data is in some sort of linear form then we use multiple linear regression. 


Multiple linear regression is just an extension of simple linear regression.


Multiple linear regression draws a linear plane in our data set which passes from every point closely.



There are two types of multiple linear regression.

1. Ordinary least square(OLS)

2. Generalized least square (GLS)

Mathematical Intuition


Code for Multiple Linear Regression.

pandas library is used for performing functions related datasets.

For performing multiple linear aggression we use sklearn library.

train_test_split function is used for training the data set.

DataSet

Comments

Popular posts from this blog

Welcome to the Digital Era!!!

As we all know we are living in a Digital Era. Almost everything around us is digitally connected. For example, QR code. Almost everyone uses QR Code for financial transactions in there day to day life. If you see any business that is not on the internet it's like they are missing out on the digital world. No business can grow immensely without creating its digital presence. What is Digital Transformation? Digital transformation is the process of using digital technologies to transform existing traditional and non-digital business processes and services, or creating new ones, to meet with the evolving market and customer expectations, thus completely altering the way businesses are managed and operated, and how value is delivered to customers. To help you stay ahead of the game, we've compiled some of the most valuable insights from today's leading digital businesses.  Some of Indian Startups bloom after Digital Transformation : 1. Lenskart Have you ever thought that you do

Ridge Regression Machine Learning

Bias variance trade off Bias means the inability of a machine learning model to truly capture the relationship in the training data set. That means it cannot understand the pattern in the training data set. Variance is the different of fits on different data sets. The difference between the training and the testing data set is variance. Overfitting When your data set works well on the trading data set but does not perform well on testing data set its called over fitting. Underfitting When your model does not perform well on your training data set then it is called under fitting. There are three methods for controlling over fitting: 1. Regularization 2. Bagging 3. Boosting There are 3 techniques of regularization: 1. Ridge Regression In this we add some more regularization terms to reduce the over fitting. Basically it's  lambda. For performing ridge Regression we have an in-built class Ridge in sklearn Library. Let's see the code : from sklearn.linear_model import LinearRegress

Top 10 business ideas

Top 10 business ideas Hey do you want to become an self made entrepreneur? Do you want to start your own business? If yes then you are at the right place !!! The rise of entrepreneurship in India is unstoppable, and that is something we should be proud of.The wave of entrepreneurship is on it's hype. Here are some business ideas to bloom your career. 1. Online Reselling  If you’re interested in clothing and/or sales, you might consider  starting an online reseller business . Y ou can start your business as a side hustle and turn it into a full-time resale business. Here's your action plan: Choose the right type of reselling business. Identify the industry for your business.  Identify the market and target audience for your business.  Check out your competitors.  Check if the business is viable.  Start your reseller business online. 2. Professional Organizing If you’re a highly organized person who enjoys making spaces functional and comfortable, you might be good at coaching ot