# Uzupełnianie brakujących danych (imputacja)

EN: **Missing data imputation** · id `missingimputation` · aliases: imputation, imputacja, uzupełnianie braków

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Uczenie maszynowe](https://aiatlasgraph.com/t/ml.md) › [Przygotowanie cech (feature engineering)](https://aiatlasgraph.com/t/featureeng.md) › Uzupełnianie brakujących danych (imputacja)

## Description

- PL: Zastępowanie braków wartościami szacowanymi: prostymi statystykami, sąsiadami albo modelem z innych cech, często z dodatkowym wskaźnikiem braku.
- EN: Replacing missing entries with estimates from simple statistics, neighbours or a model of other features, often with an added missingness indicator.

## In one sentence

- PL: Sposoby wypełniania pustych pól w tabeli tak, żeby model mógł z niej korzystać.
- EN: Ways to fill empty fields in a table so a model can use it.

## Problem it solves

- PL: W prawdziwych danych zawsze czegoś brakuje, a wiele modeli nie przyjmuje pustych pól albo uczy się z nich błędnie.
- EN: Real data always has gaps, and many models either reject empty fields or learn the wrong thing from them.

## What it does

- PL: Zgaduje brakującą wartość z tego, co wiadomo: ze średniej, z podobnych wierszy albo z innych kolumn, i odnotowuje, że pole było puste.
- EN: It guesses a missing value from what is known, from an average, similar rows or other columns, and records that the field was empty.

## Everyday example

- PL: W ankiecie klienta brakuje wydatków miesięcznych, więc szacujesz je z wieku, miejsca zamieszkania i zakupów podobnych osób.
- EN: A customer survey lacks monthly spending, so you estimate it from age, location and the purchases of similar people.

## This concerns you if you…

- PL: twoje tabele mają puste komórki
- PL: nie chcesz wyrzucać niepełnych wierszy
- EN: your tables have empty cells
- EN: don't want to throw away incomplete rows

## Keywords

SimpleImputer · KNNImputer · IterativeImputer · MICE · MissingIndicator · multiple imputation · MCAR MAR MNAR

## How it works

- PL: Imputacja jednowymiarowa wstawia średnią, medianę lub najczęstszą wartość kolumny. Wielowymiarowa szacuje brak z innych cech: z k najbliższych wierszy albo iteracyjnie, modelując każdą kolumnę regresją pozostałych (styl MICE). Imputer dopasowuje się wyłącznie na zbiorze treningowym.
- EN: Univariate imputation inserts the column mean, median or most frequent value. Multivariate imputation estimates gaps from other features: from the k nearest rows, or iteratively by regressing each column on the others (MICE-style). The imputer is fitted on training data only.

## Limits

- PL: Gdy braki nie są losowe, sam fakt braku niesie informację, więc warto dodać wskaźnik braku. Imputacja zaniża niepewność i zniekształca rozkłady. Metody iteracyjne szybko drożeją wraz z liczbą kolumn.
- EN: When values are not missing at random, missingness itself carries information, so an indicator helps. Imputation understates uncertainty and distorts distributions. Iterative methods get expensive quickly as columns grow.

## Key terms

- PL: **MCAR / MAR / MNAR**: Braki całkiem losowe, zależne od innych danych albo od samej brakującej wartości.
- PL: **wskaźnik braku**: Dodatkowa kolumna mówiąca modelowi, że wartość była pusta.
- PL: **MICE**: Iteracyjne uzupełnianie kolumna po kolumnie modelami regresji.
- EN: **MCAR / MAR / MNAR**: Missing completely at random, depending on other data, or on the missing value itself.
- EN: **missingness indicator**: An extra column telling the model the value was empty.
- EN: **MICE**: Iterative column-by-column filling using regression models.

## Know first

- [Statystyka i niepewność (Statistics and uncertainty)](https://aiatlasgraph.com/t/probability.md)

## Related topics

Untyped, symmetric "see also" links.

- [Czyszczenie i jakość (Data cleaning and quality)](https://aiatlasgraph.com/t/cleaning.md)

## Sources

- [scikit-learn — IterativeImputer (API documentation)](<https://scikit-learn.org/stable/modules/generated/sklearn.impute.IterativeImputer.html>) `sklearn-iterativeimputer` · by scikit-learn developers

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/missingimputation · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
