Estimate constant under absolute loss

Read the full interview experience this question came from →

Quick Overview

This question evaluates understanding of L1 loss and robust point estimation, testing concepts from statistics such as absolute deviation, order statistics, and properties of estimators under non-quadratic loss, and it belongs to the Statistics & Math domain for data scientist roles.

Estimate constant under absolute loss

Company: Citadel

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Technical Screen

Suppose you have observed target values \(y_1, y_2, \dots, y_n\), and you want to fit the simplest possible model that predicts the same constant value for every observation: \[ \hat y_i = c \quad \text{for all } i. \] Define the objective function using absolute error: \[ E(c) = \sum_{i=1}^{n} |y_i - c|. \] What value of \(c\) minimizes \(E(c)\)? Derive the result and explain whether the minimizer is always unique.

Overview: This question evaluates understanding of L1 loss and robust point estimation, testing concepts from statistics such as absolute deviation, order statistics, and properties of estimators under non-quadratic loss, and it belongs to the Statistics & Math domain for data scientist roles.

Read the full Citadel Data Scientist interview experience this question came from

|Home/Statistics & Math/Citadel
Citadel logo
Citadel
Jan 16, 2026
easyData ScientistTechnical ScreenStatistics & Math
11
0

Suppose you have observed target values y1,y2,…,yny_1, y_2, \dots, y_n, and you want to fit the simplest possible model that predicts the same constant value for every observation:

y^i=cfor all i.\hat y_i = c \quad \text{for all } i.

Define the objective function using absolute error:

E(c)=∑i=1n∣yi−c∣.E(c) = \sum_{i=1}^{n} |y_i - c|.

What value of cc minimizes E(c)E(c)? Derive the result and explain whether the minimizer is always unique.

Loading comments...