Can you explain the decomposition of total variation into TSS, ESS, and RSS?

Quick Overview

A linear regression question on splitting total variation into TSS, ESS and RSS. It tests whether you can define each sum of squares, show why the identity holds under ordinary least squares, connect it to R-squared, and say when the split stops being exact.

Can you explain the decomposition of total variation into TSS, ESS, and RSS?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Can you explain the decomposition of total variation into `TSS`, `ESS`, and `RSS`? Define each sum of squares for a fitted linear regression, explain why they are related, and say when the relationship holds. ```hint Split each deviation Write $y_i - \bar{y}$ as the distance from the mean to the fitted value plus the residual, square it, and sum over the data. Then look hard at the cross term. ``` ### What a Strong Answer Covers - Definitions of TSS, ESS and RSS as sums of squared deviations, and what each one measures - Why the identity holds: the cross term and the OLS conditions that make it zero - How the decomposition defines R-squared - When the identity fails, such as a model without an intercept, a non-OLS fit, or predictions on new data ### Follow-up Questions - You refit a regression through the origin and R-squared goes up. What happened? - How do the degrees of freedom split across the three sums of squares, and how does that lead to the overall F-test? - Why can R-squared computed on a test set be negative? - Some textbooks write SSR and SSE. Why does that notation cause confusion?

Overview: A linear regression question on splitting total variation into TSS, ESS and RSS. It tests whether you can define each sum of squares, show why the identity holds under ordinary least squares, connect it to R-squared, and say when the split stops being exact.

PracHub logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

Can you explain the decomposition of total variation into TSS, ESS, and RSS?

Define each sum of squares for a fitted linear regression, explain why they are related, and say when the relationship holds.

What a Strong Answer Covers Guidance

  • Definitions of TSS, ESS and RSS as sums of squared deviations, and what each one measures
  • Why the identity holds: the cross term and the OLS conditions that make it zero
  • How the decomposition defines R-squared
  • When the identity fails, such as a model without an intercept, a non-OLS fit, or predictions on new data

Follow-up Questions Guidance

  • You refit a regression through the origin and R-squared goes up. What happened?
  • How do the degrees of freedom split across the three sums of squares, and how does that lead to the overall F-test?
  • Why can R-squared computed on a test set be negative?
  • Some textbooks write SSR and SSE. Why does that notation cause confusion?