Quiz 2

Goodness of Fit

83 words
1 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Goodness of Fit ## R-squared $$ R^2 = 1 - \frac{SS_{res}}{SS_{tot}} = \frac{SS_{reg}}{SS_{tot}} $$ - Proportion of variance explained by the model - Always increases when adding predictors ## Adjusted R-squared $$ R^2_{adj} = 1 - \frac{SS_{res}/(n-p)}{SS_{tot}/(n-1)} $$ - Penalizes model complexity - Can decrease...

Goodness of Fit

R-squared

R2=1SSresSStot=SSregSStotR^2 = 1 - \frac{SS_{res}}{SS_{tot}} = \frac{SS_{reg}}{SS_{tot}}
  • Proportion of variance explained by the model
  • Always increases when adding predictors

Adjusted R-squared

Radj2=1SSres/(np)SStot/(n1)R^2_{adj} = 1 - \frac{SS_{res}/(n-p)}{SS_{tot}/(n-1)}
  • Penalizes model complexity
  • Can decrease when adding useless predictors

Partial F-Test

Test whether a subset of predictors collectively contribute:
F=(SSres,RSSres,F)/(dfRdfF)SSres,F/dfFFdfRdfF,dfFF = \frac{(SS_{res,R} - SS_{res,F}) / (df_R - df_F)}{SS_{res,F} / df_F} \sim F_{df_R-df_F, df_F}
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.