Live data from Hacker News

Why is everything based on likelihoods even though likelihoods are so small?

stats.stackexchange.com

91–100 of 103 posts

Re: Why is everything based on likelihoods even though likelihoods are so small?

#91
post #30

Earlier quoted context omitted.

> It is fair to ask why the likelihoods are useful if they are so small The way the question demonstrates "smallness" is wrong, however. They quote the product of the likelihoods of 50 randomly sampled values - 9.183016e-65 - as if the smallness of this value is significant or meant anything at all. Forget the issue of continuous sampling from a normal distribution, and just consider the simple discrete case of flipp…

Right - and so the more appropriate thing to do is not look at the raw likelihood of any one particular value but instead look at relative likelihoods to understand what values are more likely than other values.

Therefore, likelihood ratios! (Or log likelihood ratios)

Re: Why is everything based on likelihoods even though likelihoods are so small?

#92
post #58

The weirdest “likelihood” conversation I ever had, the putative team lead didn’t want to change priorities to fix a bug because, “how often does that happen?” My reply was, “it happens to every user, the first time they use the app.” And then something about how frequency has nothing to do with it. Every single user was going to encounter this bug. Even if they only used the app once. I already had a toolbox full of…

Yeah, and I'd also add that the total # of bugs in an application will always be greater than the total # of 'known' bugs. Tracking down and fixing the oddball bugs usually prevents a larger set of related issues from popping up later.

Some bugs have multiple symptoms, it’s true.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#93
post #80

Earlier quoted context omitted.

Concentration of mass is density . A shell is not dense. If I am looking for a needle in a hyperhaystack, it's not important to know that it's more likely to be "somewhere on the huge hyperboundary" than "in the center hypercubic inch".

Disagree: A lot of why large corporations fail to make products that people enjoy is tied up in this behavior and that mass is not independently distributed along each distribution — you end up with “continents of taste” your centroid product sucks for equally.

This is similar to how they originally tried to build fighter jet seats for the average pilot, but it failed because it turned out there were no average pilots, so they had to make them adjustable.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#94

Earlier quoted context omitted.

The independence has nothing do with the integral being 1 to be honest. You could write a model where the observations are not independent but the (multivariate) integral over their domain will still be 1.

But for such a model, the joint pdf would not be written simply as a product of each individual pdf. That's what independence provides.

If by “joint probability” you mean function(params, data) there is no joint probability here in general.

L(params, data) is constructed from a family density functions p(data) for each possible value of param. The integral of L(params, data) may be anything or diverge. You don’t need any extra independence assumption either.

Or maybe you mean “joint probability” as p(data1, data2) when data is composed of two observations, for example. But you don’t need any independence assumption for that probability density to integrate to one! It necessarily does that - whether you can factorize it as p’(data1)p’’(data2) or not.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#95
post #18
post #16

I don't have a problem with very small probabilities as long as they stay within math and kind of "cancel out". What I do have a problem with is lack of conceptual framework for dealing with small probabilities of real life events. For example, what amount of effort is appropriate to prevent a one time event which kills you with say 1 in ten thousand times?

One simple way of quantifying this is (amt/cost of harm) * (risk of occurrence)

That's good, assuming the cost of harm is a cost in utility and not in money, otherwise it starts having issues. Make sure you have a good utility function.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#96
Everyone seems to be missing the point here. The SO post says:

> As we can see, even from the correct distribution, the likelihood is very, very small. Thus, it appears to be very unlikely in a certain sense that these numbers came from the very distribution they were generated from.

The person who asked the question is simply confused between likelihoods and posterior probabilities. The likelihood of d values from a Normal Distribution is defined to be the probability of sampling those d values given the parameters of the Normal. It is not the probability that those numbers came from that Normal Distribution. To answer the latter question, you need to say what other possibilities you're considering (perhaps some other parameter values) and use Bayes Rule. The other answers mention that ratios will be involved, but the way to see why ratios are involved is to look at Bayes Rule.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#97
>> First, as others have mentioned, we usually work with the logarithm of the likelihood function, for various mathematical and computational reasons.

The mathematical and computational reasons that the logs are smaller and easier to read in a plot.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#98
post #76

Earlier quoted context omitted.

What is this point value then measuring? A literal "density" doesn't seem plausible either, as points arguably do not have any "density".

I'll give the mathematical explanation. So if X is a continuous random variable, the probability that X takes on any particular value x is 0, i.e. P(X = x) = 0. However, it still makes sense to talk about P(X In the case of the cumulative distribution function of the uniform distribution from 0 to 1, since the derivative of x is 1, the probability distribution function is 1 from 0 to 1 and 0 elsewhere. This makes sen…

That's interesting and intuitive for a uniform distribution. What does it then mean on a non-uniform distribution for an value to be very small? Is there some interpretation for that? The Stack Overflow post actually mentions values that are extremely close to zero.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#99
post #44
post #36

Earlier quoted context omitted.

> half heads, half tails. > Under the model where the bias is 0.5—a fair coin—the probability of that outcome is (0.5)^20 or about one in a million. No. Edit: someone downvoted, ha. It's closer to 1 in 6.

I'm surprised people are conflating the Binomial distribution with OP's statement. He is talking about one specific outcome of half heads/half tails (where order matters). There is exactly one way to get that outcome.

You only knew that because you know how to do the math yourself, friend.

If you read what he said (I quoted it), he was not talking about one specific outcome. He didn't...well, specify that. He said half and half.

I also know how to do math, as I think I proved in my own comment. So I don't accept your insult.

Re: Why is everything based on likelihoods even though likelihoods are so small?

#100
post #98

Earlier quoted context omitted.

I'll give the mathematical explanation. So if X is a continuous random variable, the probability that X takes on any particular value x is 0, i.e. P(X = x) = 0. However, it still makes sense to talk about P(X In the case of the cumulative distribution function of the uniform distribution from 0 to 1, since the derivative of x is 1, the probability distribution function is 1 from 0 to 1 and 0 elsewhere. This makes sen…

That's interesting and intuitive for a uniform distribution. What does it then mean on a non-uniform distribution for an value to be very small? Is there some interpretation for that? The Stack Overflow post actually mentions values that are extremely close to zero.

So, just to be sure, even for a uniform distribution, the values can be small. Consider the uniform distribution from 0 to 10^100. The CDF for this distribution is P(X So PDFs can have small values regardless of whether they are uniform or not. What a small PDF at a point x indicates is that the CDF is increasing very "slowly" at that x. I'll emphasize this point - PDF values are not probabilities. They are rates of change of the CDF.

For some further understanding of the stack overflow post, let's consider Uniform(0, 2). The PDF is p(x) = 1/2. Suppose the author of the stack overflow post drew 50 samples from this distribution. Regardless of what those 50 samples were, the value he would have gotten would have been (1/2)^50 = 1/(2^50), something on the order of 10^-16. Why is this so small?

(I'll give a rather loose and informal explanation here, but I can be more formal if you'd like, if this doesn't make sense.) Think back to Uniform(0, 1) vs. Uniform(0, 10^100). Recall that the probability that a particular x falls in [0, 1] for the former distribution is the same as the probability that a particular x falls in [0, 10^100]---i.e. 1 (100%). In the case of the latter distribution, that 1 has had to be "spread out" across a larger space, which should give some intuition as to why the PDF is low---for a particular unit in space that we "travel", since the probability has been spread out so thinly across the space, the CDF isn't increasing that much, i.e. the PDF isn't that high.

When we're looking at PDF values when we're looking at the space of possibilities covered by 50 samples, it's going to be a lot "larger" than the space covered by 1 sample (over one sample, the space is [0,2], covering 2 units of space. over two samples, the space is the square [0,2] x [0,2], with an area of 4. over 50 samples, the space is the hypercube [0,2]^50, with a 50-dimensional volume of 2^50---a huge space.) But the total probability is still 1, so it's going to be "spread out" very thinly across this larger space, hence much smaller values. And so, the probability we accumulate as we move across this space per unit is going to be very low, hence a low likelihood value.

So when we draw many samples from a distribution, the likelihood of these samples is going to be very small (mostly---there might be spikes where they're high).

I've spoken a little loosely and informally, but hopefully this makes sense.

Post reply on HN