Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 3: Introductory Linear Regression

Similar presentations


Presentation on theme: "Chapter 3: Introductory Linear Regression"— Presentation transcript:

1 Chapter 3: Introductory Linear Regression
Chapter Outline 3.1 Simple Linear Regression Scatter Plot/Diagram Simple Linear Regression Model 3.2 Inferences About Estimated Parameters 3.3 Adequacy of the model coefficient of determination 3.4 Pearson Product Moment Correlation Coefficient 3.5 Test for Linearity of Regression 3.6 ANOVA Approach Testing for Linearity of Regression

2 INTRODUCTION TO LINEAR REGRESSION
Regression – is a statistical procedure for establishing the r/ship between 2 or more variables. This is done by fitting a linear equation to the observed data. The regression line is used by the researcher to see the trend and make prediction of values for the data. There are 2 types of relationship: Simple ( 2 variables) Multiple (more than 2 variables)

3 Many problems in science and engineering involve exploring the relationship between two or more variables. Two statistical techniques: Regression Analysis Computing the Correlation Coefficient (r). Linear regression - study on the linear relationship between two or more variables. This is done by fitting a linear equation to the observed data. The linear equation is then used to predict values for the data.

4 In simple linear regression only two variables are involved:
X is the independent variable. Y is dependent variable. The correlation coefficient (r ) tells us how strongly two variables are related.

5 a) X is the carbohydrate intake (independent variable).
Example 3.1: 1) A nutritionist studying weight loss programs might wants to find out if reducing intake of carbohydrate can help a person reduce weight. a) X is the carbohydrate intake (independent variable). b) Y is the weight (dependent variable). 2) An entrepreneur might want to know whether increasing the cost of packaging his new product will have an effect on the sales volume. a) X is cost b) Y is sales volume

6 3.1 SIMPLE LINEAR REGRESSION MODEL
Linear regression model is a model that expresses the linear relationship between two variables. The simple linear regression model is written as: where ;

7 This regression line is estimated from the data collected by fitting a straight line to the data set and getting the equation of the straight line,

8 3.3 INFERENCES ABOUT ESTIMATED PARAMETERS
LEAST SQUARES METHOD The Least Square method is the method most commonly used for estimating the regression coefficients The straight line fitted to the data set is the line: where is the estimated value of y for a given value of X.

9 y-Intercept for the Estimated Regression Equation,

10 ii) Slope for the Estimated Regression Equation,

11 Example 3.3: Students Score In MATHEMATICS
The data below represent scores obtained by ten students in subject Mathematics 1 and Mathematics 2. Math 1, x 65 63 76 46 68 72 57 36 96 Math 2, y 66 86 48 71 42 87 Develop an estimated linear regression model with “Math 1” as the independent variable and “Math 2” as the dependent variable. Predict the score a student would obtain “Math 2” if he scored 60 marks in “Math 1”.

12

13

14 Exercise 3.1: INCOME, x FOOD EXPENDITURE, y 55 14 83 24 38 13 61 16 33 9 49 15 67 17 a) Fit a linear regression model with income as the independent variable and food expenditure as the dependent variable. Predict the food expenditure if income is 50. Answer:

15 Exercise 3.2:

16 3.4 ADEQUACY OF THE MODEL COEFFICIENT OF DETERMINATION( )
The coefficient of determination is a measure of the variation of the dependent variable (Y) that is explained by the regression line and the independent variable (X). The symbol for the coefficient of determination is or If =0.90, then =0.81. It means that 81% of the variation in the dependent variable (Y) is accounted for by the variations in the independent variable (X).

17 The rest of the variation, 0
The rest of the variation, 0.19 or 19%, is unexplained and called the coefficient of non determination. Formula for the coefficient of non determination is

18 The coefficient of determination is:
where: SSR = sum of squares due to regression SST = total sum of squares

19 3.5 PEARSON PRODUCT MOMENT CORRELATION COEFFICIENT (r)
Correlation measures the strength of a linear relationship between the two variables. Also known as Pearson’s product moment coefficient of correlation. The symbol for the sample coefficient of correlation is (r) Formula : or

20 Properties of (r): Values of r close to 1 implies there is a strong positive linear relationship between x and y. Values of r close to -1 implies there is a strong negative linear relationship between x and y. Values of r close to 0 implies little or no linear relationship between x and y.

21 Example 3.4: Refer Previous Example 3.2,
Calculate the value of r and interpret its meaning. Solution: Thus, there is a strong positive linear relationship between score obtain Math 1 (x) and Math 2 (y).

22 Exercise 3.3: Refer to previous Exercise 3.1 and Exercise 3.2, calculate coefficient correlation and interpret the results.

23 3.6 TEST FOR LINEARITY OF REGRESSION
To test the existence of a linear relationship between two variables x and y, we proceed with testing the hypothesis. Two test are commonly used: (i) (ii) t -Test F -Test

24 (i) t-Test 1. Determine the hypotheses. ( no linear r/ship)
(exist linear r/ship) 2. Compute Critical Value/ level of significance. 3. Compute the test statistic.

25 4. Determine the Rejection Rule.
Reject H0 if : p-value < a 5.Conclusion. There is a significant relationship between variable X and Y.

26 Example 3.5: Refer Previous Example 3.3,
Test to determine if their scores before and after the trip is related. Use a=0.05 Solution: 1) 2) ( no linear r/ship) (exist linear r/ship)

27 3) 4) Rejection Rule: 5) Conclusion: Thus, we reject H0. The score before (x) is linear relationship to the score after (y) the trip.

28 Exercise 3.4:

29 Exercise 3.5:

30 (ii) F-Test 1. Determine the hypotheses. ( no linear r/ship)
(exist linear r/ship) 2. Specify the level of significance. 3. Compute the test statistic. F = MSR/MSE - this value can get from ANOVA table 4. Determine the Rejection Rule. Reject H0 if : p-value < a F test >

31 5.Conclusion. There is a significant relationship between variable X and Y.

32 3.7 ANOVA APPROACH FOR TESTING LINEARITY OF REGRESSION
The analysis of variance (ANOVA) method is an approach to test the significance of the regression. We can arrange the test procedure using this approach in an ANOVA table as shown below;

33 Example 3.6: The manufacturer of Cardio Glide exercise equipment wants to study the relationship between the number of months since the glide was purchased and the length of time (hours) the equipment was used last week. At , test whether there is a linear relationship between the variables.

34 Solution: Hypothesis: F-distribution table: Test Statistic:
F = MSR/MSE = Rejection region: Since F statistic > F table (17.303> ), we reject H0 5) Thus, there is a linear relationship between the variables (month X and hours Y).

35 EXERCISE 3.6: An agricultural scientist planted alfalfa on several plots of land, identical except for the soil pH. Following are the dry matter yields (in pounds per acre) for each plot. pH Yield 4.6 1056 4.8 1833 5.2 1629 5.4 1852 5.6 1783 5.8 2647 6.0 2131

36 Compute the estimated regression line for predicting Yield from pH.
If the pH is increased by 0.1, by how much would you predict the yield to increase or decrease? For what pH would you predict a yield of 1500 pounds per acre? Calculate coefficient correlation, and interpret the results. Answer :


Download ppt "Chapter 3: Introductory Linear Regression"

Similar presentations


Ads by Google