Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
57 views

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

I have the following problem. I have a pre-binned list that I want to plot. Here is a shortened example: ...
3
votes
2answers
171 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
46 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
90 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
50 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
43 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
50 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
162 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 ...
1
vote
1answer
40 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
95 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 ...
4
votes
1answer
92 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
74 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 <...
2
votes
3answers
39 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
31 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
130 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
69 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
76 views

Build a histogram from stochastic data

I have the following code yielding my stochastic "paths": ...
8
votes
2answers
763 views

Histogram with Error bars

I have a dataset for which Mathematica easily creates a Histogram. However I also need Mathematica to show error bars corresponding to 3 standard deviations for ...
1
vote
1answer
59 views

Getting PDF from imported Histogram

So I'd like to create a probability density function from an existing histogram from a program that I use. My input data is of the form ...
3
votes
3answers
245 views

Stacked Histograms for two (or more) datasets, each with its own height specification

For simplicity, lets say I have two histograms ...
1
vote
2answers
74 views

Plotting histograms with bin count multiplied by some factor

Consider, for example Histogram[RandomVariate[NormalDistribution[0, 0.6], 1000]] which gives me, Now, is there a way to change the bin counts, as in, I want to ...
3
votes
2answers
41 views

Bin arbitrary data using canonical ordering

I have two lists of words, nouns and verbs: ...
1
vote
2answers
65 views

How to calculate the area under value x=[2, 4] for SmoothHistogram (PDF)

I have a discrete signal. How can I calculate the area under the curve for $2\le x \le 4$? How can I fill the same area in the plot generated by SmoothHistogram? ...
0
votes
1answer
98 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 ...
0
votes
1answer
48 views

Why is the distribution from SmoothHistogram3D NOT normalized? [closed]

I am plotting a intensity distribution by SmoothHistogram3D. It is a actually a heatmap from list of coordinates,{xcart,ycart}. The plotting looks great, except the z value is not within the range of ...
2
votes
1answer
57 views

Normalizing smoothhistogram curves

I'm looking for a way to get two smooth histogram curves to have the same max height. The plots are usually scaled by area or something, however, the only way I've been able to find that works is a ...
0
votes
1answer
325 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?
3
votes
1answer
70 views

SystemException[“MemoryAllocationFailure”] bug in Histogram/Bincounts

I'd like to share a pernicious problem with BinCounts and therefore also Histogram. The minimized problem is as follows: ...
1
vote
2answers
106 views

Histogram with divided bars

I have file with the flux as a function of time given as Modified Julian Day (MJD). Now I need to make a histogram of the all fluxes. I also need put into each bar information about times when given ...
2
votes
1answer
83 views

SmoothHistogram binning and “Intensity”

I'm having trouble with the way SmoothHistogram handles bins. At the end of the day, I want to express the vertical axis ticks in terms of the normalized values of the bin counts. This can easily be ...
0
votes
0answers
59 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: ...
1
vote
1answer
95 views

Manipulate, TabView, and Histograms. Can they all be combined? [closed]

I previously received assistance here in constructing a Manipulate image that allows me to overlay plots of different data sets and toggle them on and off as needed,...
1
vote
3answers
77 views

Histogram/BarChart data replacement conundrum

I am trying to make a histogram or bar chart for multiple large data sets, with 52 bins where I need to do the following operations: A) Tally the counts per bin (which I have done reasonably easily ...
3
votes
1answer
90 views

DensityHistogram's density as function of other variables

DensityHistogram has a function hf, which I believe allows you to alter what defines the colours (I presume hf stands for height ...
2
votes
2answers
117 views

Creating a custom histogram

Let's create some sample data ...
1
vote
0answers
56 views

Can I make the z-axis on the SmoothHistogram3D output show quantity rather than probability?

In SmoothHistogram3D, the x- and y-axes are in the form of the original input; 0 maps to 0 and 1 maps to 1, etc. However, the z-axis returns a probability rather ...
0
votes
1answer
71 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 ...
1
vote
2answers
362 views

Calculate area under histogram bins [closed]

Histogram[RandomVariate[NormalDistribution[0, 1], 200]] How to calculate the area under the histogram.
0
votes
1answer
47 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 ...
0
votes
1answer
113 views

How to find the joint histogram of a volume data?

This question is in reference to this paper. In Fig. 1b, the joint histogram of data value and gradient magnitude is plotted. What I understand is that the values in the plot represent the frequencies ...
0
votes
1answer
258 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 ...
2
votes
0answers
52 views

Plot of a histogram is exported with wrong ticks if log-transformed data are used

I've generated a histogram of my data, using their log values, and exported the resulting plot as pdf. To my surprise, the ticks in exported plot were replaced by the logarithm of the ticks in the ...
1
vote
1answer
40 views

Sum of PDF HistogramList bar heights is 1/2, 1, 2, 3, etc… depending on distribution?

I've noticed that my normalized histograms are not always normalized to 1. For example: ...
0
votes
3answers
104 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 ...
5
votes
2answers
685 views

Plot a sequence of histograms?

How can I plot a sequence of histograms, one after the other, in 3D? Here is an example
0
votes
1answer
57 views

Histogram3D with imported data [closed]

It's been a while since I used Mathematica. Today I tried to visualize some data that I have in a text file. There are two columns, the first with integer values between 10 and 50 and the 2nd with ...
7
votes
2answers
640 views

Combining histograms with a scatter plot

I'm trying to combine graphics using Grid such that I have a ListPlot[] in the middle and a histogram on the top and right axes. ...
2
votes
1answer
195 views

How can I use Histogram and Histogram3D on an image?

I have a .jpg image named r. I am using the following code to plot a histogram: ...
0
votes
0answers
61 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.][1] Here is how I've plotted ...
2
votes
3answers
138 views

How to transform a 3D list to a 2D list?

I want to apply the command Histogram3D to an image.The image data is {{r1,g1,b1},{r2,g2,b2}...} And the input of ...