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
Document preview thumbnail
Preview 4 out of 44 pages
Exam (elaborations)

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

Document preview thumbnail
Preview 4 out of 44 pages

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

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

Document information

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

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

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
3.6
(622)
Sold
3427
Followers
2298
Items
14815
Last sold
21 hours ago



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