All Questions
Tagged with density-function histogram
45 questions
7
votes
2
answers
1k
views
Why does re-scaling my density plot using counts change the y-axis so much?
When I make a histogram I get the actual distribution of my samples, with the appropriate counts, but when I try making a density plot the scales go up to 800, and when I try using ...
0
votes
0
answers
998
views
Explanation of what a density plot is [duplicate]
I have been working with histograms so far. I understand what they show.
I am trying to understand what density plots are. In this tutorial it says
The curve (of the density plot)represents the ...
2
votes
1
answer
63
views
How are these simulated sample means created/plotted in R?
I had a student point out this image in Learning Statistics with Jamovi that is also in Learning Statistics with R (Page 294 in the latter). I was going to send her a reply when I noticed something in ...
0
votes
0
answers
206
views
Mean squared error of 2 distributions when there are many zero values
I am comparing two (2-D) distributions using mean squared error. I take the difference between distributions, square them, average them and multiply them by the area of a pixel/bin. These ...
1
vote
2
answers
920
views
Histogram of a Sample with Overlay of Population Density
To familiarize myself with histograms and probability density functions, I decided to sample various distributions, plot samples' histograms and their corresponding probability distribution functions.
...
1
vote
0
answers
291
views
histogram vs. kernel in density estimation
Assume we have a problem of estimation of a density $f(x)$ over an interval $[0, 1]$. Can a regular histogram (i.e. with equal-sized bins) be viewed as some kind of a kernel?
0
votes
0
answers
31
views
Help selecting a correct distribution for this data
I'm a geologist working with some sparse borehole data. The boreholes sample igneous intrusions and we're trying to fit a distribution to the thickness of the intrustion vs frequency (for use in other ...
3
votes
0
answers
206
views
What methods are there for estimating distributions based on histograms?
I recently worked on a consulting project where a client wanted to estimate gamma and weibull distributions based purely on histograms rather than raw-data. I have never worked with problems like that ...
2
votes
1
answer
3k
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.
...
8
votes
1
answer
10k
views
how to scale the density plot for my histogram
I have the histogram plot and I'd like to overlap it with density line for the same data. Importantly, I don't want to turn histogram into density values, but want to keep N (numbers) on y axis.
Is ...
0
votes
1
answer
322
views
How to find emprical PDF by using the normalized histogram?
first of all, thank you for your time, here is my question;
Is it possible to find emprical PDF by using normalized histogram?
I am trying to learn discrete event simulation and what I see is there ...
12
votes
2
answers
612
views
What is this "phenomenon" called?
Below is a histogram of some data, the bins are integers the other parameters are irrelevant.
As you can see there seems to be two separate but overlapping normal distributions for odd and even ...
3
votes
1
answer
148
views
How to quantify the agreement between the same parameter from two different data sets
I am looking at Arctic ice thickness from two different Earth-orbiting satellites A and B. I'm interested in quantifying how well these two datasets agree, but I'm struggling over what parameters to ...
3
votes
1
answer
5k
views
Histogram and probability mass function
I have a dataset of a discrete random variable. My question is: Is the normed histogram(I divide the frequencies by the total number of samples) and the PMF is the same quantity? It seems they are. Is ...
1
vote
1
answer
25
views
Is there a method to determine the optimum bin size to use for a grouped frequency data?
I need to plot the empirical pdf of the data:
...
8
votes
2
answers
1k
views
How does one graph the PDF of a variable having a mixed discrete-continuous distribution?
Simple question: how to graph the PDF of a mixed discrete-continuous distribution?
Does it require one graph for the continuous portion and a separate graph for the discrete?
Also, is such a beast ...
1
vote
0
answers
280
views
How do I estimate the ERROR for a histogram?
I am sampling a random variable from a system so as to find the underlying distribution. To do so, I can plot either a histogram, or a kernel density estimate.
Either way, how do I indicate the ...
2
votes
0
answers
49
views
Assess whether the generated data follows the distribution
Using the Inverse function method I managed to draw a sample of 500 random data from a Cumulative distribution function. $f(x)$,$F(x)$ and $F_X^{-1}(u)$ are as follows:
$$f_X=\frac{x}{5}exp\left({\...
2
votes
0
answers
668
views
Differential histogram bin calculation
I want to be able to minimize a difference between two distributions $P(x|\theta)$ and $Q$. I can choose Q (e.g. to be a Gaussian normal), but $P(x|\theta)$ is an unknown distribution, so I am ...
5
votes
1
answer
6k
views
How to make a GMM from a Histogram to give a probability?
I have a histogram that looks like the following:
From the data, I can see that this histogram shows two obvious curves. If I make the claim that they are from two Gaussians, how can I make a ...
1
vote
2
answers
1k
views
Why use a probability distribution function instead of a histogram?
Is a probability distribution function (displayed with bins) effectively a histogram that has been normalized so that the bins sum to 1?
Say in the case of a dataset of 10,000 particles (each with a ...
8
votes
2
answers
12k
views
Empirical PDF from Empirical CDF
Suppose I do an experiment $N$ times and get a vector $X$ of results. Let $C_X(y)$ be the empirical cumulative distribution function of $X$. Suppose $X$ is sorted so that $x_1 \leq x_2 \cdots \leq ...
2
votes
0
answers
314
views
How to choose the window size of Parzen-window density estimation with Gaussian kernel? [duplicate]
I have many sets of univariate sample data as the following:
$$
X = \{x_i, i=1,2,...N\}
$$
and I'm using Parzen-window density estimation with Gaussian kernel.
$$
\frac{1}{N}\sum_i^N \frac{1}{\sqrt{...
4
votes
1
answer
1k
views
How to compute values of a histogram for a given density function?
If I know the distributional parameter of a distribution (lognormal, in this case) I can plot the density function. If I want to convert the density into a histogram, I should calculate the "height" ...
3
votes
1
answer
4k
views
How to merge histograms with different bin counts and different ranges?
The assumption is that we are unable to access the underlying data of the original histograms, but we do know the number of observations in each histogram. For the case that the original histograms ...
2
votes
1
answer
9k
views
Matlab difference between normalized histogram and pdf
I don't understand why there is a difference between the pdf and the normalized histogram (based on randn) I plotted in matlab. Especially from -2 to -3 the difference is huge.
Why is the normalized ...
0
votes
1
answer
816
views
Probability density in histogram with standard deviation different than 1
I generate a histogram for normal data with standard deviation $\neq 1$.
x <- rnorm(1000, mean=0; sd=0.01)
hist(x, freq=FALSE)
I also use ...
2
votes
2
answers
2k
views
how to measure similarity of two lists of continuous data with different length
I have two lists of continuous data with different length.
a) How should I measure (dis)similarity of these two lists? or, as these lists can be formed into histogram, how can I quantify (dis)...
4
votes
2
answers
9k
views
Sample from distribution given by histogram
Given a histogram obtained using given data points, how do I randomly sample from the distribution predicted by the histogram?
Any conceptual comment / R code would be welcome.
-2
votes
1
answer
105
views
What type of distribution is this?
What kind of distribution is the one reported here below?
4
votes
2
answers
3k
views
How do you find a cutting point / strong slope within one-dimensional data
I have one-dimensional data. I want to find possible natural cutting points (strong slopes) within the data.
For instance, if the data is
...
1
vote
0
answers
274
views
Accounting for measurement bias using a histogram or violin plot and numerical data in R [closed]
The Problem
I have a gardener whose job it is to measure trees in meters using a measuring stick. She measures the heights of 1,000 trees. I plot these measurements on a violin plot in R. I am ...
4
votes
0
answers
2k
views
Where is the maximum bias and variance in a histogram as non-parametric density estimator?
I am a little bit confused about bias and variance of non-parametric density estimators and hope you can help me.
Assuming a constant bandwidth and sample size, I am wondering at which points of the ...
3
votes
1
answer
568
views
Kernel density estimation - application
What is the validity of using a kernel density estimation to compare model x observed data?
In other words, if the KDE curve for the observed data looks like the KDE for the model forecast, can I use ...
4
votes
1
answer
843
views
Accuracy of computing moments from an histogram
Let's say I have an histogram of some continuous data with unknown and arbitrary pdf. I don't have access to the original raw data. So I don't know that 3 of my data points are 21, 25 and 27, all I ...
1
vote
3
answers
3k
views
What is the proper way to compute the r-squared between a binned distribution of observed values and a continuous probability density function?
I have circular data -- observations each of which falls between -180 degrees and +180 degrees -- divided into a 15-bin histogram.
I'd like to see how well a continuous PDF -- specifically a mixture ...
2
votes
1
answer
411
views
Confusion related to histogram density estimation
I have some confusion related to how the density is estimated from the histogram. I have attached the screenshot of the paper as well. Any insights
I didn't get why you divide it into cubes and why ...
1
vote
0
answers
85
views
References regarding rules for multidimensional histograms
Can someone give me references on the theory of histograms applied to multivariate data? Are there any rules like the one dimensional Freedman-Diaconis available for the high dimensional case? What ...
5
votes
1
answer
2k
views
Сonfidence interval of histogram probability density function estimator
There is a circle of radius $R$ and a sequence of points within it. I'm going to estimate a PDF of appearing at elementary area at the distance $D$ from the centre of the circle using a realization of ...
10
votes
3
answers
8k
views
How to compare joint distribution to product of marginal distributions?
I have two finite-sampled signals, $x_1$ and $x_2$, and I want to check for statistical independence.
I know that for two statistically independent signals, their joint probability distribution is a ...
3
votes
2
answers
2k
views
Histogram/distribution fitting for this dataset with unequal and open-ended intervals?
I have this income distribution data for various groups:
https://docs.google.com/spreadsheet/ccc?key=0Akwg3n_e05cCdEdtT0VZYU5keW5DVkNoNmpBWmdzeUE
As you can see, I have intervals/bins with varying ...
1
vote
1
answer
1k
views
How can I combine histograms with a density plot in R?
Starting with a really simple example, a bi-modal distribution, however, keeping in mind that this would likely be applied to more complex cases where modality is not as apparent, nor limited to 2 ...
11
votes
2
answers
3k
views
Density estimation with a truncated distribution?
I have some data which is clearly truncated on the left. I wish to fit it with a density estimation that will handle it in some way instead of trying to smooth it down.
What known methods (as usual, ...
14
votes
3
answers
8k
views
Best way to put two histograms on same scale?
Let's say I have two distributions I want to compare in detail, i.e. in a way that makes shape, scale and shift easily visible. One good way to do this is to plot a histogram for each distribution, ...
21
votes
4
answers
69k
views
Difference between histogram and pdf?
If we want to visibly see the distribution of a continuous data, which one among histogram and pdf should be used?
What are the differences, not formula wise, between histogram and pdf?