# Questions tagged [histograms]

Tag for questions about building histograms in Mathematica. Apart from generating the graphics, and prettifying them, this also includes methods to extract their data.

332 questions
Filter by
Sorted by
Tagged with
84 views

### How to plot weighted sum of functions?

Consider a series of functions like Table[Cos[k t], {k, 1, 2, 1/10}] which are summed up together with some weights ...
100 views

### Partitioning Mixture Distribution Dataset into constituent Distributions

Suppose I have a dataset that is derived from a random sampling from a mixture distribution ...
161 views

### Histograms and probability distributions

Consider $50$ random variables with probability distribution: $X∼Bin(20,.1)$, where $n=20$ and $p=.1$. Now take a random sample of size $i; \ i=1,5,12,30,40$ from the 50 random variables and plot ...
711 views

### Histogram of two data sets [closed]

I want to plot a histogram of two data sets in the following way: I've written this code, and following are my results: Can you help me out? What should I do?
128 views

### Replace values in 2D arrays with bin numbers (down sample)

I have a 2D array with a lot of large values in it. This is the histogram for the data with the values grouped into 16 different bins: I want to replace all the values in the array with their bin ...
105 views

### How to pick up points of SmoothHistogram

I have some data, and I used SmoothHistogram to obtain a curve. Now I would like to pick up several points on the curve such that I can fit this curve to a function. I get stuck with picking up ...
398 views

### Datamining taking multiple variables

We have gotten a list of data that includes grades from random students between 0 and 20. Now we want to seperate them into groups from 0 to 5 and 6 to 10 etc and make a histogram out of that to see ...
220 views

### Plotting two variables indirectly dependent on each other

I have the following system of linear ODEs for "i" number of species "c" migrating in "j" number of habitats: ...
122 views

### pass fail criteria as legend in histogram and plot

I have a random data and want to plot the histogram with specific bin ranges. Each value of data[[x]] is actually [(data[[x]]*2.2)/4] with units as microns; where 4 is the magnification of microscope ...
189 views

### What happened with good old Histogram?

For the sake of demonstration in a class I wanted to use the line: Histogram[Accumulate[RandomReal[{-1, 1}, 100000]], {1}, "Probability"] to get a probability-...
293 views

### Ticks don't display on Y-Axis of Histogram when using PlotRange

I have a histogram, if I create it without specifying the PlotRange it works fine and the ticks on the Y-Axis are displayed ...
1k views

### How to 'center' a Histogram

How can a generate a histogram so the peak of the distribution is at x=0? I want to center these histograms for comparison ...
39 views

### DensityHistogram only returns a gray box

I have a complex Mathematica workbook that I've been using to read in binary files, create coincidences, perform an energy calibration, and final produce some coincidence analysis. The original ...
42 views

### How Do I can Generate a CDF Plot from Below PDF code and also it Histogram Plot?

I have tried many times to plot a CDF from the following PDF code , But I failed to get that however I have used the command CumulantGeneratingfunction[, ] but it coudn't work , any Help ?and also the ...
32 views

### Making a histogram of a dictionary

I am trying to make a histogram of the dictionary where each bin is how many characters in a word, and the height is the frequency of words with that many characters. I'd like to make one for the ...
63 views

### Histogram doesn't show all bins

I have data that runs from values of 0 all the way to 40000. When I plot the histogram of this data using the Histogram[] command I get this: I've split the data up into those that are below 1500 ...
129 views

### Error Histogram of a Neural Network

Can you plot the error histogram of a trained network (with test, train and validation sets if possible but one would be enough)? Matlab Easily does that for you but I could not find a function that ...
49 views

### Specify legend inside histogram plot

I am trying to place a legend inside a histogram plot, but Placed["label",{x,y}] as an option in ChartLegends does not seem to work in the histogram environment. Is ...
45 views

### How can I fit my histogram with appropriate distribution?

I got this list: ...
101 views

### Mixture distribution fitting containing a uniform distribution

I have a dataset that is clearly the mixture of 3 known distributions which can be generated as follows: ...
172 views

### Fixing the problem with HistogramList boundary values

I am using HistogramList to bin the data and get frequency counts to generate probability distributions. I've noticed something surprising and terrible about ...
76 views

### Plot moments as a function of bin size?

I need to plot moments of a distribution as a function of bin size to show whether or not the tails of this data set are Gaussian. My data is in [pastebin.com/nzCs5BwE.] Here is how I've plotted ...
128 views

### Histogram[list] gives wrong image

I have generated a list of 100k numbers, and want to know their distribution. By looking at the numbers, the trend is very different from that generated by Histogram[], in log-log scale. Another ...
152 views

### Histogram with frequency data - option FrequencyData from mathematica 5.2 [duplicate]

I remember the old way which was used in Mathematica 5.2 (maybe, 2003) for constructing histograms from data with already given counts over bins. It was so natural then to invoke: ...
61 views

### How do i plot a histogram from grouped data rather than raw [duplicate]

I have a data which is grouped in the following format: {{date1,count1},{date2,count2},...} I want to make a Date Histogram of this data. Apparently the ...
56 views

### How can I combine histogram and respective pdf in the same graph with the same scale? [duplicate]

I am trying to put the histogram and the pdf of the data together in the same grah in the same scale. The pdf is this actually: However, as I put them in the same graph, it turns like this: How can ...
55 views

### Assign observations into classes using Sturges rule

I have a list of 562 observations that I would like to assign to classes (bins) using Sturges rule. What is the best way to implement this in Mathematica?
62 views

### Does What I have ploted for Normal distribution or for my PDFcode?

Really , am confused and mixed in the same time , I have tried to plot the Histogram of my PDF which it is already integrated to 1 (Normalised) , I didn't succeed to compute anything related to that ...
36 views

### Histogram of the words in the Spanish Dictionary

I am trying to do the exact same histogram as below, but in Spanish. Histogram[{StringLength /@ DictionaryLookup[], dataPnJ}, {1}, "Probability"]
420 views

### Histogram two column pairs

I am interested in plotting histogram, where in each place I would have two columns, the experimental and the theoretical results. Something that looks like: How can I implement this with Mathematica?...