Issue import pandas as pd import seaborn as sns ser_test = pd.Series([1,0,1,4,6,0,6,5,1,3,2,5,1]) sns.kdeplot(ser_test, cumulative=True) The above code generates the following CDF graph: But when the elements of the series are modified to: ser_test = pd.Series([1,0,1,1,6,0,6,1,1,0,2,1,1]) sns.kdeplot(ser_test, cumulative=True) I get the
Continue readingTag: kernel-density
[SOLVED] How to calculate percent overlap in distributions in r?
Issue I have a dummy dataframe below where I’d like to calculate the pairwise percent overlap between site distributions. Basically, what percent of site1 and site2 are overlapping, site2 vs site3 and site1 vs site3? structure(list(site = c("site1", "site1", "site1",
Continue reading[SOLVED] Is there a way to get the probability from the probability density in multivariate kernel estimation?
Issue I have a question about multivariate kernel density in matlab, which is my first time using it. I have a 3-dimensional sample data (x, y, z in axes) and want to find a probability of being in a certain
Continue reading[SOLVED] Kernel Density estimation in projected coordinate system
Issue I am using the Kernel Density Estimation from the Python module sklearn. My data is in a Geopandas GeoDataframe. Currently, I am doing this in geographic coordinate (EPSG:4326). However, I want to do this with projected coordinates in UTM
Continue reading[SOLVED] Kernel Density Estimation for clustering 1 dimensional data
Issue I am using Matlab and the code provided at http://www.mathworks.com/matlabcentral/fileexchange/14034-kernel-density-estimator/content/kde.m to cluster 1D data. In particular I estimate the density function of my data and then analysing the peaks I should be able to identify the different distributions that
Continue reading[SOLVED] 2D Kernel Density Estimate in Matlab
Issue I am using this function to estimate kernel density in 2D. I am slightly confused by the parameters of this function however. Here is an example, viewed from directly above, where density is being calculated at each point (O)
Continue reading[SOLVED] Finding 2D area defined by contour lines in Matlab
Issue I am having difficulty with calculating 2D area of contours produced from a Kernel Density Estimation (KDE) in Matlab. I have three variables: X and Y = meshgrid which variable ‘density’ is computed over (256×256) density = density computed
Continue reading[SOLVED] Kernel Density Estimation for clustering 1 dimensional data
Issue I am using Matlab and the code provided at http://www.mathworks.com/matlabcentral/fileexchange/14034-kernel-density-estimator/content/kde.m to cluster 1D data. In particular I estimate the density function of my data and then analysing the peaks I should be able to identify the different distributions that
Continue reading[SOLVED] 2D Kernel Density Estimate in Matlab
Issue I am using this function to estimate kernel density in 2D. I am slightly confused by the parameters of this function however. Here is an example, viewed from directly above, where density is being calculated at each point (O)
Continue reading[SOLVED] Finding 2D area defined by contour lines in Matlab
Issue I am having difficulty with calculating 2D area of contours produced from a Kernel Density Estimation (KDE) in Matlab. I have three variables: X and Y = meshgrid which variable ‘density’ is computed over (256×256) density = density computed
Continue reading