A kernel distribution is a non-parametric distribution of a random variable which can be used when parametric distribution cannot properly model the data.
6. 6
Histogram, theoretical densities, empirical and
theoretical CDFs
Figure 1: Goodness-of-fit plot for various distributions fitted to desired speed (a) histogram and theoretical densities;
(b) empirical and theoretical CDFs.
Let’s first check some of the parametric distributions with data.
Remark: From observation we assume that not any of the parametric distributions
well fitted with the data.
(a) (b)
8. 8
Kernel Distribution
Kernel Density Estimator:
𝑓ℎ 𝑥 =
1
𝑛ℎ
𝑖=1
𝑛
𝐾(
𝑥 − 𝑥𝑖
ℎ
) ; −∞ < 𝑥 < ∞
where n is the sample size; K(.) is the kernel smoothing function, h is the bandwidth.
A kernel distribution is an example of non-parametric probability
distribution of a random variable. We can consider this distribution,
when parametric distribution cannot properly model the data.
10. 10
Kernel Smoothing Function
• The kernel smoothing function 𝐾 . is a real valued function basically
refers to the shape of the probability distributions for each value in the
data.
It satisfies the following properties:
(i) 𝐾 𝑥 ≥ 0 ; ∀ 𝑥
(ii) −∞
∞
𝐾 𝑥 𝑑𝑥 = 1
• There are several options available for defining the kernel smoothing
function. For example,
Normal kernel : 𝐾 𝑥 =
1
2𝜋
𝑒−
1
2
𝑥2
; −∞ ≤ 𝑥 ≤ ∞
Epanechnikov kernel : 𝐾 𝑥 =
3
4
1 − 𝑥2 ; −1 ≤ 𝑥 ≤ 1
13. 13
Empirical and Kernel CDFs
Figure 5. Empirical and theoretical CDFs for Kernel distribution of desired speed.
From observation we conclude that kernel probabilistic distribution
well fitted with the data.