47 points · by max_ · 5y ago · 36 comments
For example - suppose you host some data on 3 cloud providers - GCP, AWS & Azure. You believe, on average, the latency is the same for each provider. However, the variance is different - say 2,3 and 4. So, how much traffic should you route to each provider ?
"What does the mean really mean" is the same as the above question. If you believe average latency is the same, then how should it matter what the variance is ? Just route 1/3 of your traffic to each provider & be done. But that's exactly the wrong answer!
Because the arithmetic mean is not what you want here. You want to make your own mean. You really want a weighted mean, but you can't just pick the weights willy-nilly. The sample mean has its own variance! So if you say you don't give a rat's ass about statistics, you will just route 1/3 traffic to each provider - what you are really doing is picking weights of 1/3, in turn giving your sample mean xbar a sample variance of exactly 1 ( easy to show ).
But if you pick the right weights, the sample variance drops to 12/13, which is smaller than 1. So by picking your own weighted mean, you get to fiddle with the sample variance - you can dial it up or down! The smallest you can get it down to is 12/13, in which case the weights will have to be 6/13 to GCP, 4/13 to AWS & 3/13 to Azure.
Fun stuff.
That's quite true, and the same statement also points to where the arithmetic mean isn't a good choice: where the goal isn't so much to summarize a whole as to give an insight into populations. For instance, if you are trying to figure out the "average" income in a city, the median provides better intuition than the mean.
Furthermore, there are many situations where both the mean and median (and even the mode) fail to provide insight. For instance, the average person has one testicle, whether defined by mean or median (and even the mode is not much help here, with its equally useless value of 0). We should really think of summary stats as something to only be used when a distribution is well understood. In other cases, a simple frequency distribution diagram provides much better insight, and isn't very hard to do.
There are two options:
1) The ratio between women and men is not exactly 1. In this case, the median number of testicles is not 1 (it is either 0, if there are more women than men, or 2 if there are more men than women).
2) The ratio between women and men is exactly 1. This is not true in real life, but let's pretend it is. In this case, any number between 0 and 2 is a median (since any number between 0 and 2 minimizes the sum of absolute deviations), and not just 1.
TL;DR: The median number of testicles is almost surely not 1 (or, at least, not uniquely so).
If you look at ten people with 2, ten people with 0, and one person with 1, then the median will be 1.
If you make it twelve people with 2, still ten with 0 and one with 1, suddenly the median is 2.
Across an entire population, I would hazard a guess the median would be 0 or 2 unless the difference in numbers of each sex is small enough that people with 0<X<2 testicles might fall right in the middle of the distribution.
E.g. in this case you can calculate the motion of the center of mass from the forces applied to the object. The same can’t be said for other averages.
In addition to discussing Kolmogorov’s construction of the mean (first moment), he extends it to higher moments (e.g. variance), and provides some nice examples.
Pity the authors didn’t cite the aforementioned paper. Note that I’m not implying any plagiarism happened; the subject is elementary enough that different people could easily arrive at similar manuscripts independently.
Sure. More than that, the median is one of those different kinds of means. A mean is a statement about the total aggregated value of several data points. It answers the question "if all of these values were the same value, what would that value be?". And obviously, the answer depends on the details of how you aggregate the individual values.
If your function takes a set of values and returns a value that is at least the minimum of the set and at most the maximum, it's a mean.
It seems to be asserting that, for all possible k, if the first k input values x_1, ... x_k are replaced by the mean x, then the mean doesn't change.
Sorry what?
(1 2 3 4 5 6) -> arithmetic mean is x = 3.5.
Ok, let k = 3; replace first 3 elements by 3.5:
(3.5 3.5 3.5 4 5 6) -> arithmetic mean is 4.25
Unless I'm totally daft, there has to be a typo there somewhere?
--
Edit, ah, ok. Returning to this, I see where my eyes fooled me. The term on the left goes to x_k. Thus x is a "sub-mean" representative value which is of the first k values. If the first k values are replaced by their "sub-mean", then the "master mean" is undisturbed.
That is very intuitive.
In the case of an arithmetic mean, it's basically a distribution situation: a certain total quantity is distributed into n slots. If we transfer an amount from any slot to any other, the mean does not change. We can choose a subset of the slots, and redistribute their subtotal among them that they have an equal value. That value will be their respective mean. Since we do not add anything to the total, the mean doesn't change.
What isn't so obvious is that this generalizes to the other kinds of means, like geometric.
It's obvious if you realize that the geometric mean is just exp(mean(log(values))) and the harmonic mean is just 1/mean(1/values), where "mean" is the arithmetic mean (i.e. they are just the arithmetic mean performed in a transformed space).
So you would be replacing the first 3 values with 2 in your example, not 3.5
For some reason I thought the mean could be thought of as a single number that is most representative of a sample or population in an information loss (algorithmic/kolgomorov complexity, maybe relative entropy?) sense, or maximum likelihood sense (maybe under some distributional constraints?). I might be misremembering that though, and it's difficult to figure out the right search terms to track it down.
TL;DR: If you can safely assume additiveness/normality, then... yes, mostly. Otherwise, not necessarily.
And probability is just a normalized denumerably additive measure over a sigma algebra.
We've done very well constructing theories on the basis of these definitions, but it is useful to remember that neither has empirical content.
And even today probability is taught with a lot of empirical examples. (At least it was in my classes, both undergraduate and graduate.)
Can you mention some of these examples? FYI, I've taught a bunch of Stats/Econometrics classes at grad and undergrad level.
We had a lot more empirical work in probability.
In introductory probability classes we had, among other things, famous examples like the Chevalier de Méré, birthday, Monty Hall, Bertrand's ballot, and coupon collector's problems; and a lot of calculating probabilities involving coins, dice, cards, and drawing balls from urns in various and increasingly complicated ways.
In graduate probability classes we studied mathematical models of things like Brownian motion, birth-death processes, and queuing systems. Our work on these was theoretical, naturally, but grounded in empirical problems from the physical sciences.
[1] Gini, Corrado. (1958) Le Medie. Torino: Unione Tipografico-Editrice Trinese.