Kernel Density Estimation / Parzen Windows

Kernel Density Estimation / Parzen Windows

Nonparametric Methods Jason Corso SUNY at Buffalo J. Corso (SUNY at Buffalo) Nonparametric Methods 1 / 49 We will examine nonparametric procedures that can be used with arbitrary distributions and without the assumption that the underlying form of the densities are known. Histograms. Kernel Density Estimation / Parzen Windows. k-Nearest Neighbor Density Estimation. Real Example in Figure-Ground Segmentation Nonparametric Methods Overview Previously, we've assumed that the forms of the underlying densities were of some particular known parametric form. But, what if this is not the case? Indeed, for most real-world pattern recognition scenarios this assumption is suspect. For example, most real-world entities have multimodal distributions whereas classical parametric densities are primarily unimodal. J. Corso (SUNY at Buffalo) Nonparametric Methods 2 / 49 Nonparametric Methods Overview Previously, we've assumed that the forms of the underlying densities were of some particular known parametric form. But, what if this is not the case? Indeed, for most real-world pattern recognition scenarios this assumption is suspect. For example, most real-world entities have multimodal distributions whereas classical parametric densities are primarily unimodal. We will examine nonparametric procedures that can be used with arbitrary distributions and without the assumption that the underlying form of the densities are known. Histograms. Kernel Density Estimation / Parzen Windows. k-Nearest Neighbor Density Estimation. Real Example in Figure-Ground Segmentation J. Corso (SUNY at Buffalo) Nonparametric Methods 2 / 49 p(X) X p(X Y = 1) p(Y ) | X Histograms Histograms p(X, Y ) Y = 2 Y = 1 X J. Corso (SUNY at Buffalo) Nonparametric Methods 3 / 49 p(X) X p(X Y = 1) p(Y ) | X Histograms Histograms p(X, Y ) Y = 2 Y = 1 X J. Corso (SUNY at Buffalo) Nonparametric Methods 3 / 49 p(X) X p(X Y = 1) p(Y ) | X Histograms Histograms p(X, Y ) Y = 2 Y = 1 X J. Corso (SUNY at Buffalo) Nonparametric Methods 3 / 49 p(X) X p(X Y = 1) p(Y ) | X Histograms Histograms p(X, Y ) Y = 2 Y = 1 X J. Corso (SUNY at Buffalo) Nonparametric Methods 3 / 49 Standard histograms simply partition x into distinct bins of width ∆i and then count the number ni of observations x falling into bin i. To turn this count into a normalized probability density, we simply divide by the total number of observations N and by the width ∆i of the bins. This gives us: ni pi = (1) N∆i Hence the model for the density p(x) is constant over the width of each bin. (And often the bins are chosen to have the same width ∆i = ∆.) Histograms Histogram Density Representation Consider a single continuous variable x and let's say we have a set D of N of them x1; : : : ; x . Our goal is to model p(x) from . f N g D J. Corso (SUNY at Buffalo) Nonparametric Methods 4 / 49 To turn this count into a normalized probability density, we simply divide by the total number of observations N and by the width ∆i of the bins. This gives us: ni pi = (1) N∆i Hence the model for the density p(x) is constant over the width of each bin. (And often the bins are chosen to have the same width ∆i = ∆.) Histograms Histogram Density Representation Consider a single continuous variable x and let's say we have a set D of N of them x1; : : : ; x . Our goal is to model p(x) from . f N g D Standard histograms simply partition x into distinct bins of width ∆i and then count the number ni of observations x falling into bin i. J. Corso (SUNY at Buffalo) Nonparametric Methods 4 / 49 Hence the model for the density p(x) is constant over the width of each bin. (And often the bins are chosen to have the same width ∆i = ∆.) Histograms Histogram Density Representation Consider a single continuous variable x and let's say we have a set D of N of them x1; : : : ; x . Our goal is to model p(x) from . f N g D Standard histograms simply partition x into distinct bins of width ∆i and then count the number ni of observations x falling into bin i. To turn this count into a normalized probability density, we simply divide by the total number of observations N and by the width ∆i of the bins. This gives us: ni pi = (1) N∆i J. Corso (SUNY at Buffalo) Nonparametric Methods 4 / 49 Histograms Histogram Density Representation Consider a single continuous variable x and let's say we have a set D of N of them x1; : : : ; x . Our goal is to model p(x) from . f N g D Standard histograms simply partition x into distinct bins of width ∆i and then count the number ni of observations x falling into bin i. To turn this count into a normalized probability density, we simply divide by the total number of observations N and by the width ∆i of the bins. This gives us: ni pi = (1) N∆i Hence the model for the density p(x) is constant over the width of each bin. (And often the bins are chosen to have the same width ∆i = ∆.) J. Corso (SUNY at Buffalo) Nonparametric Methods 4 / 49 Histograms Bin Number 0 1 2 Δ Bin Count 3 6 7 J. Corso (SUNY at Buffalo) Nonparametric Methods 5 / 49 Histograms Histogram Density as a Function of Bin Width 5 ∆ = 0.04 0 0 0.5 1 5 ∆ = 0.08 0 0 0.5 1 5 ∆ = 0.25 0 0 0.5 1 J. Corso (SUNY at Buffalo) Nonparametric Methods 6 / 49 When ∆ is very small (top), the resulting density is quite spiky and hallucinates a lot of structure not present in p(x). When ∆ is very big (bottom), the resulting density is quite smooth and consequently fails to capture the bimodality of p(x). It appears that the best results are obtained for some intermediate value of ∆, which is given in the middle figure. In principle, a histogram density model is also dependent on the choice of the edge location of each bin. Histograms Histogram Density as a Function of Bin Width 5 The green curve∆ = is 0. the04 underlying true density from which the samples were drawn. It is a mixture of two Gaussians. 0 0 0.5 1 5 ∆ = 0.08 0 0 0.5 1 5 ∆ = 0.25 0 0 0.5 1 J. Corso (SUNY at Buffalo) Nonparametric Methods 7 / 49 When ∆ is very big (bottom), the resulting density is quite smooth and consequently fails to capture the bimodality of p(x). It appears that the best results are obtained for some intermediate value of ∆, which is given in the middle figure. In principle, a histogram density model is also dependent on the choice of the edge location of each bin. Histograms Histogram Density as a Function of Bin Width 5 The green curve∆ = is 0. the04 underlying true density from which the samples were drawn. It is a mixture of two Gaussians. 0 When ∆0is very small (top), the0.5 1 resulting5 density is quite spiky and hallucinates∆ a lot = 0of.08 structure not present in p(x). 0 0 0.5 1 5 ∆ = 0.25 0 0 0.5 1 J. Corso (SUNY at Buffalo) Nonparametric Methods 7 / 49 It appears that the best results are obtained for some intermediate value of ∆, which is given in the middle figure. In principle, a histogram density model is also dependent on the choice of the edge location of each bin. Histograms Histogram Density as a Function of Bin Width 5 The green curve∆ = is 0. the04 underlying true density from which the samples were drawn. It is a mixture of two Gaussians. 0 When ∆0is very small (top), the0.5 1 resulting5 density is quite spiky and hallucinates∆ a lot = 0of.08 structure not present in p(x). When ∆0 is very big (bottom), the resulting density is quite smooth and consequently0 fails to capture0.5 the bimodality of . 1 5 p(x) ∆ = 0.25 0 0 0.5 1 J. Corso (SUNY at Buffalo) Nonparametric Methods 7 / 49 In principle, a histogram density model is also dependent on the choice of the edge location of each bin. Histograms Histogram Density as a Function of Bin Width 5 The green curve∆ = is 0. the04 underlying true density from which the samples were drawn. It is a mixture of two Gaussians. 0 When ∆0is very small (top), the0.5 1 resulting5 density is quite spiky and hallucinates∆ a lot = 0of.08 structure not present in p(x). When ∆0 is very big (bottom), the resulting density is quite smooth and consequently0 fails to capture0.5 the bimodality of . 1 5 p(x) It appears that∆ = the 0.25best results are obtained for some intermediate value of ∆, which is given in the middle figure. 0 0 0.5 1 J. Corso (SUNY at Buffalo) Nonparametric Methods 7 / 49 Histograms Histogram Density as a Function of Bin Width 5 The green curve∆ = is 0. the04 underlying true density from which the samples were drawn. It is a mixture of two Gaussians. 0 When ∆0is very small (top), the0.5 1 resulting5 density is quite spiky and hallucinates∆ a lot = 0of.08 structure not present in p(x). When ∆0 is very big (bottom), the resulting density is quite smooth and consequently0 fails to capture0.5 the bimodality of . 1 5 p(x) It appears that∆ = the 0.25best results are obtained for some intermediate value of ∆, which is given in the middle figure.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    114 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us