Course contentsShow
← Data Science
Lesson 1173 of 2,14530. Exploratory Data Analysis (EDA) ProcessFree lesson

Numerical Variable Summary Statistics

Computing mean, median, mode, standard deviation, and percentiles for continuous and discrete variables.

Numerical Variable Summary Statistics

What you'll learn: How to compute and interpret five essential summary statistics—mean, median, mode, standard deviation, and percentiles—for numerical variables.

The Core Idea

Once you've understood your data through univariate analysis (looking at one variable at a time), the next step is to summarize numerical variables using statistics that describe their center, spread, and shape. These summary statistics are your first numerical lens into what your data looks like.

The Five Essential Statistics

Central Tendency (Center)

  • Mean: The arithmetic average. Add all values and divide by count. Sensitive to outliers.
  • Median: The middle value when sorted. Robust to outliers—better for skewed data.
  • Mode: The most frequently occurring value. More useful for discrete numbers than continuous ones.

Spread (Variability)

  • Standard Deviation: Measures how spread out values are from the mean. High standard deviation = more variability.

Position (Distribution)

  • Percentiles: The value below which a certain percentage of data falls. The 25th percentile (Q1), 50th (median), and 75th (Q3) split your data into quarters.

When to Use What

Think of these like different thermometers for your data's "temperature." If your data has extreme values (like income or property prices), median and percentiles tell a more honest story than mean. If your data is symmetric and well-behaved (like height measurements), mean and standard deviation work beautifully.

For discrete variables (counts, ratings), mode becomes more meaningful—it tells you the "typical" category by frequency.

Key Takeaway: Summary statistics compress thousands of numbers into 5-7 key values that describe center, spread, and distribution—choose mean/std for symmetric data, median/percentiles for skewed data, and always check them together for a complete picture.