Measure of Distribution Shape - (Skewness & Kurtosis)

Maths: Statistics for machine learning

2 min read

Published Oct 22 2025, updated Oct 23 2025


40
0
0
0

Machine LearningMathsNumPyPandasPythonStatistics

Measures of Distribution Shape describe how data are distributed around the centre — whether they are symmetrical, skewed, or have heavy or light tails.

They help you understand the pattern of the data distribution beyond just the mean and standard deviation.


There are two main shape measures:

  1. Skewness – describes the direction of asymmetry.
  2. Kurtosis – describes the tailedness or peakedness.



Skewness

Skewness measures the asymmetry of a distribution around its mean.

  • A symmetrical distribution (like a normal curve) has skewness ≈ 0.
  • A positively skewed distribution has a longer right tail (mean > median).
  • A negatively skewed distribution has a longer left tail (mean < median).

Interpretation:

  • Symmetrical
    • Value: ≈ 0
    • Tail direction: None
    • Relationship: mean ≈ median ≈ mode
  • Positively Skewed (Right)
    • Value: ≈ > 0
    • Tail direction: Right tail longer
    • Relationship: mean > median > mode
  • Negatively Skewed (Left)
    • Value: ≈ < 0
    • Tail direction: Left tail longer
    • Relationship: mean < median < mode




Kurtosis

Kurtosis measures the tailedness of a distribution — how peaked or flat it is compared to a normal distribution.

It indicates whether data have:

  • Heavy tails (more outliers)
  • Light tails (fewer outliers)

Types of Kurtosis (using excess kurtosis):

  • Mesokurtic
    • Value: 0
    • Shape: Normal shape
    • Interpretation: Moderate tails
  • Leptokurtic
    • Value: > 0
    • Shape: Sharper peak, heavy tails
    • Interpretation: More outliers
  • Platykurtic
    • Value: < 0
    • Shape: Flatter peak, light tails
    • Interpretation: Fewer outliers



How Skewness and Kurtosis Work Together

Measure

What It Tells You

Skewness

Direction of the tail (left or right)

Kurtosis

Thickness of the tails / height of the peak

Together

Give a complete picture of data shape beyond mean and variance





Visual example

Distribution

Skewness

Kurtosis

Shape

Normal

0

0

Symmetrical, moderate tails

Right-skewed

+1

+2

Long right tail, peaked

Left-skewed

-1

+1

Long left tail

Flat

0

-1

Evenly spread (platykurtic)



Skewness and Kurtosis examples





In Machine Learning / Data Science

  • Skewness helps detect when features are not symmetric — you might need transformations like
    • log(x), sqrt(x), or Box-Cox to make them more normal.
  • Kurtosis helps check for outliers or extreme values — high kurtosis means heavy tails.
  • Many algorithms (e.g., linear regression, PCA) assume normally distributed features, so understanding shape is essential.




Python Example

import pandas as pd

# Example dataset, notice the high outlier (50)
data = [12, 15, 18, 21, 22, 23, 24, 25, 26, 50]
s = pd.Series(data)

# Calculate shape measures
skew = s.skew()
# returns excess kurtosis
kurtosis = s.kurt()

print("Skewness:", skew)
print("Kurtosis (excess):", kurtosis)

Output:

Skewness: 1.88
Kurtosis (excess): 3.02

Interpretation:

  • Skewness > 0 → distribution is right-skewed (outlier on the right).
  • Kurtosis > 0 → distribution is leptokurtic (heavy tails, peaked).

Products from our shop

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Mug

Docker Cheat Sheet Mug

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Mug

Vim Cheat Sheet Mug

SimpleSteps.guide branded Travel Mug

SimpleSteps.guide branded Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - Black

Developer Excuse Javascript Mug - Black

SimpleSteps.guide branded stainless steel water bottle

SimpleSteps.guide branded stainless steel water bottle

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Dark

Developer Excuse Javascript Hoodie - Dark

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact