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)

STAT 306 - Finding Relationships in Data COMPLETE SOLUTION University of British Columbia

Rating
-
Sold
-
Pages
44
Grade
A+
Uploaded on
10-01-2026
Written in
2025/2026

STAT 306 - Finding Relationships in Data COMPLETE SOLUTION University of British Columbia

Institution
STAT 306 - Finding Relationships In Data
Course
STAT 306 - Finding Relationships in Data

Content preview

STAT 306 - Finding Relationships in Data 26-09 2026-2027 COMPLETE SOLUTION University of British Columbia




#classnotes




Subject: MATH307 MATH340 #STAT306 PHYS119


Topic:: Multiple linear regression




Slide 7 - Linear models: vector and matrix formulation

We can write the linear model in matrix form:
Y = Xβ + ϵ
where




The first column of X is a column of 1s, this corresponds to the intercept parameter β0
X is called the design matrix
Normal equations in matrix form
Normal equations:




In matrix form:
X T Xβ^ = XTY

,X T X is not invertible when the n ∑ x2i − (∑ xi)2 = ∑(xi − x̄ ) 2 = 0
-> x1 = x2 = ⋯ = xn
-> if all the covariate values in our data are the same, then it’s not possible to observe a trend
between the covariate and the response.
-> the design matrix X with dimensions n x p has rank(X) = p + 1
where p is the number of covariates, columns of X are linearly independent, n ≥ p
MLR model:




in matrix form
Y = Xβ + ϵ (this is a linear model)

,where




The residuals is given by Y − Xb




We get that the minimum = XT Y




We have that mid RSSp=2 ≥ RSSp=3 where p is the number of covariates.

, By adding a new covariate, - The regression model with p+1 covariates includes all the
previous covariates, so it can reproduce the fit from the model with p covariates by simply
setting the new coefficient (for p+1) to zero.new covariate


However, in minimizing RSS, the model can take advantage of the new covariate, possibly
further reducing the residual.


Thus RSSp ≥ RSSp+1, the fit cannot get worse, it may improve




Since R2 = 1 − RSS/TSS and since RSS decreases as we add a new covariate then R2
increases.
Since σ^2 = RSS and since k = p + 1 , RSS decreases, n − k also decreases (since n − k now
n−k

is n − p − 1) therefore σ^2 can increase or decrease.
To account for the number of predictors in the model, we can use the adjust R2. It adjusts for
the number of predictors in a regression model, penalizing the model when unnecessary
variables are added

Written for

Institution
STAT 306 - Finding Relationships in Data
Course
STAT 306 - Finding Relationships in Data

Document information

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

Subjects

$15.49
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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartzone Liberty University
Follow You need to be logged in order to follow users or courses
Sold
3365
Member since
6 year
Number of followers
2296
Documents
14608
Last sold
5 hours ago
AMAIZING EDUCATION WORLD

GET ALL KIND OF EXAMS ON THIS PAGE ,COMPLETE TEST BANKS,SUMMARIES,STUDY GUIDES,PROJECT PAPERS,ASSIGNMENTS,CASE STUDIES, YOU CAN ALSO COMMUNICATE WITH THE SELLER FOR ANY PRE-ORDER,ORDER AND ETC.

3.6

610 reviews

5
271
4
96
3
106
2
32
1
105

Recently viewed by you

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