Take the 2-minute tour ×  First up, I'm quite new to Mathematica
so any hints on better code would be greatly appreciated.  I
have some histogram frequency data from an unknown distribution
that I'm trying to fit. Here's the histogram and how I draw it:
(* Data in the form "rank count"*) raw =
ReadList["Desktop/data.txt", {Number, Number}]; (* I have some
missing ranks that I want to set as having a count of 0 *) fd =
Table[0, {i, Max[raw[[All, 1]]]}]; Do[fd[[raw[[i, 1]]]] =
raw[[i, 2]], {i, Length[raw]}] Histogram[Log[fd], FrequencyData
-> True]  enter image description here  Needs["Histograms"]
seems to be deprecated but I couldn't find a nice way of
plotting frequency data without it.  The ranks are actually
counts themselves, this is a histogram of the frequencies at
which I've observed X number of things. Does that make sense?
I'm slightly concerned that I'm confusing myself here :)  Now I
have the data and the log plot seems to show a nice continuous
curve I thought I could find a line to fit it. I fo