Mathwords logoMathwords

Chernoff Face — Definition, Formula & Example

A Chernoff face is a chart that draws each data point as a cartoon face. Each variable controls one facial feature, such as mouth curve, eye size, or face width. Similar data points end up with similar-looking faces.

Herman Chernoff introduced the technique in 1973. Each observation x=(x1,x2,…,xk)\mathbf{x} = (x_1, x_2, \dots, x_k) in a kk-variable data set becomes one face glyph. Each variable xjx_j is assigned to a facial parameter fjf_j, such as head shape, eye size, nose length, or mouth curvature. A monotone function, usually linear, maps the observed range of xjx_j onto the allowed range of fjf_j. Chernoff's original design allowed up to 18 facial parameters.

Key Formula

f=fmin⁡+x−xmin⁡xmax⁡−xmin⁡ (fmax⁡−fmin⁡)f = f_{\min} + \frac{x - x_{\min}}{x_{\max} - x_{\min}}\,(f_{\max} - f_{\min})
Where:
  • xx = The observation's value of the variable
  • xmin⁡,xmax⁡x_{\min}, x_{\max} = The smallest and largest values of that variable in the data set
  • fmin⁡,fmax⁡f_{\min}, f_{\max} = The smallest and largest allowed settings of the facial feature
  • ff = The feature setting used to draw this observation's face

Worked Example

Problem: A used-car data set has fuel economy from 20 to 40 mpg, price from $10,000 to $30,000, and age from 0 to 12 years. You map the variables to features as follows. Fuel economy sets mouth curvature, from −1 (full frown) to +1 (full smile). Price sets face width, from 2 to 4 inches. Age sets eye height, from 0.2 to 0.6 inches. Find the feature settings for a car that gets 35 mpg, costs $15,000, and is 9 years old.
Step 1: Rescale fuel economy to mouth curvature. Here 35 mpg is 75% of the way from 20 to 40.
f=−1+35−2040−20 (1−(−1))=−1+0.75(2)=0.5f = -1 + \frac{35 - 20}{40 - 20}\,(1 - (-1)) = -1 + 0.75(2) = 0.5
Step 2: Rescale price to face width. A price of $15,000 is 25% of the way across the price range.
f=2+15000−1000030000−10000 (4−2)=2+0.25(2)=2.5f = 2 + \frac{15000 - 10000}{30000 - 10000}\,(4 - 2) = 2 + 0.25(2) = 2.5
Step 3: Rescale age to eye height. An age of 9 years is 75% of the way from 0 to 12.
f=0.2+9−012−0 (0.6−0.2)=0.2+0.75(0.4)=0.5f = 0.2 + \frac{9 - 0}{12 - 0}\,(0.6 - 0.2) = 0.2 + 0.75(0.4) = 0.5
Answer: This car's face has a mild smile (curvature 0.5), a narrow face (2.5 inches wide), and fairly large eyes (0.5 inch tall). A cheap, newer, gas-guzzling car would instead get a frown, a narrow face, and small eyes.

Why It Matters

In a multivariate statistics or data visualization course, you often need to compare dozens of observations on five or more variables at once. A scatter plot shows only two or three variables by position. People are very good at spotting small differences between faces, so a grid of faces can reveal clusters and outliers that a data table hides.

Common Mistakes

Mistake: Assuming the choice of which variable controls which feature does not matter.
Correction: Viewers notice the mouth and eyes far more than features like ear size or nose length. Swapping assignments can change which observations look alike. Put your most important variables on the most noticeable features, and state your mapping in a legend.

Related Terms

  • Box Plot — Summarizes one variable's spread instead of many variables per point
  • Box-and-Whisker Plot — Single-variable display that uses the five-number summary
  • Stemplot — Shows one variable's distribution while keeping the actual values
  • Population — Group whose members each become one face
  • Data Graph — Broader category of visual displays that includes this chart
  • Pictograph — Sibling chart that uses pictures to represent data