Download Introduction to Statistical Data Analysis for the Life Sciences 2nd Edition Claus Thorn Ekstrøm ebook All Chapters PDF
Download Introduction to Statistical Data Analysis for the Life Sciences 2nd Edition Claus Thorn Ekstrøm ebook All Chapters PDF
Download Introduction to Statistical Data Analysis for the Life Sciences 2nd Edition Claus Thorn Ekstrøm ebook All Chapters PDF
https://ebookultra.com
https://ebookultra.com/download/introduction-to-
statistical-data-analysis-for-the-life-
sciences-2nd-edition-claus-thorn-ekstrom/
https://ebookultra.com/download/r-primer-2nd-edition-claus-thorn-
ekstrom-author/
ebookultra.com
https://ebookultra.com/download/data-analysis-and-presentation-skills-
an-introduction-for-the-life-and-medical-sciences-1st-edition-jackie-
willis/
ebookultra.com
https://ebookultra.com/download/an-introduction-to-statistical-
genetic-data-analysis-melinda-c-mills/
ebookultra.com
https://ebookultra.com/download/introduction-to-statistical-analysis-
of-laboratory-data-1st-edition-alfred-bartolucci/
ebookultra.com
Introduction to Applied Statistical Signal Analysis 3rd
Edition Shiavi
https://ebookultra.com/download/introduction-to-applied-statistical-
signal-analysis-3rd-edition-shiavi/
ebookultra.com
https://ebookultra.com/download/ibm-spss-by-example-a-practical-guide-
to-statistical-data-analysis-2nd-edition-alan-c-elliott/
ebookultra.com
https://ebookultra.com/download/qualitative-data-analysis-an-
introduction-2nd-edition-carol-grbich/
ebookultra.com
https://ebookultra.com/download/life-sciences-for-the-non-
scientist-2nd-edition-viqar-zaman/
ebookultra.com
Statistical Data
Life Sciences
and datasets.
New to the Second Edition
• A new chapter on non-linear regression models
• A new chapter that contains examples of complete data
analyses, illustrating how a full-fledged statistical analysis is
undertaken
Second Edition
• Additional exercises in most chapters
• A summary of statistical formulas related to the specific designs
used to teach the statistical concepts
This text provides a computational toolbox that enables you to ana- CLAUS THORN EKSTRØM
lyze real datasets and gain the confidence and skills to undertake
more sophisticated analyses. Although accessible with any statistical HELLE SØRENSEN
E KST RØ M • S Ø R E N S E N
software, the text encourages a reliance on R. For those new to R, an
introduction to the software is available in an appendix. The book also
includes end-of-chapter exercises as well as an entire chapter of case
exercises that help you apply your knowledge to larger datasets and
learn more about approaches specific to the life sciences.
K23251
w w w. c rc p r e s s . c o m
K23251_FM.indd 2 9/29/14 2:00 PM
INTRODUCTION TO
Statistical Data
Analysis for the
Life Sciences
Second Edition
Statistical Data
Analysis for the
Life Sciences
Second Edition
HELLE SØRENSEN
Department of Mathematical Sciences
University of Copenhagen
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts
have been made to publish reliable data and information, but the author and publisher cannot assume
responsibility for the validity of all materials or the consequences of their use. The authors and publishers
have attempted to trace the copyright holders of all material reproduced in this publication and apologize to
copyright holders if permission to publish in this form has not been obtained. If any copyright material has
not been acknowledged please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmit-
ted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented,
including photocopying, microfilming, and recording, or in any information storage or retrieval system,
without written permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.
com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood
Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and
registration for a variety of users. For organizations that have been granted a photocopy license by the CCC,
a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used
only for identification and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
Preface ix
2 Linear regression 27
2.1 Fitting a regression line . . . . . . . . . . . . . . . . . . . . . . 29
2.2 When is linear regression appropriate? . . . . . . . . . . . . . 34
2.3 The correlation coefficient . . . . . . . . . . . . . . . . . . . . . 38
2.4 Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.5 R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3 Comparison of groups 51
3.1 Graphical and simple numerical comparison . . . . . . . . . . 51
3.2 Between-group variation and within-group variation . . . . . 54
3.3 Populations, samples, and expected values . . . . . . . . . . . 55
3.4 Least squares estimation and residuals . . . . . . . . . . . . . 56
3.5 Paired and unpaired samples . . . . . . . . . . . . . . . . . . . 58
3.6 Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.7 R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
v
vi Introduction to Statistical Data Analysis for the Life Sciences
10 Probabilities 291
10.1 Outcomes, events, and probabilities . . . . . . . . . . . . . . . 291
10.2 Conditional probabilities . . . . . . . . . . . . . . . . . . . . . 295
10.3 Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
10.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Contents vii
B Introduction to R 473
B.1 Working with R . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
B.2 Data frames and reading data into R . . . . . . . . . . . . . . . 478
B.3 Manipulating data . . . . . . . . . . . . . . . . . . . . . . . . . 483
B.4 Graphics with R . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
B.5 Reproducible research . . . . . . . . . . . . . . . . . . . . . . . 487
B.6 Installing R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
B.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Bibliography 501
Index 507
Preface
The second edition of Introduction to Statistical Data Analysis for the Life Sci-
ences expands the content of the first edition based on the comments, sugges-
tions, and requests we have received from lecturers and students that have
adopted and used the book for teaching and learning introductory statistics.
We have kept the overall structure from the first edition with two excep-
tions: There is a new chapter on non-linear regression models that follows
more naturally after the chapter on linear models, so we have inserted that
as Chapter 9 immediately after the chapter on linear models. Consequently
the remaining chapter numbers have increased but they appear in the same
order as in the 1st edition. This edition also includes a new chapter that con-
tains examples of complete data analyses. These examples are intended as
inspiration or case studies of how a full-fledged statistical analysis might be
undertaken and the results presented. The chapter with examples has been
inserted before the case exercises, as Chapter 14.
Additional exercises have been included in most chapters and the new
exercises have been added at the end of each chapter to ensure that the ex-
ercise numbers in the 2nd edition match the exercise numbering in the 1st
edition (barring the change in chapter numbers due to the new chapters on
non-linear regression and statistical examples).
Finally, we have provided a summary of statistical formulas for the sim-
ple cases that are used throughout the book to teach new statistical concepts.
The book is written and intended as a textbook and as such we introduce and
discuss the formulas relevant for the various special cases whenever a new
concept is introduced. The summary of statistical formulas provides a com-
pilation of all the formulas related to the specific designs to make it easier to
use the book as a reference.
Thank you to the lecturers, students, and colleagues who have provided
useful suggestions, comments and feedback. Especially to Bo Markussen
who meticulously read through the book and provided detailed feedback
and suggestions while teaching a course that used the book.
ix
x Introduction to Statistical Data Analysis for the Life Sciences
http://www.biostatistics.dk/isdals/
The book can be read sequentially from start to end. Some readers may
prefer to have a proper introduction to probability theory (Chapter 10) before
Preface xi
Figure 1.1: Population and sample. In statistics we sample subjects from a large popu-
lation and use the information obtained from the sample to infer characteristics about
the general population. Thus the upper arrow can be viewed as “sampling” while the
lower arrow is “statistical inference”.
1
2 Introduction to Statistical Data Analysis for the Life Sciences
average of those 12 individuals in the sample is our statistic, and if the sam-
ple is representative of the population and the sample is sufficiently large,
we have confidence in using the statistic as an estimate or guess of the true
population parameter µ. The rest of this book is concerned with methods for
making inferences about population parameters based on sample statistics.
The distinction between population and sample depends on the context
and the type of inference that you wish to perform. If we were to deduce the
average height of the total population, then the 12 individuals are indeed a
sample. If for some reason we were only interested in the height of these 12
individuals, and had no intention to make further inferences beyond the 12,
then the 12 individuals themselves would constitute the population.
Ordinal. When the categories may be ordered, the data are called ordinal
variables. Categorical variables that judge pain (e.g., none, little, heavy)
or income (low-level income, middle-level income, or high-level in-
come) are examples of ordinal variables. We know that households
with low-level income earn less than households in the middle-level
bracket, which in turn earn less than the high-level households. Hence
there is an ordering to these categories.
It is worth emphasizing that the difference between two categories
cannot be measured even though there exists an ordering for ordinal
Description of samples and populations 3
data. We know that high-income households earn more than low- and
medium-income households, but not how much more. Also we cannot
say that the difference between low- and medium-income households
is the same as the difference between medium- and high-income house-
holds.
frequency
relative frequency = .
n
The advantage of the relative frequency is that it is unrelated to the sample
size, so it is possible to compare the relative frequencies of a category in two
different samples directly since we draw attention to the relative proportion
of observations that fall in each category.
A segmented bar chart presents the relative frequencies of the categories in
a sample as a single bar with a total height of 100% and where the relative
Description of samples and populations 5
frequencies of the different categories are stacked on top of each other. The
information content from a segmented bar chart is the same as from a plot of
the relative frequency plot, but it may be easier to identify differences in the
distribution of observations from different populations.
Example 1.2. Tibial dyschrondroplasia. Tibial dyschondroplasia (TD) is a dis-
ease that affects the growth of bone of young poultry and is the primary
cause of lameness and mortality in commercial poultry. In an experiment 120
broilers (chickens raised for meat) were split into four equal-sized groups,
each given different feeding strategies to investigate if the feeding strategy
influenced the prevalence of TD:
Group A: feeding ad libitum.
Group B: 8 hours fasting at age 6-12 days.
Group C: 8 hours fasting at age 6-19 days.
Group D: 8 hours fasting at age 6-26 days.
At the time of slaughter the presence of TD was registered for each chicken.
The following table lists the result:
1.0
0.8
0.6
0.6
0.4
0.4
0.2
0.2
0.0
0.0
Figure 1.2: Relative frequency plot (left) for broiler chickens with and without pres-
ence of tibial dyschondroplasia (dark and light bars, respectively). The segmented bar
plot (right) shows stacked relative frequencies of broiler chickens with and without
tibial dyschondroplasia for the four groups.
6 Introduction to Statistical Data Analysis for the Life Sciences
a cooling tunnel. After the experiment, the tenderness of the meat was mea-
sured. Data are shown in Table 1.2 and are from a study by Møller et al.
(1987).
Figure 1.3 shows the histograms and relative frequency histograms for
the high- and low-pH groups. Notice that the shapes for the low- and high-
pH groups do not change from the histograms to the relative frequency his-
tograms. The relative frequency histograms make it easier to compare the
distributions in the low- and high-pH groups since the two groups have dif-
ferent numbers of observations.
Figure 1.4 shows the relationship of tenderness between the rapid and
tunnel cooling methods for the combined data of low- and high-pH groups.
Scatter plots are extremely useful as tools to identify relationships between
two quantitative continuous variables.
5
4
4
Frequency
Frequency
3
3
2
2
1
1
0
0
3 4 5 6 7 8 9 3 4 5 6 7 8 9
Tenderness (low pH) Tenderness (high pH)
0.5
0.5
0.4
0.4
0.2 0.3
0.2 0.3
Density
Density
0.1
0.1
0.0
0.0
3 4 5 6 7 8 9 3 4 5 6 7 8 9
Tenderness (low pH) Tenderness (high pH)
Figure 1.3: Histograms (top row) and relative frequency histograms (bottom row) for
tunnel cooling of pork for low- and high-pH groups.
9
●
8
●
● ●
Tenderness (rapid)
7
●
●
●
6
●
● ●●● ● ●
●
5
●
●
4
●
3
3 4 5 6 7 8 9
Tenderness (tunnel)
Figure 1.4: Scatter plot of tenderness for rapid cooling and tunnel cooling.
The median may be used for both quantitative and ordinal categorical data.
The range is one measure of dispersion and it is defined as the highest
value in the dataset minus the lowest value in the dataset:
One weakness of the range is that it uses only two values in its calculation
and disregards all other values. Two sets of data could have the same range
but be “spread out” in very different fashions. Consider the following three
datasets:
∗ Independence is discussed more closely on p. 80 and in Chapter 10. Roughly speaking, in-
dependence means that the observations do not provide any information about each other —
e.g., even if the previous observation is larger than the mean, there is no reason to believe that
the next observation will be larger than the mean.
10 Introduction to Statistical Data Analysis for the Life Sciences
The medians for the three datasets are 14, 22, and 34, respectively. The range
for each set is 34 − 14 = 20, but the three sets are very different. The first
set is not very dispersed, with the exception of the single value of 34. The
second dataset has values that are more or less evenly dispersed between 14
and 34, while the last set has 3 values of 14 and 4 values of 34 with no values
in between. Clearly the range does not provide a lot of the information about
the spread of the observations in the dataset; i.e., how far away from the
center the typical values are located.
Another measure of dispersion that tries to capture some of the spread
of the values is the inter-quartile range (IQR). The inter-quartile range is cal-
culated as follows: We remove the top 25% and the bottom 25% of all obser-
vations and then calculate the range of the remaining values. We denote the
first and third quartile as Q1 and Q3, respectively.
The advantage of the IQR over the range is that the IQR is not as sensitive to
extreme values because the IQR is based on the middle 50% of the observa-
tions.
Generally, we can identify separate cut-off points taken at regular inter-
vals (called quantiles) if we order the data according to magnitude. In the
following we divide the ordered data into 100 essentially equal-sized subsets
such that the xth quantile is defined as the cut-off point where x% of the sam-
ple has a value equal to or less than the cut-off point. For example, the 40th
quantile splits the data into two groups containing, respectively, 40% and
60% of the data. It may be impossible to obtain the exact partition for a given
quantile in a finite dataset, but there are various ways to handle this. This
is not too important, though, as the various definitions only lead to slightly
different values for large datasets.† The important thing to understand is the
interpretation.
The first quartile is defined as the 25th quantile and the third quartile is
defined as the 75th quantile. The median (1.1) corresponds to the 50th quan-
tile, so the first quartile, the median, and the third quartile split the data into
4 groups of equal size.
† One possibility is to round up and define the xth quantile as the smallest ranked observation
such that at least x% of the data have values equal or below the xth; another is to take the
average of the two closest observations. For the median in a sample with an even number of
observations, this corresponds to finding the two middle observations, and taking the higher
value or the average, respectively.
Description of samples and populations 11
1.4.2 Boxplot
A boxplot (also called a box-and-whiskers plot) summarizes the data graph-
ically by plotting the following five summaries of the data: minimum, first
quartile, median, third quartile, and maximum, as shown below for dataset
2 listed above:
10 15 20 25 30 35
The middle 50% of the data are represented by a box and the median is
shown as a fat line inside the box. Two whiskers extend from the box to the
minimum and the maximum value. The five summaries used in the boxplot
present a nice overview of the distribution of the observations in the dataset,
and the visualization makes it easy to determine if the distribution is sym-
metric or skewed.
The IQR is sometimes used to identify outliers — observations that differ
so much from the rest of the data that they appear extreme compared to the
remaining observations. As a rule-of-thumb, an outlier is an observation that
is smaller than 1.5·IQR under the first quartile or larger than 1.5·IQR over the
third quartile; i.e., anything outside the following interval:
such that y(1) = 3.11, y(2) = 4.22, etc. There is an even number of observa-
tions in this sample, so we should take the average of the middle two obser-
vations to calculate the median; i.e.,
6.44 + 6.78
Median = = 6.61.
2
12 Introduction to Statistical Data Analysis for the Life Sciences
8
Tenderness score
5 6
4 7
●
3
Tunnel Rapid
From the modified boxplots we see that the distribution of values for tunnel
cooling is fairly symmetric whereas the distribution of the observations from
rapid cooling is highly skewed. By placing boxplots from two samples next to
each other we can also directly compare the two distributions: the tenderness
values from tunnel cooling generally appear to be higher than the values
from rapid cooling although there are a few very small values for tunnel
cooling. We can also see from the boxplot that there is a single outlier for
rapid cooling. It is worth checking the dataset to see if this is indeed a genuine
observation.
Thus the mean tenderness for tunnel cooling is 6.382 and the corresponding
standard deviation is 1.527 units on the tenderness scale.
Looking at formula (1.7) for the variance, we see that it is roughly the
average of the squared deviations. It would be the average if we divided the
sum in (1.7) by n instead of n − 1. The variance of the population (not the
sample, but the population) is σ = ∑i (yi − µ)2 /n, which requires knowledge
about the true mean of the population, µ. We could calculate this variance if
full information about the total population was available, but in practice we
need to replace µ with our “best guess” of µ, which is ȳ. The sample mean
ȳ depends on the observations from the sample and will vary from sample
to sample, so it is not a perfectly precise estimate of µ. We divide by n − 1 in
(1.6) and (1.7) in order to take this uncertainty about the estimate of µ into
account. It can be shown that if we divide the sample variance by n we tend to
underestimate the true population variance. This is remedied by dividing by
n − 1 instead. The reason is that the sum of the deviations is always zero (per
14 Introduction to Statistical Data Analysis for the Life Sciences
Let ȳ and s be the sample mean and sample standard deviation from
observations y1 , . . . , yn and let yi0 = c · yi + b be a linear transformation
of the y’s with constants b and c. Then ȳ0 = c · ȳ + b and s0 = |c| · s.
The results presented in Infobox 1.1 can be proved by inserting the trans-
formed values yi0 in the formulas (1.5) and (1.6). The first part of the result tells
us that if we multiply each observation, yi , by a constant value, c, and add a
constant, b, then the mean of the new observations is identical to the origi-
nal mean multiplied by the factor c and added b. Thus, if we measured, say,
height in centimeters instead of meters, the mean would be exactly 100 times
as big for the centimeters as it would be for the measurements in meters. In
addition, the standard deviation of the transformed variables, y10 , . . . , y0n , is
identical to the standard deviation of the original sample multiplied by the
factor c. The standard deviation of our measurements in centimeters is going
to be exactly 100 times as large as the standard deviation in meters.
This is a nice property since it means that simple linear transformation
will not have any surprising effects on the mean and standard deviation.
on the other hand is sensitive to all values in the dataset since every obser-
vation in the data affects the mean, and extreme observations can have a
substantial influence on the mean value.
The mean value has some very desirable mathematical properties that
make it possible to prove theorems, and useful results within statistics and
inference methods naturally give rise to the mean value as a parameter esti-
mate. It is much more problematic to prove mathematical results related to
the median even though it is more robust to extreme observations. Generally
the mean is used for symmetric quantitative data, except in situations with
extreme values, where the median is used. The mean and standard devia-
tion may appear to have limited use since they are only really meaningful to
symmetric distributions. However, the central limit theorem from probabil-
ity theory proves that sample means and estimates can indeed be considered
to be symmetric regardless of their original distribution provided that the
sample size is large (see Section 4.4).
200
600
150
400
100
200
50
0
−3 −2 −1 0 1 2 3 0 2 4 6 8
● ● ●● ● ● ●● ●● ●
●
● ●●
●
●●
●●●●●
●
●● ●
●●● ● ●●
● ●●
●●●
●●● ●● ●●
●●●● ● ● ●
●● ● ●●● ●● ● ●●● ● ●● ● ●●●
●●● ● ● ● ●
25
150
20
15
100
10
50
5
0
−4 −2 0 2 4 −3 −2 −1 0 1 2 3
Figure 1.5: Histograms, boxplots, and means (N) for 4 different datasets. The lower
right dataset contains 100 observations — the remaining three datasets all contain
1000 observations.
Figure 1.5 shows histograms, modified boxplots, and means for four dif-
ferent distributions. The top-left distribution has first and third quartiles that
are about the same distance from the median and the same is true for the
whiskers. This in combination with the outline of the histogram all indicates
16 Introduction to Statistical Data Analysis for the Life Sciences
that the distribution is symmetric, and we also see that the median and the
mean are almost identical. The top-right distribution in Figure 1.5 is highly
skewed, and we see that there is a substantial difference between the mean
value and the median. Notice also from the modified boxplot that several
observations are outside the outlier interval (1.4) and are plotted as points.
This does not necessarily mean that we have so many extreme observations
in this case since the distribution is highly skewed. The outlier interval (1.4)
is defined by the IQR, and when the distribution is highly skewed the outlier
interval will have difficulty identifying outliers in one direction (the non-
skewed direction, or towards the left in Figure 1.5) while it may identify too
many outliers in the other direction (the skewed direction, or towards the
right in Figure 1.5). The bottom-left distribution is bimodal and is clearly
symmetric and the bottom-right distribution is also symmetric and resem-
bles the distribution in the upper-left panel but is a bit more ragged.
1.0 0.8
Relative frequency
0.4 0.6
0.2
0.0
0 20 40 60 80 100
n
Figure 1.6: Thumbtack throwing. Relative frequency of the event “pin points down”
as the number of throws increases.
“tip pointing up”. The relative frequency of the event “pin points down” as
a function of the number of throws is shown in Figure 1.6.
Table 1.3: Thumbtacks: 100 throws with a brass thumbtack. 1= pin points down, 0=
pin points up
We see from Figure 1.6 that the relative frequency varies highly when n
is low but that it stabilizes on a value around 0.6 as n tends towards infinity.
Hence we conclude that the probability of observing a pin pointing down
when throwing a thumbtack is around 0.6 or 60%.
1.6 R
In Example 1.3 on p. 6 we had information on tunnel cooling for 18 pigs
for two different pH groups. We will use that dataset to illustrate various R
functions for visualizing data and calculating summary statistics for quan-
titative data. Categorical data are illustrated with the tibial dyschrondroplasia
data from Example 1.2.
18 Introduction to Statistical Data Analysis for the Life Sciences
+ ylab="Tenderness (rapid)")
plot() is a generic function in R and the output depends on the number
and type of objects that are provided as arguments to the function. A scatter
plot is produced when two numeric vectors are used in plot(). If only a
single numeric vector is used as an argument, plot(tunnel), then all the
observations for that vector are plotted with the observation number on the
x-axis and the corresponding value on the y-axis.
Histograms and relative frequency histograms are both produced with
the hist() function. By default the hist() function automatically groups the
quantitative data vector into bins of equal width and produces a frequency
histogram. We can force the hist() function to make a frequency plot or a
relative frequency plot by specifying either the freq=TRUE or the freq=FALSE
option, respectively. The following two commands produce the upper left
histogram and lower left relative frequency histogram seen in Figure 1.3 on
p. 8 and use the main= option to include a title.
> hist(tunnel[ph=="lo"], xlab="Tenderness (low pH)",
+ main="Histogram") # Add title to plot
> hist(tunnel[ph=="lo"], xlab="Tenderness (low pH)",
+ freq=FALSE, main="Histogram") # Force relative frequency plot
The number of bins is controlled by the breaks= option to hist(). If the
breaks= option is not entered, then R will try to determine a reasonable num-
ber of bins. If we include an integer value for the breaks= option, then we fix
the number of bins.
> # Use the breaks option to specify the number of bins
> # regardless of the size of the dataset
> hist(tunnel[ph=="lo"], xlab="Tenderness (low pH)",
+ breaks = 8, main="Histogram")
Horizontal and vertical boxplots are produced by the boxplot() function.
By default, R creates the modified boxplot as described on p. 11.
> boxplot(tunnel)
The standard boxplot where the whiskers extend to the minimum and
maximum value can be obtained by setting the range=0 option to
boxplot(). In addition, the boxplot can be made horizontal by including the
horizontal=TRUE option.
> # Horiz. boxplot with whiskers from minimum to maximum value
> boxplot(tunnel, range=0, horizontal=TRUE)
boxplot() is a generic function just like plot() and changes the output
based on the type and number of arguments. If we provide more than a sin-
gle numeric vector as input to boxplot(), then parallel boxplots will be pro-
duced. Often it is easier to compare the distribution among several vectors
20 Introduction to Statistical Data Analysis for the Life Sciences
if they are printed next to each other. The command below will produce the
figure seen in Example 1.4 on p. 11.
Note that we specify the names of the different vectors. If we do not specify
the names then R will label each boxplot sequentially from 1 and upwards.
We can use the mean(), median(), range(), IQR(), sd(), and var() func-
tions to calculate the mean, median, range, inter-quartile range, standard de-
viation, and variance, respectively, for the vector of measurements.
1.7 Exercises
1.1 Data types. For each of the following experiments you should iden-
tify the variable(s) in the study, the data type of each variable, and the
sample size.
1.2 Blood pressure. Consider the following data on diastolic blood pres-
sure (measured in mmHg) for 9 patients:
Patient 1 2 3 4 5 6 7 8 9
Blood pressure 96 119 119 108 126 128 110 105 94
Mayflies 4 5 6 7 8 9 10
Frequency 2 2 5 7 10 9 10
Mayflies 11 12 13 14 15 16 17
Frequency 10 8 6 4 4 2 1
a b c
d e f
milk yield from cows that have received two different feeding strate-
gies (A and B) to determine if the feeding strategies lead to systematic
differences in the yields. Discuss the advantages and disadvantages
of the following four design strategies and whether or not they can
be used to investigate the purpose of the experiment.
1. Feed one cow after plan A and one cow after plan B.
2. 100 cows from one farm are fed according to plan A while 88
cows from another farm are fed according to plan B.
3. Ten cows are selected at random from a group of 20 cows and
fed according to plan A while the remaining 10 cows are fed
according to plan B.
4. For each of 10 twin pairs, a cow is chosen at random and fed
from plan A while the other cow is fed according to plan B.
1.6 Comparison of boxplots. Consider the following comparison be-
tween the calorie content data from 10 common sandwiches from
McDonald’s and 9 common sandwiches from Burger King found on
their respective web pages.
●
700
500 600
Calories
400
300
Describe the distributions (i.e., the shape, center, and spread of each
distribution) and how they compare to one another.
1.7 Histograms and boxplots. Use the following data from Rudemo
(1979) on the lengths in millimeters of 20 cones from conifer (Picea
abies).
1.8 Which distribution? Consider the following three boxplots (1, 2, and
3) and histograms (x, y, and z). Which histogram goes with each box-
plot? Explain your answer.
í í í í í í
[ \ ]
●●
í í í í í í
Patient 9 1 8 4 7 2 3 5 6
Blood pressure 94 96 105 108 110 119 119 126 128
1. Calculate the median and the mean of the data to get an estimate
of a “typical” observation from the population.
2. Calculate the range, inter-quartile range, and the standard devi-
ation from the sample to get an idea of the spread of the values
in the population.
3. Replace the value 119 from patient 2 with 149. That makes the
observation markedly larger than the rest of the observations.
How does that change influence the measures of central ten-
dency (i.e., the mean and the median)?
4. With the same replacement, calculate the range, inter-quartile
range, and standard deviation. How do they change as a result
of the extreme observation?
5. Outliers can be due to data entry errors or rare events. Discuss
how it is reasonable to deal with outliers in those two situations.
For example, is it appropriate to simply remove extreme data
points in the analysis?
∆y
4
y
α ∆x
2
β = ∆y ∆x
0
−2
−2 0 2 4
x
Figure 2.1: The straight line.
27
28 Introduction to Statistical Data Analysis for the Life Sciences
Example 2.1. Stearic acid and digestibility of fat. Jørgensen and Hansen
(1973) examined the digestibility of fat with different levels of stearic acid.
The average digestibility percent was measured for nine different levels of
stearic acid proportion. Data are shown in the table below, where x represents
stearic acid and y is digestibility measured in percent.
x 29.8 30.3 22.6 18.7 14.8 4.1 4.4 2.8 3.8
y 67.5 70.6 72.0 78.2 87.0 89.9 91.2 93.1 96.7
The data are plotted in Figure 2.2 together with the straight line defined by
y = 96.5334 − 0.9337 · x. In Section 2.1 it will become clear why these values
are used for the parameters in the model.
95 100
●
●
75 80 85 90
●
Digestibility %
●
70
●
65
0 5 10 15 20 25 30 35
Stearic acid %
Figure 2.2: Digestibility of fat for different proportions of stearic acid in the fat. The
line is y = −0.9337 · x + 96.5334.
Figure 2.2 shows that the relationship between stearic acid and digestibil-
ity appears to scatter around a straight line and that the line plotted in the
figure seems to capture the general trend of the data.
We now have a model (the straight line) for the data that enables us to
give statements about digestibility even for levels of stearic acid that were
not part of the original experiment as long as we assume that the relationship
between stearic acid and digestibility can indeed be modeled by a straight
line. Based on our “model” we would, for example, expect a digestibility of
around 87% if we examine fat with a stearic acid level of 10%.
For each value of x the linear equation gives us the corresponding y-
value. However, most real-life data will never show a perfect functional rela-
tionship between the dependent and the explanatory variables — just as we
saw in Example 2.1. Despite the linear relationship between digestibility and
stearic acid, it is obvious that a straight line will never fit all the observations
perfectly. Some of the observations are above the line and some are below,
but the general trend matches a straight line as seen in Figure 2.2.
Linear regression 29
y = α̂ + β̂ · x.
For any x, we can use this model to predict the corresponding y-value. In
particular, we can do so for each of our original observations, x1 , . . . , xn , to
find the predicted values; i.e., the y-values that the model would expect to find:
ŷi = α̂ + β̂ · xi .
We can use these predicted values to evaluate how well the model fits to the
actual observed values. This is achieved by looking at the residuals, which are
defined as follows:
ri = yi − ybi . (2.1)
The residuals measure how far away each of our actual observations (yi ’s) are
from the expected value given a specific model (the straight line in this case).
We can think of the residuals as the rest or remainder of the observed y’s that
are not explained by the model. Clearly, we would like to use a model that
provides small residuals because that means that the values predicted by the
model are close to our observations.
Example 2.2. Stearic acid and digestibility of fat (continued from p. 28). Let
us for now assume that we have eyeballed the data and have found that a
line defined by the parameters
α̂ = 96.5334 β̂ = −0.9337
provides a good straight line to describe the observed data. We can then cal-
culate the predicted value for each observed x; e.g.,
This value is slightly higher than the observed value of 67.5, and the residual
for the first observation is
95 100
●
●
●
75 80 85 90
●
Digestibility %
●
70 ●
●
●
65
0 5 10 15 20 25 30 35
Stearic acid %
Figure 2.3: Residuals for the dataset on digestibility and stearic acid. The vertical lines
between the model (the straight line) and the observations are the residuals.
Figure 2.3 shows a graphical representation of the residuals for all nine levels
of stearic acid.
Note that the residuals, ri , measure the vertical distance from the obser-
vation to the fitted line and that positive, negative, and zero residuals corre-
spond to observations that are above, below, and exactly on the regression
line, respectively. Until now we have just assumed that it was possible to
identify a straight line that would fit our observed data. Two researchers may,
however, have different opinions on which regression line should be used to
model a dataset; e.g., one researcher suggests that y = 1.8x + 2 best describes
the data while the other proposes y = 1.7x + 2.3. From our discussion so far
it should be clear that it would be desirable to have a regression line where
• the residuals are small. That indicates that the regression line is close to
the actual observations.
• the residual sum is zero. That means the observations are spread evenly
above and below the line. If the residual sum is non-zero we could
always change the intercept of the model such that the residual sum
would be zero.
Different lines can yield a residual sum of zero, as can be seen in Figure 2.4
where two different regression lines are plotted for the stearic acid dataset.
The solid line is defined by y = 96.5334 − 0.9337 · x while the dashed line is
defined as 0.6 · x + 74.15. Both regression lines have residual sum zero but
it is clear from the figure that the solid line is a much better model for the
observed data than the dashed line. Hence, the sum of the residuals is not an
adequate measure of how well a model fits the data simply because a large
positive residual can be canceled by a corresponding negative residual.
Linear regression 31
95 100
●
●
●
75 80 85 90
●
Digestibility %
●
70 ●
●
●
65
0 5 10 15 20 25 30 35
Stearic acid %
Figure 2.4: Two regression lines for the digestibility data. The solid line is defined by
y = −0.9337 · x + 96.5334 while the dashed line is defined by y = 0.6 · x + 74.15. Both
regression lines have residual sum zero.
∗ An alternative would be to use the absolute residuals. This approach also prevents the can-
cellation of positive and negative residuals, but the calculus of minimizing the sum of absolute
residuals (see Section 2.1.1) can be rather tricky. Another reason why the sum of squared resid-
uals is preferred is that the corresponding estimates are identical to the estimates found by the
more general maximum likelihood approach. Maximum likelihood will be discussed briefly in
Section 5.2.7.
Exploring the Variety of Random
Documents with Different Content
Johnny Hope rubbed the stubble of beard on his face and frowned at
Westler. "I'm not sure, but I think I know this place. We should
reach the New York River this afternoon."
They stood in a forest glade not a hundred yards from one of the
overgrown concrete highways upon which the Robots were known to
tread. A path paralleled the highway through the woods, and upon
this they made their way.
"Sometimes I wonder if you know what you're letting yourself in for,"
Westler mused.
"I want to find Diane. I'll take whatever goes with it."
"Do you mind if I ask why?"
"I'm not sure I know myself. All I know is I think of her all the time.
Nothing matters as much as finding her—and freeing her."
"We could be wrong. Perhaps she is not with the Robots at all."
"What do you think?"
"I think she is. Everything points to it. I was only pointing out that
we're not sure. Johnny, not many years ago I met a man, another
Shining One, who had fled from New York. He was old and he didn't
last long, but he told me things which—"
"About the Robots, you mean?"
"Yes. You know, of course, they can help cure the Plague. Instead,
they spread it."
"I never could figure out why."
"Who knows what sort of thinking the Robots can do? We're not
even sure if they possess sentience at all, although I suspect they
do. But in the last days of the War, man made a frantic mistake. The
Robots were conceived as fighters, were constructed as fighters,
were built to hate man and to kill man. When we gave the Robots a
different mission entirely, it failed. They've simply strengthened the
Plague toxoid and made it lethal. I don't think they'll rest until every
man on Earth is destroyed.
"We're weak now, disorganized. We've left civilization behind us.
You'd think the Robots could do the job overnight, but the only thing
that prevents them, actually, is their lack of numbers."
"Most of my people—I mean the villagers, not my people any longer
—most of them believe the Robots somehow will cure the Plague."
"And most of my people," said Westler, "believe their destiny is hand
in glove with the destiny of the Robots. They put it this way: we are
hated by the rest of mankind, we are apparently not hated by the
Robots. Why not cooperate with them, then? Actually, a free band of
Shining Ones as large as Keleher's is the exception, not the rule.
Every day, more and more Shining Ones go to the Citadel in New
York or elsewhere to work for the Robots. Not a pretty picture, is it?"
"What can we do about it?"
"At present, I don't have the slightest notion. We've got to do
something, though. Someone's got to do something, unless nature's
ready to write off mankind as a bad experiment. Perhaps I am a
pedant, Johnny. I do not know. But I will tell you this: when all the
great strides in human history were made, the pedants, the scholars
paved the way. I want to see the Citadel not only to learn but to see
if there is something, some way, to end the reign of the Robots. It
seems incredible that men, their makers, lacked the foresight to
equip them with an Achilles Heel, if the need ever arose."
"This is ironical," said Amos Westler as the first inert Robot came
sliding down the conveyor belt to stop, a rusted man-shaped
creature twice man's size with huge conical head and withdrawn
antenna, in front of his bench. "We'll never learn anything this way.
You won't learn the whereabouts of Diane at this bench, and I won't
learn what I've come to find out."
"We're not on duty twenty-four hours a day," Johnny reminded him,
unfastening leg-joints with a large, wrench-like instrument and
wiping the parts with an oily rag before he reassembled them. "If
Diane is here, I'll find her."
"Well, we've learned nothing so far. They took us into the Citadel
through a tile-walled tunnel—"
"Surely one of the wonders of the world!" Johnny cried,
remembering.
"The world has many wonders, natural and man-made, if we could
but see them. Anyway, they then deposited us in those underground
quarters where all the humans seem to live here. The old hag
interviewed us—"
"Yes. She wouldn't say if she'd seen Starbuck and Diane or not when
I described them, but it sure made her smile. I think they're here in
the Citadel, Amos."
"—then assigned us to this repair bay for work. Do you realize that
except for the brief time it took to go from the tunnel exit to the
underground quarters, we haven't seen the light of day. Try learning
something in these, these caves!"
Without warning, the conveyor belts were stilled. Hidden lighting in
the walls flared brighter as a group of Robots entered the large
vault.
"ATTENTION!" A voice blared at them, oddly metallic. Johnny could
not tell where it came from. "Robot 63-17-B is now entering the
vault. As your supervisor, 63-17-B is to be obeyed as if he were
Central Intelligence itself. He is to be addressed not directly, but
through your human supervisor."
The Robot numbered 63-17-B (but the numbers were hidden under
the central face plate and you hardly could tell the machines apart)
made a brief inspection of the vault, then climbed to his niche in the
wall, where he sat completely without motion while the other Robots
filed from the chamber.
"Although we can't address the Robot, our supervisor can," Westler
said eagerly. "That means, at least, communication of some sort is
possible."
"I guess so. Why don't you get to know the supervisor?"
"You're much better at that sort of thing than I am, Johnny."
"We came here for different reasons, don't forget. There's an old
hag I'd like to answer more questions when I find her."
"Here comes our supervisor now," Westler whispered. Then, aloud:
"My name is Amos Westler."
"I don't care what it is. It's recorded. Keep working, friend." The
supervisor was a brutal-faced man who snarled out his words. His
jaw, cheekbones and forehead were silver-sheened with Plague scar,
with the Plague silver remaining there as well as on his limbs. His
face seemed metallic as a Robot's.
"See?" Westler whispered in despair as another damaged Robot slid
to a stop in front of them.
Johnny offered a wan grin. "Take it easy," he said, but hardly felt
more than the last remaining shreds of patience within himself. If
the old hag wouldn't talk when he saw her tonight....
"Don't bother calling me names, young man," cackled the hag. "I'm
virtually immune. It is against existing regulations to give you that
information since it is felt all ties with the past and the outside world
must be broken, not gradually but at once."
"Listen," Johnny said desperately, "you must remember your own
youth." He had tried every other verbal assault he could think of.
Now he hardly thought flattery would work on the ancient bag of
bones in front of him, but it seemed his last hope. "You must have
had your lovers in your day, were you as attractive for your years as
a younger woman...."
Something melted in the hag's eyes. She scrubbed her breastbone
with the knuckles of one parchment hand, as if preening. "Why,
yes," she admitted.
"I'm in love with the girl. You must know how I feel. He—he took
her." At least in part, it was the truth. In love with Diane? He'd never
thought of it, yet what had impelled him to battle Keleher in an
uneven fight, to set out for New York when he could have ruled the
encampment instead, to surrender himself to the Robots of the
Citadel? Johnny smiled. Trying to awaken something in the hag, he
had succeeded in awakening something, all right, but in himself.
"Such information I cannot give you, young man—"
"And I thought you remembered your youth!"
"—but they say the view from the corridor 13 exit is magnificent. To
reach it, one travels along corridor 14, which is a dormitory for some
of our young, unmarried women." The hag cackled. "Don't get
caught."
"I won't. Thank you."
"Good luck, my boy." The hag patted his shoulder, crowed something
which he failed to hear, disappeared from the room.
Outside at a forking of four corridors, Johnny found a map and
studied it. Lights recessed high on the walls showed him his
direction, and soon he was pounding down the corridors and praying
silently that the hag knew what she was talking about. By the time
he reached corridor 14 he was breathless.
Several young women stood in the corridor talking. Their chatter
was stilled when they saw Johnny, and those who had been in
various stages of undress hastened to cover themselves. Clearly, it
was not common for a man to venture this way, particularly at night.
"Are you lost, man?"
"No. I'm looking for someone. A girl named Diane."
They were smiling, and Johnny began to wonder. He suspected that
corridor trysts were not particularly uncommon.
"Is she expecting you?" demanded the boldest of the women, who
had stepped to the fore while her more timid companions drew
back, ready to dart into the surrounding cubicles.
"I cannot truthfully say," Johnny admitted. "If she knew I was in the
Citadel, I think she would be expecting me." But even that was with
tongue in cheek, for ever since he had refused to fight with
Starbuck, Diane had said not a word to him.
"This Diane, what does she look like?"
Johnny described her. When he finished, the woman chuckled.
"Could you perhaps be trysting? From your description, I would say
you love the girl, for no woman could be so beautiful. I think I know
who you mean, though."
Still chuckling, the tall woman entered one of the cubicles while her
companions melted away into the others. Soon Johnny stood alone
in the corridor, waiting as nervously as a youth in Hamilton Village
might wait while the village matchmaker entered a house to fetch
him his bride. Someone appeared in the doorway. Not the tall
woman. Diane!
"Johnny.... Johnny Hope...."
"Diane, I never thought I would see you again. I thought
Starbuck...."
"I was so afraid for you, because you couldn't adjust to your new
life, because I thought you might do something desperate. I was a
fool, I should have known why you refused to fight with Starbuck.
Johnny, Johnny ... let me look at you."
"Look later," he said, his eyes suddenly, unexpectedly misty. He drew
her to him and for a long time stood there with her, feeling the beat
of her heart tight against him, the warmth of her body and long
smoothness of limbs. She was trembling, the warmth of her all a-
flutter against him. She was murmuring something softly against his
shoulder. He was whispering in her ear, "I love you. I love you,
Diane...."
Her lips were perfumed and yielding, her arms went behind him,
hands joining behind his neck, then playing with his hair. The
Plague, his exile from Hamilton Village, the fight with Keleher, the
long trek, even captivity in the Citadel—all were a small price to pay,
he thought dreamily, then abruptly drew back.
"We don't want to stay here all our lives," he said.
"I'll go anywhere with you, Johnny."
"Save that for later, darling—but I love to hear it. I don't think we'd
have much trouble leaving the Citadel."
"Not if we go tonight, we wouldn't. Every day I work with Starbuck,
but if we left at once, now, tonight!"
Her new-found enthusiasm not only matched his, but added wings
to it. He was on the point of saying yes, of leading her through the
corridors in a dash for freedom, when he remembered. "We can't,"
he said. "Not tonight. We've got to include Amos Westler in our
plans."
"Westler is here?"
Johnny explained the situation to her, then added, "Tonight Westler
went looking for some information about the Robots. He feels certain
they have an Achilles Heel someplace, if only he can find it. Actually,
it won't be easy dragging him away from the Citadel, even tomorrow
night."
"We can wait one night longer, sweetheart. You convince him
tomorrow."
"I don't like the thought of leaving you alone again until tomorrow
night."
Diane stilled his words by placing cool fingers to his lips. "We have
no choice. I can take care of myself one night more."
"Starbuck?"
"I can take care of myself in that respect, too. Go back to your
dormitory and get some sleep."
"Tomorrow night. Same time, same place. Westler will be with me."
They came close and drank of each other again. They parted,
Johnny edging down the corridor backwards until the last shaft of
light disappeared from the entrance to Diane's cubicle. His head was
whirling in a giddy new delight, in a rapture which clouded his mind
with a buoyant optimism which almost made him forget the Citadel,
the Robots, and men like Harry Starbuck....
Footsteps pounding down the hall, heavy, too heavy for a woman's.
Quickly, Johnny flattened himself in the darkness of a niche which
served some nameless purpose. With the light behind it, a shadow
loomed, reared up toward him.
It was Harry Starbuck.
Johnny held his breath until the big man with the smug boy's face
strode past. Heading for Diane? In all probability, yes. Follow him?
Stop him? Attack him? Wild thoughts ran their course through
Johnny's head. And lose everything, all they were looking forward to,
for his impulsiveness? Footsteps receded. The shadow vanished.
Even if he could follow Starbuck, overpower him and escape with
Diane, their secret would be secret no longer, which would leave
Amos Westler to fare for himself.
Wait for tomorrow, Johnny Hope. His course seemed clear, yet he
had to fight himself all the way back down the corridor until he had
reached the male dormitories.
For many hours—which seemed like days—he waited up for Amos
Westler, but his thoughts were all with Diane. If Starbuck so much as
touched her....
CHAPTER VII
Westler smiled. "There was one thing the Robots did not bargain for
—an ex-college professor! The information was available in, of all
places, the main library for humans here in the city. It took some
finding, but as an old hand at research I had an edge even on the
Robots with their mechanical minds. Anyway, all you'd have to do is
destroy this Central Intelligence, and—"
"Might as well say destroy the moon, Amos. It's probably so well
guarded a whole Army of men couldn't break through, let alone two
of us."
"That's right," Westler said eagerly, "men could never hope to get
through, but Robots could."
"What are you talking about?"
"The second thing I learned tonight. Once again, it was so deeply
cross-referenced, so thoroughly hidden away that although it was
available if one knew where to look, the science of research is such
a dead thing that no one knew of its existence, probably not even
the Robots. Johnny, the earliest model Robots were built to function
in a double fashion. They were Robots, yes—but they are also
compartments in which a man can fit for manual control. They were
originally designed, you might say, as glorified suits of armor. While
the research material is naturally old, all I could gather seems to
indicate that no changes have ever been made structurally in those
early models. In other words, a man could climb inside a Robot
today, right now, and no one would know the difference."
"You're forgetting one thing," Johnny pointed out. "Are you going to
walk up to a Robot and tell him, 'Pardon me, old fellow, I'd like to
borrow you and use you for a disguise for a while'?"
"I'm not forgetting anything. We work in the repair bays, remember?
We have access to partially dismantled Robots. We could find
ourselves two dismantled old ones, somehow manage to get inside,
make our way to Central Intelligence...."
"I still haven't said I'm going to do it. I'd like to help you, Amos. I'll
take your word about the plan. It has possibilities. But that still has
nothing to do with my own problems. Right now Diane is the most
important thing."
"Diane's future, your future, all our futures ultimately depend on
this. What's the matter with you? You fail to see the forest for the
trees. Tomorrow, what's tomorrow, with all mankind's days ahead of
us—slave or free? Perhaps one man could do the job alone, although
two would have a better chance. But I think you know I'm not the
man for the job. I don't await your answer, Johnny Hope. I've no one
else to turn to. Humanity awaits your answer."
"Let me think," said Johnny, waving Westler away when he would
have continued talking. More quickly than he dared hope, he had
found Diane. With equal swiftness, Westler had discovered what he
sought. That left Johnny in the middle of a tug-of-war which
wouldn't wait indefinitely for his answer.
CHAPTER VIII
Stop! Stand perfectly still.
The thought was unexpected, peremptory, driving into Johnny's
brain with more authority than any words. He wanted to stop,
wanted to immobilize the Robot in which he hid—but where had the
thought come from?
Westler's Robot was pointing a many-jointed metal arm at the
supervising Robot which rushed toward them. Then, did the thought
originate there? Could the Robot somehow send a soundless
message to them?
Stop! Let me dismantle you.
The urge to render his own Robot motionless became stronger
within Johnny. It was as if the unbidden thought originated outside
his head but tried to direct his own muscles, as surely as his own
mind.
Something made soft beeping noises in his ear and it took a while
before he realized Westler wanted to break their radio silence, so
soon after they had started. The other Robot was almost upon them.
Awkward and uncomfortable in his cramped quarters, Johnny found
the radio switch and pulled it.
"We've got to destroy that Robot, Johnny. Now, at once, or we're
finished."
"But how—"
The Robot was upon them, its unbidden thoughts stronger.
Halt....
It was Johnny who struck the first blow—clumsily, lifting his great
right arm up and bringing it down stiffly on the other Robot's head.
Metal arms came up, swung blurringly. A clanging tumult deafened
Johnny as dents appeared inside the chamber of his own Robot's
head. He triggered the levers mechanically now, aware that they
were fighting under a tremendous disadvantage, for their fingers
were still stiff on the unfamiliar controls and their artificial reflexes
could not hope to match the Robot's.
"Look out, Johnny—"
Two metal shapes loomed, Westler and the real Robot. The three of
them came together, clashing, clanging, metal arms swinging and
wrecking metal bodies. It was Westler's Robot which went down
first, slowly, buckling at the knee joints and then collapsing. Metal
feet drove down upon it ponderously, crushing the head section.
Westler's Robot was still.
Johnny hammered with huge metal hands at the other robot hardly
knowing where he might strike a mortal blow. But the Robot slowed,
its reactions grew feeble, its blows denting Johnny's head-chamber
no longer. Finally, it sprawled across Westler's Robot, then rolled
away and was still.
Cursing to himself, Johnny climbed down from his Robot, found the
battered head plate of Westler's, forced it open.
He saw at once he could never hope to extricate the older man, for
the metal walls of his chamber had been crushed, knifing into bone
and flesh and trapping him.
"Amos, can you hear me?"
The eyelids fluttered open with pain. "I never will see the end,
Johnny...."
"What are you talking about?"
"Don't ... fool me. I'm all broken, inside. I—"
"We'll get you out of there in no time."
"You'd have to melt ... the metal down to ... do it, and you know it."
"We'll do it."
"Your only hope is that the Robot did not have time to broadcast a
warning. If ... he did ... you will have to hurry, but—"
"They still don't know our plans. Maybe they think we only want to
escape, using these Robot bodies for a disguise."
"Perhaps. I hadn't thought ... of that." Westler lapsed into silence,
his face twisted with pain. "If you can do it, if you can destroy their
cybernetics center ... new start for humanity. I was going to tell you
about the Plague, Johnny. The Robots ... have been using ... a
particularly virulent form of the ... toxin which does not exist
naturally. Spreading it in the air, all over the earth. That, combined
with the ... toxin carried by a Shining One, causes illness ... and
death." Westler's words were harder to hear now, low, the barest
whisper of sound. Johnny leaned close to the glazed eyes, the barely
opening lips. "When the Robots are ... gone ... the Plague will die
out almost at once. Shining Ones even will be harmless. You see
why it's so important? You see...."
"I could never do it without you. We'll hide away somewhere, nurse
you back to health—"
"Stop fooling ... an old man. We both know I'm dying."
"That's ridiculous."
"Please ... don't interrupt me. I want to finish telling you ... the
Robots communicate with humans by telepathy. You witnessed it
yourself, a few ... minutes ago. They can make it seem like your own
thoughts and ... who can say? Thought waves are electromagnetic,
like ... so many other things. There is nothing mysterious about ...
telepathy. Give humanity a chance to study what the ... Robots have
done and ... you'll have civilization flourishing again within a
generation. Give humanity the chance...." It was a whisper, a prayer.
On that final note of hope, Westler died.
"The human has emerged from the underground within his Robot
and is heading north-east across the city."
"I still think we ought to stop him now, while we know we can do it."
"Silence. Think on the primary level. In unity we will triumph. It is
our one weapon they cannot hope to match."
"But 63-17-B warned us before he perished—"
"Precisely. That the humans were attempting something other than
mere escape. We must find out what that is, what they have
learned. Don't you realize that if this man fails another might
succeed in his place? Whatever knowledge he has, perhaps it is
widely disseminated. We must find out before we kill him."
There was a silence among the conclave of motionless Robots, their
unblinking eyes intent upon a huge three-dimensional map of the
city, following a tiny pip of light in its slow progress.
"He seems to be heading straight for Central Intelligence."
"That's hardly possible, unless it is mere coincidence."
"I don't think so.... See? Not half a mile away, now."
"Have the supervisors discovered who is missing?"
"Yes. He was employed in the very repair bay where 63-17-B
perished—a defective Robot, incidentally, and no great loss. We have
given his name to the top-level Shining Ones in the hope that they
can help us."
"There is a Shining One, a human, here right now. He wants an
audience concerning the rebel."
"Very well, although we'll have to make it brief."
Starbuck entered the chamber cockily, then lost his poise when he
saw the solemn, unmoving conclave of Robots. "I have outside," he
began, moistening his lips and talking rapidly, "a woman who this
man, this Johnny Hope, loves. Can you understand me? Do you
know what love is? He won't do a thing that might harm her."
We can understand.
"I thought that—"
We can read your thoughts. Leave your name with the Robot
outside. Take this woman within the U.N. building and hold her there
until you hear from us.
"The U.N. building?"
No questions. Go.
Starbuck shuffled from the room, self-conscious and fearful under
the mental command.
"I doubt if we'll need the hostage, but you never can tell."
"It seems incredible that—"
"Does it? The man has almost reached the U.N. building. It will take
him perhaps half an hour, for the rubble is piled high there.
Underground he could reach it in a few moments, but apparently he
is unfamiliar with the passages."
"He has only recently arrived at the Citadel."
"Somehow, they have learned something. It is why we cannot kill
the man until we are sure. Have them alerted at Central Intelligence,
but let him enter. Watch him. If he blunders about as if he has
arrived there by accident, kill him. If he knows something, take him
alive."
"Someday we must learn the secret of Central Intelligence, if we are
to survive. We must learn how to duplicate it or face the possibility
of perishing in a single accident."
"Men built it once. Men could do it again."
"Defective! Silence. Man can do nothing we cannot do."
Then they were quiet, watching the tiny, darting pip on the three-
dimensional map as it struggled through the uncleared rubble
southwest of the U.N. building.
Even in ruin, the city held more wonders for Johnny Hope than he
had ever thought possible. In many ways, it was like a scar on the
face of the earth, pitted with bomb craters, strewn with the debris of
toppled towers, its streets choked with fallen, crumbling masonry
and blocked by the skeletons of buildings which once had stood,
bare and rusted now but not always so, as monuments to the
greatness of man. Yet it was a scar which could be healed, a broken,
dying city which could be made great again, with men and women
roving its streets, repairing the structures, making the living city
function once more.
That was Amos Westler's dream. It was the dream of all mankind,
Johnny thought philosophically, although they did not realize it as
they roved the earth in hunter-bands of Shining Ones or tilled its soil
in small communities fearful of the Plague.
Now, directly ahead of him, he could see the monolithic slab of the
U.N. building. Like one structure in five, it stood incredibly intact, a
remembrance of the past and a promise of the future. We can build
again, Johnny thought, without the Robots and the Plague. They
could build again or they would die. Natural world or artificial world
—men or Robots—they could not survive jointly.
Battered and broken but still functioning adequately, Johnny's Robot
pushed through the debris south of the U.N. building to the edge of
the river. He stood there a moment and stared upstream at the
gaunt ruins of a bridge, now tumbled down the river and resting on
the river-bottom, thrusting its towers up beyond the surface of the
water and toward the sky. Men had used that bridge once, long ago
but within the memory of Johnny's father, to reach the country
beyond. The bridge might be rebuilt. Men might learn to use it
again. It was as if, in dying, Amos Westler had transferred his own
vision to Johnny, showing him a dream of the unborn tomorrow—its
birth or stillborn death depending entirely upon Johnny's success or
failure today.
Half a dozen Robots stood about the wide terrace leading to the
building, but Johnny ignored them, for he had passed many in the
broken streets of the city and grown accustomed to them. He
entered the building through a door of glass and metal and was not
aware of the Robots entering it behind him.
His impulse was to climb down from his Robot, to stretch his
cramped arms and legs and find something to eat, then explore the
wonders of this new place. Above his head, the ceiling was high and
vaulted. Ramps led away, curving and graceful, in all directions and
he longed to feel his feet, his own feet, upon them, and to explore
until he satiated himself with this wonder and sought another.
To leave the Robot would be suicide. Had the thought been his own
—or a metal-made thought, instilled in him some unknown way, an
unbidden suicide thought? It was less specific than the commands of
the Robot that had perished in the repair bay, but Johnny guessed it
came from outside nevertheless.
He advanced mechanically, for Westler had given him careful
directions. The ramps led up, higher and higher, past the rooms in
which men from many lands once, long ago, used to debate their
future—then higher still, climbing....
There was noise behind him. He whirled in cramped quarters,
peered from the Robot's second set of eyes. A dozen Robots climbed
the ramp behind him, gaining. He let his mind drift blankly, let their
thoughts reach him.
He is not wandering aimlessly. Somehow he learned. He learned.
Capture him.
He ran now, awkwardly, his own Robot not smooth and graceful, a
flawless piece of machinery like the others. He clomped and
clattered up the ramp and prayed for time.
The ramp soared upward, curved to the left. Once he looked down
at the floor of the rotunda so far below and became giddy with the
distance and the thought of falling. He leaned over the railing and
looked. His head whirled....
At the last moment, he drew his Robot back from the edge, stabbing
half-blindly at the controls which propelled it. They had almost
driven him to suicide. He must keep his mind a perfect blank—or,
better still, think of something which would keep them at bay. Diane,
his love for her—Diane....
A Robot waited for him at the top of the ramp. Those behind him
were gaining rapidly, driving death-wishes deep within his brain.
The Robot above him abruptly swung into motion, but Johnny
desperately sidestepped the lunge which would have sent him
hurtling to the floor of the rotunda. The other Robot checked its own
inertia and came for Johnny again, huge arms swinging, trying to
crush him within the metal chamber as Amos Westler had been
crushed. Johnny parried the blows with his own metal arms, then
reached out and heard machinery groan within his metal frame as
he lifted the other Robot and hurled it in the path of his pursuers.
There was a grinding, clattering crash of metal. Johnny saw three
forms detach themselves from the arcing ramp and tumble, swinging
and twisting in air grotesquely, to the floor, where they struck
resoundingly and broke apart, the metal arms and legs flying.
Then he was climbing again, the remaining Robots far below him
and disorganized now. But soon, he knew, they would be capable of
following.
It was as Amos Westler had predicted. After a time, the ramp grew
smaller. It no longer climbed now—it had soared high and now was
just below the girdered ceiling. It was hardly wide enough for
Johnny's Robot, it shook dangerously with the tread of metal feet.
Here, Johnny knew, was the sanctuary. This was the Achilles Heel.
This was the entrance, this ramp which no Robot could traverse.
Here the way led to self-functioning, self-repairing machinery, to
Central Intelligence. Here was man's final hope in the eyes of the
original inventor. Here was the guarantee that the Robots, if they
became some Frankenstein monster, could be met and conquered.
For no Robot could guard the final portal to Central Intelligence. No
Robot could even draw close enough to alter the thin ramp. Johnny
smiled grimly as comprehension grew. If Robots could become
neurotic, this was the place for it. They could have employed their
human servants, the Shining Ones, to alter the place, but would
have divulged their secret in the process.
Still smiling, Johnny halted his Robot, opened the face plate clumsily
from the inside, and climbed out. He sat on the ramp and flexed stiff
arms and legs, then stood up and heard the Robots below him. He
could see them now, no longer advancing, milling about in
confusion. Their weight would destroy the ramp, and they knew it.
They could never hope to reach him.
It was all so incredibly simple.
Was it?
One Robot had been above him.
Then they knew he was coming. What had they prepared for him
beyond the point where the Robots could not climb? Shrugging, he
advanced warily.
Soon he could see where the ramp reached a small doorway, much
too low and narrow to admit a Robot, even if one of the machines
could have climbed the ramp this far.
"Hold it,—Johnny Hope. Don't come any closer."