Questions tagged [density-estimation]

The construction of an estimate, based on observed data, of an unobservable underlying probability density function (pdf).

13 questions
3
votes
3 answers

How to convert regression into classification?

So I have a regression problem with bunch of features X, and labels in the amount (price $). How can I convert it to classification problem? I have read about convert label from continuous to categorical possibly thesholding at some points for…
3
votes
0 answers

A stupid question about contour plots

I am trying to make a contour plot for a point distribution using mat plot lib, but I find that the outermost points in the distribution are not included inside the perimeter of the outermost contour line. I have tried using the 'contourf' fill…
2
votes
1 answer

Simple example of Parzen window (kernel density estimation)

I am confused about the Parzen Window question. Suppose we have two training data points located at 0.5 and 0.7, and we use 0.3 as its rectangle window width. How do we estimate its probability density? According to the definition, the probability…
1
vote
0 answers

Why exactly KNN is outperforming Parzen by a huge margin in classificaton task

I'm trying to implement a Naive Bayes classifier, which uses either of hypercubic Parzen window or KNN to estimate a density function. The data I'm using is Fashion MNIST. The steps I take are that first I zero center the vectorized data and divide…
1
vote
0 answers

MLE for Poisson conditioned on multivariate Gaussian?

I am writing some Python code to fit 2D Gaussians to fluorescent emitters on a dark background to determine the subpixel-resolution (x, y) position of the fluorescent emitter. The crude, pixel-resolution (x, y) locations of the pixels are stored in…
1
vote
0 answers

How to evaluate KDE against histogram?

I am currently testing some approaches for density estimation, and I think the basic approach of histograms may not be the best option to me and KDE is certainly a good alternative to go. While ago I found a very interesting tutorial by Jake…
1
vote
0 answers

Learn smoothly varying mean and variance of a variable over a 2d domain

For a problem which I am working on at the moment, I'm interested in learning how the mean and variance of some response variable y changes with two independent variables x1 and x2 - i.e. for each coordinate in (x1, x2)-space I wish to have an…
1
vote
0 answers

Test independence based on Kernel Density Estimation

I am working on a problem where I have a dataset of $X$ is dataset with $(X, Y, T, K)$ four attributes, I'd like to test if $P(X, Y, T)P(K) = P(X, Y, T, K)$, that is if $X, Y, T$ is independent of $K$. I have two questions: Is it possible to use…
Dogemore
  • 121
  • 3
1
vote
1 answer

Packages for Density Estimation using K-Nearest Neighbor

I would like to have suggestions for packages that provide K-Nearest Neighbor density estimator, I've already searched the web (to not bother you guys with my question :) ), but most results were about kernel density estimator. I know that the both…
1
vote
1 answer

Connecting timeseries quantities to CDF

In the following paper, [Ponce-Flores, M., Frausto-Solís, J., Santamaría-Bonfil, G., Pérez-Ortega, J., & González-Barbosa, J. J. (2020). Time series complexities and their relationship to forecasting performance. Entropy, 22(1), 89.][1] several…
0
votes
2 answers

logistic regression or density estimation for binary dependent variable and binary (or categorical) features

I have a binary dependent variable $t$ and categorical features. We can even simplify to binary features since I can one-hot encode the categorical variables. In practice the one-hot encoding induces collinearity in the binary features so for…
0
votes
1 answer

how can i interpret kernel density plots from classification?

all, i have a classification problem where i am predicting likelihood of client defaulting on loan. i plotted the predicted probabilities from my model, and then plotted against the label '1' for default or 0 for non-default. it is cut out here but…
Maths12
  • 546
  • 6
  • 16
0
votes
0 answers

Function for KDE-style distribution generation for sampling

I have some points in pytorch and I would like to sample from a distribution that resembles these points. I noticed that the seaborn kde plots seem to draw out/define a distribution graphically and I was wondering if there was a way to do something…