Regression analysis ppt

33
PRESENTATION ON REGRESSION ANALYSIS

description

 

Transcript of Regression analysis ppt

Page 1: Regression analysis ppt

PRESENTATION ON

REGRESSION ANALYSIS

Page 2: Regression analysis ppt

Definition

The Regression Analysis is a technique of studying the dependence of one variable (called

dependant variable), on one or more variables (called explanatory variable), with a view to

estimate or predict the average value of the dependent variables in terms of the known or

fixed values of the independent variables.

THE REGRESSION TECHNIQUE IS PRIMARILY USED TO :

• Estimate the relationship that exists, on the average, between the dependent variable and the

explanatory variable

• Determine the effect of each of the explanatory variables on the dependent variable,

controlling the effects of all other explanatory variables

• Predict the value of dependent variable for a given value of the explanatory variable

Page 3: Regression analysis ppt

Assumptions of the Linear Regression Model

1. Linear Functional form2. Fixed independent variables3. Independent observations4. Representative sample and proper specification of the model

(no omitted variables)5. Normality of the residuals or errors6. Equality of variance of the errors (homogeneity of residual

variance)7. No multicollinearity8. No autocorrelation of the errors9. No outlier distortion

Page 4: Regression analysis ppt

• Regression analysis is the most often applied technique of statistical analysis and modeling.

• If two variables are involved, the variable that is the basis of the estimation, is conventionally called the independent variable and the variable whose value is to be estimated+ is called the dependent variable.

• In general, it is used to model a response variable (Y) as a function of one or more driver variables (X1, X2, ..., Xp).

• The functional form used is:

Yi = 0 + 1X1i + 2X2i + ... + pXpi +

• The dependent variable is variously known as explained variables, predictand, response and endogenous variables.

• While the independent variable is known as explanatory, regressor and exogenous variable.

Introduction to Regression Analysis

Page 5: Regression analysis ppt

Derivation of the Intercept

n n n

i i ii i i

n n n n

i i i ii i i i

n

ii

n n n

i i ii i i

a y b x

n n

i ii i

y a bx e

e y a bx

e y a b x

Because by definition e

y a b x

na y b x

a y bx

1 1 1

1 1 1 1

1

1 1 1

1 1

0

0

Page 6: Regression analysis ppt

The term in the model is referred to as a “random

error term” and may reflect a number of things

including the general idea that knowledge of the

driver variables will not ordinarily lead to perfect

reconstruction of the response.

Page 7: Regression analysis ppt

• If there is only one driver variable, X, then we usually speak of “simple” linear regression analysis.

• When the model involves • (a) multiple driver variables,

• (b) a driver variable in multiple forms, or

• (c) a mixture of these, the we speak of “multiple linear regression analysis”.

• The “linear” portion of the terminology refers to the response variable being expressed as a “linear combination” of the driver variables.

Page 8: Regression analysis ppt

In regression analysis, the data used to describe the relationship between the

variables are primarily measured on interval scale. the chief advantage of

using the interval level of measurement is that, with such data it is possible

to describe the relationship between variables more exactly employing

mathematical equation. This in turn allows more accurate prediction of one

variable from the knowledge of the other variables, which is one of the most

important objectives of regression analysis.

Page 9: Regression analysis ppt

It is important to note that if the relationship between X and

Y is curvilinear , the regression line will be a curved line

rather than straight line. The greater the strength of

relationships between X and Y the better is the prediction.

Page 10: Regression analysis ppt

The problem is presented to the mathematician as follows: "The values of a and b in the linear model Y'i = a + b Xi are to be found which minimize the algebraic expression ."The mathematician begins as follows:

Page 11: Regression analysis ppt

The result becomes:

Using a similar procedure to find the value of a yields:

Page 12: Regression analysis ppt

Yi Xi2 XiYi

  13 23 169 299

  20 18 400 360

  10 35 100 350

  33 10 1089 330

  15 27 225 405

SUM 91 113 1983 1744

Page 13: Regression analysis ppt
Page 14: Regression analysis ppt

THE REGRESSION MODEL

The situation using the regression model is analogous to that of the interviewers, except instead of using interviewers, predictions are made by performing a linear transformation of the predictor variable. Rather than interviewers in the above example, the predicted value would be obtained by a linear transformation of the score. The prediction takes the form

where a and b are parameters in the regression model.

Page 15: Regression analysis ppt

Types of regression analysis:Regression analysis is generally classified into two kinds: simple and multiple. Simple regression involves only two variables, one of which is dependent variable and the other Is explanatory(independent) variable. The associated model in the case of simple regression will be a simple regression model.

•A regression analysis may involve a linear model or a nonlinear model.The term linear can be interpreted in two different ways: 1.Linear in variable2. Linearity in the parameter

Page 16: Regression analysis ppt

Model assumptions are stated in terms of the random errors, , as follows:the errors are normally distributed,with mean = zero, andconstant variance 2

, that does not depend on the settings of the driver variables, and

the errors are independent of one another.This is often summarized symbolically as:   is NID(0, 2

)

Regression Analysis: Model Assumptions

Page 17: Regression analysis ppt

In linear regression, the model specification is that the dependent variable, yi is a linear combination of the parameters (but need not be linear in the independent variables). For example, in simple linear regression for modeling n data points there is one independent variable: xi, and two parameters, β0 and β1:

LINEAR REGRESSION

Fig: Illustration of linear regression on a data set

Page 18: Regression analysis ppt

In the case of simple regression, the formulas for the least squares estimates are

Page 19: Regression analysis ppt
Page 20: Regression analysis ppt
Page 21: Regression analysis ppt
Page 22: Regression analysis ppt
Page 23: Regression analysis ppt
Page 24: Regression analysis ppt

Regression Analysis: Model BuildingRegression Analysis: Model BuildingGeneral Linear ModelDetermining When to Add or Delete VariablesAnalysis of a Larger ProblemMultiple Regression Approach to Analysis of Variance

Page 25: Regression analysis ppt

General Linear ModelGeneral Linear Model

Models in which the parameters (β0, β1, . . . , βp) all have exponents of one are called linear models.

First-Order Model with One Predictor Variable

y x 0 1 1y x 0 1 1

Page 26: Regression analysis ppt

Variable Selection ProceduresVariable Selection Procedures

Stepwise RegressionForward SelectionBackward Elimination

Iterative; one independent variable at a time is added ordeleted Based on the F statistic

Page 27: Regression analysis ppt

Variable Selection ProceduresVariable Selection ProceduresF TestTo test whether the addition of x2 to a

model involving x1 (or the deletion of x2 from a model involving x1and x2) is statistically significant

                

F0=MSR/MSRes

(MSR=SSR/K) The p-value corresponding to the F statistic

is the criterion used to determine if a variable should be added or deleted

(SSE(reduced)-SSE(full))/ number of extra termsMSE(full)

F (SSE(reduced)-SSE(full))/ number of extra terms

MSE(full)F

Page 28: Regression analysis ppt

Forward SelectionForward Selection

This procedure is similar to stepwise-regression, but does not permit a variable to be deleted.

This forward-selection procedure starts with no independent variables.

It adds variables one at a time as long as a significant reduction in the error sum of squares (SSE) can be achieved.

Page 29: Regression analysis ppt

Backward EliminationBackward EliminationThis procedure begins with a model that includes

all the independent variables the modeler wants considered.

It then attempts to delete one variable at a time by determining whether the least significant variable currently in the model can be removed because its p-value is less than the user-specified or default value.

Once a variable has been removed from the model it cannot re enter at a subsequent step.

Page 30: Regression analysis ppt

Stepwise regression:

Procedure of simultaneous forward and backward selection also available In a stepwise regression, predictor variables are entered into the regression equation one at a time based upon statistical criteria. At each step in the analysis the predictor variable that contributes the most to the prediction equation in terms of increasing the multiple correlation, R, is entered first. This process is continued only if additional variables add anything statistically to the regression equation.

Page 31: Regression analysis ppt

THANK YOU….

Uses of Regression Analysis

1.Regression analysis helps in establishing a functional Relationship between two or more variables.

2. Since most of the problems of economic analysis are based on cause and effect relationships, the regression analysis is a highly valuable tool in economic and business research.

3. Regression analysis predicts the values of dependent variables from the values of independent variables.

4. We can calculate coefficient of correlation (r) and coefficient of determination (R2) with the help of regression coefficients.

Page 32: Regression analysis ppt

References

• Fox, J. D. (1984). Linear Statistical Models and Related Methods. New York: Wiley. [Chapter 5 is an excellent introduction to logistic regression]

• Hosmer, D.W., & Lemeshow, S. (1989). Applied Logistic Regression. New York: Wiley.

• Walsh, A. Teaching understanding and interpretation of logit regression. Teaching Sociology, 15:178-183, 1987.

• Whitemore, A.S. (1981). "Sample size for logistic regression with small response probability" JASA, 76, 27-32.

•      Cook, R. D. (1979), "Influential Observations in Linear Regression," Journal of the American Statistical Association, 74, 169–174. 

Page 33: Regression analysis ppt

THANK YOU FOR LISTENING