Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Document preview thumbnail
Voorbeeld 4 van de 44 pagina's
Tentamen (uitwerkingen)

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

Document preview thumbnail
Voorbeeld 4 van de 44 pagina's

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

Voorbeeld van de inhoud

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

Documentinformatie

Geüpload op
10 januari 2026
Aantal pagina's
44
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$15.49

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
smartzone
3.6
(622)
Verkocht
3427
Volgers
2298
Items
14815
Laatst verkocht
22 uur geleden



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen