Download presentation
Presentation is loading. Please wait.
1
Chapter 11 Simple Regression
MIS8th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
2
Chapter 8-A Simple Regression
SMIS 331 Data Mining 2018/2019 Fall Chapter 8-A Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 11-2
3
Chapter 11 Simple Regression
Statistics for Business and Economics 8th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 11-3
4
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter Goals After completing this chapter, you should be able to: Explain the simple linear regression model Obtain and interpret the simple linear regression equation for a set of data Describe R2 as a measure of explanatory power of the regression model Understand the assumptions behind regression analysis Explain measures of variation and determine whether the independent variable is significant Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
5
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter Goals (continued) After completing this chapter, you should be able to: 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 Explain the correlation coefficient and perform a hypothesis test for zero population correlation Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
6
single variable – analysis, inference
relationships between more than one variables scater plots, corrolation, covariance analysis relationships – mathematically expressed: y = f(x) function – linear or nonlinear the price form not known linear – approximate nonlinear
7
Examples relation between grades and hours of study for an exam
relation between price and sales of a product relation between house price and a property sucha s area of the house Exprssed as a inear model: Y = X
8
Overview of Linear Models
11.1 An equation can be fit to show the best linear relationship between two variables: Y = β0 + β1X Where Y is the dependent variable and X is the independent variable β0 is the Y-intercept β1 is the slope Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
9
Least Squares Regression
Estimates for coefficients β0 and β1 are found using a Least Squares Regression technique The least-squares regression line, based on sample data, is Where b1 is the slope of the line and b0 is the y-intercept: Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
10
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) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
11
Linear Regression Model
11.2 The relationship between X and Y is described by a linear function Changes in Y are assumed to be influenced by changes in X Linear regression population equation model Where 0 and 1 are the population model coefficients and is a random error term. Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
12
Simple Linear Regression Model
The population regression model: Random Error term Population Slope Coefficient Population Y intercept Independent Variable Dependent Variable Linear component Random Error component Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
13
Linear Regression 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 uniform variance property is called homoscedasticity) The random error terms, εi, are not correlated with one another, so that Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
14
Simple Linear Regression Model
(continued) Y Observed Value of Y for xi εi Slope = β1 Predicted Value of Y for xi Random Error for this Xi value Intercept = β0 xi X Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
15
Simple Linear Regression Equation
The simple linear regression equation provides an estimate of the population regression line Estimated (or predicted) y value for observation i Estimate of the regression intercept Estimate of the regression slope Value of x for observation i The individual random error terms ei have a mean of zero Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
16
Least Squares Coefficient Estimators
11.3 b0 and b1 are obtained by finding the values of b0 and b1 that minimize the sum of the squared residuals (errors), SSE: Differential calculus is used to obtain the coefficient estimators b0 and b1 that minimize SSE Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
17
differentiate with respect to b0,
this derivative must be 0 for a minimum, dividing through by n:
18
returning to partial derivative formula
since and ni=1ei = 0 sum of the residuals of least squares is zero privided that there is a constant (intercept) term in the population regression model
19
Substituting this expression for b0:
Differentiating with respect to b1:
20
This derivative must be 0 for a minimum:
21
Returning to the definition of SSE
SSE = ni=1(yi – b0 – b1Xi)2, differentiating with respect to b1 and equating to 0: 2(-Xi)(yi – b0 – b1Xi) = 0 (Xi)(yi – b0 – b1Xi) = 0 ei = yi – b0 – b1Xi, Xiei = 0 sum of the residuals weighted by Xis is 0
22
two equations relating residuals:
ni=1ei = 0 ni=1Xiei = 0 if we know n-2 of the residuals any remaining two an be determined degree of freedom is n-2
23
Least Squares Coefficient Estimators
(continued) The slope coefficient estimator is And the constant or y-intercept is The regression line always goes through the mean x, y Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
25
Note that ni=1(yi – yb)(xi – xb)
= ni=1(yi – yb)xi – ni=1(yi – yb)xb, = ni=1(yi – yb)xi – xbni=1(yi – yb), but ni=1(yi – yb) =0 sum of deviations from mean is zero so ni=1(yi – yb)(xi – xb) = ni=1(yi – yb)xi by a similar reasoning ni=1(yi – yb)(xi – xb) = ni=1(xi – xb)yi
26
= ni=1(yi – yb)(xi – xb) = ni=1(xyi – xbyi –ybxi + xbyb) = ni=1xyi – ni=1xbyi – ni=1ybxi + ni=1xbyb = ni=1xyi – xbni=1yi – ybni=1xi + nxbyb = ni=1xyi – xbnyb – ybnxb + nxbyb = ni=1xyi – xbnyb
27
ni=1 (xi – xb)2 = ni=1(xi – xb)(xi – xb) = ni=1(xi2 – xbxi –xbxi + xb2) = ni=1xi2 – 2xbni=1xi + nxb2 = ni=1xi2 – 2xbnxb + nxb2 = ni=1xi2 –nxb2 Similarly ni=1 (yi – yb)2 = ni=1yi2 –nyb2
28
regression coefficients b0 and b1 any any other quantity can be computed form
n, ni=xi , ni=yi , ni=xi2 , ni=yi2 , ni=xiyi , you can calculate xb and yb, or in some problems ni=1 (xi – xb)2 ni=1 (yi – yb)2 ni=1(yi – yb)(xi – xb)
29
Computer Computation of Regression Coefficients
The coefficients b0 and b1 , 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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
30
Interpretation of the Slope and the Intercept
b0 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) b1 is the estimated change in the average value of y as a result of a one-unit change in x Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
32
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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
33
Sample Data for House Price Model
House Price in $1000s (Y) Square Feet (X) 245 1400 312 1600 279 1700 308 1875 199 1100 219 1550 405 2350 324 2450 319 1425 255 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
34
Graphical Presentation
House price model: scatter plot Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
35
Regression Using Excel
Excel will be used to generate the coefficients and measures of goodness of fit for regression Data / Data Analysis / Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
36
Regression Using Excel
(continued) Data / Data Analysis / Regression Provide desired input: Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
37
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Excel Output Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
38
Regression Statistics
Excel Output (continued) Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 10 ANOVA df SS MS F Significance F Regression 1 Residual 8 Total 9 Coefficients t Stat P-value Lower 95% Upper 95% Intercept Square Feet The regression equation is: Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
39
Graphical Presentation
House price model: scatter plot and regression line Slope = Intercept = Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
40
Interpretation of the Intercept, b0
b0 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 b0 = just indicates that, for houses within the range of sizes observed, $98, is the portion of the house price not explained by square feet Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
41
Interpretation of the Slope Coefficient, b1
b1 measures the estimated change in the average value of Y as a result of a one-unit change in X Here, b1 = tells us that the average value of a house increases by ($1000) = $109.77, on average, for each additional one square foot of size Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
42
Explanatory Power of a Linear Regression Equation
11.4 Explanatory Power of a Linear Regression Equation Total variation is made up of two parts: Total Sum of Squares Regression Sum of Squares Error (residual) Sum of Squares where: = Average value of the dependent variable yi = Observed values of the dependent variable i = Predicted value of y for the given xi value Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
43
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Analysis of Variance SST = total sum of squares Measures the variation of the yi 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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
44
Analysis of Variance _ Y yi _ _ _ y y X y SSE = (yi - yi )2
(continued) Y Unexplained variation yi y SSE = (yi - yi )2 _ SST = (yi - y)2 Explained variation _ y _ SSR = (yi - y)2 _ y y X xi Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
45
Coefficient of Determination, R2
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 R2 note: Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
46
Examples of Approximate r2 Values
Y r2 = 1 Perfect linear relationship between X and Y: 100% of the variation in Y is explained by variation in X X r2 = 1 Y X r2 = 1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
47
Examples of Approximate r2 Values
Y 0 < r2 < 1 Weaker linear relationships between X and Y: Some but not all of the variation in Y is explained by variation in X X Y X Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
48
Examples of Approximate r2 Values
Y 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) X r2 = 0 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
49
Regression Statistics
Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 10 ANOVA df SS MS F Significance F Regression 1 Residual 8 Total 9 Coefficients t Stat P-value Lower 95% Upper 95% Intercept Square Feet 58.08% of the variation in house prices is explained by variation in square feet Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
50
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Correlation and R2 The coefficient of determination, R2, for a simple regression is equal to the simple correlation squared Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
51
ni=1(yi-yb)2 = ni=1(yi-ypi+ (ypi - yb))2
ypi – yb = b1(xi - xb) for all i = 1,...,n ei = yi - ypi residual i ni=1(yi-yb)2 = ni=1(ei + b1(xi - xb))2 = ni=1ei 2 + ni=1b12(xi - xb))2 + 2ni=1ei b1(xi - xb)) ni=1ei b1(xi - xb)) = ni=1ei b1xi - ni=1ei xb = b1ni=1ei xi - xbni=1ei ni=1ei xi-=0, ni=1ei =0 least squares
52
ni=1(yi-yb)2 = ni=1ei 2 + ni=1b12(xi - xb))2
SST = SSE SSR if the population regression model does not have a constant term yi = 1xi + i. in general ni=1ei does not equal to zore so SST = SSR + SSE does not hold
53
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, b0 and b1, instead of one is called the standard error of the estimate Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
54
Regression Statistics
Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 10 ANOVA df SS MS F Significance F Regression 1 Residual 8 Total 9 Coefficients t Stat P-value Lower 95% Upper 95% Intercept Square Feet Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
55
Comparing Standard Errors
se is a measure of the variation of observed y values from the regression line Y Y X X The magnitude of se should always be judged relative to the size of the y values in the sample data i.e., se = $41.33K is moderately small relative to house prices in the $200 - $300K range Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
56
Statistical Inference: Hypothesis Tests and Confidence Intervals
11.5 The variance of the regression slope coefficient (b1) is estimated by where: = Estimate of the standard error of the least squares slope = Standard error of the estimate Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
60
Varince estimator of b0 The regression constant estimator, b0, is also a linear function of the random variable yi, normally distributed, its variance estimator:
61
Regression Statistics
Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 10 ANOVA df SS MS F Significance F Regression 1 Residual 8 Total 9 Coefficients t Stat P-value Lower 95% Upper 95% Intercept Square Feet Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
62
Comparing Standard Errors of the Slope
is a measure of the variation in the slope of regression lines from different possible samples Y Y X X Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
63
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 H0: β1 = 0 (no linear relationship) H1: β1 0 (linear relationship does exist) Test statistic where: b1 = regression slope coefficient β1 = hypothesized slope sb1 = standard error of the slope Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
64
Inference about the Slope: t Test
(continued) Estimated Regression Equation: House Price in $1000s (y) Square Feet (x) 245 1400 312 1600 279 1700 308 1875 199 1100 219 1550 405 2350 324 2450 319 1425 255 The slope of this model is Does square footage of the house significantly affect its sales price? Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
65
Inferences about the Slope: t Test Example
H0: β1 = 0 H1: β1 0 From Excel output: Coefficients Standard Error t Stat P-value Intercept Square Feet t Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
66
Inferences about the Slope: t Test Example
(continued) Test Statistic: t = 3.329 b1 t H0: β1 = 0 H1: β1 0 From Excel output: Coefficients Standard Error t Stat P-value Intercept Square Feet d.f. = 10-2 = 8 t8,.025 = Decision: Conclusion: Reject H0 a/2=.025 a/2=.025 There is sufficient evidence that square footage affects house price Reject H0 Do not reject H0 Reject H0 -tn-2,α/2 tn-2,α/2 2.3060 3.329 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
67
Inferences about the Slope: t Test Example
(continued) P-value = P-value H0: β1 = 0 H1: β1 0 From Excel output: Coefficients Standard Error t Stat P-value Intercept Square Feet This is a two-tail test, so the p-value is P(t > 3.329)+P(t < ) = (for 8 d.f.) Decision: P-value < 0.05 so Conclusion: Reject H0 There is sufficient evidence that square footage affects house price Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
68
Confidence Interval Estimate for the Slope
Confidence Interval Estimate of the Slope: d.f. = n - 2 Excel Printout for House Prices: Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Intercept Square Feet At 95% level of confidence, the confidence interval for the slope is (0.0337, ) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
69
Confidence Interval Estimate for the Slope
(continued) Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Intercept Square Feet 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 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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
70
Hypothesis Test for Population Slope Using the F Distribution
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) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
71
Hypothesis Test for Population Slope Using the F Distribution
(continued) An alternate test for the hypothesis that the slope is zero: Use the F statistic The decision rule is reject H0 if F ≥ F1,n-2,α H0: β1 = 0 H1: β1 0 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
72
Regression Statistics
Excel Output Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 10 ANOVA df SS MS F Significance F Regression 1 Residual 8 Total 9 Coefficients t Stat P-value Lower 95% Upper 95% Intercept Square Feet With 1 and 8 degrees of freedom P-value for the F-Test Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
73
F-Test for Significance
(continued) Test Statistic: Decision: Conclusion: H0: β1 = 0 H1: β1 ≠ 0 = .05 df1= 1 df2 = 8 Critical Value: F1,8,0.05 = 5.32 Reject H0 at = 0.05 = .05 There is sufficient evidence that house size affects selling price F Do not reject H0 Reject H0 F.05 = 5.32 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
74
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Prediction 11.6 The regression equation can be used to predict a value for y, given a particular x For a specified value, xn+1 , the predicted value is Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
75
Predictions Using Regression Analysis
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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
76
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 x values Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
77
Estimating Mean Values and Predicting Individual Values
Goal: Form intervals around y to express uncertainty about the value of y for a given xi Confidence Interval for the expected value of y, given xi Y y y = b0+b1xi Prediction Interval for an single observed y, given xi xi X Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
78
Confidence Interval for the Average Y, Given X
Confidence interval estimate for the expected value of y given a particular xi Notice that the formula involves the term so the size of interval varies according to the distance xn+1 is from the mean, x Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
79
Prediction Interval for an Individual Y, Given X
Confidence interval estimate for an actual observed value of y given a particular xi This extra term adds to the interval width to reflect the added uncertainty for an individual case Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
80
Example: Confidence Interval for the Average Y, Given X
Confidence Interval Estimate for E(Yn+1|Xn+1) Find the 95% confidence interval for the mean price of 2,000 square-foot houses Predicted Price yi = ($1,000s) The confidence interval endpoints are and , or from $280,730 to $354,970 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
81
Example: Prediction Interval for an Individual Y, Given X
Confidence Interval Estimate for yn+1 Find the 95% confidence interval for an individual house with 2,000 square feet Predicted Price yi = ($1,000s) The confidence interval endpoints are and , or from $215,570 to $420,130 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
82
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Correlation Analysis 11.7 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 4 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
83
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Correlation Analysis The population correlation coefficient is denoted ρ (the Greek letter rho) The sample correlation coefficient is where Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
84
Test for Zero Population Correlation
To test the null hypothesis of no linear association, the test statistic follows the Student’s t distribution with (n – 2 ) degrees of freedom: Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
85
Decision Rules a a a/2 a/2 -ta ta -ta/2 ta/2
Hypothesis Test for Correlation Lower-tail test: H0: ρ 0 H1: ρ < 0 Upper-tail test: H0: ρ ≤ 0 H1: ρ > 0 Two-tail test: H0: ρ = 0 H1: ρ ≠ 0 a a a/2 a/2 -ta ta -ta/2 ta/2 Reject H0 if t < -tn-2, a Reject H0 if t > tn-2, a Reject H0 if t < -tn-2, a/2 or t > tn-2, a/2 has n - 2 d.f. Where Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
86
Exercise 11.58 For a random sample of 353 high school teachers
Correlation between anual rises and teaching evaluation performance found to be 0.11 Test the hypothesis that in the population these quantities are uncorrelated against the alternative that the population correlation is positive
88
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Graphical Analysis 11.9 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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
89
Exercise 11.777 n: 30, SSR=128, SSE=286 b1= 8.4, b0=10.1 a) R2
b) test beta1=0 vs not equal to 0 at 10% alpha c) what is dispersion in x
91
Quiz /2014 Spring Based on a sample of 30 observations the population regression model Y i = 0+ 1x i + i The least square estimates of intercept is 10.0 Sum of the values of dependent and independent variables are 450 and 150 respectively. Estimated variance of dependent variable is 25, variance of the residuals is 4
92
a) What is the least square estimate of slope coefficient
a) What is the least square estimate of slope coefficient? Interpret the figure. b) What are the values of SSR and SSE? c) Find and interpret the coefficient of determination. d) Test the null hypothesis that the explanatory variable X does not have a significant effect on Y at significance level of 10%. Against the alternaive that it has an effect on Y e) Develop a 90% prediction interval for the predicting an individual with X value of 5.
93
Solution a) b1 =1 b) S2y = 25, S2 = 4, SST = 25*29 =725,
SSE = 4*28 =112, SSR = SST – SSE = = 613 c) R2 = SSR/SST= 613/725=0.846, d) t = b1/ Sb1 = 1/, S2b1 = 4/(x-xbar)2, (x-xbar)2,= 0.846*725=613 S2b1 =0.0065, s=0.080,
94
t= 1/0.08 = 12.37, e) prediction interval 15+/- t28,0.05s*sqrt(1+1/30) 15+/ *2*1.0166 11.54 < < 18.45
95
Midterm 2013/2014 Spring (15 pt) Consider a simple regression model without an intercept (passing from orgine). a) write the population regression equation. b) derive the least squares estimator for the slope parameter.
96
Midterm 2013/2014 Spring (20 pt) Instructors are interested in determining whether number of hours attending to the lectures has any measurable effects on grades. The following quantities are given:X for hours attendence, Y for grade n=25, ni=1Xi =430, ni=1Yi = 1350, ni=1X2i=9220 ,ni=1Y2i = 65200,ni=1YiXi =24240
97
a) Determine and interpret slope and intercept coefficents
b) What is coefficient of determination, sum of square regression, sum of square errors and standard deviation of the errors? Interpret coefficient of determination. c) Find a 95% confidence interval for the slope of the regression line. d) Test the null hypothesis that attending lectures has no effect on grades versus the alternative that attendence increases grades. e) Find a 95% prediction interval for predicting grade of an average attending student.
98
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
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 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
99
Printed in the United States of America.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.