Displaying 20 results from an estimated 10000 matches similar to: "Random number quality"
2013 Apr 26
1
Stratified Random Sampling Proportional to Size
Hello R Experts,
I kindly request your assistance on figuring out how to get a stratified random sampling proportional to 100.
Below is my r code showing what I did and the error I'm getting with sampling::strata
# FIRST I summarized count of records by the two variables I want to use as strata
Library(RODBC)
library(sqldf)
library(sampling)
#After establishing connection I query the data
2012 Feb 01
1
package sampling, function strata
Dear all,
I have to select 122 stratified random samples from a population of
>3900 cells. I have 41 strata and I have to draw a different number of
samples from them(between 2 and 8).
I have tried to apply the funtion strata following the instruction in
the manual:
strata(dataframe, stratanames=NULL, size, method=c("srswor"),
pik,description=TRUE)
but I get the error
2009 Oct 01
5
How to use Subpopulation data?
Dear Helpers
I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.
H <- matrix(rnorm(100, mean=50000, sd=5000))
sampleframe=data.frame(type=c(rep("H",100)),value=c(H))
sampleframe
str=strata(sampleframe,c("type"),size=c(20,), method="srswor")
2018 May 25
2
Re: virRandomBits - not very random
On 05/25/2018 09:17 AM, Michal Privoznik wrote:
>>> We should probably seed it with data from /dev/urandom, and/or the new
>>> Linux getrandom() syscall (or BSD equivalent).
>
> I'm not quite sure that right after reboot there's going to be enough
> entropy. Every service that's starting wants some random bits. But it's
> probably better than what we
2018 May 29
2
Re: [libvirt] virRandomBits - not very random
On 05/29/2018 03:38 PM, Martin Kletzander wrote:
> On Fri, May 25, 2018 at 09:37:44AM -0500, Eric Blake wrote:
>> On 05/25/2018 09:17 AM, Michal Privoznik wrote:
>>
>>>>> We should probably seed it with data from /dev/urandom, and/or the new
>>>>> Linux getrandom() syscall (or BSD equivalent).
>>>
>>> I'm not quite sure that right
2018 Dec 31
1
Re: [PATCH v2 nbdkit] common: Improve pseudo-random number generation.
On 12/28/18 2:55 PM, Richard W.M. Jones wrote:
> Currently we use non-cryptographically secure random numbers in two
> places, the error filter (to inject errors at random) and the random
> plugin. For this we have used either random_r or a home-brew-ish
> Linear Congruential Generator. Use of random_r is problematic on BSDs
> because it doesn't exist there. Use of the LCG is
2007 Mar 28
1
(no subject)
Hallo,
I'm trying to sample a matrix with simple random sampling without
replacement but seem to have a problem with the matrix length. Both
sample() and srswor() use length() which returns the number of columns in
matrix. This means that to function it seems that the sample size exceeds
the matrix length. I need to sample the whole matrix for there are
auxiliary variables I need for further
2018 May 30
2
Re: [libvirt] virRandomBits - not very random
On Tue, May 29, 2018 at 10:06:25AM -0400, John Ferlan wrote:
>
>
>On 05/29/2018 09:44 AM, Michal Privoznik wrote:
>> On 05/29/2018 03:38 PM, Martin Kletzander wrote:
>>> On Fri, May 25, 2018 at 09:37:44AM -0500, Eric Blake wrote:
>>>> On 05/25/2018 09:17 AM, Michal Privoznik wrote:
>>>>
>>>>>>> We should probably seed it with
2008 Aug 25
1
How to run a model 1000 times, while saving coefficients each time?
Hello,
We have written a program (below) to model the effect of a covariate on
observed values of a response variable (using only 80% of the rows in
our dataframe) and then use that model to calculate predicted values for
the remaining 20% of the rows. Then, we compare the observed vs.
predicted values using a linear model and inspect that model's
coefficients and its R2 value.
We wish
2002 Nov 08
1
Will OpenSSH fallback to internal PRNG?
Greetings.
I'm wondering if OpenSSH automatically falls back to the internal
PRNG (such as used on Solaris) when it can't use a better alternative.
The reason I ask is this: the machine I am compiling OpenSSH on has
the /dev/random patch for Solaris 8. I'd like OpenSSH to use
/dev/random
whenever possible, if it exists. However, I'd prefer NOT to have to
compile a separate
2018 Dec 28
2
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
v2:
- Fix seeding.
- Add a test that nbdkit-random-plugin is producing something
which looks at least somewhat random.
Rich.
2018 Sep 19
2
Bias in R's random integers?
The 53 bits only encode at most 2^{32} possible values, because the source
of the float is the output of a 32-bit PRNG (the obsolete version of MT).
53 bits isn't the relevant number here.
The selection ratios can get close to 2. Computer scientists don't do it
the way R does, for a reason.
Regards,
Philip
On Wed, Sep 19, 2018 at 9:05 AM Duncan Murdoch <murdoch.duncan at
2013 Oct 10
1
Replacing the Random Number Generator in Stand Alone Library
Hi R-Developers,
I had a question about the random number generator used in the R StandAlone
Math Library. The stand-alone library depends on the unif_rand() function
for most simulated values, and this function is provided in the sunif.c file
in the relevant directory. At present, this program implements the
"Marsaglia-Multicarry" algorithm, which is described throughout the R
2018 Dec 28
1
[PATCH nbdkit] common: Improve pseudo-random number generation.
Currently we use non-cryptographically secure random numbers in two
places, the error filter (to inject errors at random) and the random
plugin. For this we have used either random_r or a home-brew-ish
Linear Congruential Generator. Use of random_r is problematic on BSDs
because it doesn't exist there. Use of the LCG is simply a bad
choice.
Replace both uses with a better quality and
2001 Dec 21
6
Killing the builtin entropy code
Over the holidays, I intend to finally rid portable OpenSSH of the
builtin entropy collection code. Here's what I intend to do:
When init_rng is called, we'll check OpenSSL's RAND_status(). If this
indicates that their PRNG is already seeded, we'll do nothing. This
effectively detects platforms which have /dev/urandom (or similar)
configured into OpenSSL.
If OpenSSL isn't
2018 Dec 28
0
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
Currently we use non-cryptographically secure random numbers in two
places, the error filter (to inject errors at random) and the random
plugin. For this we have used either random_r or a home-brew-ish
Linear Congruential Generator. Use of random_r is problematic on BSDs
because it doesn't exist there. Use of the LCG is simply a bad
choice.
Replace both uses with a better quality and
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
Hi,
dovecot tries to use OpenSSL's PRNG to generate random numbers if
there is no /dev/urandom found. Unfortunately, it is flawed in its
present
form, since the PRNG is not seeded before RAND_bytes() is called in
src/lib/randgen.c (on systems which have /dev/urandom, OpenSSL
automatically seeds its PRNG from the urandom device).
Here's a patch to address this issue: it tries to seed
2018 Jun 01
2
Re: [libvirt] virRandomBits - not very random
On Fri, Jun 01, 2018 at 11:17:44AM +0100, Daniel P. Berrangé wrote:
>On Wed, May 30, 2018 at 10:21:54PM +0200, Martin Kletzander wrote:
>> On Tue, May 29, 2018 at 10:06:25AM -0400, John Ferlan wrote:
>> >
>> >
>> > On 05/29/2018 09:44 AM, Michal Privoznik wrote:
>> > > On 05/29/2018 03:38 PM, Martin Kletzander wrote:
>> > > > On Fri,
2001 Jul 11
1
OpenSSL PRNG
Just for peace of mind, can someone who knows the openssh code better than
I do, confirm that openssh doesn't use (in any circumstances) the openssl
prng (since the code in versions prior to 0.9.6b is rather weak).
My understanding is that it doesn't (using either /dev/random, egd, prngd or
the builtin code), but I may have missed some other use of the openssl prng
elsewhere...
-- Jon
2016 Oct 13
2
Clang error to emit llvm code
Hello All,
I want to obtain the LLVM IR of a program (pixel-test.c from pixman library), I am using the following command to obtain the LLVM IR representation of this program:
$ clang -fsyntax-only ./test/pixel-test.c -S -emit-llvm -o pixel-test.ll
However I get the following error:
./test/utils-prng.h:137:32: error: can't convert between vector values of different size