News for hackers. Stuff that matters.
Re:What Is an “Almost Prime” Number? by thaumasiotes on Sunday November 04, 2018 @01:45AM (#18374465)
> I don't believe there is a uniform probability distribution over any interval of the reals.

Then I'll observe that you probably shouldn't be trying to comment on this topic. I didn't just assert that there is one, I pointed out to you what it was.

The probability density function f(x) = 1, defined over the interval [0,1], is uniform (all values are equal, being 1) and covers an area of 1. That's all a uniform distribution is.

It satisfies the axiom which I assume you're referring to as the "second axiom of probability" in that the definite integral of the pdf over the entire interval is 1. It satisfies the requirement you're confused about in that the probability of choosing a number that falls into either of two disjoint subintervals is equal to the sum of the probabilities of (1) choosing a number falling into the first subinterval; + (2) choosing a number falling into the second subinterval.

> Suppose such a distribution existed over [0, 1]. Then as we have shown before, the probability of choosing 0 <= x <= 1 is zero.

For fixed x, the probability of choosing x from a uniform distribution over the reals is 0. That is a special case of the probability that a value chosen from a uniform distribution over the reals will lie within an interval. The probability of drawing a value from within the interval [a,b], for any distribution, is the definite integral of the distribution's pdf from a to b. As you can see, when a = b, this value is 0, but when a ≠ b, it isn't. The probability of choosing an x such that 0 <= x <= 1 from a uniform distribution over [0,1] is 1, not 0.

Re:What Is an “Almost Prime” Number? by AaronFriel on Sunday November 04, 2018 @03:16AM (#18374847)
Oh gosh, you're correct. It's been a while since I've done this (well).
Re:What Is an “Almost Prime” Number? by gustavpaul on Sunday November 04, 2018 @05:15AM (#18375155)
Much respect for confirming to the rest of us reading this thread that your interlocutor's argument is the better one / yours is wrong. Having determined the correct answer, we all walk away correct, regardless of who was corrected.