Chapter 12 Linear Regression and Correlation

Slides:



Advertisements
Similar presentations
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Advertisements

13- 1 Chapter Thirteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
11 Simple Linear Regression and Correlation CHAPTER OUTLINE
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Simple Linear Regression
Chapter 15 (Ch. 13 in 2nd Can.) Association Between Variables Measured at the Interval-Ratio Level: Bivariate Correlation and Regression.
Chapter 10 Simple Regression.
9. SIMPLE LINEAR REGESSION AND CORRELATION
Chapter 12 Simple Regression
Chapter 13 Introduction to Linear Regression and Correlation Analysis
The Simple Regression Model
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 13 Introduction to Linear Regression and Correlation Analysis.
1 Pertemuan 13 Uji Koefisien Korelasi dan Regresi Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
SIMPLE LINEAR REGRESSION
Pengujian Parameter Koefisien Korelasi Pertemuan 04 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter Topics Types of Regression Models
Linear Regression and Correlation Analysis
1 Simple Linear Regression Chapter Introduction In this chapter we examine the relationship among interval variables via a mathematical equation.
Chapter 13 Introduction to Linear Regression and Correlation Analysis
REGRESSION AND CORRELATION
Introduction to Probability and Statistics Linear Regression and Correlation.
SIMPLE LINEAR REGRESSION
Chapter 14 Introduction to Linear Regression and Correlation Analysis
Correlation and Regression Analysis
Simple Linear Regression and Correlation
Chapter 7 Forecasting with Simple Regression
Introduction to Regression Analysis, Chapter 13,
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Regression Chapter 14.
Simple Linear Regression. Introduction In Chapters 17 to 19, we examine the relationship between interval variables via a mathematical equation. The motivation.
Linear Regression/Correlation
Correlation & Regression
SIMPLE LINEAR REGRESSION
Introduction to Linear Regression and Correlation Analysis
Inference for regression - Simple linear regression
Chapter 13: Inference in Regression
Linear Regression and Correlation
Correlation and Linear Regression
Regression Analysis (2)
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Simple Linear Regression Models
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-1 Review and Preview.
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Inferences in Regression and Correlation Analysis Ayona Chatterjee Spring 2008 Math 4803/5803.
© 2003 Prentice-Hall, Inc.Chap 13-1 Basic Business Statistics (9 th Edition) Chapter 13 Simple Linear Regression.
Introduction to Probability and Statistics Chapter 12 Linear Regression and Correlation.
Introduction to Linear Regression
Chap 12-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 12 Introduction to Linear.
EQT 373 Chapter 3 Simple Linear Regression. EQT 373 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value.
1 Chapter 12 Simple Linear Regression. 2 Chapter Outline  Simple Linear Regression Model  Least Squares Method  Coefficient of Determination  Model.
Introduction to Probability and Statistics Thirteenth Edition Chapter 12 Linear Regression and Correlation.
Copyright ©2011 Nelson Education Limited Linear Regression and Correlation CHAPTER 12.
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.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Copyright ©2011 Brooks/Cole, Cengage Learning Inference about Simple Regression Chapter 14 1.
VI. Regression Analysis A. Simple Linear Regression 1. Scatter Plots Regression analysis is best taught via an example. Pencil lead is a ceramic material.
Lecture 10: Correlation and Regression Model.
Agresti/Franklin Statistics, 1 of 88 Chapter 11 Analyzing Association Between Quantitative Variables: Regression Analysis Learn…. To use regression analysis.
Multiple Regression I 1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Multiple Regression Analysis (Part 1) Terry Dielman.
Chapter 8: Simple Linear Regression Yang Zhenlin.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 13 Simple Linear Regression
Regression and Correlation
Statistics for Managers using Microsoft Excel 3rd Edition
Correlation and Regression
SIMPLE LINEAR REGRESSION
SIMPLE LINEAR REGRESSION
Presentation transcript:

Chapter 12 Linear Regression and Correlation General Objectives: In this chapter we consider the situation in which the mean value of a random variable y is related to another variable x. By measuring both y and x for each experimental unit, thereby generating bivariate data, you can use the information provided by x to estimate the average value of y for preassigned values of x. ©1998 Brooks/Cole Publishing/ITP

Specific Topics 1. A simple linear probabilistic model 2. The method of least squares 3. Analysis of variance for linear regression 4. Testing the usefulness of the linear regression model: inferences about b, The ANOVA F Test, and r 2 5. Estimation and prediction using the fitted line 6. Diagnostic tools for checking the regression assumptions 7. Correlation analysis ©1998 Brooks/Cole Publishing/ITP

12.1 Introduction You would expect the college achievement of a student to be a function of several variables: - Rank in high school class - High school’s overall rating - High school GPA - SAT scores The objective is to create a prediction equation that expresses y as a function of these independent variables. This problem was addressed in the discussion of bivariate data. We used the equation a straight line to describe the relationship between x and y and we described the strength of the relation-ship using the correlation coefficient r. ©1998 Brooks/Cole Publishing/ITP

12.2 A Simple Linear Probabilistic Model In predicting the value of a response y based on the value of an independent variable x, the best-fitting line y = a + bx is based on a sample of n bivariate observations drawn from a larger population of measurements, e.g., the height and weight of 100 male students at a given university. To construct a population model to describe the relationship between y and x, assume that y is linearly related to x. Use the deterministic model y = a + b x where a is the y-intercept, the value of y when x = 0 and b is the slope of the line, as shown in Figure 12.1. ©1998 Brooks/Cole Publishing/ITP

Student Test Score Grade 1 39 65 2 43 78 3 21 52 4 64 82 5 57 92 Table 12.1 displays the math achievement test scores for a random sample of n = 10 college freshmen, along with their final calculus grades. A plot appears in Figure 12.2. Table 12.1 Mathematics Final Achievement Calculus Student Test Score Grade 1 39 65 2 43 78 3 21 52 4 64 82 5 57 92 6 47 89 7 28 73 8 75 98 9 34 56 10 52 75 ©1998 Brooks/Cole Publishing/ITP

Figure 12.2 Scatterplot of the data in Table 12.1 ©1998 Brooks/Cole Publishing/ITP

Notice that the points do not lie exactly on a line, but rather seem to be deviations about an underlying line. A simple way to modify the deterministic model is to add a random error component to explain the deviations of the points about the line. A particular response y is described using the probabilistic model y = a + b x + e . The first part of the equation, a + b x—called the line of means— describes the average of y for a given value of x. The error component e allows each individual response y to deviate from the line of means by a small amount. ©1998 Brooks/Cole Publishing/ITP

Assumptions About the Random Error: Assume that the values of e satisfy these conditions: - Are independent in the probabilistic sense - Have a mean of 0 and a common variance equal to s 2 - Have a normal probability distribution These assumptions about the random error e are shown in Figure 12.3 for three fixed values of x. You can use sample information to estimate the values of a and b, which are the coefficients of the line of means, These estimates are used to form the best-fitting line for a given set of data, called the least squares line or regression line. ©1998 Brooks/Cole Publishing/ITP

Figure 12.3 Linear probabilistic model ©1998 Brooks/Cole Publishing/ITP

12.3 The Method of Least Squares The formula for the best-fitting line is where a and b are the estimates of the intercept and slope parameters a and b, respectively. The fitted line for the data in Table 12.1 is shown in Figure 12.4. The vertical lines drawn from the prediction line to each point represent the deviations of the points from the line. ©1998 Brooks/Cole Publishing/ITP

Figure 12.4 Graph of the fitted line and data points in Table 12.1 ©1998 Brooks/Cole Publishing/ITP

Principle of Least Squares: The line that minimizes the sum of squares of the deviations of the observed values of y from those predicted is the best-fitting line. The sum of squared deviations is commonly called the sum of squares for error (SSE) and defined as In Figure 12.4, SSE is the sum of the squared distances represented by the vertical lines. a and b are called the least squared estimators of a and b . ©1998 Brooks/Cole Publishing/ITP

Least Squares Estimators of a and b : where the quantities Sxy and Sxx are defined as and The sum of squares of the x values is found using the shortcut formula in Chapter 2. The sum of the cross-products is the numerator of the covariance defined in Chapter 3. (See Example 12.1 on page 519.) ©1998 Brooks/Cole Publishing/ITP

Making sure that calculations are correct: - Be careful of rounding errors. - Use a scientific or graphing calculator - Use computer software. - Always plot the data and graph the line.

12.4 An Analysis of Variance for Linear Regression In a regression analysis, the response y is related to the independent variable x. The total variation in the response variable y, given by is divided into two portions: - SSR (sum of squares regression) measures the amount of variation explained by using the regression line with one independent variable x - SSE (sum of squares error) measures the “residual” variation in the data that is not explained by the independent variable x ©1998 Brooks/Cole Publishing/ITP

You have: Total SS = SSR + SSE For a particular value of the response yi , you can visualize this breakdown in the variation using the vertical distances illustrated in Figure 12.5: ©1998 Brooks/Cole Publishing/ITP

It is not too hard to show algebraically that SSR is the sum of the squared deviations of the differences between the estimated response without using x and the estimated response using x It is not too hard to show algebraically that Since Total SS = SSR + SSE, you can complete the partition by calculating ©1998 Brooks/Cole Publishing/ITP

The total number of df is n - 1. Each of the sources of variation, divided by the degrees of freedom, provides an estimate of the variation in the experiment. These estimates are called mean squares, MS = SS/df and are displayed in an ANOVA table as shown in Table 12.3 for the general case. The total number of df is n - 1. There is one degree of freedom associated with SSR since the regression line involves estimating one additional parameter. SSE has n - 2df. The mean square error MSE = s 2 = SSE/(n - 2) is an unbiased estimator of the underlying variance s 2. ©1998 Brooks/Cole Publishing/ITP

The first two lines in Figure 12.6 give the least squares line. The best unbiased estimate of The best unbiased estimate of s is This measures the unexplained or “leftover” variation in the experiment. ©1998 Brooks/Cole Publishing/ITP

12.5 Testing the Usefulness of the Linear Regression Model In considering linear regression, you may ask two questions: - Is the independent variable x useful in predicting the response variable y ? - If so, how well does it work? Inferences concerning b. The Slope of the Line of Means - It can be shown that, if the assumptions about the random error e are valid, then the estimator b has a normal distribution in repeated sampling with E(b) = b and standard error given by where s 2 is the variance of the random error e. ©1998 Brooks/Cole Publishing/ITP

Test the Hypothesis Concerning the Slope of a Line: Since the value of s 2 is estimated with s 2 = MSE, you can base inferences on the statistic given by which has a t distribution with df = (n - 2), the degrees of freedom associated with MSE. Test the Hypothesis Concerning the Slope of a Line: 1. Null hypothesis: H 0 : b = b 0 2. Alternative hypothesis: One-Tailed Test Two-Tailed Test H a : b > b 0 H a : b ¹ b 0 (or H a : b < b 0 ) 3. Test statistic: ©1998 Brooks/Cole Publishing/ITP

4. Rejection region: Reject H 0 when One-Tailed Test Two-Tailed Test When the assumptions given in Section 12.2 are satisfied, the test statistic will have a Student’s t distribution with (n - 2) degrees of freedom. 4. Rejection region: Reject H 0 when One-Tailed Test Two-Tailed Test t > ta t > ta/2 or t < -ta/2 (or t < -ta when the alternative hypothesis is H a : b < b 0 ) or when p value < a ©1998 Brooks/Cole Publishing/ITP

See Example 12.2 for an example of a test for a linear relationship. Determine whether there is a significant linear relationship between the calculus grades and test scores listed in Table 12.1. Test at the 5% level of significance. Solution The hypotheses to be tested are H 0 : b = 0 versus H 0 : b ¹ 0 and the observed value of the test statistic is calculated as with (n - 2) = 8 degrees of freedom. ©1998 Brooks/Cole Publishing/ITP

With a =. 05, you can reject H 0 when t > 2. 306 or t < -2. 306 With a =.05, you can reject H 0 when t > 2.306 or t < -2.306. Since the observed value of the test statistic falls into the rejection region, H 0 is rejected and you can conclude that there is a significant linear relationship between the calculus grades and the test scores for the population of college freshmen. ©1998 Brooks/Cole Publishing/ITP

Student Test Score Grade 1 39 65 2 43 78 3 21 52 4 64 82 5 57 92 Table 12.1 Mathematics Final Achievement Calculus Student Test Score Grade 1 39 65 2 43 78 3 21 52 4 64 82 5 57 92 6 47 89 7 28 73 8 75 98 9 34 56 10 52 75 ©1998 Brooks/Cole Publishing/ITP

A (1 - a )100% Confidence Interval for b : b ± ta/2(SE) where ta/2 is based on (n - 2) degrees of freedom and See Example 12.3 for the calculation of confidence intervals. Example 12.3 Find a 95% confidence interval estimate of the slope b for the calculus grade data in Table 12.1. Solution Substituting previously calculated values into ©1998 Brooks/Cole Publishing/ITP

The resulting 95% confidence interval is. 362 to 1. 170 The resulting 95% confidence interval is .362 to 1.170. Since the interval does not contain 0, you can conclude that the true value of b is not 0, and you can reject the null hypothesis H 0 : b = 0 in favor of H a : b ¹ 0, a conclusion that agrees with the findings in Example 12.2. Furthermore, the confidence interval estimate indicates that there is an increase of from as little as .4 to as much as 1.2 points in a calculus test score for each 1-point increase in the achievement test scores. ©1998 Brooks/Cole Publishing/ITP

A Minitab regression analysis appears in Figure 12. 7 A Minitab regression analysis appears in Figure 12.7. This matches Example 12.2. Figure 12.7 ©1998 Brooks/Cole Publishing/ITP

The Analysis of Variance F Test In Figure 12.7, F = MSR/MSE = 19.14 with 1 df for the numerator and (n - 2) = 8 df for the denominator. ©1998 Brooks/Cole Publishing/ITP

Since Total SS = Syy and SSR = Syx / Sxx , you can write Measuring the Strength of the Relationship: The Coefficient of Determination To determine how well the regression model fits, you can use a measure related to the correlation coefficient r : The coefficient of determination is the proportion of the total variation that is explained by the linear regression of y on x. Since Total SS = Syy and SSR = Syx / Sxx , you can write ©1998 Brooks/Cole Publishing/ITP

Interpreting the Results of a Significant Regression Definition: The coefficient of determination r 2 can be interpreted as the percent reduction in the total variation in the experiment obtained by using the regression line = a + bx, instead of ignoring x and using the sample mean to predict the response variable y. Interpreting the Results of a Significant Regression Even if you do reject the null hypothesis that the slope of the line equals 0, it does not necessarily mean that y and x are unrelated. It may be that you have committed a Type II error—falsely declaring that the slope is 0 and that x and y are unrelated. ©1998 Brooks/Cole Publishing/ITP

Fitting the Wrong Model - It may happen that y and x are perfectly related in a nonlinear way as in Figure 12.8. Figure 12.8 ©1998 Brooks/Cole Publishing/ITP

Here are the possibilities: - If observations were taken only with the interval b < x < c, the relationship would appear to be linear with a positive slope. - If observations were taken only with the interval d < x < f, the relationship would appear to be linear with a negative slope. - If observations were taken over the interval c < x < d, the line would be fitted with a slope close to 0, indicating no linear relationship between y and x. ©1998 Brooks/Cole Publishing/ITP

Extrapolation - Problem: To apply the results of a linear regression analysis to values of x that are not included within the range of the fitted data. - Extrapolation can lead to serious errors in prediction, as shown in Figure 12.8. Causality - A significant regression implies that a relationship exists and that it may be possible to predict one variable with another. - However, this in no way implies that one variable causes the other variable. ©1998 Brooks/Cole Publishing/ITP

12.6 Estimation and Prediction Using the Fitted Line Now that you have tested the fitted regression line to make sure that it is useful for prediction, you can use it for one of two purposes: - Estimating the average value of y for a given value of x - Predicting a particular value of y for a given value of x The average value of y is related to x by the line of means shown as a broken line in Figure 12.9. ©1998 Brooks/Cole Publishing/ITP

Figure 12.9 Distribution of y for x = x0 ©1998 Brooks/Cole Publishing/ITP

The variability of our estimator is measured by its standard error. Since the computed values of a and b vary from sample to sample, each new sample produces a different regression line, which can be used either to estimate the line of means or to predict a particular value of y. Figure 12.10 shows one of the possible configurations of the fitted line, the unknown line of means, and a particular value of y. The variability of our estimator is measured by its standard error. is normally distributed with standard error of estimated by ©1998 Brooks/Cole Publishing/ITP

Figure 12.10 Error in estimating E(y | x) and in predicting y ©1998 Brooks/Cole Publishing/ITP

Estimation and testing are based on the statistic You can use the usual form for a confidence interval based on the t distribution: If you examine Figure 12.10, you can see that the error in prediction has two components: - The error in using the fitted line to estimate the line of means - The error caused by the deviation of y from the line of means, measured by s 2 The variance of the difference between y and is the sum of these two variances and forms the basis for the standard error (y - ) used for prediction: ©1998 Brooks/Cole Publishing/ITP

(1 - a)100% Confidence and Prediction Intervals For estimating the average value of y when x = x0 : For predicting a particular value of y when x = x0 : where ta/2 is the value of t with (n - 2) degrees of freedom and area a / 2 to its right. ©1998 Brooks/Cole Publishing/ITP

The test for a 0 intercept is given in Figure 12.11: The Minitab regression command provides an option for either estimation or prediction. See Figure 12.12: ©1998 Brooks/Cole Publishing/ITP

The confidence bands and prediction bands generated by Minitab for the calculus grades data are shown in Figure 12.13: ©1998 Brooks/Cole Publishing/ITP

12.7 Revisiting the Regression Assumptions - The relationship between y and x must be linear, given by the model - The values of the random error term e (1) are independent, (2) have a mean of 0 and a common variance s 2, indepen- dent of x, and (3)are normally distributed. The diagnostic tools for checking these assumptions are the same as those used in Chapter 11, based on the analysis of the residual error. When the error terms are collected at regular time intervals, they may be dependent, and the observations make up a time series whose error terms are correlated. ©1998 Brooks/Cole Publishing/ITP

Other regression assumptions can be checked using residual plots. You can use the plot of residuals versus fit to check for a constant variance as well as to make sure that the linear model is in fact adequate. See Figure 12.14: ©1998 Brooks/Cole Publishing/ITP

The normal probability plot is a graph that plots the residuals against the expected value of that residual if it had come from a normal distribution. The normal probability plot for the residuals in Example 12.1 is given in Figure 12.15: ©1998 Brooks/Cole Publishing/ITP

12.8 Correlation Analysis Pearson Product Moment Coefficient of Correlation: The variances and covariances are given by: In general, when a sample of n individuals or experimental units is selected and two variables are measured on each individual or unit so that both variables are random, the correlation coef- ficient r is the appropriate measure of linearity for use in this situation. See Examples 12.7 and Table 12.4. ©1998 Brooks/Cole Publishing/ITP

using the calculational formulas given earlier in this chapter. Then Example 12.7 The heights and weights of n = 10 offensive backfield football players are randomly selected from a county’s football all-stars. Calculate the correlation coefficient for the heights (in inches) and weights (in pounds) given in Table 12.4. Solution You should use the appropriate data entry method of your scientific calculator to verify the calculations for the sums of squares and cross-products: using the calculational formulas given earlier in this chapter. Then or r =.83. This value of r is fairly close to 1, the largest possible value of r , which indicates a fairly strong positive linear relationship between height and weight. ©1998 Brooks/Cole Publishing/ITP

Table 12.4 Heights and weights of n = 10 backfield all-stars Player Height x Weight y 1 73 185 2 71 175 3 75 200 4 72 210 5 72 190 6 75 195 7 67 150 8 69 170 9 71 180 10 69 175 ©1998 Brooks/Cole Publishing/ITP

Therefore, the correlation coefficient has these general properties: There is a direct relationship between the calculation formulas for the correlation coefficient r and the slope of the regression line b. Since the numerator of both quantities is Sxy, both r and b have the same sign. Therefore, the correlation coefficient has these general properties: - When r = 0, the slope is 0, and there is no linear relationship between x and y. - When r is positive, so is b, and there is a positive relationship between x and y. - When r is negative, so is b, and there is a negative relationship between x and y. Figure 12.16 shows four typical scatter plots and their associated correlation coefficients. ©1998 Brooks/Cole Publishing/ITP

Figure 12.16 Some typical scatterplots ©1998 Brooks/Cole Publishing/ITP

The population correlation coefficient r is calculated and interpreted as it is in the sample. The experimenter can test the hypothesis that there is no correlation between the variables x and y using a test statistic that is exactly equivalent to the test of the slope b in Section 12.5. ©1998 Brooks/Cole Publishing/ITP

Test of Hypothesis Concerning the correlation Coefficient r : 1. Null hypothesis: H 0 : r = 0 2. Alternative hypothesis: One-Tailed Test Two-Tailed Test H a : r > 0 H a : r ¹ 0 (or H a : r < 0) 3. Test statistic: When the assumptions given in Section 12.2 are satisfied, the test statistic will have a Student’s t distribution with (n - 2) degrees of freedom. ©1998 Brooks/Cole Publishing/ITP

4. Rejection region: Reject H 0 when One-Tailed Test Two-Tailed Test t > ta t > ta/2 or t < - ta/2 (or t < -ta when the alternative hypothesis is H a : r < 0 ) or p-value < a The values of ta and ta/2 are given in Table 4 in Appendix I. Use the values of r corresponding to (n - 2) degrees of freedom. Example 12.8 Refer to the height and weight data in Example 12.7. The correlation of height and weight was calculated to be r =.8261. Is this correlation significantly different from 0? ©1998 Brooks/Cole Publishing/ITP

the value of the test statistic is Solution To test the hypotheses the value of the test statistic is which for n = 10 has a t distribution with 8 degrees of freedom. Since this value is greater than t.005 = 3.355, the two-tailed p-value is less than 2(.005) = .01, and the correlation is declared significant at the 1% level (P < .01). The value r 2 = .82612 = .6824 means that about 68% of the variation in one of the variables is explained by the other. The Minitab printout n Figure 12.17 displays the correlation r and the exact p-value for testing its significance. r is a measure of linear correlation and x and y could be perfectly related by some curvilinear function when the observed value of r is equal to 0. ©1998 Brooks/Cole Publishing/ITP

Key Concepts and Formulas I. A Linear Probabilistic Model 1. When the data exhibit a linear relationship, the appropriate model is y = a + b x + e . 2. The random error e has a normal distribution with mean 0 and variance s 2. II. Method of Least Squares 1. Estimates a and b, for a and b, are chosen to minimize SSE, The sum of the squared deviations about the regression line, ©1998 Brooks/Cole Publishing/ITP

2. The least squares estimates are b = Sxy / Sxx and III. Analysis of Variance 1. Total SS = SSR + SSE, where Total SS = Syy and SSR = (Sxy)2 / Sxx. 2. The best estimate of s 2 is MSE = SSE / (n - 2). IV. Testing, Estimation, and Prediction 1. A test for the significance of the linear regression—H0 : b = 0 can be implemented using one of the two test statistics: ©1998 Brooks/Cole Publishing/ITP

which gets closer to 1 as the relationship gets stronger. 2. The strength of the relationship between x and y can be measured using which gets closer to 1 as the relationship gets stronger. 3. Use residual plots to check for nonnormality, inequality of variances, and an incorrectly fit model. 4. Confidence intervals can be constructed to estimate the intercept a and slope b of the regression line and to estimate the average value of y, E( y ), for a given value of x. 5. Prediction intervals can be constructed to predict a particular observation, y, for a given value of x. For a given x, prediction intervals are always wider than confidence intervals. ©1998 Brooks/Cole Publishing/ITP

V. Correlation Analysis 1. Use the correlation coefficient to measure the relationship between x and y when both variables are random: 2. The sign of r indicates the direction of the relationship; r near 0 indicates no linear relationship, and r near 1 or -1 indicates a strong linear relationship. 3. A test of the significance of the correlation coefficient is identical to the test of the slope b. ©1998 Brooks/Cole Publishing/ITP