Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [kernel-density]

kernel density estimation is a non-parametric way to estimate the probability density function of a random variable.

kernel-density
0 votes
0 answers
28 views

How to Improve Kernel Density Estimation Plot Map Grid Cells for Vessel Traffic on the West Coast of Mexico in R?

I'm working on visualizing vessel traffic density for the west coast of Mexico, including Baja California and Bahia de Banderas waters, using R. I have a large dataset of vessel locations stored in a ...
Charlene Perez Santos's user avatar
0 votes
0 answers
29 views

rkdevine returns constant zero-valued simulations

I found that the rkdevine function, from the package kdevine, is returning constant zero-valued simulations when it shouldn't be the case. The function is meant to simulate from a a kdevine object, ...
Aguazz's user avatar
  • 1
0 votes
1 answer
29 views

Creating geom_violin plot with pre-created density values

I have created some weighted Kernal density estimates across different factor levels which I don't think can be incorporated within geom_violin plot estimates. I was wondering if there's a way ...
James White's user avatar
0 votes
0 answers
18 views

Kernel Density Estimation: Different Results for All Data Points vs. Within Bandwidth

I’m working on kernel density estimation (KDE) using python for road accidents data, but here I will use 1d data just for illustration. When fitting the KDE model, I’ve noticed that I get different ...
N3r1's user avatar
  • 1
0 votes
0 answers
27 views

Why, when creating a ppp object, are all my co-ordinates omitted?

For my masters project, I have data frame of boating vessel positions (VesPos - lon,lat), time (fixed_timestamp_utc, years, quarters) and Vessel ID (vessel_id). I also have a multi-polygon object of a ...
Adamm0355's user avatar
0 votes
1 answer
10 views

How to add labels on relative KDE plots?

I'm trying to plot the KDEs of two datasets using seaborn.kdeplot. I want to add separate labels for each dataset, but I'm having trouble getting the labels to work correctly. Here's my code: import ...
sam wolfe's user avatar
0 votes
1 answer
44 views

How to Fix "TypeError: getattr(): attribute name must be string" when multiple optimizers are GridSearched for GaussianProcessRegressor?

Here is my script to predict targets on the final date of a timeseries dataset. I am trying to incorporate a GaussianProcessRegressor model to find the best hyperparameters using GridSearchCV: (Note ...
Rebel's user avatar
  • 495
0 votes
1 answer
53 views

How to Overlay Density Plot on a Map of Alaska using ggplot2 and sf in R?

I'm trying to plot a density map of some randomly generated points in Alaska using ggplot2 and sf. I want to overlay the density on a map of the USA including Alaska. However, I am unable to make ...
Ali Roghani's user avatar
1 vote
1 answer
81 views

adehabitatHR KUD loop not overlaying mapping correctly in R

I have some code which calculates KUD at 95% from fish position data, restricted by the bounds of a shapefile, and then plots this, and overlays the shapefile on top. ########## BOUND KUD TO SHAPEFILE ...
mikejwilliamson's user avatar
0 votes
1 answer
35 views

Converting list object (home range) to an object I can plot?

I have an example dataset (named "data") with coordinates as shown below (projected in CRS 5321): longitude latitude 430547.6 7208993 404139.3 7212760 411915.5 7232663 ...
Cam's user avatar
  • 451
2 votes
2 answers
111 views

Intensity outliers in 2D plot (max or min local peaks with high intensity)

I wonder what kind of method better to use to see outliers on z value of 2D plot. For example, I have measurements of x and y values both in range of 1 to 16 with step of 1. Next I calculate how many ...
Zoomman's user avatar
  • 57
1 vote
0 answers
36 views

KDE for a logarithmic data in plotly

I'm trying to use plotly violin plot for a logarithmic data set with positive values only. when I use the regular violin aka: fig= go.Figure() fig.add_trace(go.Violin(x=last_value, line_color=color, ...
Tomer Gigi's user avatar
0 votes
0 answers
17 views

How to make get uniform scales across heat maps?

I am trying to illustrate the transformation of a data set in R. The goal is to show that an applied formula has compacted the distribution of data points and increased the density, so I want to show ...
Sudoh's user avatar
  • 336
0 votes
0 answers
26 views

Compute the right normalization when using a custom metric in scikit-learn KDE

I am interested in computing the probability distribution of some unit-vectors on the surface of the unit-sphere. Those unit vectors come from the diagonalization of an inertia tensor, so the ...
Alimanco's user avatar
1 vote
0 answers
28 views

comma in a Kernel equation

I have difficulties understanding the part h,1 in the definition below. What is this ,1 following the h? The code is C++. double Temp = Kernel((X(n) - X(m)) / h,1) / h; The mathematical form of the ...
Maija Sirkjärvi's user avatar

15 30 50 per page
1
2 3 4 5
46