Docsity

Simple Linear Regression Model, Models Parameters - Notes | STAT 312, Study notes of Mathematical Statistics

Toggle sidebar
bg1
Stat 312 Fall 2003 12/4/2003
Discussion 12
1 The Simple Linear Regression Model
Y=β0+β1x+
The quantity of in the model equation is a random variable, assumed to be normal distributed with
E() = 0 and V() = σ2.
1.1 Example 1 (Exercise 11, page 505, DEVORE 6th)
Suppose that in a certain chemical process the reaction time y(hr) is related to the temperature (◦F)
in the chamber in which the reaction takes place according to the simple linear regression model with
equation y= 5.00 −.01xand σ=.075.
a. What is the expected change in reaction time for a 1◦F increase in temperature? For a 10◦F increase
in temperature?
b. What is the expected reaction time when temperature is 200◦F? When temperature is 250◦F?
c. Suppose five observations are made independently on reaction time, each one for a temperature of
250◦F. What is the probability that all five times are between 2.4 and 2.6 hr?
d. What is the probability that two independently observed reaction times for temperatures 1◦apart
are such that the time at the higher temperature exceeds the time at the lower temperature?
2 Estimating Model Parameters
The least squares estimate of the slope coefficient β1of the true regression line is
b1=ˆ
β1=P(xi−¯x)(yi−¯y)
P(xi−¯x)2=Sxy
Sxx
Computing formulas for the numerator and denominator of ˆ
β1are
Sxy =Xxiyi−(Xxi)(Xyi)/n Sxx =Xx2
i
−(Xxi)2/n
The least squares estimate of the intercept β0of the true regression line is
b0=ˆ
β0=Pyi−ˆ
β1Pxi
n= ¯y−ˆ
β1¯x
2.1 Example 2 (Exercise 16, page 517, DEVORE 6th)
The article ”Characterization of Highway Runoff in Austin, Texas, Area” (J. of Envir. Engr., 1998: 131-
137) gave a scatter plot, along with the least squares line, of x=rainfall volume (m3) and y=runoff
volume (m3) for a particular location. The accompanying values were read from the plot.
x 5 12 14 17 23 30 40 47 55 67 72 81 96 112 127
y 4 10 13 15 15 25 27 46 38 46 53 70 82 99 100
a. Does a scatter plot of the data support the use of the simple linear regression model?
b. Calculate point estimates of the slope and intercept of the population regression line.
c. Calculate a point estimate of the true average runoff volume when rainfall volume is 50.
Ting-Li Lin
pf2

Partial preview of the text

Download Simple Linear Regression Model, Models Parameters - Notes | STAT 312 and more Study notes Mathematical Statistics in PDF only on Docsity!

Stat 312 Fall 2003 12/4/

Discussion 12

1 The Simple Linear Regression Model

Y = β 0 + β 1 x + 

The quantity of  in the model equation is a random variable, assumed to be normal distributed with E() = 0 and V () = σ^2.

1.1 Example 1 (Exercise 11, page 505, DEVORE 6th)

Suppose that in a certain chemical process the reaction time y (hr) is related to the temperature (◦F) in the chamber in which the reaction takes place according to the simple linear regression model with equation y = 5. 00 −. 01 x and σ = .075.

a. What is the expected change in reaction time for a 1◦F increase in temperature? For a 10◦F increase in temperature?

b. What is the expected reaction time when temperature is 200◦F? When temperature is 250◦F?

c. Suppose five observations are made independently on reaction time, each one for a temperature of 250 ◦F. What is the probability that all five times are between 2.4 and 2.6 hr?

d. What is the probability that two independently observed reaction times for temperatures 1◦^ apart are such that the time at the higher temperature exceeds the time at the lower temperature?

2 Estimating Model Parameters

The least squares estimate of the slope coefficient β 1 of the true regression line is

b 1 = βˆ 1 =

(xi − x¯)(yi − y¯) ∑ (xi − ¯x)^2

Sxy Sxx

Computing formulas for the numerator and denominator of βˆ 1 are

Sxy =

xiyi − (

xi)(

yi)/n Sxx =

x^2 i − (

xi)^2 /n

The least squares estimate of the intercept β 0 of the true regression line is

b 0 = βˆ 0 =

yi − βˆ 1

xi n

= ¯y − βˆ 1 x¯

2.1 Example 2 (Exercise 16, page 517, DEVORE 6th)

The article ”Characterization of Highway Runoff in Austin, Texas, Area” (J. of Envir. Engr., 1998: 131-

  1. gave a scatter plot, along with the least squares line, of x =rainfall volume (m^3 ) and y =runoff volume (m^3 ) for a particular location. The accompanying values were read from the plot.

x 5 12 14 17 23 30 40 47 55 67 72 81 96 112 127 y 4 10 13 15 15 25 27 46 38 46 53 70 82 99 100

a. Does a scatter plot of the data support the use of the simple linear regression model?

b. Calculate point estimates of the slope and intercept of the population regression line.

c. Calculate a point estimate of the true average runoff volume when rainfall volume is 50.

Ting-Li Lin

Stat 312 Fall 2003 12/4/

d. Calculate a point estimate of the standard deviation σ.

e. What proportion of the observed variation in runoff volume can be attributed to the simple linear regression relationship between runoff and rainfall?

Hint: n = 15,

xi = 798,

yi = 643,

x^2 i = 63040,

xiyi = 51232, and

y^2 i = 41999.

l ll l l

l l

l l

l

l

l

l

l l

20 40 60 80 100 120

20

40

60

80

100

x

y

y <- c(4,10,13,15,15,25,27,46,38,46,53,70,82,99,100) x <- c(5,12,14,17,23,30,40,47,55,67,72,81,96,112,127) plot(y~x) fm <- lm(y~x) summary(fm) Call: lm(formula = y ~ x)

Residuals: Min 1Q Median 3Q Max -8.279 -4.424 1.205 3.145 8.

Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -1.12830 2.36778 -0.477 0. x 0.82697 0.03652 22.642 7.9e-12 ***


Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 5.24 on 13 degrees of freedom Multiple R-Squared: 0.9753, Adjusted R-squared: 0. F-statistic: 512.7 on 1 and 13 DF, p-value: 7.896e-

anova(fm) Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) x 1 14078.7 14078.7 512.65 7.896e-12 *** Residuals 13 357.0 27.


Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1

Ting-Li Lin