All:
I know this is a newbie question, but I’m struggling to find documentation and/or an example on how to do this.
If I have a UniformDistribution[0,1] what is the syntax to compute the probability that P(U <= 2/3)?
From what I was able to find I think the command should be something like this:
PDF[UniformDistribution[{0,1}], {x, 2/3, 0}]
I’ve tried a number of variations of that to no avail so far. Can some one please give me a pointer to some documentation that describes how to calculate probabilities for uniform distributions and/or a few examples?
Perhaps it would be simpler to use CDF[UniformDistribution[]]. This gives the cumulative distribution function (or, more concisely, the distribution function) of a uniform distribution in the range {0, 1}. The CDF at x is, by definition, the probability of obtaining a value less than or equal to x. Then,