UNIVERSITY OF SCIENCE &
TECHNOLOGY CHITTAGONG
Department of Computer Science & Engineering.
Faculty of Science, Engineering & Technology.
SUBMITTED TO:
Fatema Tuj Johora
Senior Lecturer
Department of CSE
FSET, USTC.
SUBMITTED BY:
Joya Bhattacharja
ID No: 17070103
Semester: 6th
Batch: 30th
Course Title:
Artificial Intelligence & Expert System
Course Code: CSE323
FSET, USTC.
Submission Date:
12 July, 2020 1
Presentation On
2
• Machine learning is an application of artificial intelligence (AI) that provides systems the ability to
automatically learn and improve from experience without being explicitly programmed.
• Types of ML are:
Regression:
• A supervised machine learning algorithm.
• A method of modelling a target value based on independent
predictors.
• Statistical tool which is used to find out the relationship between the
outcome variable.
• Simple Linear Regression is also a clssification of regression.
3
Simple Linear Regression
• Simple linear regression is used to estimate the relationship between two quantitative
variables.
• You can use simple linear regression when you want to know:
How strong the relationship is between two variables (e.g. the relationship
between rainfall and soil erosion).
The value of the dependent variable at a certain value of the independent
variable (e.g. the amount of soil erosion at a certain level of rainfall).
• Example:
You are a social researcher interested in the relationship between
income and happiness. You survey 500 people whose incomes range
from $15k to $75k and ask them to rank their happiness on a scale from
1 to 10.
Our independent variable (income) and dependent variable (happiness)
are both quantitative.
So we can do a regression analysis to see if there is a linear relationship
between them.
4
Simple linear regression formula
The formula for a simple linear regression is:
y is the predicted value of the dependent variable (y) for any given value of
the independent variable (x).
B0 is the intercept, the predicted value of y when the x is 0.
B1 is the regression coefficient – how much we expect y to change
as x increases.
x is the independent variable ( the variable we expect is influencing y).
e is the error of the estimate, or how much variation there is in our estimate
of the regression coefficient.
5
Fig: Graph of Simple Linear Regression
6
A regression line can show
A positive linear relationship,
A negative linear relationship,
Or no relationship.
7
Example
Some Simple Linear Regression example
in graph are given below:
8
9
Objectives of the Simple Linear Regression
Simple Linear regression algorithm has mainly two objectives:
Model the relationship between the two variables.
Forecasting new observations.
10
Assumptions of simple linear regression
Simple linear regression is a parametric test, meaning
that it makes certain assumptions about the
data.These assumptions are:
Homogeneity of variance.
Independence of observations.
Normality.
11
Implementation
Implementation of Simple Linear Regression
Algorithm:
Java
Phython
R
C
C++
Type Script
12
Advantages & Disadvantages
Advantages:
• Easy to understand.
• Easier to interpret.
• Easier to implement.
• Best use to less complexity.
• Easily updated with new data.
Disadvantages:
• Prone to outliers.
13
Conclusion
Simple Linear Regression is a great tool to analyze the
relationships among the variables but it isn’t recommended for
most practical applications because it over-simplifies real-world
problems by assuming a linear relationship among the variables.
14
THANK YOU
15
Any Question
16