Skip to main content

Simple Linear Regression

 Simple Linear Regression

 

Simple linear regression is used to find out the best relationship between a single input variable (predictor, independent variable, input feature, input parameter) & output variable (predicted, dependent variable, output feature, output parameter) provided that both variables are continuous in nature. This relationship represents how an input variable is related to the output variable and how it is represented by a straight line.


After looking at scatter plot we can understand:

  1. The direction
  2. The strength
  3. The linearity

The above characteristics are between variable Y and variable X. The above scatter plot shows us that variable Y and variable X possess a strong positive linear relationship. Hence, we can project a straight line which can define the data in the most accurate way possible.

If the relationship between variable X and variable Y is strong and linear, then we conclude that particular independent variable X is the effective input variable to predict dependent variable Y.

To check the collinearity between variable X and variable Y, we have correlation coefficient (r), which will give you numerical value of correlation between two variables. You can have strong, moderate or weak correlation between two variables. Higher the value of “r”, higher the preference given for particular input variable X for predicting output variable Y. Few properties of “r” are listed as follows:

  1. Range of r: -1 to +1
  2. Perfect positive relationship: +1
  3. Perfect negative relationship: -1
  4. No Linear relationship: 0
  5. Strong correlation: r > 0.85 (depends on business scenario)

Command used for calculation “r” in RStudio is:

> cor(X, Y)

where, X: independent variable & Y: dependent variable Now, if the result of the above command is greater than 0.85 then choose simple linear regression.

If r < 0.85 then use transformation of data to increase the value of “r” and then build a simple linear regression model on transformed data.

Steps to Implement Simple Linear Regression:

  1. Analyze data (analyze scatter plot for linearity)
  2. Get sample data for model building
  3. Then design a model that explains the data
  4. And use the same developed model on the whole population to make predictions.

Comments

Popular posts from this blog

785 Enterprise Analytics Jobs In Mumbai, Maharashtra, India (38 New)

Choosing the proper and greatest digital advertising courses in Delhi & NCR is an ideal determination to make for better career and to work in smart method on larger salaries or ensure a better supply of earnings. Boston Institute of Analytics is an international organization that imparts coaching in predictive analytics, machine learning and synthetic intelligence to school college students and dealing professionals by means of classroom coaching carried out by business experts. In this teacher-led, stay training (onsite or distant), contributors will learn how to use SSAS to analyze giant volumes of data in databases and knowledge warehouses. BBA business analytics & knowledge science is India's first specialised Undergraduate program specializing in the data science and enterprise analytics business. Dr Abhijit Dasgupta, Director - Large Information & Visual Analytics, was a source of fixed assist and motivation together with every different faculty member we stu...

Machine Learning Crash Course

Information science requires mastering in various fields like machine learning, R programming, Python, deep studying and plenty of extra. Machine Learning Engineer is categorized as one of the refined profiles due to the work profile in addition to the wage packages that the candidates draw from the companies. Many reinforcement studying algorithms use dynamic programming methods. This implies, through the use of a selected kind of algorithm, machines are given the facility of understanding the command and studying from there with out giving any further instructions or without programming again and again. It has been an important studying expertise for me. Online classroom training for Machine Learning Certification is carried out through online reside streaming of each class. The classification of information and labeling the information are trained in case of the supervised learning. The programme is designed for technology professionals who wish to advance their career as a spe...

Top Knowledge Science Corporations In Mumbai

ExcelR Institute of Analytics is a world group that imparts training in predictive analytics, machine studying and artificial intelligence to college students and dealing professionals through classroom coaching carried out by business specialists. The training arm of Microsoft, Microsoft Learning, gives courses which are obtainable each onsite and online. With us, you will get the benefit of self-paced on-line training, blended training, instructor-led online training in addition to on-premise classroom training so to get to learn, and know about all the programming languages that are gaining large demand within the IT sectors. Data science training in mumbai We here at ExcelR, as one of the crucial main knowledge science institutes, have come up with thought the place a scholar can participate in as many as courses and lectures from totally different trainers that they want to in a span of a year. The CDS program is a 6 months weekend program, with a prime focus on skill wants o...