TITLE: How do I figure out what kind of distribution this is?
QUESTION [10 upvotes]: I've sampled a real world process, network ping times. The "round-trip-time" is measured in milliseconds. Results are plotted in a histogram:

Ping times have a minimum value, but a long upper tail.
I want to know what statistical distribution this is, and how to estimate its parameters. 
Even though the distribution is not a normal distribution, I can still show what I am trying to achieve.
The normal distribution uses the function:

with the two parameters

μ (mean)
σ2  (variance)

Parameter estimation
The formulas for estimating the two parameters are:

Applying these formulas against the data I have in Excel, I get:

μ = 10.9558 (mean)
σ2  = 67.4578 (variance)

With these parameters I can plot the "normal" distribution over top my sampled data:

Obviously it's not a normal distribution. A normal distribution has an infinite top and bottom tail, and is symmetrical. This distribution is not symmetrical.

What principles would I apply, what flowchart, would I apply to determine what kind of distribution this is?
And cutting to the chase, what is the formula for that distribution, and what are the formulas to estimate its parameters?

I want to get the distribution so I can get the "average" value, as well as the "spread":

I am actually plotting the histrogram in software, and I want to overlay the theoretical distribution:

Tags: sampling, statistics, parameter-estimation, normal-distribution

REPLY [2 votes]: From the comments on stats.stackexchange, it seems like you may not care too much about the distribution, but just a pretty curve to overlay on your graph. In which case, some kind of spline is your best bet. Use some kind of curves with asymptotes at y=0 for your upper- and lower-most segments, and whatever fits best in between.   
If you do actually care about the underlying distribution:
The first step would be to use whatever outside knowledge you have to characterize the distribution. For example:
Network ping is a sum of independent wait times (the individual nodes in the network). This would suggest a Gamma/Erlang distribution if each of these steps is identical, and a more complex distribution if they are not.
Ping is a measure of time until the computer at the other end responds to your request, the likelihood of which is proportional to the time elapsed. This would suggest a Weibull distribution.
Ping time is the accumulation of a large number of factors that all have a multiplicative effect on the result. Then a log-normal distribution would be best. 
I don't know enough about networking to say anything about the accuracy of any of the above models, and it's also perfectly likely that ping time follows some other model which I haven't thought of. I just wanted to demonstrate the idea: that you should think about what factors contribute to the thing you are trying to model, and how they interact.  
And, of course, the distribution does not necessarily have to be a known one! In which case the above won't get you very far! In this case you might want to come up with your own empirical distribution, for which a variety of methods exist. The most common are to take your measurements as the distribution (as long as you have a sufficiently large number) or to take each of those data points and treat it as the center of some uniform/normal/other distribution, and sum everything with appropriate scaling.
After you know the type of distribution, you may also be able to use domain knowledge to estimate some of its parameters. For example, you might guess at the number of exponentials being summed based on the shape of the network. You can also use your measured mean and variance to form estimates of the distribution parameters. For example, if you thought that your distribution was a Gamma(3,θ), then you could use your measured variance to estimate θ=4.74182454 based on our known formula for variance of a Gamma Distribution. 
Once you have your guess at a distribution, you will want to test its goodness of fit. 
For this, the standard method would be to apply the one-sample Kolmogorov-Smirnov test. 
Other potentially applicable tests are the Cramer-von-Mises, Anderson-Darling, or chi-square tests.  
This is incomplete, I will add more later.