<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Student's 3000 Criminals Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="R.css">
</head><body>

<table width="100%" summary="page for crimtab"><tr><td>crimtab</td><td align="right">R Documentation</td></tr></table>

<h2>Student's 3000 Criminals Data</h2>

<h3>Description</h3>


<p>Data of 3000 male criminals over 20 years old undergoing their
sentences in the chief prisons of England and Wales.
</p>


<h3>Usage</h3>

<pre>crimtab</pre>


<h3>Format</h3>


<p>A <code>table</code> object of  <code>integer</code> counts, of dimension
<i>42 * 22</i> with a total count, <code>sum(crimtab)</code> of
3000.
</p>
<p>The 42 <code>rownames</code> (<code>"9.4"</code>, <code>"9.5"</code>, ...)
correspond to midpoints of intervals of finger lengths
whereas the 22 column names (<code>colnames</code>)
(<code>"142.24"</code>, <code>"144.78"</code>, ...) correspond to (body) heights
of 3000 criminals, see also below.
</p>


<h3>Details</h3>


<p>Student is the pseudonym of William Sealy Gosset.
In his 1908 paper he wrote (on page 13) at the beginning of section VI
entitled <EM>Practical Test of the forgoing Equations</EM>:
</p>
<p>&ldquo;Before I had succeeded in solving my problem analytically,
I had endeavoured to do so empirically.  The material used was a
correlation table containing the height and left middle finger
measurements of 3000 criminals, from a paper by W. R. MacDonell
(<EM>Biometrika</EM>, Vol. I., p. 219).  The measurements were written
out on 3000 pieces of cardboard, which were then very thoroughly
shuffled and drawn at random.  As each card was drawn its numbers
were written down in a book, which thus contains the measurements of
3000 criminals in a random order.  Finally, each consecutive set of
4 was taken as a sample&mdash;750 in all&mdash;and the mean, standard
deviation, and correlation of each sample determined.  The
difference between the mean of each sample and the mean of the
population was then divided by the standard deviation of the sample,
giving us the <EM>z</EM> of Section III.&rdquo;
</p>
<p>The table is in fact page 216 and not page 219 in MacDonell(1902).
In the MacDonell table, the middle finger lengths were given in mm
and the heights in feet/inches intervals, they are both converted into
cm here.  The midpoints of intervals were used, e.g., where MacDonell
has <i>4' 7''9/16 -- 8''9/16</i>, we have 142.24 which is 2.54*56 =
2.54*(<i>4' 8''</i>).
</p>
<p>MacDonell credited the source of data (page 178) as follows:
<EM>The data on which the memoir is based were obtained, through the
kindness of Dr Garson, from the Central Metric Office, New Scotland Yard...</EM>
He pointed out on page 179 that : <EM>The forms were drawn at random
from the mass on the office shelves; we are therefore dealing with a
random sampling.</EM>
</p>


<h3>Source</h3>


<p><a href="http://pbil.univ-lyon1.fr/R/donnees/criminals1902.txt">http://pbil.univ-lyon1.fr/R/donnees/criminals1902.txt</a>
thanks to Jean R. Lobry and Anne-BÃ©atrice Dufour.
</p>


<h3>References</h3>


<p>Garson, J.G. (1900)
The metric system of identification of criminals, as used in in Great
Britain and Ireland.
<EM>The Journal of the Anthropological Institute of Great Britain
and Ireland</EM> <B>30</B>, 161&ndash;198.
</p>
<p>MacDonell, W.R. (1902)
On criminal anthropometry and the identification of criminals.
<EM>Biometrika</EM> <B>1</B>, 2, 177&ndash;227.
</p>
<p>Student (1908) The probable error of a mean.
<EM>Biometrika</EM> <B>6</B>, 1&ndash;25.
</p>


<h3>Examples</h3>

<pre>
require(stats)
dim(crimtab)
utils::str(crimtab)
## for nicer printing:
local({cT &lt;- crimtab
       colnames(cT) &lt;- substring(colnames(cT), 2,3)
       print(cT, zero.print = " ")
})

## Repeat Student's experiment:

# 1) Reconstitute 3000 raw data for heights in inches and rounded to
#    nearest integer as in Student's paper:

(heIn &lt;- round(as.numeric(colnames(crimtab)) / 2.54))
d.hei &lt;- data.frame(height = rep(heIn, colSums(crimtab)))

# 2) shuffle the data:

set.seed(1)
d.hei &lt;- d.hei[sample(1:3000), , drop = FALSE]

# 3) Make 750 samples each of size 4:

d.hei$sample &lt;- as.factor(rep(1:750, each = 4))

# 4) Compute the means and standard deviations (n) for the 750 samples:

h.mean &lt;- with(d.hei, tapply(height, sample, FUN = mean))
h.sd   &lt;- with(d.hei, tapply(height, sample, FUN = sd)) * sqrt(3/4)

# 5) Compute the difference between the mean of each sample and
#    the mean of the population and then divide by the
#    standard deviation of the sample:

zobs &lt;- (h.mean - mean(d.hei[,"height"]))/h.sd

# 6) Replace infinite values by +/- 6 as in Student's paper:

zobs[infZ &lt;- is.infinite(zobs)] # 3 of them
zobs[infZ] &lt;- 6 * sign(zobs[infZ])

# 7) Plot the distribution:

require(grDevices); require(graphics)
hist(x = zobs, probability = TRUE, xlab = "Student's z",
     col = grey(0.8), border = grey(0.5),
     main = "Distribution of Student's z score  for 'crimtab' data")
</pre>


</body></html>
