621 views

### State of the art: Non-parametric density estimation with a boundary and data clumped near zero [duplicate]

I have some data which I wish to estimate the marginal distribution of. I have no real idea what parametric distribution would be suitable, so was planning on fitting a non-parametric (probably kernel)...
156 views

### Log transformation in R (Precipitation Data) [duplicate]

In many situations the values that a random variable, X, can take on is restricted, for example precipitation data [0,inf), that is f(x) = 0 for x < 0. We say that the support of f(x) is [0,inf). ...
79 views

### Kernel density estimation for a variable with lots of zeros [duplicate]

I am trying to estimate the kernel density for number of days a child is sick. Around 73% of children report not being sick, i.e. zero. How do I estimate a kernel density for this censored variable ...
38 views

### Non-Parametric Density estimation with a positive variable [duplicate]

I’m struggling to find a way to represent a kernel density estimation with a nonnegative random variable. I have read a couple of articles tackling this issue; however I couldn’t implement it in R. I ...
3k views

### How can I estimate the density of a zero-inflated parameter in R?

I have a data set with lots of zeros that looks like this: set.seed(1) x <- c(rlnorm(100),rep(0,50)) hist(x,probability=TRUE,breaks = 25) I would like to draw ...
13k views

### "Negative density" for non-negative variables [closed]

Having an integer positive variable (number of days) in an experiment, I got negative values for the kernel density plots using R. I have read other posts relating to this topic. They admitted that ...
2k views

### Kernel density estimation and boundary bias

What sort of kernel density estimator does one use to avoid boundary bias? Consider the task of estimating the density $f_0(x)$ with bounded support and where the probability mass is not decreasing ...
7k views

### Does this graph follow a exponential distribution or a log-normal?

command for the graph: hist(c1,freq=FALSE) lines(density(c1,adjust=2),col="darkblue",lwd=2) I generated this sequence in R: ...
2k views

### Kernel density estimation on asymmetric distributions

Let $\{x_1,\ldots,x_N\}$ be observations drawn from an unknown (but certainly asymmetric) probability distribution. I would like to find the probability distribution by using the KDE approach:  \...
866 views

### Information loss by histograms

Recently I became curious about what I imagine to be an old problem: the fidelity of histograms to an underlying data set. CrossValidated has a number of questions on the subject of "optimal ...
2k views

### Why density plot tails are beyond maximum and minimum values?

I am trying to interpret the tails of a density curve, which go beyond xlims(0 in this case). I understand that area under the curve between any two points represents the probability of that event. ...
1k views

### Why simulated gamma distributed data have negative kernel values?

I know that Gamma distribution does not allow 0 or negative values. I was doing some simulation and when I write this code in R ...
394 views

### downsampling a kde / combining kde and histogram

I'm calculating a KDE of one parameter (y, particle density) in bins of another parameter (x, distance from the origin). At ...
1 vote
274 views

### Weighted density estimation of exponentially distributed RV [closed]

I am trying to get a weighted density estimation of some data. Unfortunately, the data is approximately exponentially distributed after the weight transform, which gives a false sense of positive ...
1 vote