Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.

Презентация:



Advertisements
Похожие презентации
Chap 13-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 13 Multiple Regression Statistics for Business and Economics.
Advertisements

Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Chap 8-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 8 Estimation: Single Population Statistics for Business and Economics.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
Chap 15-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 15 Nonparametric Statistics Statistics for Business and Economics.
Chap 17-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 17 Analysis of Variance Statistics for Business and Economics.
Chap 10-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 10 Hypothesis Testing Statistics for Business and Economics.
Chap 7-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 7 Sampling and Sampling Distributions Statistics for Business.
Chap 14-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 14 Additional Topics in Regression Analysis Statistics for Business.
Chap 3-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 3 Describing Data: Numerical Statistics for Business and Economics.
Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 1-1 Chapter 1 Why Study Statistics? Statistics for Business and Economics.
Time-Series Analysis and Forecasting – Part IV To read at home.
Time-Series Analysis and Forecasting – Part V To read at home.
1 Another useful model is autoregressive model. Frequently, we find that the values of a series of financial data at particular points in time are highly.
Chap 5-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 5 Discrete Random Variables and Probability Distributions Statistics.
Correlation. In statistics, dependence refers to any statistical relationship between two random variables or two sets of data. Correlation refers to.
Business Statistics 1-1 Chapter Two Describing Data: Frequency Distributions and Graphic Presentation GOALS When you have completed this chapter, you will.
Time-Series Analysis and Forecasting – Part II Lecture on the 5 th of October.
Time-Series Analysis and Forecasting Lecture on the 5 th of October.
Транксрипт:

Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6 th Edition

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-2 Chapter Goals After completing this chapter, you should be able to: Explain the correlation coefficient and perform a hypothesis test for zero population correlation Explain the simple linear regression model Obtain and interpret the simple linear regression equation for a set of data Describe R 2 as a measure of explanatory power of the regression model Understand the assumptions behind regression analysis

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-3 Chapter Goals After completing this chapter, you should be able to: Explain measures of variation and determine whether the independent variable is significant Calculate and interpret confidence intervals for the regression coefficients Use a regression equation for prediction Form forecast intervals around an estimated Y value for a given X Use graphical analysis to recognize potential problems in regression analysis (continued)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-4 Correlation Analysis Correlation analysis is used to measure strength of the association (linear relationship) between two variables Correlation is only concerned with strength of the relationship No causal effect is implied with correlation Correlation was first presented in Chapter 3

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-5 Correlation Analysis The population correlation coefficient is denoted ρ (the Greek letter rho) The sample correlation coefficient is where

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-6 To test the null hypothesis of no linear association, the test statistic follows the Students t distribution with (n – 2 ) degrees of freedom: Hypothesis Test for Correlation

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-7 Lower-tail test: H 0 : ρ 0 H 1 : ρ < 0 Upper-tail test: H 0 : ρ 0 H 1 : ρ > 0 Two-tail test: H 0 : ρ = 0 H 1 : ρ 0 Hypothesis Test for Correlation Decision Rules /2 -t -t /2 t t /2 Reject H 0 if t < -t n-2, Reject H 0 if t > t n-2, Reject H 0 if t < -t n-2, or t > t n-2, Where has n - 2 d.f.

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-8 Introduction to Regression Analysis 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 explain (also called the endogenous variable) Independent variable: the variable used to explain the dependent variable (also called the exogenous variable)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap 12-9 Linear Regression Model The relationship between X and Y is described by a linear function Changes in Y are assumed to be caused by changes in X Linear regression population equation model Where 0 and 1 are the population model coefficients and is a random error term.

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Linear component Simple Linear Regression Model The population regression model: Population Y intercept Population Slope Coefficient Random Error term Dependent Variable Independent Variable Random Error component

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap (continued) Random Error for this X i value Y X Observed Value of Y for X i Predicted Value of Y for X i XiXi Slope = β 1 Intercept = β 0 εiεi Simple Linear Regression Model

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap The simple linear regression equation provides an estimate of the population regression line Simple Linear Regression Equation Estimate of the regression intercept Estimate of the regression slope Estimated (or predicted) y value for observation i Value of x for observation i The individual random error terms e i have a mean of zero

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Least Squares Estimators b 0 and b 1 are obtained by finding the values of b 0 and b 1 that minimize the sum of the squared differences between y and : Differential calculus is used to obtain the coefficient estimators b 0 and b 1 that minimize SSE

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap The slope coefficient estimator is And the constant or y-intercept is The regression line always goes through the mean x, y Least Squares Estimators (continued)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Finding the Least Squares Equation The coefficients b 0 and b 1, and other regression results in this chapter, will be found using a computer Hand calculations are tedious Statistical routines are built into Excel Other statistical analysis software can be used

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Linear Regression Model Assumptions The true relationship form is linear (Y is a linear function of X, plus random error) The error terms, ε i are independent of the x values The error terms are random variables with mean 0 and constant variance, σ 2 (the constant variance property is called homoscedasticity) The random error terms, ε i, are not correlated with one another, so that

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap b 0 is the estimated average value of y when the value of x is zero (if x = 0 is in the range of observed x values) b 1 is the estimated change in the average value of y as a result of a one-unit change in x Interpretation of the Slope and the Intercept

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Simple Linear Regression Example A real estate agent wishes to examine the relationship between the selling price of a home and its size (measured in square feet) A random sample of 10 houses is selected Dependent variable (Y) = house price in $1000s Independent variable (X) = square feet

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Sample Data for House Price Model House Price in $1000s (Y) Square Feet (X)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Graphical Presentation House price model: scatter plot

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Regression Using Excel Tools / Data Analysis / Regression

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations10 ANOVA dfSSMSFSignificance F Regression Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet The regression equation is:

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Graphical Presentation House price model: scatter plot and regression line Slope = Intercept =

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Interpretation of the Intercept, b 0 b 0 is the estimated average value of Y when the value of X is zero (if X = 0 is in the range of observed X values) Here, no houses had 0 square feet, so b 0 = just indicates that, for houses within the range of sizes observed, $98, is the portion of the house price not explained by square feet

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Interpretation of the Slope Coefficient, b 1 b 1 measures the estimated change in the average value of Y as a result of a one- unit change in X Here, b 1 = tells us that the average value of a house increases by.10977($1000) = $109.77, on average, for each additional one square foot of size

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Measures of Variation Total variation is made up of two parts: Total Sum of Squares Regression Sum of Squares Error Sum of Squares where: = Average value of the dependent variable y i = Observed values of the dependent variable i = Predicted value of y for the given x i value

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap SST = total sum of squares Measures the variation of the y i values around their mean, y SSR = regression sum of squares Explained variation attributable to the linear relationship between x and y SSE = error sum of squares Variation attributable to factors other than the linear relationship between x and y (continued) Measures of Variation

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap (continued) xixi y X yiyi SST = (y i - y) 2 SSE = (y i - y i ) 2 SSR = (y i - y) 2 _ _ _ y Y y _ y Measures of Variation

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap The coefficient of determination is the portion of the total variation in the dependent variable that is explained by variation in the independent variable The coefficient of determination is also called R-squared and is denoted as R 2 Coefficient of Determination, R 2 note:

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap r 2 = 1 Examples of Approximate r 2 Values Y X Y X r 2 = 1 Perfect linear relationship between X and Y: 100% of the variation in Y is explained by variation in X

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Examples of Approximate r 2 Values Y X Y X 0 < r 2 < 1 Weaker linear relationships between X and Y: Some but not all of the variation in Y is explained by variation in X

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Examples of Approximate r 2 Values r 2 = 0 No linear relationship between X and Y: The value of Y does not depend on X. (None of the variation in Y is explained by variation in X) Y X r 2 = 0

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations10 ANOVA dfSSMSFSignificance F Regression Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet % of the variation in house prices is explained by variation in square feet

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Correlation and R 2 The coefficient of determination, R 2, for a simple regression is equal to the simple correlation squared

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Estimation of Model Error Variance An estimator for the variance of the population model error is Division by n – 2 instead of n – 1 is because the simple regression model uses two estimated parameters, b 0 and b 1, instead of one is called the standard error of the estimate

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations10 ANOVA dfSSMSFSignificance F Regression Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Comparing Standard Errors YY X X s e is a measure of the variation of observed y values from the regression line The magnitude of s e should always be judged relative to the size of the y values in the sample data i.e., s e = $41.33K is moderately small relative to house prices in the $200 - $300K range

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Inferences About the Regression Model The variance of the regression slope coefficient (b 1 ) is estimated by where: = Estimate of the standard error of the least squares slope = Standard error of the estimate

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations10 ANOVA dfSSMSFSignificance F Regression Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Comparing Standard Errors of the Slope Y X Y X is a measure of the variation in the slope of regression lines from different possible samples

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Inference about the Slope: t Test t test for a population slope Is there a linear relationship between X and Y? Null and alternative hypotheses H 0 : β 1 = 0(no linear relationship) H 1 : β 1 0(linear relationship does exist) Test statistic where: b 1 = regression slope coefficient β 1 = hypothesized slope s b1 = standard error of the slope

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap House Price in $1000s (y) Square Feet (x) Estimated Regression Equation: The slope of this model is Does square footage of the house affect its sales price? Inference about the Slope: t Test (continued)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Inferences about the Slope: t Test Example H 0 : β 1 = 0 H 1 : β 1 0 From Excel output: CoefficientsStandard Errort StatP-value Intercept Square Feet t b1b1

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Inferences about the Slope: t Test Example H 0 : β 1 = 0 H 1 : β 1 0 Test Statistic: t = There is sufficient evidence that square footage affects house price From Excel output: Reject H 0 CoefficientsStandard Errort StatP-value Intercept Square Feet tb1b1 Decision: Conclusion: Reject H 0 /2=.025 -t n-2,α/2 Do not reject H 0 0 /2= d.f. = 10-2 = 8 t 8,.025 = (continued) t n-2,α/2

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Inferences about the Slope: t Test Example H 0 : β 1 = 0 H 1 : β 1 0 P-value = There is sufficient evidence that square footage affects house price From Excel output: Reject H 0 CoefficientsStandard Errort StatP-value Intercept Square Feet P-value Decision: P-value < α so Conclusion: (continued) This is a two-tail test, so the p-value is P(t > 3.329)+P(t < ) = (for 8 d.f.)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Confidence Interval Estimate for the Slope Confidence Interval Estimate of the Slope: Excel Printout for House Prices: At 95% level of confidence, the confidence interval for the slope is (0.0337, ) CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet d.f. = n - 2

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Since the units of the house price variable is $1000s, we are 95% confident that the average impact on sales price is between $33.70 and $ per square foot of house size CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet This 95% confidence interval does not include 0. Conclusion: There is a significant relationship between house price and square feet at the.05 level of significance Confidence Interval Estimate for the Slope (continued)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap F-Test for Significance F Test statistic: where where F follows an F distribution with k numerator and (n – k - 1) denominator degrees of freedom (k = the number of independent variables in the regression model)

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations10 ANOVA dfSSMSFSignificance F Regression Residual Total CoefficientsStandard Errort StatP-valueLower 95%Upper 95% Intercept Square Feet With 1 and 8 degrees of freedom P-value for the F-Test

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap H 0 : β 1 = 0 H 1 : β 1 0 =.05 df 1 = 1 df 2 = 8 Test Statistic: Decision: Conclusion: Reject H 0 at = 0.05 There is sufficient evidence that house size affects selling price 0 =.05 F.05 = 5.32 Reject H 0 Do not reject H 0 Critical Value: F = 5.32 F-Test for Significance (continued) F

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Prediction The regression equation can be used to predict a value for y, given a particular x For a specified value, x n+1, the predicted value is

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Predict the price for a house with 2000 square feet: The predicted price for a house with 2000 square feet is ($1,000s) = $317,850 Predictions Using Regression Analysis

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Relevant Data Range When using a regression model for prediction, only predict within the relevant range of data Relevant data range Risky to try to extrapolate far beyond the range of observed Xs

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Estimating Mean Values and Predicting Individual Values Y X x i y = b 0 +b 1 x i Confidence Interval for the expected value of y, given x i Prediction Interval for an single observed y, given x i Goal: Form intervals around y to express uncertainty about the value of y for a given x i y

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Confidence Interval for the Average Y, Given X Confidence interval estimate for the expected value of y given a particular x i Notice that the formula involves the term so the size of interval varies according to the distance x n+1 is from the mean, x

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Prediction Interval for an Individual Y, Given X Confidence interval estimate for an actual observed value of y given a particular x i This extra term adds to the interval width to reflect the added uncertainty for an individual case

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Estimation of Mean Values: Example Find the 95% confidence interval for the mean price of 2,000 square-foot houses Predicted Price y i = ($1,000s) Confidence Interval Estimate for E(Y n+1 |X n+1 ) The confidence interval endpoints are and , or from $280,660 to $354,900

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Estimation of Individual Values: Example Find the 95% confidence interval for an individual house with 2,000 square feet Predicted Price y i = ($1,000s) Confidence Interval Estimate for y n+1 The confidence interval endpoints are and , or from $215,500 to $420,070

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Finding Confidence and Prediction Intervals in Excel In Excel, use PHStat | regression | simple linear regression … Check the confidence and prediction interval for x= box and enter the x-value and confidence level desired

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Input values Finding Confidence and Prediction Intervals in Excel (continued) Confidence Interval Estimate for E(Y n+1 |X n+1 ) Confidence Interval Estimate for individual y n+1 y

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Graphical Analysis The linear regression model is based on minimizing the sum of squared errors If outliers exist, their potentially large squared errors may have a strong influence on the fitted regression line Be sure to examine your data graphically for outliers and extreme points Decide, based on your model and logic, whether the extreme points should remain or be removed

Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chap Chapter Summary Introduced the linear regression model Reviewed correlation and the assumptions of linear regression Discussed estimating the simple linear regression coefficients Described measures of variation Described inference about the slope Addressed estimation of mean values and prediction of individual values