# 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.

327 questions
Filter by
Sorted by
Tagged with
33 views

### Quantifying the similarity/difference of two probability histograms in Mathematica

I am trying to estimate the similarity/overlap or conversely the difference between two probability histograms in Mathematica. There are two built-in measures I have discovered in Mathematica, namely ...
61 views

### Probability histogram

Is there a quick way to draw a probability histogram as e.g. here or here, page 166, say for a binomial distribution, with the bases of the rectangles centered at the integers and no spacing between ...
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 ...
46 views

...
40 views

### Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
82 views

### Usage and meaning of “ProbabilityHistogram”

When doing a classification one can determine the ClassifierMeasurements to get Information about the classifier. I now wanted to get a histogram of the computed probabilities for a classifier. Maybe ...
121 views

### Why aren't CirclePoints[] evenly distributed? [closed]

If you run something like this; ...
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 ...
40 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 ...
66 views

### How to merge a polar plot, histogram and density colour values?

I am trying to get direction data into an histogram a circular one. Something like this: ...
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"]
135 views

### Convert Histogram from frequency of string length to percentage

I have the histogram: dataPnJ = StringLength[StringSplit[ExampleData[{"Text", "PrideAndPrejudice"}]]]; Histogram[dataPnJ] I am trying to make the histogram show ...
93 views

### SmoothHistrogram plot is not smooth [closed]

I used the following code to show a small hump near 5000. With R it's fine but for some reason Mathematica draws strange vertical lines. I tried several combinations of ranges. (Data from here or here....
114 views

### SmoothHistogram doesn't appear to work

I have a data set with 500,000 elements. I am trying to use SmoothHistogram to plot the distribution, but it doesn't work and the kernel quits. I used R on the same ...
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 ...
58 views

### How to make a histogram showing the frequency of word length?

I have to analyze the novel Don Quixote, so I am trying to make a histogram where each bin is how many characters in a word, and the height being the frequency of words with that many characters.
575 views

### Can Mathematica achieve this diagram?

Can Mathematica be used to create diagrams of drift diffusion of the kind shown, including histograms showing the response-time distributions? The distributions capture the time taken by a random ...
42 views

### BarChart: First Bin centered at 0 instead of 1

I want to plot an overlapped graphic comparing the experimental and theoretical data of the number of counts in a given time (beta decay), so I show them in a histogram. Because of sometimes the ...
62 views

### How to fit a Weibull distribution function to histogram with unequal bins?

Whenever the function "FindDistributionParameter" is used in Wolfram Mathematica, it needs two inputs: raw data and distribution function. I have a problem where I have have data and I need to use ...
96 views

### How to create a BarChart[] with color rules determined from categorical data?

Let's say I have a list of color names (strings), like this: samples = {{"blue, red, red"}, {"purple, blue, purple"}, {"blue, blue"}}; Then I can plot the ...
42 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 ...
99 views

### How can the bin width be set for a histogram where the “Probability” option is used? [closed]

How can a histogram be created when the "Probability" option is used, and a specified bin width is needed? In the example below, I am trying to set the bin width to 1, but Mathematica throws an ...
30 views

### Find the Kernel distribution over an already known histogram

I have an estimated distribution over a parameter, however, the distribution is not continuous, and InterpolatingPolynomial cannot estimate my distribution good ...
303 views

### Weighted smooth histogram

I have a large list $L$ ($|L| \sim 100000$) of pairs $\{x_i,w_i\} \in \mathbf{R} \times [0,1]$ subject to the constraint that $\qquad \sum w_i = 1.$ I would like to use $L$ to graph a smooth ...
115 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 ...
84 views

### DensityHistogram, “Log” plot with specific binning not working in Mathematica12

I have a problem plotting log with specific binning using the DensityHistogram. The following worked till Mathematica 11 but not anymore with Mathematica 12: ...
218 views

### How to relate a binned pdf to a pdf, taking into account how the data is binned?

I have a data set which I represent as a PDF histogram Histogram[Data,{"Raw", NumberOfBins},"PDF"]. I want to know the distribution parameters of my data. I've ...
162 views

### Datasets and Time Values: Filtering and Plotting

After struggling for a few weeks, I have accumulated a few examples of challenging date-related operatations with datasets. Some I have partial solutions; others I cannot yet do. The resources on ...
43 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 ...
117 views

### Fitting tail of distribution to Generalized Pareto Distribution

Hello, I have a problem in Mathematica and I don’t know if you could help me. I’m trying to compare the “performance” of a Laplace distribution and a Generalized Pareto Distribution (GPD) for the tail ...
32 views

### Plotting a Histogram3D with time (a file per frame) as parameter?

I've been working for a few days trying to make a dynamic histogram on Mathematica, but I can't seem to make it happen. You see, I'm fairly new to working with Mathematica and thus lack some knowledge ...
173 views

### Creating a histogram using custom data

Let's consider the following simple data set ...
310 views

### How can I fit a function onto a histogram?

SampleData = RandomVariate[RayleighDistribution, 5000]; Histogram[SampleData] This creates a histogram that (in my case) looks something like this: I want to ...
81 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 ...
71 views

### Creating custom values for a histogram

Let's consider the following test case ...
48 views

...
43 views

### Creating a histogram of the number of edges in a digraph

I have the following Code which calculates the number of edges in a range theta1 and theta2. ...
68 views

### Confusion about Predict Model NameAge

Predict["NameAge", "Claire"] 8 distribution = Predict["NameAge", "Claire", "Distribution"] dataRaw = distribution[] <...
45 views

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

I got this list: ...
55 views

### Plotting evolution of probability with time

I have compiled data about the evolution of a function with time and the data looks something like this. I wanted to plot this data in the form of a density histogram such that every row represents ...
27 views

### How to obtain an histogram with xlsx data? [duplicate]

i'm new on mathematica and i have some issue. I need to plot an histogram with data from excel, my data are: ...
92 views

### Histogram range of bins

Mathematica misrepresents data with Histogram by choosing "arbitrary" range in its bins. For example the command: Histogram[Table[RandomReal[], {100000}]] Gives ...
42 views

### Getting a PDF from a NonlinearFitModel

With the help of @JimB, I could fit some experimental data with a CDF using NonLinearFitModel. The set of data is the following: ...
92 views

### DateHistogram FrameLabel overlaps FrameTicks

Bug introduced in 11.3 or earlier and persisting through 12.1.0 ...
96 views

### Histogram with “PDF” option with strange values on y-axis - Interpretation? [duplicate]

Here's a working example of what I see: ...
104 views

### How can I make a frequency plot of successful trials? [closed]

I have got different files with the result of an experiment varying 2 variables. The files are in this link. Each file has 3 columns of data: the first column is the same for all the rows of the file ...
70 views

### How to organize the 2D data into binned distribution?

Consider a data data = {{x1,y1},{x2,y2},...} with n rows. I want it to be organized into $n$ bins for $x$ and $m$ bins for y, with the positions $x_{i}, x_{i+1}$...
243 views

### Constructing a ternary histogram

so this is currently what I'm building ...