0Pricing
Data Science Academy · Урок

Среднее, медиана и мода

Три способа найти центр распределения

«Среднее, медиана и мода» — бесплатный урок Data Science Academy на CoddyKit. Это урок 1 из 4. Ты можешь прочитать весь урок бесплатно ниже — а потом практиковать его прямо в браузере с встроенным редактором кода и ИИ-репетитором 24/7. Это часть пути обучения Data Science Academy, и твой прогресс синхронизируется между веб-версией и приложением CoddyKit. Курс Data Science Academy содержит 4 уроков всего.

Части этого урока еще не переведены и отображаются на английском.

Finding the Center

Before you analyze anything, you ask where the data sits. A measure of center answers that with one number that stands in for the whole column. 🎯

Mean: The Average

The mean adds up every value and divides by how many there are. It is the balance point of your data, the classic average you already know.

Mean in pandas

In pandas you never loop to average. One method call on a column gives you the mean instantly.

df["age"].mean()

When the Mean Misleads

One huge value can drag the mean far from where most points sit. The mean is sensitive to outliers, so it is not always the honest center.

Median: The Middle Value

The median is the value sitting exactly in the middle once you sort the data. Half the points fall below it and half fall above.

Median Resists Outliers

Because it only cares about position, the median barely moves when a wild value appears. For skewed data like income, it often tells a fairer story.

df["income"].median()

Mode: The Most Common

The mode is simply the value that shows up most often. It is the only center that also works for text categories, not just numbers.

df["color"].mode()

More Than One Mode

Data can tie for most frequent, giving you two or more peaks. That is why mode in pandas returns a Series, never a single guaranteed number.

Mean vs Median Gap

When mean and median drift far apart, your data is skewed. A big gap is your first hint that one tail is stretching the average.

Picking the Right Center

Use the mean for tidy symmetric data, the median when outliers lurk, and the mode for categories. The shape of your data decides for you.

One Call, Many Stats

You rarely compute these alone. The describe method hands you mean and more for every numeric column in a single line.

df.describe()

Quick Check

A salary column has a few extremely high earners pulling the average up.

Recap: Three Centers

You now know three ways to find the center: mean for the average, median for the middle, and mode for the most common. Match the tool to your data's shape. 👏

Часто задаваемые вопросы

Урок «Среднее, медиана и мода» бесплатный?

Да — полный текст урока «Среднее, медиана и мода» бесплатно доступен здесь в веб-версии. Чтобы практиковать его интерактивно (встроенный редактор кода и ИИ-репетитор 24/7) и разблокировать остальной курс Data Science Academy, подпишись на CoddyKit PRO. Курс Data Science Academy содержит 4 уроков всего.

Чему я научусь в уроке «Среднее, медиана и мода»?

Три способа найти центр распределения Ты практикуешь Data Science Academy с помощью реального кода, который запускаешь прямо в браузере, и ИИ-репетитор 24/7 отвечает на твои вопросы во время урока.

Нужен ли мне опыт, чтобы начать Data Science Academy?

Предыдущий опыт не требуется. Data Science Academy на CoddyKit структурирован для всех уровней — от новичков до продвинутых, поэтому ты можешь начать отсюда или с самого начала и учиться в своем темпе. Это урок 1 из 4.

Сколько времени занимает урок «Среднее, медиана и мода»?

Большинство уроков CoddyKit занимают около 5–10 минут. Каждый из них компактный и интерактивный, поэтому ты постоянно делаешь прогресс и продолжаешь с того же места в веб-версии и приложении.

Можно ли писать и запускать код в этом уроке Data Science Academy?

Да. Каждый урок Data Science Academy включает встроенный редактор кода, поэтому ты пишешь и запускаешь реальный код прямо в браузере и получаешь моментальную обратную связь от AI — локальная установка не требуется.

Все уроки этого курса

  1. Среднее, медиана и мода
  2. Разброс: дисперсия и стандартное отклонение
  3. Минимум, максимум и квартили
  4. Выбросы и их значение
← Назад к Data Science Academy