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
0
votes
0answers
22 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
68 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: ...
3
votes
3answers
118 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
130 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 ...
0
votes
0answers
19 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
75 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
31 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
128 views

Creating a histogram using custom data

Let's consider the following simple data set ...
5
votes
2answers
183 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 ...
0
votes
1answer
51 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 ...
2
votes
4answers
65 views

Creating custom values for a histogram

Let's consider the following test case ...
1
vote
2answers
44 views

Density in histogram doesn't show completely

...
1
vote
1answer
37 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. ...
2
votes
1answer
63 views

Confusion about Predict Model NameAge

Predict["NameAge", "Claire"] 8 distribution = Predict["NameAge", "Claire", "Distribution"] dataRaw = distribution[[2]] <...
0
votes
0answers
41 views

How can I fit my histogram with appropriate distribution?

I got this list: ...
4
votes
1answer
46 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
26 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: ...
2
votes
1answer
49 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 ...
1
vote
0answers
40 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: ...
7
votes
3answers
78 views

DateHistogram FrameLabel overlaps FrameTicks

Bug introduced in 11.3 or earlier and persisting through 12.0.0 ...
2
votes
1answer
58 views

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

Here's a working example of what I see: ...
1
vote
1answer
99 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 ...
1
vote
1answer
50 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}$...
10
votes
1answer
209 views

Constructing a ternary histogram

so this is currently what I'm building ...
1
vote
0answers
64 views

GeoHistogram with Graphics [closed]

The GeoHistogram function appears to use different coordinates to graphics, so that when you overlay they do not have the same origin. For instance, if I use ...
1
vote
1answer
31 views

Make DateTicks appear for every day and rotated in DateHistogram

Given the following code for plotting DateHistogram: ...
2
votes
3answers
146 views

Custom 3d histogram

so I wondered if there is a way to use histogram list such that it doesn't bin in quadrat mode, but given a set of 3D points, could bin over a tessellation of some regular tetrahedrons/hexagons/...
3
votes
2answers
99 views

Putting a vertical line in each Histogram using GraphicsGrid

I'm using GraphicsGrid to show several histograms. In each histogram, I would like to show 2 vertical lines on the 2.5 and 97.5 percentiles. If I had an isolated histogram I would use Line, and Show....
2
votes
2answers
134 views

Distance between axes and tick labels

A similar question has been axed before in the context of a Framed plot: see here. My plot is unframed so I wasn't able to apply the answer to the other question. I create a histogram with the code ...
4
votes
2answers
123 views

Smooth Density Histogram bounded on non-rectangular domain

I'm trying to plot the Smooth Density Histogram of a double pendulum (particularly the location of the bottom pendulum). Since a pendulum has physical constraints, when shown in the Smooth Density ...
2
votes
1answer
98 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 . . . ...
4
votes
1answer
68 views

PDF Export of logarithmic histogram contains no axes labeling

I have the following data: ...
2
votes
3answers
141 views

Finding where maximum of histogram occurs

If I have made a histogram of some data. How can I find out at which x-bin position the maximum occurs? ...
2
votes
1answer
188 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: ...
3
votes
2answers
247 views

Using image data to create a 3D Histogram

I have a black and white .tiff file of a beam spot: I am trying to characterize the source in a Monte Carlo program, to do this I want to convert the image into a 3D Histogram with controllable bin ...
0
votes
1answer
54 views

Representing share on histogram axes respect to total data points - also ones not in range (fraction of values respect to ALL points) [closed]

I want to tick the Y axes so that the heights of the displayed bins in range, represent the share respect to total available points. I have a distribution of percentages on N data points (see below ...
1
vote
1answer
102 views

Finding the optimal probabilty distribution

I am trying to obtain the optimal probability distribution function to the following data. My attempt: ...
0
votes
2answers
67 views

Partitioning Mixture Distribution Dataset into constituent Distributions

Suppose I have a dataset that is derived from a random sampling from a mixture distribution ...
0
votes
1answer
56 views

How to export histogram legends correctly?

Found it really hard to export a high resolution .png while keeping the legends. Here is the code: ...
0
votes
2answers
130 views

Histogram list returning bin centers and count numbers rather than bin domain points

Is there a native Mathematica function, similar to HistogramList[...] which will return a list of bin centres and associated counts, rather than the bin domains. I ...
3
votes
2answers
191 views

Organize the data to set of bins of equal height

Consider the data in the form data = {{1,10},{1,12},...{}}. How to organize this data in the set ...
2
votes
1answer
144 views

Is it possible to have histogram in LogLog scale?

Histogram[data,"Log"] will generate an histogram with a log scale on the x axis, but I need a ...
3
votes
1answer
109 views

Remove transparency in Histogram

I have the following code, which places the data s1, s2, and s3 on a histogram as shown below. I would like the transparency set ...
5
votes
1answer
120 views

No values shown in histogram with “mouse-over”

Today I experienced a strange behavior in a histogram I made. Here a MWE: Given a set of points: pts = RandomReal[1, {1000, 2}]; and a helper function which ...
2
votes
1answer
83 views

Fitting an equation to data set, am I doing this right?

I have a large data set of different values of time. I want to make 1) a histogram 2) fit an exponential function of form A+B*exp(-t/b) from the data To my understanding, this is how I'd do it <...
3
votes
3answers
54 views

Double differential distribution using set of data

Consider a set of data having the form $\{\{x_{1}, y_{1}\}, …,\{x_{n},y_{n}\}\}$. Each point from the set corresponds to 1 event with coordinate $x, y$. I'm looking for a procedure in Mathematica that ...
0
votes
0answers
39 views

How to make value on horizontal axis to be equal

How do I make the spacing for the x-axis plot to be equal from point 0 to the next point where it begins to have a data on the histogram? ...
4
votes
3answers
216 views

Construct Distribution Histogram From Random Variable

Given a Beta Random Variable $X$ with parameters $\alpha, \beta$ and a positive constant $n$, suppose I am interested in the distribution of: $$Y:=\lfloor nX\rfloor$$ Suppose I want a histogram ...
1
vote
2answers
133 views

Making a histogram with bin spacing and exporting the data

I want to create a histogram which has spacing between its bins (as shown below): to create this I used the following method: ...
1
vote
1answer
84 views

Build a histogram from stochastic data

I have the following code yielding my stochastic "paths": ...