172. R²

Proportion of variance explained by the model

𝑅2=1𝑖=1𝑛(𝑦𝑖𝑦̂𝑖)2𝑖=1𝑛(𝑦𝑖𝑦̄𝑖)2
Example

Step 1: Fit the Regression Model

Step 2: Compute Total Sum of Squares (SST)

SST=𝑖=1𝑛(𝑦𝑖𝑦̄)2

Step 3: Compute Regression Sum of Squares (SSR)

SSR=𝑖=1𝑛=(𝑦̂𝑖𝑦̄)2

Step 4: Compute Residual Sum of Squares (SSE)

SSE=𝑖=1𝑛=(𝑦𝑖𝑦̂𝑖)2

Step 5: Calculate 𝑅2

𝑅2=SSRSST=1SSESST

172.0.1. Adj R-squared

Adjusts the 𝑅2 value based on the number of predictors (penalty for adding non-informative variables)

Adj𝑅2=1(1𝑅2)𝑛1𝑛𝑝1