ArticleslgStudy

mathematics

Multivariate kernel density estimation

Multivariate kernel density estimation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Multivariate kernel density estimation rather than just read about it. In short: Kernel density estimation is a nonparametric technique for density estimation i.e., estimation of probability density functions, which is one of the fundamental questions in statistics. It can be viewed as a generalisation of histogram density estimation with improved statistical properties.

Multivariate kernel density estimation — main illustration
Multivariate kernel density estimation — illustration

Key takeaways

  • Multivariate kernel density estimation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Multivariate kernel density estimation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Multivariate kernel density estimation from memory before moving on to harder problems.

Reference excerpt

Kernel density estimation is a nonparametric technique for density estimation i.e., estimation of probability density functions, which is one of the fundamental questions in statistics. It can be viewed as a generalisation of histogram density estimation with improved statistical properties. Apart from histograms, other types of density estimators include parametric, spline, wavelet and Fourier series. Kernel density estimators were first introduced in the scientific literature for univariate data in the 1950s and 1960s and subsequently have been widely adopted. It was soon recognised that analogous estimators for multivariate data would be an important addition to multivariate statistics. Based on research carried out in the 1990s and 2000s, multivariate kernel density estimation has reached a level of maturity comparable to its univariate counterparts.

Motivation We take an illustrative synthetic bivariate data set of 50 points to illustrate the construction of histograms. This requires the choice of an anchor point (the lower left corner of the histogram grid). For the histogram on the left, we choose (−1.5, −1.5): for the one on the right, we shift the anchor point by 0.125 in both directions to (−1.625, −1.625). Both histograms have a binwidth of 0.5, so any differences are due to the change in the anchor point only. The colour-coding indicates the number of data points which fall into a bin: 0=white, 1=pale yellow, 2=bright yellow, 3=orange, 4=red. The left histogram appears to indicate that the upper half has a higher density than the lower half, whereas the reverse is the case for the right-hand histogram, confirming that histograms are highly sensitive to the placement of the anchor point.

One possible solution to this anchor point placement problem is to remove the histogram binning grid completely. In the left figure below, a kernel (represented by the grey lines) is centred at each of the 50 data points above. The result of summing these kernels is given on the right figure, which is a kernel density estimate. The most striking difference between kernel density estimates and histograms is that the former are easier to interpret since they do not contain artifices induced by a binning grid. The coloured contours correspond to the smallest region which contains the respective probability mass: red = 25%, orange + red = 50%, yellow + orange + red = 75%, thus indicating that a single central region contains the highest density.

The goal of density estimation is to take a finite sample of data and to make inferences about the underlying probability density function everywhere, including where no data are observed. In kernel density estimation, the contribution of each data point is smoothed out from a single point into a region of space surrounding it. Aggregating the individually smoothed contributions gives an overall picture of the structure of the data and its density function. In the details to follow, we show that this approach leads to a reasonable estimate of the underlying density function.

Definition The previous figure is a graphical representation of kernel density estimate, which we now define in an exact manner. Let x1, x2, ..., xn be a sample of d-variate random vectors drawn from a common distribution described by the density function ƒ. The kernel density estimate is defined to be

f ^ H ( x ) = 1 n ∑ i = 1 n K H ( x − x i ) {\displaystyle {\hat {f}}_{\mathbf {H} }(\mathbf {x} )={\frac {1}{n}}\sum _{i=1}^{n}K_{\mathbf {H} }(\mathbf {x} -\mathbf {x} _{i})}

where

x = (x1, x2, …, xd)T, xi = (xi1, xi2, …, xid)T, i = 1, 2, …, n are d-vectors; H is the bandwidth (or smoothing) d×d matrix which is symmetric and positive definite; K is the kernel function which is a symmetric multivariate density;

… excerpt ends here. Continue reading the full article.

Illustrations

Multivariate kernel density estimation: Construction of 2D kernel density estimate. Left. Individual kernels. Right. Kernel density estimate.
Construction of 2D kernel density estimate. Left. Individual kernels. Right. Kernel density estimate.
Multivariate kernel density estimation: Comparison of the three main bandwidth matrix parametrisation classes. Left. S positive scalar times the identity matrix. Centre. D diagonal matrix with positive entries on the main diagonal. Right. F symmetric positive definite matrix.
Comparison of the three main bandwidth matrix parametrisation classes. Left. S positive scalar times the identity matrix. Centre. D diagonal matrix with positive entries on the main diagonal. Right. F symmetric positive definite matrix.
Multivariate kernel density estimation: Old Faithful Geyser data kernel density estimate with plug-in bandwidth matrix.
Old Faithful Geyser data kernel density estimate with plug-in bandwidth matrix.
Multivariate kernel density estimation: Kernel density estimate with diagonal bandwidth for synthetic normal mixture data.
Kernel density estimate with diagonal bandwidth for synthetic normal mixture data.
Multivariate kernel density estimation: Demonstration of the filter function 
  
    
      
        
          I
          
            
              
                A
                →
              
            
          
        
        (
        
          
            
              t
              →
            
          
        
        )
      
    
    {\displaystyle I_{\vec {A}}({\vec {t}})}
  
. The square of the empirical distribution function 
  
    
      
        
          |
        
        
          
            
              φ
              ^
            
          
        
        
          
            |
          
          
            2
          
        
      
    
    {\displaystyle |{\hat {\varphi }}|^{2}}
  
 from N=10,000 samples of the ‘transition distribution’ discussed in Section  3.2 (and shown in Fig. 4), for 
  
    
      
        
          |
        
        
          
            
              φ
              ^
            
          
        
        
          
            |
          
          
            2
          
        
        ≥
        4
        (
        N
        −
        1
        )
        
          N
          
            −
            2
          
        
      
    
    {\displaystyle |{\hat {\varphi }}|^{2}\geq 4(N-1)N^{-2}}
  
. There are two color schemes present in this figure. The predominantly dark, multicolored colored ‘X-shaped’ region in the center corresponds to values of 
  
    
      
        
          |
        
        
          
            
              φ
              ^
            
          
        
        
          
            |
          
          
            2
          
        
      
    
    {\displaystyle |{\hat {\varphi }}|^{2}}
  
 for the lowest contiguous hypervolume (the area containing the origin); the colorbar at right applies to colors in this region. The lightly colored, monotone areas away from the first contiguous hypervolume correspond to additional contiguous hypervolumes (areas) with 
  
    
      
        
          |
        
        
          
            
              φ
              ^
            
          
        
        
          
            |
          
          
            2
          
        
        ≥
        4
        (
        N
        −
        1
        )
        
          N
          
            −
            2
          
        
      
    
    {\displaystyle |{\hat {\varphi }}|^{2}\geq 4(N-1)N^{-2}}
  
. The colors of these areas are arbitrary and only serve to visually differentiate nearby contiguous areas from one another.
Demonstration of the filter function I A → ( t → ) {\displaystyle I_{\vec {A}}({\vec {t}})} . The square of the empirical distribution function | φ ^ | 2 {\displaystyle |{\hat {\varphi }}|^{2}} from N=10,000 samples of the ‘transition distribution’ discussed in Section 3.2 (and shown in Fig. 4), for | φ ^ | 2 ≥ 4 ( N − 1 ) N − 2 {\displaystyle |{\hat {\varphi }}|^{2}\geq 4(N-1)N^{-2}} . There are two color schemes present in this figure. The predominantly dark, multicolored colored ‘X-shaped’ region in the center corresponds to values of | φ ^ | 2 {\displaystyle |{\hat {\varphi }}|^{2}} for the lowest contiguous hypervolume (the area containing the origin); the colorbar at right applies to colors in this region. The lightly colored, monotone areas away from the first contiguous hypervolume correspond to additional contiguous hypervolumes (areas) with | φ ^ | 2 ≥ 4 ( N − 1 ) N − 2 {\displaystyle |{\hat {\varphi }}|^{2}\geq 4(N-1)N^{-2}} . The colors of these areas are arbitrary and only serve to visually differentiate nearby contiguous areas from one another.

Worked examples

Example 1 — a first encounter with Multivariate kernel density estimation

Start with the simplest possible case. Write down what Multivariate kernel density estimation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Multivariate kernel density estimation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Multivariate kernel density estimation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Multivariate kernel density estimation

In research
Multivariate kernel density estimation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Multivariate kernel density estimation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Multivariate kernel density estimation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational statistics, Estimation of densities, Multivariate statistics, so understanding it makes those chapters shorter.
In everyday life
Look for Multivariate kernel density estimation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Multivariate kernel density estimation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Multivariate kernel density estimation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Multivariate kernel density estimation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Multivariate kernel density estimation in simple terms?

Kernel density estimation is a nonparametric technique for density estimation i.e., estimation of probability density functions, which is one of the fundamental questions in statistics. It can be viewed as a generalisation of histogram density estimation with improved statistical properties.

Why does Multivariate kernel density estimation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Multivariate kernel density estimation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Multivariate kernel density estimation.

Tags

  • Computational statistics
  • Estimation of densities
  • Multivariate statistics
  • Nonparametric statistics

Keep exploring