Track 2 · Describing Data · Lesson 8 of 11

Shape: skewness and kurtosis

Describe the shape of a distribution — symmetry, skew, modality and tails — and calculate and interpret skewness and excess kurtosis.

30 minIntermediate8 graded exercisesFree

An insurer's average motor claim is about 14 400 SAR, yet half of all claims are below 6 900 SAR and one claim alone is 480 000 SAR. Pricing, reserving and reporting all depend on understanding that shape: a few huge values in a long tail.

Centre and spread are two numbers; the shape is everything else a histogram shows. Four features cover most of what matters:

  • Symmetry or skew. A right-skewed (positively skewed) distribution has a long tail of large values — incomes, claim amounts, waiting times. A left-skewed one has a long tail of small values — scores on a very easy test, age at retirement.
  • Modality. One peak (unimodal), two (bimodal — often a sign of two groups mixed together), or none (uniform).
  • Tails. How often extreme values occur compared with a normal distribution.
  • Gaps and outliers. Isolated values or clusters away from the rest.

Skew shows up in the mean–median ordering. The mean is pulled towards the long tail; the median is not. So, as a rule of thumb, mean > median suggests right skew and mean < median suggests left skew. (It is a rule of thumb: discrete or multimodal data can break it, so always look at the histogram as well.)

Histogram of 1 500 vehicle values with a peak around 60 000 to 90 000 SAR and a long right tail reaching about 550 000 SAR.Vehicle value (SAR)Count
Insured vehicle values (insurance_claims dataset): right-skewed, with a few very expensive vehicles. Mean 95 505 SAR, median 83 500 SAR.
Show the data as a table
FromToCount
165002987526
2987543250117
4325056625175
5662570000230
7000083375199
8337596750167
96750110125147
110125123500114
12350013687585
13687515025063
15025016362532
16362517700038
17700019037534
19037520375017
20375021712512
2171252305007
2305002438757
2438752572507
2572502706253
2706252840002
2840002973755
2973753107502
3107503241253
3241253375001
3375003508751
3508753642503
3642503776250
3776253910000
3910004043751
4043754177500
4177504311250
4311254445000
4445004578750
4578754712501
4712504846250
4846254980000
4980005113750
5113755247500
5247505381250
5381255515001
g1=m3m23/2,G1=g1 n(n−1)n−2,where mk=1n∑i=1n(xi−xˉ)kg_1 = \frac{m_3}{m_2^{3/2}}, \qquad G_1 = g_1\,\frac{\sqrt{n(n-1)}}{n-2}, \qquad \text{where } m_k = \frac{1}{n}\sum_{i=1}^{n} (x_i - \bar{x})^k
Moment skewness g₁ and the adjusted sample skewness G₁ (Excel SKEW, pandas .skew(), and this course's default)
m2m_2
the average squared deviation (the population-style variance)
m3m_3
the average cubed deviation: cubing keeps the sign, so a long right tail makes it positive
g1g_1
skewness without units: 0 for a symmetric distribution, positive for right skew, negative for left skew
G1G_1
a small-sample adjustment of g1g_1; the two are almost equal for large nn

Rough guide: ∣G1∣<0.5|G_1| < 0.5 — fairly symmetric; 0.5 to 1 — moderately skewed; above 1 — strongly skewed. In the (synthetic) student_scores data, exam scores have G1=−0.01G_1 = -0.01 (symmetric, mean 70.9 ≈ median 71). Vehicle values have G1=2.10G_1 = 2.10.

excess kurtosis g2=m4m22−3\text{excess kurtosis } g_2 = \frac{m_4}{m_2^{2}} - 3
Excess kurtosis (the course and Excel KURT report the adjusted version G₂; both are 0 for a normal distribution)
m4m_4
the average fourth power of the deviations — dominated by the most extreme values
−3-3
subtracting 3 (the value of m4/m22m_4/m_2^2 for any normal distribution) makes the normal the reference point: excess kurtosis 0

Kurtosis is about the tails, not about how “peaked” the histogram looks. Positive excess kurtosis means extreme values (far from the mean in SD terms) are more frequent than a normal distribution would produce — heavy tails. Daily investment returns are the classic example: in asset_returns the growth fund has excess kurtosis 11.3, so crash days that “should” almost never happen under a normal model do happen. Negative excess kurtosis (light tails) occurs for flat, bounded distributions such as the uniform (−1.2).

Loading the interactive…
Generate data with chosen skewness and tail heaviness; the widget shows the histogram, the mean and median, and the sample skewness and excess kurtosis.

Try this

  • Increase the skewness slider. Which way does the mean move relative to the median?

  • Return to a symmetric shape and make the tails heavier. Does the skewness change? What happens to the excess kurtosis, and where do the extra values appear on the histogram?

  • Press New sample a few times with the same settings. How much do skewness and kurtosis bounce around? (They are noisy statistics, especially kurtosis.)

Quick check

A company reports a mean salary of 18 400 SAR and a median of 13 100 SAR. What does this suggest about the shape?

Exercises

The lesson is complete when every exercise is answered correctly. Hints are free; viewing a worked solution before solving means the exercise won't count towards mastery.

0 of 8 exercises correct (not saved — sign in to keep your progress)

Exercise 1 · Practice, difficulty 1 of 3

Name the shape

Not started

For each variable, choose the shape you would expect its distribution to have.

Household income in a country
Adult height of women in one country
Scores on a very easy test where most people score 90–100%
Time customers wait on hold at a call centre
Age at death in a country with high life expectancy
Daily maximum temperature in one city during one summer month

Exercise 2 · Guided, difficulty 1 of 3

A quick skewness index

Not started

A retailer's daily sales (SAR) have mean 790, median 590 and standard deviation 330.

Pearson's second skewness coefficient is Sk2=3(xˉ−median)/s\text{Sk}_2 = 3(\bar{x} - \text{median})/s. Calculate it to 2 decimal places and note its sign.

Exercise 3 · Challenge, difficulty 3 of 3

Moment skewness by hand

Not started

Five patients' lengths of hospital stay (days) are 2, 4, 5, 6, 13.

Calculate the moment skewness g1=m3/m23/2g_1 = m_3 / m_2^{3/2}, where mkm_k is the average of the kk-th powers of the deviations from the mean (divide by nn). Give it to 3 decimal places.

Exercise 4 · Practice, difficulty 1 of 3

Kurtosis or excess kurtosis?

Not started

An old statistics package reports the kurtosis of a dataset as m4/m22=7.82m_4/m_2^2 = 7.82 (it does not subtract 3). What is the excess kurtosis, and are the tails heavier or lighter than a normal distribution's?

Exercise 5 · Application, difficulty 2 of 3

The shape of claim sizes

Not started

In the insurance_claims dataset, most policies have no claim, so total_claims_sar is 0 for them. Restrict to policies with a claim (total_claims_sar > 0). Calculate the mean, the median and the sample skewness (G1G_1, as Excel SKEW) of the claim amounts.

Data: insurance_claims · Open in the lab to explore and calculate.

Exercise 6 · Interpretation, difficulty 1 of 3

Reading the mean–median gap

Not started

In a company training course, the final assessment scores have mean 61 and median 74 (out of 100). What is the most likely shape of the distribution?

Choose one

Exercise 7 · Application, difficulty 2 of 3

Fat tails in fund returns

Not started

Calculate the excess kurtosis (G2G_2, as Excel KURT) of the daily returns growth_fund in asset_returns, to 2 decimal places.

Data: asset_returns · Open in the lab to explore and calculate.

Exercise 8 · Interpretation, difficulty 2 of 3

Describe claim sizes for a manager

Not started

Among policies with a claim, claim amounts have mean 14 439 SAR, median 6 884 SAR, skewness 10.4 and one claim of 480 000 SAR. In two or three sentences, describe the shape of the distribution for a non-specialist manager and say which typical value to quote.

0 words

What you can now do

  • Describe a distribution's symmetry, modality, tails and unusual values
  • Use the mean–median ordering as a quick check of skew
  • Calculate and interpret skewness and excess kurtosis, and know which version software reports
  • Recognise how a single extreme value can dominate skewness and kurtosis