Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

MATHEMATIC ST362: ST362/ST562 Lab 2 Notes: Simple and Multiple Linear Regression | 2026 Update

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
10-07-2026
Written in
2025/2026

MATHEMATIC ST362: ST362/ST562 Lab 2 Notes: Simple and Multiple Linear Regression | 2026 Update

Content preview

ST362/ST562 Lab 2 Notes: Simple and Multiple Linear Regression



1. Simple Linear Regression

Suppose we observe data


(𝑥1 , 𝑦1 ), (𝑥2 , 𝑦2 ), … , (𝑥𝑛 , 𝑦𝑛 ),

where 𝑥𝑖 is the observed value of an explanatory variable and 𝑦𝑖 is the observed value of a response
variable.
The simple linear regression model is


𝑌𝑖 = 𝛽0 + 𝛽1 𝑥𝑖 + 𝜀𝑖 , 𝑖 = 1, … , 𝑛,

where:

• 𝑌𝑖 is the random response variable;
• 𝑥𝑖 is treated as fixed or observed;
• 𝛽0 is the intercept parameter;
• 𝛽1 is the slope parameter;
• 𝜀𝑖 is the random error term.

The usual normal regression assumptions are


𝜀1 , … , 𝜀𝑛 are independent and 𝜀𝑖 ∼ 𝑁 (0, 𝜎2 ).

Equivalently,


𝑌𝑖 ∼ 𝑁 (𝛽0 + 𝛽1 𝑥𝑖 , 𝜎2 ),

and the responses 𝑌1 , … , 𝑌𝑛 are independent. Under this model,


𝐸(𝑌𝑖 ) = 𝛽0 + 𝛽1 𝑥𝑖 , Var(𝑌𝑖 ) = 𝜎2 .




1

, 1.1 Least Squares Estimators

The fitted regression line is


𝑦𝑖̂ = 𝛽0̂ + 𝛽1̂ 𝑥𝑖 .

The residual for observation 𝑖 is


𝑒𝑖 = 𝑦𝑖 − 𝑦𝑖̂ .

The least squares estimates are chosen to minimize the residual sum of squares

𝑛 𝑛
𝑆𝑆𝐸 = ∑(𝑦𝑖 − 𝑦𝑖̂ )2 = ∑(𝑦𝑖 − 𝛽0̂ − 𝛽1̂ 𝑥𝑖 )2 .
𝑖=1 𝑖=1

Define

1 𝑛 1 𝑛
𝑥̄ = ∑𝑥 , 𝑦̄ = ∑𝑦 ,
𝑛 𝑖=1 𝑖 𝑛 𝑖=1 𝑖

𝑛 𝑛
𝑆𝑥𝑥 = ∑(𝑥𝑖 − 𝑥)̄ 2 , 𝑆𝑥𝑦 = ∑(𝑥𝑖 − 𝑥)(𝑦
̄ 𝑖 − 𝑦).
̄
𝑖=1 𝑖=1

Then the least squares estimators are

𝑆𝑥𝑦
𝛽1̂ = , 𝛽0̂ = 𝑦 ̄ − 𝛽1̂ 𝑥.̄
𝑆𝑥𝑥

Thus the fitted regression equation is


𝑦 ̂ = 𝛽0̂ + 𝛽1̂ 𝑥.

The slope 𝛽1̂ is interpreted as the estimated change in the mean response for a one-unit increase in the
explanatory variable. The intercept 𝛽0̂ is the estimated mean response when 𝑥 = 0, provided that 𝑥 = 0
is meaningful in context.


1.2 Properties of the Least Squares Line

For a simple linear regression model with an intercept, the residuals satisfy

𝑛
∑ 𝑒𝑖 = 0
𝑖=1

and

𝑛
∑ 𝑥𝑖 𝑒𝑖 = 0.
𝑖=1


2

Document information

Uploaded on
July 10, 2026
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

CA$29.16
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
NayahDocs

Get to know the seller

Seller avatar
NayahDocs Brandon University
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 days
Number of followers
0
Documents
28
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions