Questions tagged [uniform-distribution]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
32 views

Conditional distances in order statistics

Assume I have $n$ points sampled independently from the uniform distribution on the unit interval. After ordering the sample I get the points $X_1, X_2, \dots X_n$ such that $X_1 \leq X_2 \leq \dots \...
user avatar
  • 337
2 votes
1 answer
26 views

probability that the players will exchange their initially drawn number

Consider the following two-player game. The players simultaneously draw one sample each from a continuous random variable X, which follows $Uniform\ [0, 100]$. After observing the value of her own ...
user avatar
0 votes
1 answer
34 views

Find the MLE density function of uniform [-\theta,\theta] [duplicate]

For $X_1,\dots,X_n$, i.i.d $X_n \sim \mathrm{unif}[-\theta,\theta]$, the ML: $\hat\theta_{MLE}=\mathrm{max}\{-X_{(1)},X_{(n)}\}$. Find the density function. Hint: For $x_1,\dots,x_n$ : $\textrm{max}\{-...
user avatar
1 vote
1 answer
28 views

MLE of the Uniform Distribution

In a uniform distribution where $0\leq X \leq \theta$, the pdf is represented as $f(X|\theta) = \frac{1}{\theta}I(0\leq X \leq \theta)$, and the likelihood is $L(\theta) = \prod\frac{1}{\theta}I(0\leq ...
user avatar
  • 61
0 votes
0 answers
35 views

MLE for the Uniform distribution [duplicate]

I understand how a random sample $x_1, ..., x_n$ following the Uniform Distribution with $0 \leq x \leq \theta$ has a log-likelihood proportional to $\frac{1}{\theta^2}$. I am told that the MLE for $\...
user avatar
  • 61
11 votes
4 answers
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 ...
user avatar
  • 185
2 votes
0 answers
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., ...
user avatar
  • 121
7 votes
1 answer
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 ...
user avatar
  • 913
0 votes
0 answers
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 ...
user avatar
3 votes
1 answer
151 views

Exponential random variable X with a uniform random variable as its parameter

$$X\ \sim Exp(U) ~ and\ U\ \sim U(0,1) $$ The question asked for the value of $ P(X\geqslant 1)$ I saw the solution and it went like this: $$P(X\geqslant 1) = E[P(X\geqslant 1)|U] = E[e^{-u}] = \int_{...
user avatar
1 vote
1 answer
30 views

How to sample and compute the likelihood from a Mollified Uniform distribution?

I want to draw samples from the mollified Uniform distribution presented in another Cross Validated thread, cf the answer from whuber. What is the best way to do so?...
user avatar
1 vote
1 answer
65 views

Probability that a Random Variable is Greater Than Another

Say I have two independent random variables - one is drawn from a uniform distribution on [0, 50] while the other is drawn from a uniform distribution on [0, 100]. How would I calculate the ...
user avatar
0 votes
0 answers
29 views

Sampling Puzzle

There is a bag with N = 50 balls. Among which M = 10 balls are red, and N-M = 40 balls are blue. Further, say the red balls are numbered among themselves from 1 to 10, and the blue balls are numbered ...
user avatar
0 votes
0 answers
20 views

Probability of failure of Uniform Sampling [duplicate]

Say I have a bag with 10 numbered balls, and I pick one ball at each time step and then put it back in the bag. Since each ball is equally likely, therefore the current situation represents a uniform ...
user avatar
3 votes
2 answers
58 views

Is the parameter of interest uniformly distributed over the confidence interval?

Let's assume that we are estimating a parameter of the population (e.g., mean height or weight). We've gathered our sample and calculated confidence intervals around the parameter of interest. Are we, ...
user avatar
  • 93
0 votes
0 answers
29 views

Confusion over probabilities and densities in a Bayesian Data Analysis textbook question

In Gelman's "Bayesian Data Analysis" question 1.5a), we are asked to estimate the probability of a tie in an election. The question: Probability assignment: the 435 U.S. Congressmembers are ...
user avatar
  • 69
0 votes
0 answers
16 views

Sampling uniformly using binary representation of a number

I have a $6$-sided dice and I would like to sample integers uniformly from $0$ to $k$ with $k > 6$. I think that $k$ should be written in its binary representation. Let's say its binary ...
user avatar
0 votes
0 answers
17 views

Expected number after n rounds of uniform~[0,1] draws

If we have a series of $n$ IID random variable $X_i$ that are uniform [0,1], and at each round $i$ we decide to either keep $X_i$ or discard it for the next number. What is our strategy to maximize ...
user avatar
  • 101
2 votes
1 answer
22 views

Expected number of points in a subsurface of a rectangle

There is a rectangle $S$, and $n$ points are uniformly distributed inside it. If we select an area $A$ inside the rectangle, what is the expected number of points inside the $A$? I think it seems to ...
user avatar
  • 155
3 votes
1 answer
74 views

Distribution of a sample of uniformly distributed points in the 2D

Let there be a rectangle in the plane and a set of points distributed in the rectangle by a uniform distribution. I select a random point on the top and right border and draw the red line. The blue ...
user avatar
  • 155
1 vote
0 answers
11 views

Are my sequential random numbers correlated?

Say I want to generate $n$ random numbers $Y_i, i = 1, ... n$, where $X_i \in [1,..n]$ is my i.i.d. uniform random source and $Y_i$ are drawn sequentially: $Y_0 = X_0$ $Y_i = (Y_{i-1} + X_i)\; \text{...
user avatar
  • 111
0 votes
0 answers
28 views

How to show $X \text{~Uniform}[-1,1] $ and $Y=-X$ when $X\leq 0$, $Y=X$ when $X \geq 0$, then $Y \text{~Uniform}[0,1] $?

Told to show that: if $X \text{~Uniform}[-1,1] $ and $Y=-X$ when $X\leq 0$, $Y=X$ when $X \geq 0$, then $Y \text{~Uniform}[0,1] $. [where X,Y are continuous random variables] I can see why it holds ...
user avatar
0 votes
0 answers
21 views

Reweight a distribution after draws

I have a practical sampling problem, and I wasn't sure whether there was any off-the-shelf literature to deal with the issue. I am first sampling from a intervals of an approximately equal length from ...
user avatar
  • 135
7 votes
3 answers
161 views

Estimating $\theta$ based on censored data when $X_i\sim \text{Uniform}(0,\theta)$ with $\theta\ge 1$

Suppose $(X_i)_{1\le i\le n}$ are i.i.d $\text{Uniform}(0,\theta)$ random variables where $\theta \ge 1$. We observe $Y_i=\min(X_i,1)$ instead of $X_i$. I wish to estimate $\theta$ based on the data $(...
user avatar
  • 9,120
4 votes
0 answers
38 views

Show that unimodal distribution variance is smaller than uniform distribution

Let $f(x)$ be a unimodal distribution on bounded interval $[-1,1]$. Can we show that the variance is upper bounded by variance of Unif$[-1,1]$?
user avatar
  • 41
2 votes
3 answers
163 views

How to prove $Y=X^{2}$ is Beta$\left(0.5,\ 1\right)$ if $X$ is Uniform$(0,\ 1)$

I've been reading about uniform distributions but I can't see how $Y=X^{2}$ is Beta$\left(0.5,\ 1\right)$ if $X$ is Uniform$(0,\ 1)$. Is there a way to prove this using the cumulative distribution ...
user avatar
  • 113
0 votes
0 answers
19 views

Exponential Posteriori with a Uniform Prior

I'm studyng for a final exam and found this problem from another generation, but I don't know how I should continue... I will be gratefull for any help, thanks you. Let be $X|\theta\sim U(0,\theta)$ ...
user avatar
2 votes
1 answer
64 views

Computing KL divergence between uniform and multivariate Gaussian

Another post has addressed the fact that KL divergence is defined between a uniform distribution and a Gaussian distribution $$D_{\text{KL}}(\mathcal{U}(x) \parallel \mathcal{N}(x \mid \mu, \Sigma)) = ...
user avatar
1 vote
1 answer
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) $$
user avatar
5 votes
1 answer
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 ...
user avatar
  • 141
4 votes
3 answers
86 views

Sum of Discrete Uniforms, but each value can be picked no more than N times?

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 ...
user avatar
0 votes
0 answers
73 views

$Y$ has uniform distribution on [0,1], and conditional on Y = y, let X have a distribution of Bernoulli(y). What's P(Y|X=1)?

Using Baye's formula I have $P(Y=y|X=1) = \frac{P(X=1|Y=y)*P(Y=y)}{P(X=1)}=\frac{y*1}{P(X=1)}$ Now $P(X=1) = P(X=1|Y=0)P(=0)+P(X=1|Y=0.001)P(Y=0.001)+...P(X=1|Y=1)P(Y=1) = 0+0.001+0.002...+1 = \int_0^...
user avatar
  • 101
12 votes
2 answers
599 views

In Bayesian models, can you use Uniform(-inf, inf) as a prior?

In Bayesian models, can you use Uniform(-inf, inf) as a prior? I ask because in an class, we looked at MH MCMC sampler, and showed that to sample from a distribution, we need not explicitly solve for ...
user avatar
  • 1,650
1 vote
0 answers
46 views

What distribution is produced by the correlation of random values sampled uniformly?

I'm trying to figure out what this distribution is so that I can calculate the exact probability of values close to 1 or -1 using its PDF: as produced by the following code in R: ...
user avatar
  • 158
0 votes
0 answers
26 views

ks test for uniform distribution

My question is similar to this post (KS test for Uniformity). KS p-valuse changes when samples are in different position, even if they have the same intervals. For example: ks.test(c(1,2,3),"...
user avatar
  • 1
0 votes
1 answer
39 views

Scipy: Continuous Uniform Distribution's CDF

Question How can we solve the problem below with Scipy? Background: I am preparing statictics notes in Jupyter Notebooks and trying to apply appropriate Scipy functions to some real cases. Problem: I ...
user avatar
4 votes
2 answers
100 views

Find marginal distribution of Y while knowing distribution of X and $Y|X$

Assume that X is uniformly distributed on (0, 1) and that the conditional distribution of Y given $X = x$ is a binomial distribution with parameters $(n, x)$. Then we say that Y has a binomial ...
user avatar
  • 253
1 vote
4 answers
146 views

What distribution is the most appropriate?

I am given the following problem: A student S wants to take the tram to go home after his lectures are over. The tram line he’s used to take leaves every 7.5 minutes on average at the university. ...
user avatar
  • 23
4 votes
1 answer
130 views

Uniformly sample pieces of a rectangle

Say I have a rectangle $R: \left[{0,W}\right] \times \left[{0,H}\right]$ where $W$ is the width and $H$ is the height, with coordinates $\left(x, y\right) \in \mathbb{R}^2$. I would like to randomly ...
user avatar
  • 225
1 vote
1 answer
75 views

Density function of $XY$ when $X$ and $Y$ are uniform : What is wrong here? [duplicate]

Let $X$ and $Y$ be independent ,uniform over [0,1]. I need to find the pdf of XY. So let $U = X, V= XY$ and Jacobian $J$ can be calculated as $J= 1/u$. So $$f_{U,V}(u,v) = f_{X,Y}(x,y)|J|= 1/u$$ So ...
user avatar
0 votes
0 answers
34 views

Calculating the Standard Deviation of Estimates from a Uniform Distribution

I was looking at this question on Sufficient Statistics and the Uniform Distribution: https://math.stackexchange.com/questions/1359183/why-should-we-care-about-sufficient-statistics In this question, ...
user avatar
  • 5,688
1 vote
1 answer
43 views

P-values of A/A Test with dependence does not obey uniform distribution?

Suppose we have a large population (U.S. people). I divide population into 100 subgroups. Note that all people in each of the subgroups are i.i.d.. Suppose I make 50 tests for ...
user avatar
  • 217
0 votes
0 answers
32 views

What can we say about the distribution of $F(X)$ when $F$ is not invertible? [duplicate]

Let us say $X$ is a random variable with cdf $F$. I know that when $F$ is invertible then $F(X)$ has unif$(0,1)$ distribution. The proof goes like $$P[U\le u] = P[F(X)\le u] = P[X\le F^{-1}(u)] = F(F^{...
user avatar
  • 485
0 votes
0 answers
41 views

Does Benford's Law Actually Work?

Recently, I have been reading about Benford's Law :https://en.wikipedia.org/wiki/Benford%27s_law This law supposedly states that naturally occurring numbers are more likely to start with the number &...
user avatar
  • 5,688
3 votes
0 answers
44 views

Confusion regarding plot of p-value as function of MLE value

I am trying to answer the following question: My work: (a) The power function $\beta \colon \Theta \to [0, 1]$ given by $\theta \mapsto \beta(\theta)$ is the probability of rejecting $H_0$, as a ...
user avatar
  • 531
1 vote
1 answer
22 views

How to random generate a sample from {0,2} in R? [closed]

There are some solutions online on how to do a random generation of the discrete uniform distribution, but only on consecutive integers. Like : ...
user avatar
0 votes
1 answer
623 views

Test for uniformity in Python

I have recently started learning about distributions and hypothesis testing in statistics and implementing them in Python. I am trying to write a class that helps tests for uniformity of a ...
user avatar
0 votes
0 answers
40 views

Calculating total variation distance between multiple copies of the uniform distribution and a distribution slightly biased from uniform

Consider a distribution $D_1$ over two bits --- $0$ and $1$. \begin{equation} \underset{X \in {D}_1}{\text{Pr}}[X = 1] = \frac{1}{2}, ~~~~~\underset{X \in {D}_1}{\text{Pr}}[X = 0] = \frac{1}{2}. \end{...
user avatar
1 vote
0 answers
37 views

How do you find the p-value for a uniform distribution?

If I am given a uniform distribution U ~ Uniform[-3, 2], how do I find P(2X+6>4)? I'm not sure where to begin other than noting that -3 is the mean and 2 is the variance.
user avatar
  • 11
6 votes
3 answers
538 views

Are discrete random variables, with same domain and uniform probability, always independent?

If $X$ and $Y$ are discrete random variables, both with domain $\{-1,0,1\}$, with uniform probability, does this imply they are independent? What would be the expected value $\mathbb{E}(XY)$ and ...
user avatar
  • 183

1
2 3 4 5
16