aravali college of engineering and management, faridabad

20
Aravali College of Engineering and Management, Faridabad Department of Computer Science & Engineering (July – Dec 2020) 04/29/2022 1

Upload: aasthakohli

Post on 15-Sep-2020

1 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Aravali college of Engineering and management, Faridabad

Aravali College of Engineering and Management,

Faridabad

Department of Computer Science & Engineering

(July – Dec 2020)

05/22/2023 1

Page 2: Aravali college of Engineering and management, Faridabad
Page 3: Aravali college of Engineering and management, Faridabad
Page 4: Aravali college of Engineering and management, Faridabad
Page 5: Aravali college of Engineering and management, Faridabad
Page 6: Aravali college of Engineering and management, Faridabad
Page 7: Aravali college of Engineering and management, Faridabad
Page 8: Aravali college of Engineering and management, Faridabad

Introduction to Regression Analysis

Slide-8

Regression analysis is used to: Predict the value of a dependent variable based on the

value of at least one independent variable Explain the impact of changes in an independent

variable on the dependent variable

Dependent variable: the variable we wish to predict or explain

Independent variable: the variable used to explainthe dependent variable

Page 9: Aravali college of Engineering and management, Faridabad

Simple Linear Regression Model

Slide-9

Only one independent variable, X Relationship between X and Y

is described by a linear function Changes in Y are assumed to be

caused by changes in X

Page 10: Aravali college of Engineering and management, Faridabad

Types of Relationships

Slide-10

Y

Y

X

Y

Y

X

Linear relationships Curvilinear relationships

X X

Page 11: Aravali college of Engineering and management, Faridabad

Types of Relationships

Slide-11

Y

Y

X

Y

Y

X

Strong relationships Weak relationships

(continued)

X X

Page 12: Aravali college of Engineering and management, Faridabad

Types of Relationships

Slide-12

Y

X

Y

X

No relationship(continued)

Page 13: Aravali college of Engineering and management, Faridabad

Yi β0 β1Xi

Linear component

Simple Linear Regression Model

Slide-13

Population Yintercept

Population Slope Coefficient

Random Error term

Dependent Variable

Independent Variable

εi

Random Error component

Page 14: Aravali college of Engineering and management, Faridabad

Random Errorifor this X value

X

YObserved Value

of Y for Xi

Predicted Valueof Y for Xi

Yi β0 β1Xi εi

Xi

Slope = β1

Simple Linear Regression Model

(continued)

Slide-14

Intercept = β0

εi

Page 15: Aravali college of Engineering and management, Faridabad

Yˆi b0

b1Xi

The simple linear regression equation provides an estimate of the population regression line

Simple Linear Regression Equation (Prediction Line)

Slide-15

Estimate of the regression

intercept

Estimate of the regression slope

Estimated(or predicted) Y value forobservation i

Value of X for observation i

The individual random error terms ei have a mean of zero

Page 16: Aravali college of Engineering and management, Faridabad

Sample Data for House Price Model

Slide-16

House Price in $1000s (Y)

Square Feet (X)

245 1400312 1600279 1700308 1875199 1100219 1550405 2350324 2450319 1425255 1700

Page 17: Aravali college of Engineering and management, Faridabad

Regression Using Excel

Slide-17

Tools / Data Analysis / Regression

Page 18: Aravali college of Engineering and management, Faridabad

Assumptions of Regression

Department of Statistics, ITS Surabaya Slide-18

Use the acronym LINE: Linearity

The underlying relationship between X and Y is linear

Independence of Errors Error values are statistically independent

Normality of Error Error values (ε) are normally distributed for any given value of

X

Equal Variance (Homoscedasticity) The probability distribution of the errors has constant

variance

Page 19: Aravali college of Engineering and management, Faridabad

Pitfalls of Regression Analysis

Department of Statistics, ITS Surabaya Slide-19

Lacking an awareness of the assumptions underlying least-squares regression

Not knowing how to evaluate the assumptions

Not knowing the alternatives to least-squares regression if a particular assumption is violated

Using a regression model without knowledge of the subject matter

Extrapolating outside the relevant range

Page 20: Aravali college of Engineering and management, Faridabad

05/22/2023 20

Aravali College of Engineering And ManagementJasana, Tigoan Road, Neharpar, Faridabad, Delhi NCR

Toll Free Number : 91- 8527538785Website : www.acem.edu.in