Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uniform]

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

1
vote
1answer
20 views

How to check if a distribution is different from uniform distribution using the values only?

I have a discrete empirical distribution, where the values D1 = {1,2,3,7,9,15,16,17,18,19,20} occurs with some different frequencies. The frequencies are not of interest to me. I am interested in how ...
2
votes
1answer
43 views

The joint pdf of sample maximum and sample mean for uniform distribution?

Assume $$\{X_i\}\stackrel{\mathrm{i.i.d.}}{\sim} \mathcal{Uniform}(0,1)$$ Find the joint p.d.f. of $$X_{(n)} \hat= \max \{X_1,X_2,\ldots,X_5\}\quad\text{ and }\quad \bar X\hat=\sum^n_{i=1}{X_i}$$ ...
17
votes
4answers
262 views

Draw integers independently & uniformly at random from 1 to $N$ using fair d6?

I wish to draw integers from 1 to some specific $N$ by rolling some number of fair six-sided dice (d6). A good answer will explain why its method produces uniform and independent integers. As an ...
2
votes
1answer
102 views

What is the distribution of the number of occurrences of a given integer, in repeated samples drawn from Uniform Integer [1, N] distribution?

If I draw M repeated samples from Uniform Integer Distribution on [1,N], what will be the distribution of the number of times a given integer chosen among the integers 1,2,...,N appears in my M ...
0
votes
1answer
39 views

Test of uniform distribution using KS-test and chi square in R

I want to test if a given sample $x$ of $n = 500$ continuous observations is uniformly distributed on a given interval of $[a,b]$ ($a = min(x)$ and $b = max(x)$). Therefore I would like to compare the ...
1
vote
1answer
26 views

Generating three random numbers from normal distribution using 3 independent uniform numbers

Each of the variables A,B,C follows a normal distribution with E(A)=E(B)=E(C)=1,V(A)=1,V(B)=2,V(C)=4. Correlation between A-B=0.2,B-C=0,AC=0.8. We are given three independent uniform (on[0,1]) random ...
-1
votes
1answer
51 views

UMVUE of $\cos\theta$ when $X_i\sim U(0,\theta)$

$X\sim U(0,\theta)$. To find the umvue of $\cos\theta$ is it enough to find the umvue of theta and substitute for it. Umvue of $\theta$ being $(n+1)X_{(n)}/n$, is the answer $\cos (n+1)X_{(n)}/n$?
0
votes
0answers
22 views

What is the posterior distribution of a Bernoulli prior that gets updated with a continuous uniform signal?

I'm trying to figure out what the distribution of the posterior is after I update a Bernoulli prior with a continuous uniform signal, say: P(D=G|u)=x where D{G,I} and u is uniformly distributed on ...
0
votes
0answers
15 views

Unclear “mathematical notation” in a polynomial

Although, the Enigma here is a protocol for enhancing the privacy in blockchain; however, the question is about mathematical notation, where we want to calculate the coefficients in a polynomial. ...
0
votes
0answers
48 views

Prove the maximum order statistic $X_{(n)}$ is a minimal sufficient statistic for the uniform$(0,\theta)$ family using a particular theorem

I'm doing Exercise 6.26 in Casella and Berger's Statistical Inference, and I'm trying to prove the following: "Use Theorem 6.6.5 to establish that, given a sample $X_1,...,X_n$, the maximum order ...
1
vote
2answers
49 views

Discrete uniform vs binomial distribution

Situation: a box contains N balls numbered $1,2...,N$. $N$ unknown. $n$ balls drawn using SRS with replacement and number recorded. A random variable $X$ is defined as the number recorded on $ith$ ...
0
votes
2answers
75 views

Expected outcome of a process following a uniform distribution [closed]

A gambler is playing a game of roulette. There are $37$ possible outcomes, each numbered from $1$ to $37$. The probability of rolling any outcome is the same for each outcome. One game of this ...
0
votes
1answer
49 views

Calculate the constants and the MSE from two estimators related to a uniform distribution

Consider a simple random sample $X_{1},X_{2},\ldots,X_{n}$ whose distribution is given by $X\sim U(0,\theta)$. Moreover, consider the estimators $\hat{\theta}_{1} = c_{1}\overline{X}$ and $\hat{\theta}...
3
votes
1answer
94 views

How does the inverse transform method work in discrete r.v.?

In this question How does the inverse transform method work? it's mentioned the general procedure to generate r.v. U <- runif(1e6) X <- qnorm(U) X How ...
0
votes
1answer
36 views

Finding the uniformly most powerful test for hypothesis

Let $\mathbf{X}=(X_1,...,X_n)^T$ is a simple sample where $X$ belongs to exponential distribution family $\mathcal{P}=\{ f(x;\mu,\sigma \}, -\infty<\mu<\infty, 0<\sigma<\infty.$ Density is ...
8
votes
1answer
410 views

Relation between independence and correlation of uniform random variables

My question is fairly simple: let $X$ and $Y$ be two uncorrelated uniform random variables on $[-1,1]$. Are they independent? I was under the impression that two random, uncorrelated variables are ...
-1
votes
1answer
62 views

What efficient methods are there to assert that a population has a uniform distribution?

I stumbled upon this article on confidence intervals. The concept as a whole made sense but seemed strange to me. I concluded that given a fixed method of randomly sampling the population, a fixed ...
2
votes
2answers
109 views

Checking if a minimal sufficient statistic is complete

Let $X_1, \cdots, X_n$ be iid from a uniform distribution $U[-\theta, 2\theta]$ with $\theta \in \mathbb{R}^+$ unknown. Check if the minimal sufficient statistic of $\theta$ is complete. I found ...
1
vote
0answers
34 views

Can I test for inequality in H0 using chi square test?

Let's say I want to test whether an $n$-sided dice is not too unfair. In the standard chi-square test we test the zero-hypothesis $$ H_0\colon (p_1,\dots p_n) = (1/n,\dots,1/n) ,\quad\text{i.e.,}\quad ...
8
votes
2answers
189 views

Conditional expectation of uniform random variable given order statistics

Assume X = $(X_1, ..., X_n)$ ~ $U(\theta, 2\theta)$, where $\theta \in \Bbb{R}^+$. How does one calculate the conditional expectation of $E[X_1|X_{(1)},X_{(n)}]$, where $X_{(1)}$ and $X_{(n)}$ are ...
-1
votes
1answer
46 views

Deriving standard normal distribution from a statistic involving normal and uniform random variables

I tried deriving distributions of numerator and denominator separately. But found that there is no closed form. I have no clue on how to show that Z is standard normal.
0
votes
1answer
25 views

Marginal derivation from joint pdf

I have a uniform prior f(Θ) ~ U(4,10) and a uniform 'observation' model f(X|Θ) ~ U(θ-1, θ+1). Their joint pdf is f(X,Θ)=1/12 for 4 < θ < 10 and (θ-1)< x <(θ+1)  and 0 otherwise. If I ...
7
votes
3answers
129 views

Can't understand why rejection sampling works

I want to generate sample points $\{z_i\}$ in an arbitrary 2D shape, e.g. a circle centered at the origin with radius 1. Rejection sampling says: Look at 2 uniform random variables over $[0,1]$, $X$ ...
0
votes
1answer
77 views

How to generate a conditional random variable in R? [closed]

Suppose there is a sample $X\sim N(0,1)$ x<-rnorm(100). If I want to generate a conditional random variable $Y|X\sim U(0,1)$, how can I get this conditional ...
0
votes
1answer
32 views

Prove convergence of a sum of random variables

I am trying to grab on to some intuition about the area where random variables start looking a bit more like calculus. I've learned about random variables and the weak law of large numbers, but seem ...
4
votes
3answers
210 views

MLE of $f(x\vert\theta)=1/\theta$, $x_1 , \cdots , x_n \sim U(0,\theta) \;\;, \theta>0$, [closed]

Original question $x_1 , \cdots , x_n$ are independent random variables, identically distributed as a uniform distribution over $(0,\theta)$. $$ f(x \vert \theta) = \frac{1}{\theta}, \; 0<x<\...
0
votes
0answers
87 views

Maximum likelihood estimators of $\theta$ in $U(2\theta-1,2\theta+1)$ distribution

I understand why (D) is one of the answers but i dont know about the rest?
2
votes
0answers
59 views

Distribution of the $L^2$ norm of a vector of components drawn from uniform distributions

We consider a random vector $\vec{v} = \left(x_{1}, x_{2}, \dots, x_{n}\right)$ built from $n$ real random variables drawn from a real continuous uniform distribution $\mathcal{U\left(a, b\right)}$, $...
2
votes
1answer
74 views

Joint cumulative distribution of independent random variables

X,Y,Z are non negative random variables which are independent and uniformly distributed in [0,1] and let $\alpha$ be a given number in [0.1]. Now how to compute $\text{Pr}(X+Y+Z>\alpha \;\;\; \&...
2
votes
1answer
55 views

The distribution of a posterior predictive p-value under certain assumptions

I am wondering if anyone can check my understanding of the following passage concerning posterior predictive p-values in the textbook "Bayesian Data Analysis 3rd Edition" on page 151: In the ...
1
vote
0answers
146 views

How to sample from a multivariate uniform distribution with constrained sum [closed]

Problem description: Let say that we have the following 4 uniform distributions: $u_1$~$U_1(-1, 1), u_2$~$U_2(0, 2)$, $u_3$~$U_3(0, 0.2)$ and $u$~$U[U_1, U_2, U_3]$ subject to $u_1 + u_2 + u_3 = 1$. ...
1
vote
1answer
64 views

Standard Error of a function of ML estimators

The background of the problem is as follows: Suppose $X_1,...,X_n \sim U(a,b)$ independently where $a$ and $b$ are unknown parameters and $a < b$. Let $\hat\tau$ be the MLE of $\tau$, where $\tau =...
0
votes
1answer
26 views

Check to see if sample data could be uniformly distributed

I have data and I want to see if it is plausible that it comes from some uniform distribution. Is it uniformly distributed?
0
votes
2answers
61 views

Deriving a distribution whose pdf has the shape of a square + a triangle (a right trapezoid)

I want to the derive the PDF which looks like the sum of a triangular and uniform distribution which looks like this: To do this I have simply added the PDFs for the rectangular and triangular parts, ...
2
votes
0answers
37 views

intuitive explanation for expected value of the square of a uniform variable

I'm confused about something that should be simple. Suppose I have a random uniform variable $X$ on $[0,1]$. It's fairly clear that the expected value of $X$ is 1/2. By integrating $x^2$ on $[0,1]$, I ...
3
votes
2answers
91 views

X is Uniform $[-\theta,\theta]$ what is the distribution of $Y=\frac{1}{x^{2}}$?

X is Uniform $[-\theta,\theta], \theta>0$ what is the distribution of $Y=\frac{1}{x^{2}}$ So I've been working on some transformation questions; however, most of them have been one to one. I am a ...
2
votes
2answers
121 views

Find $P(A^2 < B)$ where $A$ and $B$ are independent and uniformly distributed $\mathrm{Unif}(0,h)$, $h > 0$

I solved it two ways and in both the cases the answer is different and different from the actual answer. Approach 1: Since, $A$ and $B$ are independent, we can find the joint distribution of $AB$ ...
2
votes
2answers
75 views

Measure that takes samples that is minimized in expectation for a uniformly-distributed random variable?

I am having trouble thinking of a function that operates on a set of samples, that is, single-valued random variables between zero and one, $x_i \in (0,1), i\in\{1,2,...I\}$, and provides a measure of ...
-1
votes
1answer
70 views

The pdf of a standard uniform random variable divided by constant [closed]

For a random variable $\frac{U}{a}$ where $U$ is a standard uniform random variable, I'm trying to determine the pdf. I'm not so sure what I'm getting is correct as I'm getting some funny results ...
1
vote
0answers
52 views

Bayesian classification using uniform distribution

I would like to ask you if my thought first and my answer then to the following problem is right. Suppose that I have a 3-class 1-dim classification problem where the classes $\omega_1, \omega_2, \...
1
vote
1answer
46 views

What a tests do I use to show that two parts of observations come from a two-dimensional uniform distribution?

I have a two-dimensional uniform data. I have splitted the data on two parts with a ...
0
votes
1answer
167 views

How to find an unbiased estimator of $\mathsf{Uniform}(-\theta/2,\theta/2)$

How to find an unbiased estimator of $\mathsf{Uniform}(-\theta/2,\theta/2)$. Is it a function of the order statistics?
1
vote
1answer
52 views

Transform X to get Y such that Y has a Uniform(0,1) distribution

A random variable $X$ has the PDF $f_X(x) = \frac{x - 1}{2}, \ 1 < x < 3$ Find a monotone function $u(x)$ such that the variable $Y = u(X)$ has the distribution $Uniform(0,1)$.
4
votes
1answer
82 views

Limiting distribution of a ratio using Basu's theorem

Edit: there's seems to be a typo in original question. This is a past exam question that I'm trying to solve. Suppose that $X_1,\ldots, X_n$ are i.i.d. Uniform (0, $\theta$) random variables. Let $...
2
votes
1answer
45 views

probability that matrix $2\times2$ of Random variables is Invertible

Let $X_1, X_2, X_3, X_4$ to be Variables, and let $A$ be the following matrix: $$ \left[\begin{matrix} X_1 & X_2\\ X_3 & X_4 \end{matrix}\right] $$ assume that $X_1, X_2, X_3, X_4$ are ...
5
votes
1answer
157 views

Limits of integration of a density function

My question is based on this post. In summary, $X \sim \text{Unif}(a,b)$ and $Y|X \sim \text{Unif}(a,X)$. Then the author does the following calculations: \begin{align} f(y) = \int_{-\infty}^{\infty} ...
2
votes
2answers
139 views

How to interpret the results of a chi square and p-values of a distribution uniformity test

I am reading about a method called consistent hash designed to distribute load among servers. The best case scenario would be a discrete uniform distribution where each server would get the same ...
3
votes
2answers
422 views

Convergence to a Uniform Distribution

$\newcommand{\floor}[1]{\left\lfloor #1 \right\rfloor} $ Show that if $P(X_n = i/n)=1/n$ for every $i = 1,...,n$, then $X_n$ converges in distribution to a uniformly distributed random variable $X$. ...
2
votes
1answer
540 views

Biasedness of Uniform Distribution MLE

How do I show that the maximum likelihood estimator for uniform distribution on $[0, \theta]$ for a random sample of size $n$ is biased? I've calculated the MLE as $\max_i\{X_i\}$. Intuitively, we ...
2
votes
1answer
36 views

How to specify uniform distribution with same properties as normal distribution?

What I mean is, is it possible to specify a uniform random variable $U$ with random parameters $a,b$, where $a=-b$, and are generated from some other distribution, such that the marginal pdf of $U(a,b)...