Displaying 20 results from an estimated 9000 matches similar to: "Test if data uniformly distributed (newbie)"
2008 Jun 12
3
p-value
Dear R User,
say I have this sample of data ( attach with). What i'm going to do is to test whether this data is uniformly distributed or not by finding the p-value. I've tried using the punif command but it gave me the value of 1 of all the data. Any suggestion on R command to find the p-value??Thanks in advance!!
Cheers,
Anisah
-------------- next part
2006 May 09
4
ks.test one-sample - where can I get a list of the strings specifying the distribution?
Dear all,
One can use ks.test(x,y) for a one-sample kolmogorov-smirnov test:
x being the data sample
y being a string specifying a distribution
I notice the help on ks.test does not tell you how to get such a list. Is
this a hole in my R knowledge?
Where can I get a list of the strings specifying the possible
distributions?
and more specifically
What would be the string and following
2011 Nov 07
2
Dunif and Punif
Hi,
I am trying to use dunif and runif
however, I have two problems:
if I do
dunif(1:10, min=1, max=10)
I get 10 values, which summed give me 1.1111
I understand that the probability is computed as f(x) = 1 / (max-min)
but in this case it looks wrong: I have 10 values, each one
equiprobable, and the probability for each one should be 0.1 and not
0.11111 (which is, consistently with the
2011 Aug 25
2
Create two uniformly random variables correlated
Hello,
I want to create two random variables (x1,x2) both with uniform distribution bounded by (-1) and (1) that has a correlation of 0.6 between them.
Does somebody know how I can do it? For normal random variables I known how to implement it with the rmvnorm command but I don't know how to do it with variables uniformly distributed.
Thanks a lot.
Alexandra
[[alternative HTML
2011 Feb 20
8
Generating uniformly distributed correlated data.
I wish to generate a vector of uniformly distributed data with a
defined correlation to another vector
The only function I have been able to find doing something similar is
corgen from the library ecodist.
The following code generates data with the desired correlation to the
vector x but the resulting vector y is normal and not uniform
distributed
library(ecodist)
x <- runif(10^5)
y
2011 Oct 06
2
KS test and theoretical distribution
> x <- runif(100)
> y <- runif(100)
> ks.test(x,y)
Two-sample Kolmogorov-Smirnov test
data: x and y
D = 0.11, p-value = 0.5806
alternative hypothesis: two-sided
ok I expected that, but:
> ks.test(runif(100), "runif")
One-sample Kolmogorov-Smirnov test
data: runif(100)
D = 0.9106, p-value < 2.2e-16
alternative hypothesis: two-sided
How
2013 Oct 08
3
Latin Hypercube Sample and transformation to uniformly distributed integers or classes
Hi,
I'd like to use Latin Hypercube Sampling (LHC) in the the context of
uncertainty / sensitivity analysis of a complex model with approximately 10
input variables. With the LHC approach I'd like to generate parameter
combinations for my model input variables.
Therefore I came across an simple example here on the mailing list (
2006 Oct 09
2
How to generate the random numbers uniformly distributed on the unit disc?
Hi,
I want to get random number which is uniformly distributed on the unit
disc.
How can I do that with R?
Best wishes,
WAN WAN
[[alternative HTML version deleted]]
2001 Nov 10
2
Goodness-of-fit on Burr distributed data
I simulate a uniform data and then transformed into Burr(1,3,1) data,
which is of pdf:
f(x)=[3*(x^2)] / [(1+x^3)^2], x>0
How can I perform a goodness-of-fit test (k-s,
anderson-darling,chisq,cramer-von mises,...) on it (should highly accept)
to get test-statistics & p-values?
Thanks!
Sincerely,
Shelton Jin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2015 Feb 25
4
DUDA LLENAR MATRIZ CREADA
Buena tarde,
Estoy llevando a cabo un trabajo y no encuentro la forma de llenar una
matriz con el p_value y un estadístico calculado.
Un poco mas detallado, tengo muestras aleatorias, calculo por ejemplo la
prueba t, wilcoxon, etc y requiero llevar por una parte los p_value de k
muestras a una matriz creada anteriormente y por otro lado el valor del
estadístico de las mismas k muestras a otra
2003 Jul 21
3
Confidence Band for empirical distribution function
Hi,
I was trying to draw an empirical distribution function with uniform
confidence bands. So I tried to find a way to calculate values of the
Kolmogorov-Smirnov Distribution but failed.
I guess it must be hidden somewhere (since the ks-test is implemented),
but I was unable to find it.
Is there any way to do this?
Thanks
Leif Boysen
2010 Nov 11
2
Kolmogorov Smirnov Test
I'm using ks.test (mydata, dnorm) on my data. I know some of my
different variable samples (mydata1, mydata2, etc) must be normally
distributed but the p value is always < 2.0^-16 (the 2.0 can change
but not the exponent).
I want to test mydata against a normal distribution. What could I be
doing wrong?
I tried instead using rnorm to create a normal distribution: y = rnorm
2006 Feb 03
2
Problems with ks.test
Hi everybody,
while performing ks.test for a standard exponential distribution on samples
of dimension 2500, generated everytime as new, i had this strange behaviour:
>data<-rexp(2500,0.4)
>ks.test(data,"pexp",0.4)
One-sample Kolmogorov-Smirnov test
data: data
D = 0.0147, p-value = 0.6549
alternative hypothesis: two.sided
>data<-rexp(2500,0.4)
2009 Feb 09
11
Choosing a random number between x and y
Hi,
Ive been trying to find a function that will allow me to pull out a number
between a minimum and maximum threshold.
I want a random decimal number between, for example, 0 and 0.5 or 0 and 0.7.
I've been searching everywhere for a function that will allow me to do this
in R, but I have yet to be successful. Any help would be much appreciated.
Thanks in advance
--
View this message in
2010 Sep 08
3
Uniform Distribution
Hello,
I would like to uniformly distribute values from 0 to 200. Can someone help me
find the appropriate uniform distribution generator?
I would like to thank you in advance for your help.
Best Regards
Alex
[[alternative HTML version deleted]]
2017 Dec 06
3
[RFC][LV][VPlan] Proposal for Outer Loop Vectorization Implementation Plan
Proposal for Outer Loop Vectorization Implementation Plan
=============================================
=====
Goal:
=====
Extending Loop Vectorizer (LV) such that it can handle outer loops, via VPlan infrastructure enhancements.
Understand the trade-offs in trying to make concurrent progress with moving remaining inner loop vectorization
functionality to VPlan infrastructure
===========
2007 Dec 07
1
how to generate uniformly distributed random integers
I'm a beginner of R.
I can use runif() to generate uniformly distributed numbers, but I don't
know which function can generate uniformly distributed random integers, or
what kind of method do?
Thanks!
--
View this message in context: http://www.nabble.com/how-to-generate-uniformly-distributed-random-integers-tf4960778.html#a14208376
Sent from the R help mailing list archive at
2013 Jul 23
1
p-values from multiple testing
Dear All,
I performed thousands of testings and obtained p-values.
And then I did two-sided uniform KS test of the p-values, the result
claimed it is uniform.
So does it mean that my model are wrong? Because I expect more small
p-values near 0.
This is a preliminary step before correcting the multiplicity.
Attached is hist of p-values (does this list allow attachment?). The ks test:
One-sample
2010 May 10
1
R algorithm/package for creating spatial autocorrelation of uniformly distributed landscape values
Dear all:
I would like to create a landscape of environmental values that follow a
uniform frequency distribution and also have spatial autocorrelation in the
landscape. I was wondering if there is an algorithm and/or package out there
that creates autocorrelation of values that are distributed according to a
non-normal frequency distribution.
Any suggestions are greatly appreciated.
Thank you,
2010 Nov 06
1
How to generate multivariate uniform distribution random numbers?
I wish to generate 100 by 1 vector of x1 and x2 both are uniform distributed
with covariance matrix \Sigma.
Thanks,
Michael
[[alternative HTML version deleted]]