Skip to content

Implementation of Simple Linear Regression Model (SLR) or Linear Model (LM) or Linear Regression using R Language

Notifications You must be signed in to change notification settings

soumyasethy/Linear-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Simple Linear-Regression Readme!

Simple Linear Regression Model is also called as Linear Regression Model or Regression or LM Model or Linear Model.

Getting Started

Whats is Regression?
Ans.In statistical modeling, regression analysis is a statistical process for estimating the relationships among variables. It includes many techniques for modeling and analyzing several variables, when the focus is on the relationship between a dependent variable and one or more independent variables (or 'predictors').
Regression is nothing but the Prediction.
For Applying SLR,

  • Data Type must be Numeric or Continuous.
  • There should be One dependent variable and One independent variable

The Linear relation between two variables which is a relation between dependent and independent variable.

Note: In SLR the model can have only one dependent variable and one independent variable.

SLR can be defined as,

Y = α + β(x)

Where , Y -> Dependent Variable
α -> Constant
β -> Coefficient
x -> Independent Variable

So here,

  • The variable Y is dependent on independent variable x.
  • Both variable must be Numeric & Continuous

SLR using R,

We create a relationship model using the lm() functions in R,

fit <- lm(formula=speed~dist,data=cars)

  • Basically we are looking for R-squared measure just to see how close the data are to the fitted regression line. It is also known as the coefficient of determination.

It is defined as, R-squared = Explained variation / Total variation

Total variation = Explained variation + Unexplained variation

Simple Linear Regression preview1
Simple Linear Regression preview2 Simple Linear Regression preview3
Simple Linear Regression preview4
Simple Linear Regression preview5
Simple Linear Regression preview6
Simple Linear Regression preview7
Simple Linear Regression preview8
Simple Linear Regression preview9
Simple Linear Regression preview10
Simple Linear Regression preview11
Simple Linear Regression preview12
Simple Linear Regression preview13
Simple Linear Regression preview14
Simple Linear Regression preview15

Simple Linear Regression preview17

Simple Linear Regression preview17

About

Implementation of Simple Linear Regression Model (SLR) or Linear Model (LM) or Linear Regression using R Language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages