SIMPLE LINEAR REGRESSION. 2 Simple Regression Linear Regression.

Slides:



Advertisements
Similar presentations
Simple Linear Regression and Correlation by Asst. Prof. Dr. Min Aung.
Advertisements

11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Forecasting Using the Simple Linear Regression Model and Correlation
13- 1 Chapter Thirteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Regresi Linear Sederhana Pertemuan 01 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
11 Simple Linear Regression and Correlation CHAPTER OUTLINE
Learning Objectives Copyright © 2004 John Wiley & Sons, Inc. Bivariate Correlation and Regression CHAPTER Thirteen.
Learning Objectives 1 Copyright © 2002 South-Western/Thomson Learning Data Analysis: Bivariate Correlation and Regression CHAPTER sixteen.
Correlation and Regression
© The McGraw-Hill Companies, Inc., 2000 CorrelationandRegression Further Mathematics - CORE.
Chapter 12 Simple Linear Regression
Linear Regression and Correlation
Lesson #32 Simple Linear Regression. Regression is used to model and/or predict a variable; called the dependent variable, Y; based on one or more independent.
SIMPLE LINEAR REGRESSION
Correlation and Regression. Correlation What type of relationship exists between the two variables and is the correlation significant? x y Cigarettes.
SIMPLE LINEAR REGRESSION
Korelasi dalam Regresi Linear Sederhana Pertemuan 03 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Simple Linear Regression Analysis
Relationships Among Variables
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Lecture 5 Correlation and Regression
Correlation and Linear Regression
SIMPLE LINEAR REGRESSION
Introduction to Linear Regression and Correlation Analysis
Linear Regression and Correlation
EQT 272 PROBABILITY AND STATISTICS
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
CHAPTER 14 MULTIPLE REGRESSION
INTRODUCTORY LINEAR REGRESSION SIMPLE LINEAR REGRESSION - Curve fitting - Inferences about estimated parameter - Adequacy of the models - Linear.
© The McGraw-Hill Companies, Inc., Chapter 11 Correlation and Regression.
Production Planning and Control. A correlation is a relationship between two variables. The data can be represented by the ordered pairs (x, y) where.
Elementary Statistics Correlation and Regression.
1 Chapter 12 Simple Linear Regression. 2 Chapter Outline  Simple Linear Regression Model  Least Squares Method  Coefficient of Determination  Model.
Y X 0 X and Y are not perfectly correlated. However, there is on average a positive relationship between Y and X X1X1 X2X2.
1 11 Simple Linear Regression and Correlation 11-1 Empirical Models 11-2 Simple Linear Regression 11-3 Properties of the Least Squares Estimators 11-4.
Multiple Regression. Simple Regression in detail Y i = β o + β 1 x i + ε i Where Y => Dependent variable X => Independent variable β o => Model parameter.
Regression Analysis. 1. To comprehend the nature of correlation analysis. 2. To understand bivariate regression analysis. 3. To become aware of the coefficient.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Chapter 12 Simple Linear Regression n Simple Linear Regression Model n Least Squares Method n Coefficient of Determination n Model Assumptions n Testing.
Free Powerpoint Templates ROHANA BINTI ABDUL HAMID INSTITUT E FOR ENGINEERING MATHEMATICS (IMK) UNIVERSITI MALAYSIA PERLIS.
© The McGraw-Hill Companies, Inc., Chapter 10 Correlation and Regression.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Correlation and Regression Elementary Statistics Larson Farber Chapter 9 Hours of Training Accidents.
Free Powerpoint Templates ROHANA BINTI ABDUL HAMID INSTITUT E FOR ENGINEERING MATHEMATICS (IMK) UNIVERSITI MALAYSIA PERLIS.
REGRESSION AND CORRELATION SIMPLE LINEAR REGRESSION 10.2 SCATTER DIAGRAM 10.3 GRAPHICAL METHOD FOR DETERMINING REGRESSION 10.4 LEAST SQUARE METHOD.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 9 l Simple Linear Regression 9.1 Simple Linear Regression 9.2 Scatter Diagram 9.3 Graphical.
Regression and Correlation
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Correlation and Simple Linear Regression
Simple Linear Regression
Relationship with one independent variable
Correlation and Simple Linear Regression
6-1 Introduction To Empirical Models
Correlation and Simple Linear Regression
Correlation and Regression
Relationship with one independent variable
SIMPLE LINEAR REGRESSION
Simple Linear Regression and Correlation
SIMPLE LINEAR REGRESSION
Chapter 14 Inference for Regression
Chapter Thirteen McGraw-Hill/Irwin
St. Edward’s University
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

SIMPLE LINEAR REGRESSION

2 Simple Regression Linear Regression

3 Simple Regression Definition A regression model is a mathematical equation that describes the relationship between two or more variables. A simple regression model includes only two variables: one independent and one dependent. The dependent variable is the one being explained, and the independent variable is the one used to explain the variation in the dependent variable.

4 Linear Regression Definition A (simple) regression model that gives a straight-line relationship between two variables is called a linear regression model.

5 Figure 1 Relationship between food expenditure and income. (a) Linear relationship. (b) Nonlinear relationship. Food Expenditure Income (a) (b) Linear Nonlinear

6 Figure 2 Plotting a linear equation x y = x x = 0 y = 50 x = 10 y = 100 y

7 SIMPLE LINEAR REGRESSION ANALYSIS Scatter Diagram Least Square Line Interpretation of a and b Assumptions of the Regression Model

8 SIMPLE LINEAR REGRESSION ANALYSIS cont. y = A + B x Constant term or y-interceptSlope Independent variable Dependent variable

9 SIMPLE LINEAR REGRESSION ANALYSIS cont. Definition In the regression model y = A + Bx + Є, A is called the y -intercept or constant term, B is the slope, and Є is the random error term. The dependent and independent variables are y and x, respectively.

10 SIMPLE LINEAR REGRESSION ANALYSIS Definition In the model ŷ = a + bx, a and b, which are calculated using sample data, are called the estimates of A and B.

11 Table 1 Incomes (in hundreds of dollars) and Food Expenditures of Seven Households IncomeFood Expenditure

12 Scatter Diagram Definition A plot of paired observations is called a scatter diagram.

13 Figure 4 Scatter diagram. Income Food expenditure First household Seventh household Inco me Food Expendi ture

14 Figure 5 Scatter diagram and straight lines. Income Food expenditure

15 Least Squares Line Figure 6 Regression line and random errors. Income Food expenditure e Regression line

16 OUTPUT SPSS

17 The Least Squares Line a=1,142 b=0,264 Thus, ŷ = x

18

19 Figure 7 Error of prediction. e Predicted = $ Error = -$ Actual = $900 ŷ = x Income Food expenditure

20 Figure. Errors of prediction when regression model is used. Food expenditure Income ŷ = x

21 Interpretation of a and b Interpretation of a Consider the household with zero income ŷ = (0) = $ hundred Thus, we can state that households with no income is expected to spend $ per month on food

22 Interpretation of a and b cont. Interpretation of b The value of b in the regression model gives the change in y due to change of one unit in x We can state that, on average, a $1 increase in income of a household will increase the food expenditure by $0.2642

23 Figure 8 Positive and negative linear relationships between x and y. (a) Positive linear relationship. (b) Negative linear relationship. b > 0 b < 0 y x y x

24 Table 4 xyŷ = xe = y – ŷ

25 Linearitas Test (Uji Validitas Model) ModelSum of Squares Degrees of Freedom (db) Mean Square Value of the test statistic (F Value ) Regression SS reg 1MS reg ResidualSS res n-2MS res TotalSSTN-1 Table. Validity for Simple Regression Model

26 OUTPUT SPSS

27 Figure Nonlinear relations between x and y. (a) (b) y x y x

28 F table,db reg =1 and db res =n-2

29 SIGNIFICANCE KOEFISIEN REGRESI

30

31 Output SPSS

32 Do not reject H 0 Reject H 0 t table = Significan level α = t table =

33 REGRESSION ANALYSIS: COMPLETE EXERCISES Exercise 1: The following data give the experience (in years ) and monthly salary (in hundreds of dollars) of nine randomly selected secretaries.

34 Exercise 1 Experience (years) Monthly salary (Hundreds of dollars)

35 a. Construct a scatter diagram for these data. b. Find the regression line with experience as an independent variable and monthly salary as a dependent variable. c. Give a brief interpretation of the values of a and b calculated in part b. d. Plot the regression line on the scatter diagram of part a and show the errors by drawing vertical lines between the scatter points and the regression line. e. Does the regression model show a linear relationship between experience and monthly salary? Use 5 % significant level. f. Construct a 5 % significant level for b.

36 Exercise 2 A random sample of eight drivers insured with a company and having similar auto insurance policies was selected. The following table lists their driving experience (in years) and monthly auto insurance premiums.

37 Example 2 Driving Experience (years) Monthly Auto Insurance Premium $

38 Scatter diagram and the regression line. e) Insurance premium Experience

39 Solution.. g) The predict value of y for x = 10 is ŷ = – (10) = $61.18

40 Solution ….. i)

41 Solution … j)  H 0 : B = 0  B is not negative  H 1 : B < 0  B is negative

42 Solution …. Area in the left tail = α =.05 df = n – 2 = 8 – 2 = 6 The critical value of t is

43 Figure.. α =.01 Do not reject H 0 Reject H 0 Critical value of t t

44 Solution … From H 0

45 Solution … The value of the test statistic t = It falls in the rejection region Hence, we reject the null hypothesis and conclude that B is negative

46 Figure … t α /2 =.025 Do not reject H 0 Reject H 0 Two critical values of t