# Questions tagged [uniform-distribution]

The uniform distribution describes a random variable that is equally likely to take any value in its sample space.

752 questions
Filter by
Sorted by
Tagged with
32 views

1 vote
28 views

• 61
804 views

### What distribution to sample X from to get an uniform distribution in Y?

I have a random variable $X$ which is related to another random variable $Y$ as $Y = \text{cos}(X)$, where $X \in [0, \pi/2]$, and I would like to know what distribution I should sample $X$ from in ...
• 185
36 views

### Test uniformity after adding some non-uniform data in python

I generate N1 numbers from uniform distribution using numpy python package from a certain interval e.g., ...
• 121
117 views

### Sample uniformly from unit square conditioned on sum and product

Consider the following conditional distributions: \begin{align} X, Y \stackrel{\text{iid}}{\sim} U(0, 1) &\mid X + Y = a & a \in [0, 2] \\ X, Y \stackrel{\text{iid}}{\sim} U(0, 1) &\mid X ...
• 913
12 views

### Uniform measurement error in "errors in predictors" regression

I'm working with cancer incidence data that uses a range of ages (e.g. <1, 1-4, 5-10, ...) rather than a single value. I want to fit a model where age is a predictor. As a result, I'm curious ...
• 101
151 views

• 571
1 vote
11 views

### Probabilities manipulation $P(Z_1+Z_2=2,Z_1=1,Z_2=1)=P(Z_1=1,Z_2=1)$ with $Z_1,Z_2 \in \lbrace 1,2,3,4 \rbrace$ independent and uniform

I've two independent and uniform random variables $Z_1,Z_2 \in \lbrace 1,2,3,4 \rbrace$. Can you tell me why the following equality is correct please? $$P(Z_1+Z_2=2,Z_1=1,Z_2=1)=P(Z_1=1,Z_2=1)$$
161 views

### Is there any connection between these two distributions?

I was playing with standard uniform distributions where I noticed a "weird" relation between two combinations and was wondering if there was an underlying reason for it (or if it is just ...
• 141
Suppose there are i.i.d. variables $X_{1,..n}$ with discrete uniform distribution with the support $[1, n]$. What would be the distribution of such a sum if we introduce the condition that each value ...