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.

Filter by
Sorted by
Tagged with
1
vote
0answers
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 ...
21
votes
6answers
3k views

How do I plot a histogram with hatched shading?

I can plot an ordinary histogram with blue shading and black borders like this: T = RandomVariate[NormalDistribution[0, 1], 10000]; Histogram[T, 30] And I can ...
7
votes
3answers
92 views

DateHistogram FrameLabel overlaps FrameTicks

Bug introduced in 11.3 or earlier and persisting through 12.1.0 ...
1
vote
2answers
59 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 ...
0
votes
1answer
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 ...
0
votes
0answers
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 ...
4
votes
5answers
12k views

How to create a histogram from a given frequency table

I wanted to draw a histogram as in the photo above, I typed the command: ...
7
votes
3answers
286 views

Controlling the size of Histogram in PlotLegends -> Histogram

I stumbled across this in the Mathematica documentation and thought it was pretty nifty except that the Histogram that appears as the plot legend is too small so the numbers on the histogram overwrite ...
4
votes
1answer
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: <...
2
votes
2answers
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 ...
1
vote
2answers
121 views

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

If you run something like this; ...
-1
votes
1answer
61 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 ...
0
votes
0answers
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 ...
1
vote
1answer
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: ...
-1
votes
1answer
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"]
5
votes
2answers
134 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 ...
0
votes
1answer
92 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....
0
votes
2answers
113 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 ...
21
votes
3answers
6k views

Circular Plot and Circular Histogram

The spherical or circular data arises when we measure data in degree e.g wind direction, clock and compass etc. Then representation of such data we need to plot circular plot, circular histogram and ...
0
votes
0answers
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 ...
3
votes
1answer
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.
10
votes
1answer
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 ...
2
votes
2answers
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 ...
0
votes
1answer
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 ...
4
votes
2answers
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 ...
0
votes
0answers
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 ...
0
votes
1answer
97 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 ...
2
votes
1answer
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 ...
5
votes
1answer
302 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 ...
2
votes
3answers
1k views

Make a histogram by giving the range and height of each bin one by one

I got the data of each bin by measurements like {start, end, height} and I want something like this picture: I have no other data for the ...
0
votes
0answers
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 ...
6
votes
1answer
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: ...
4
votes
3answers
209 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 ...
8
votes
1answer
161 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 ...
2
votes
1answer
105 views

Importing data multiple times from the same file

I have a large data file (.txt) with bivariate data in the following form x1,y1 x2,y2 x3,y3 . . . xn,yn ---------F 0 x1, y1 x2, y2 . . . xn, yn --------F 1 . . . ...
0
votes
0answers
41 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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
2
votes
2answers
171 views

Creating a histogram using custom data

Let's consider the following simple data set ...
5
votes
2answers
308 views

How can I fit a function onto a histogram?

SampleData = RandomVariate[RayleighDistribution[3], 5000]; Histogram[SampleData] This creates a histogram that (in my case) looks something like this: I want to ...
2
votes
1answer
272 views

Histogram based on pre-binned data (center of a bin given) - bin size not equal

I have the following problem. I have a pre-binned list that I want to plot. Here is a shortened example: ...
2
votes
4answers
70 views

Creating custom values for a histogram

Let's consider the following test case ...
6
votes
4answers
2k views

Log-log scale smooth histogram

How can I create a smooth histogram with a log-log scale? I can use Histogram[data, "Log", "LogCount"] to get a log-log histogram, or I can use ...
1
vote
2answers
48 views
2
votes
1answer
68 views

Confusion about Predict Model NameAge

Predict["NameAge", "Claire"] 8 distribution = Predict["NameAge", "Claire", "Distribution"] dataRaw = distribution[[2]] <...
1
vote
1answer
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. ...
0
votes
0answers
45 views

How can I fit my histogram with appropriate distribution?

I got this list: ...
4
votes
1answer
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 ...
0
votes
0answers
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: ...

1
2 3 4 5
7