

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to simple linear regression, focusing on probabilistic models and the least squares approach. It covers the general form of probabilistic models, the first-order (straight-line) probabilistic model, and the five steps of simple linear regression. The document also includes an explanation of fitting the model using the least squares approach, preliminary computations, and comparisons of observed and predicted values. Assumptions and an estimator of σ2 are also discussed.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


2
where
3
4
parameters
standard deviation of the distribution
useful
Reaction Time versus Drug Percentage
Subject Amount of Drug x (%) Reaction Time y (seconds) 1 1 1 2 2 1 3 3 2 4 4 2
5
4 4 2 5 5 4
•Sum of errors (SE) = 0
•Sum of Squared errors (SSE) is smallest of all straight line
models
y x 0 1
6
models
Formulas:
Slope: y-intercept
i i xy i i i i
x y SS x x y y x y n
1
ˆ xy
xx
0 1
βˆ = y −βˆ x
2 2 2 (^ ) ( )
i xx i i
x SS x x x n
11/26/
2
Fitting the Model: The Least
Squares Approach
Preliminary Computations x i yi x^2 i x yi i 1 1 1 1 2 1 4 2 3 2 9 6 4 2 16 8 5 4 25 20 ∑ ∑
2 ∑ ∑
7
Totals (^) ∑ xi = (^15) ∑ yi = (^10) ∑ x 2 i^ = (^55) ∑ x yi i = 37
Comparing Observed and Predicted Values for the Least Squares Prediction Equation x y^ ˆ y^ = −.1 +.7 x ( y − ˆ y ) ( y − y ˆ)^2 1 1 .6 .4. 2 1 1.3 -.3. 3 2 2.0 0.0. 4 2 2.7 -.7. 5 4 3.4 .6. Sum of Errors = 0 SSE = 1.
Model Assumptions
for all values of x
8
y
An Estimator of σ
2
Estimator of σ
for a straight-line model
2
2
SSE SSE s Degrees of freedom for error n
= = −
9
eg ees of f eedom fo e o n
( )
( )
1
2 (^2 )
2
yy xy
i yy i i
= − β
∑ ∑
Assessing the Utility of the Model:
Making Inferences about the Slope β 1
Sampling Distribution of (^1) βˆ
σ
10
1
ˆ
xx
SS
β
σ =
Assessing the Utility of the Model: Making
Inferences about the Slope β 1
A Test of Model Utility: Simple Linear Regression
One-Tailed Test Two-Tailed Test
H 0 : β 1 =0 H 0 : β 1 =
11
H (^) a : β 1 <0 (or H (^) a : β 1 >0) H (^) a : β 1 ≠ 0
Rejection region: t< -tα
(or t< -tα when H (^) a : β 1 >0)
Rejection region: |t|> tα/
Where tα and tα/2 are based on (n-2) degrees of freedom
1
1 1
ˆ
xx
β
Assessing the Utility of the Model: Making
Inferences about the Slope β 1
A 100(1-α)% Confidence Interval for β 1
where 1 2 ˆ
ˆ β ± t s
12
1
t s α (^) β
β ±
1
ˆ
xx
s s
SS
β
=