# Tagged Questions

53 views

### How do I correctly produce a prior/posterior plot from MCMC chains in Bayesian hierarchical models?

I'm a beginner at hierarchical modeling and statistics in general and this is confusing me. Question: If I draw a histogram of a posterior distribution from an MCMC chain, do I draw the prior as a ...
101 views

### Need to find cumulative probability distribution given this data set

So I have a data set like so: ...
113 views

### Label on the y-axis in a normalised histogram

If you have a histogram with frequency on the y-axis and bins for different ranges of values on the x-axis, then it is reasonable that the label on the y-axis should be frequency. But if these ...
811 views

### Is it appropriate to plot the mean in a histogram?

Is it "okay" to add a vertical line to a histogram to visualize the mean value? It seems okay to me, but I've never seen this in textbooks and the likes, so I'm wondering if there's some sort of ...
3k views

### R - QQPlot: how to see whether data are normally distributed

I have plotted this after I did a Shapiro-Wilk normality test. The test showed that it is likely that the population is normally distributed. However, how to see this "behaviour" on this plot? ...
731 views

### QQ plot does not match histogram

I have a histogram, kernel density and a fitted normal distribution of financial log returns, which are transformed into losses (signs are changed), and a normal QQ plot of these data: The QQ plot ...
11k views

### Assessing approximate distribution of data based on a histogram

Suppose I want to see whether my data is exponential based on a histogram (i.e. skewed to the right). Depending on how I group or bin the data, I can get wildly different histograms. One set of ...
359 views

### Histogram of uncertain data

I have a set of values, each of these values has its own mean and variance. I want to be able to account for this variance when I plot the histogram of the means. Something like an error bar on the ...
69 views

### Plotting a histogram estimate together with an analytical solution of the mean and covariance parameters

How do I plot a histogram estimate of this marginal distribution p(x1): ...
460 views

### Graphical representation of weekly spending

What is the correct graphical representation for these data of weekly spending (in dollars) on soft drinks for 20 people: ...
33 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 ...
223 views

### Is there an upper limit on the number of intervals in a histogram?

I've read several articles and excerpts from books that explain how to choose a good number of intervals (bins) for histogram of a data set, but I'm wondering if there's a hard maximum number of ...
276 views

### Calculating and comparing histograms of complex numbers

If I have a 1D sequence of complex numbers with real and imaginary parts, how can I compute the histogram of this sequence? Do I separately compute the histogram of both the real and imaginary parts? ...
198 views

### How to create a histogram smart

I need to make a histogram of employees in firms across the country. My goal is to examine the extreme observations and there is of course a lot in the beginning and very few in the end so I can't ...
390 views

### How to plot frequencies vs. values in SAS (power-law style graph)?

I have a set of counts as a response variable (anywhere from 0 to 85). I want to find the easiest way to plot count on the y-axis vs frequency of that count on the x-axis, the type of plot you see in ...
724 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 ...
2k views

### Odd problem with a histogram in R with a relative frequency axis

Using either truehist() from MASS or just the normal hist() function in R with the prob=TRUE option, I'm getting very strange values for the y-axis. I was under the impression that these values should ...
558 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 ...
108 views

### How to create a density plot for data from multiple years with each year represented by a different colour?

I have data on a variable spanning multiple years. I want to see how the distribution has evolved over the years. Is there an easy way to produce a density plot for each year in single plot with ...
1k 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, ...