Discord

Checklist VsOSh AI 2026 Regional Stage, Tour 1 (mathematics) · D task

MAE

Find the minimum mean absolute error of a straight-line predictor on 14 points shown in a figure.

  • Optimisation (L1 regression)
  • Russian original · English translation

The task

A sample of N = 14 observations (x_i, y_i) is shown in a figure. For the linear prediction ŷ(x) = a·x + b, find the minimum over a and b of MAE = (1/N)·Σ|ŷ(x_i) − y_i|.

Abridged and translated by SOTA from the official Russian materials. The official statement has the exact rules, and it wins wherever this summary differs.

In English

This task was published in Russian. SOTA translated its 3 files into English on 16 September 2026. Only the words changed in the notebooks: markdown, code comments, messages and printed output. The code, file names and paths are the original's, so a translated notebook runs with the original data.

Read the task statement in English 268 words

MAE

English translation by SOTA – AI Community of the Russian original. Organisers who would like this translation removed can email [email protected].

All-Russian School Olympiad in Informatics 2025–2026, Regional Stage, Grades 9–11
“Artificial Intelligence” profile, Tour 1, 17 January 2026
Task D

Points for the task: 50
Answer submission format: entering the answer
Number of attempts: 10
Submission that counts: the last one

Statement

There is a sample of N=14N = 14 observations (shown in the figure). Each point is given by a pair of coordinates (xi,yi)(x_i, y_i).

Consider the linear prediction y^(x)=ax+b\hat{y}(x) = a \cdot x + b. Find the minimum

MAE=1Ni=1Ny^(xi)yiMAE = \frac{1}{N} \sum_{i=1}^{N} |\hat{y}(x_i) - y_i|

of this prediction on the sample (xi,yi)(x_i, y_i) over all a,ba, b.

Scatter plot of the 14 observations on a grid, x from 0 to 11, y from 0 to 8

Translator's note: the figure above is the copy published with the official editorial; it is the same image as in the original statement. Read from its grid, the 14 points are (0,0)(0, 0), (0,2)(0, 2), (0,7)(0, 7), (0,8)(0, 8), (4,4)(4, 4), (4,7)(4, 7), (6,1)(6, 1), (6,5)(6, 5), (9,0)(9, 0), (9,1)(9, 1), (9,4)(9, 4), (9,7)(9, 7), (11,2)(11, 2) and (11,6)(11, 6).

Output format

Round the answer to 6 decimal places, using a point as the decimal separator.

Scoring

An exact match of the answer: 50 points.

Test results are not available during the tour.

Translated by SOTA. The Russian original is the official version and wins wherever the two differ. The figure is embedded from the official editorial, which publishes the same image; a translator's note lists the 14 points read from it. If you organise this olympiad and would like the translation removed, email [email protected] and we will take it down.

At a glance

You get
The 14 points are given only in a figure in the statement.
You submit
A number rounded to 6 decimal places (decimal point).
Scoring
Answer entry; 50 points for an exact match; 10 attempts, the last one counts; results hidden during the tour.
Rules
  • Python may be used, or the problem may be solved purely mathematically.
Format
Regional stage, Tour 1, 17 January 2026; grades 9–11; individual; 300-minute tour (Moscow procedure); answers entered in Yandex Contest.

Details

Year
2026, Regional venues across Russia (in person)
Round
Regional Stage, Tour 1 (mathematics) · D task
Language
Russian; English translation by SOTA
License
Not stated by the source