Actuarial Notes

Univariate Plot

Study guides: Exam PA, Exam MAS-I, Exam ACIA-CAPSTONE

A Univariate Plot is a plot of the distribution of one variable, its centre, spread, shape and outliers, without reference to any other variable. Plotting the distribution of each variable is the first step of exploratory data analysis, and it doubles as a data quality check that reveals errors before anything is built on the data. The univariate plot depends on the variable's data type:

Plot Data type Shows
Histogram Continuous The shape of the distribution, including skewness and a second mode
Box plot Continuous The median, the quartiles and the outliers
Bar chart with one bar per value Discrete count How often each value occurs, including the share of zeros and the shape of the tail
Bar chart of counts or exposure by level Categorical Levels with little data
QQ plot Continuous Whether the variable follows an assumed distribution

The Histogram, the box plot and the QQ plot each have their own page.

A data set has claim count per policy (an integer, mostly zero), claim severity (positive and right-skewed) and territory (12 levels). Which univariate plot suits each variable?

  • Claim count is a discrete count, so a bar chart with one bar per value shows the share of zeros and the tail.
  • Severity is continuous and right-skewed, so a histogram of its logarithm shows its shape, and a box plot shows its outliers.
  • Territory is categorical, so a bar chart of exposure by territory shows which territories have little data.

Bar chart of exposure by level

A bar chart of exposure by level is the univariate plot of a categorical predictor. A level with few observations has an imprecisely estimated coefficient, with a large standard error. An apparent difference at such a level should be confirmed, or given credibility weight, before it is fully priced.

A bar chart of exposure by territory shows that territory 12 has 40 car-years, against several thousand in each other territory. A frequency model gives territory 12 the highest relativity. Should that relativity be priced in full?

  • Territory 12 has very little exposure, so its coefficient has a large standard error.
  • Its high relativity may be chance.
  • It should be confirmed with more data, or credibility-weighted toward the overall level, before it is priced in full.

What a univariate plot cannot show

A univariate plot shows one variable at a time, so it cannot show:

  1. A relationship with the response, which needs a scatter plot or side-by-side box plots.
  2. Differences between groups, because a single histogram of pooled data shows the overall distribution and hides them.
  3. A change over time, because a box plot or a histogram discards the time order.
  4. In a box plot, how many observations share a value, because repeated identical values are drawn as one point. A pile-up at one value is revealed by a histogram.

Drawing a histogram of a count A histogram of a count that is mostly zero shows one tall bar, and bins that do not align with the integers leave gaps. A bar chart with one bar per value is the univariate plot of a count.

Practice questions

Actuarial Notes