
RAND :
====

Mixed (pseudo-)random data. This dataset consists of an id-number column
followed by 15 variables created using a selection of the random-value generators
in the R system. There are 256 rows of 16 columns.

The columns are as fillows.

id			sequential id number
uniform		floating-point uniformly distributed random numbers 0 .. 1
randigs		random digits 0..9
percent		random percentages 0 .. 100, floating-point
hundreds	uniform random floating-point values between -100 & +100
byte		uniform random whole numbers, 0 .. 255
stdnorm		standard normal random values, mean zero, sd=1
normaliq	gaussian random integers with mean 100 & sd=16
student2	random values from students's t distribution, df=2
student7	random values from students's t distribution, df=7
chi1		random values from chi-squared distribution, df=1
chi2		random values from chi-squared distribution, df=2
pois4sq		random values from poisson distribution with mean=4, squared
dice		simulated throws of a die, 1..6
sixdice6	simulated number of sixes obtained from 6 dice throws
coin		simulated toss of fair coin, head/tail

There should be no associations between any of these variables except by chance,
so this data is useful to check how well a learning system avoids finding
spurious connections.

A smaller sample (rand144.dat) of 144 cases, produced in the same manner,
is also provided.

The R function used to generate these data is reproduced below for information.
It could be used to generate other data sets on the same basis,
although these won't be identical to the data on file.


##  random dataset generator (by R.F.) :
##  first version : 20/02/2014
##  last revision : 20/02/2014

randdat = function (n=100) {
	##  creates data frame of n rows with various pseudo-random columns :
	
	id = 1:n
	uniform = runif(n,0,1)
	randigs = floor(runif(n,0,10))
	percent = runif(n,0,100)
	hundreds = runif(n,-100,100)
	byte = trunc(runif(n,0,256))
	stdnorm = rnorm(n)
	normaliq = trunc(rnorm(n,100,16))
	ranframe = data.frame(id,uniform,randigs,percent,hundreds,byte,stdnorm,normaliq)
	student2 = rt(n,2) ; student7 = rt(n,7)
	chi1 = rchisq(n,1) ; chi2 = rchisq(n,2)
	pois4sq = rpois(n,4) ^ 2
	dice = floor(runif(n,1,7))
	sixdice6 = rbinom(n,6,1/6)
	ht = c("head","tail")
	coin = round(runif(n,0,1))
	coin = ht[coin+1]
	ranframe = cbind(ranframe,student2,student7,chi1,chi2,pois4sq,dice,sixdice6,coin)
	
	return (ranframe)
	}
