Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
maglorismyspiritanimal's user avatar
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 ...
KansaiRobot's user avatar
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 ...
Shawn Hemelstrand's user avatar
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 ...
Metioche's user avatar
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. ...
Cbhihe's user avatar
  • 121
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?
ABK's user avatar
  • 668
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 ...
8556732's user avatar
  • 101
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 ...
Samir Rachid Zaim's user avatar
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. ...
Yogesh's user avatar
  • 121
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 ...
Eugene's user avatar
  • 81
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 ...
Ozzzy's user avatar
  • 1
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 ...
Benjamin Tilbury's user avatar
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 ...
izzyrizzy's user avatar
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 ...
anotherone's user avatar
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: ...
oma11's user avatar
  • 31
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 ...
Alexis's user avatar
  • 30.7k
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 ...
physkets's user avatar
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({\...
Patrick 's user avatar
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 ...
Steve's user avatar
  • 21
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 ...
nmc's user avatar
  • 137
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 ...
Chris's user avatar
  • 11
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 ...
Lars Ericson's user avatar
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{...
Xi Liu's user avatar
  • 21
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" ...
user avatar
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 ...
Snowfish's user avatar
  • 131
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 ...
Peter's user avatar
  • 23
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 ...
Runciter's user avatar
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)...
adywp's user avatar
  • 55
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.
yaitzme's user avatar
  • 143
-2 votes
1 answer
105 views

What type of distribution is this?

What kind of distribution is the one reported here below?
Lucia's user avatar
  • 81
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 ...
rmuc8's user avatar
  • 407
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 ...
Alexander's user avatar
  • 2,140
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 ...
jeffrey's user avatar
  • 755
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 ...
Fernando's user avatar
  • 951
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 ...
FrenchKheldar's user avatar
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 ...
user avatar
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 ...
user34790's user avatar
  • 6,847
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 ...
Kruif's user avatar
  • 11
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 ...
Nick's user avatar
  • 151
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 ...
Rachel's user avatar
  • 591
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 ...
Dan's user avatar
  • 33
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 ...
Ray301's user avatar
  • 111
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, ...
Tal Galili's user avatar
  • 21.9k
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, ...
dsimcha's user avatar
  • 8,879
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?
user avatar