Data Mining A Tutorial Based Primer 2nd Edition Richard J. Roiger pdf download
Data Mining A Tutorial Based Primer 2nd Edition Richard J. Roiger pdf download
https://ebookgate.com/product/data-mining-a-tutorial-based-
primer-2nd-edition-richard-j-roiger/
https://ebookgate.com/product/making-sense-of-data-a-practical-
guide-to-exploratory-data-analysis-and-data-mining-1st-edition-
glenn-j-myatt/
https://ebookgate.com/product/data-mining-using-sas-enterprise-
miner-a-case-study-approach-2nd-edition/
https://ebookgate.com/product/clustering-for-data-mining-a-data-
recovery-approach-1st-edition-boris-mirkin/
https://ebookgate.com/product/data-mining-and-analysis-
fundamental-concepts-and-algorithms-mohammed-j-zaki/
Encyclopedia of Data Warehousing and Mining 2nd Edition
John Wang
https://ebookgate.com/product/encyclopedia-of-data-warehousing-
and-mining-2nd-edition-john-wang/
https://ebookgate.com/product/data-mining-3rd-ed-edition-jiawei-
han/
https://ebookgate.com/product/statistical-data-mining-using-sas-
applications-second-edition-chapman-hall-crc-data-mining-and-
knowledge-discovery-series-george-fernandez/
https://ebookgate.com/product/handbook-of-statistics-24-data-
mining-and-data-visualization-c-r-rao/
https://ebookgate.com/product/r-data-mining-blueprints-1st-
edition-edition-mishra/
DATA MINING
A Tutorial-Based Primer
SECOND EDITION
Chapman & Hall/CRC
Data Mining and Knowledge Discovery Series
SERIES EDITOR
Vipin Kumar
University of Minnesota
Department of Computer Science and Engineering
Minneapolis, Minnesota, U.S.A.
PUBLISHED TITLES
ACCELERATING DISCOVERY: MINING UNSTRUCTURED INFORMATION FOR
HYPOTHESIS GENERATION
Scott Spangler
ADVANCES IN MACHINE LEARNING AND DATA MINING FOR ASTRONOMY
Michael J. Way, Jeffrey D. Scargle, Kamal M. Ali, and Ashok N. Srivastava
BIOLOGICAL DATA MINING
Jake Y. Chen and Stefano Lonardi
COMPUTATIONAL BUSINESS ANALYTICS
Subrata Das
COMPUTATIONAL INTELLIGENT DATA ANALYSIS FOR SUSTAINABLE
DEVELOPMENT
Ting Yu, Nitesh V. Chawla, and Simeon Simoff
COMPUTATIONAL METHODS OF FEATURE SELECTION
Huan Liu and Hiroshi Motoda
CONSTRAINED CLUSTERING: ADVANCES IN ALGORITHMS, THEORY,
AND APPLICATIONS
Sugato Basu, Ian Davidson, and Kiri L. Wagstaff
CONTRAST DATA MINING: CONCEPTS, ALGORITHMS, AND APPLICATIONS
Guozhu Dong and James Bailey
DATA CLASSIFICATION: ALGORITHMS AND APPLICATIONS
Charu C. Aggarwal
DATA CLUSTERING: ALGORITHMS AND APPLICATIONS
Charu C. Aggarwal and Chandan K. Reddy
DATA CLUSTERING IN C++: AN OBJECT-ORIENTED APPROACH
Guojun Gan
DATA MINING: A TUTORIAL-BASED PRIMER, SECOND EDITION
Richard J. Roiger
DATA MINING FOR DESIGN AND MARKETING
Yukio Ohsawa and Katsutoshi Yada
DATA MINING WITH R: LEARNING WITH CASE STUDIES, SECOND EDITION
Luís Torgo
EVENT MINING: ALGORITHMS AND APPLICATIONS
Tao Li
FOUNDATIONS OF PREDICTIVE ANALYTICS
James Wu and Stephen Coggeshall
GEOGRAPHIC DATA MINING AND KNOWLEDGE DISCOVERY,
SECOND EDITION
Harvey J. Miller and Jiawei Han
GRAPH-BASED SOCIAL MEDIA ANALYSIS
Ioannis Pitas
HANDBOOK OF EDUCATIONAL DATA MINING
Cristóbal Romero, Sebastian Ventura, Mykola Pechenizkiy, and Ryan S.J.d. Baker
HEALTHCARE DATA ANALYTICS
Chandan K. Reddy and Charu C. Aggarwal
INFORMATION DISCOVERY ON ELECTRONIC HEALTH RECORDS
Vagelis Hristidis
INTELLIGENT TECHNOLOGIES FOR WEB APPLICATIONS
Priti Srinivas Sajja and Rajendra Akerkar
INTRODUCTION TO PRIVACY-PRESERVING DATA PUBLISHING: CONCEPTS
AND TECHNIQUES
Benjamin C. M. Fung, Ke Wang, Ada Wai-Chee Fu, and Philip S. Yu
KNOWLEDGE DISCOVERY FOR COUNTERTERRORISM AND
LAW ENFORCEMENT
David Skillicorn
KNOWLEDGE DISCOVERY FROM DATA STREAMS
João Gama
MACHINE LEARNING AND KNOWLEDGE DISCOVERY FOR
ENGINEERING SYSTEMS HEALTH MANAGEMENT
Ashok N. Srivastava and Jiawei Han
MINING SOFTWARE SPECIFICATIONS: METHODOLOGIES AND APPLICATIONS
David Lo, Siau-Cheng Khoo, Jiawei Han, and Chao Liu
MULTIMEDIA DATA MINING: A SYSTEMATIC INTRODUCTION TO
CONCEPTS AND THEORY
Zhongfei Zhang and Ruofei Zhang
MUSIC DATA MINING
Tao Li, Mitsunori Ogihara, and George Tzanetakis
NEXT GENERATION OF DATA MINING
Hillol Kargupta, Jiawei Han, Philip S. Yu, Rajeev Motwani, and Vipin Kumar
RAPIDMINER: DATA MINING USE CASES AND BUSINESS ANALYTICS
APPLICATIONS
Markus Hofmann and Ralf Klinkenberg
RELATIONAL DATA CLUSTERING: MODELS, ALGORITHMS,
AND APPLICATIONS
Bo Long, Zhongfei Zhang, and Philip S. Yu
SERVICE-ORIENTED DISTRIBUTED KNOWLEDGE DISCOVERY
Domenico Talia and Paolo Trunfio
SPECTRAL FEATURE SELECTION FOR DATA MINING
Zheng Alan Zhao and Huan Liu
STATISTICAL DATA MINING USING SAS APPLICATIONS, SECOND EDITION
George Fernandez
SUPPORT VECTOR MACHINES: OPTIMIZATION BASED THEORY,
ALGORITHMS, AND EXTENSIONS
Naiyang Deng, Yingjie Tian, and Chunhua Zhang
TEMPORAL DATA MINING
Theophano Mitsa
TEXT MINING: CLASSIFICATION, CLUSTERING, AND APPLICATIONS
Ashok N. Srivastava and Mehran Sahami
TEXT MINING AND VISUALIZATION: CASE STUDIES USING OPEN-SOURCE
TOOLS
Markus Hofmann and Andrew Chisholm
THE TOP TEN ALGORITHMS IN DATA MINING
Xindong Wu and Vipin Kumar
UNDERSTANDING COMPLEX DATASETS: DATA MINING WITH MATRIX
DECOMPOSITIONS
David Skillicorn
DATA MINING
A Tutorial-Based Primer
SECOND EDITION
Richard J. Roiger
This book was previously published by Pearson Education, Inc.
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2017 by Taylor & Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business
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 valid-
ity 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, transmitted, or uti-
lized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopy-
ing, 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
and the CRC Press Web site at
http://www.crcpress.com
Contents
vii
viii ◾ Contents
BIBLIOGRAPHY, 461
INDEX, 465
List of Figures
xvii
xviii ◾ List of Figures
Figure 5.15 A scatterplot comparing age and life insurance promotion. 156
Figure 5.16 A decision tree process model. 157
Figure 5.17 A decision tree for the credit card promotion database. 158
Figure 5.18 A decision tree in descriptive form. 158
Figure 5.19 A list of operator options. 159
Figure 5.20 Customer churn—A training and test set scenario. 160
Figure 5.21 Removing instances of unknown outcome from the churn data set. 161
Figure 5.22 Partitioning the customer churn data. 162
Figure 5.23 The customer churn data set. 163
Figure 5.24 Filter Examples has removed all instances of unknown outcome. 163
Figure 5.25 A decision tree for the customer churn data set. 164
Figure 5.26 Output of the Apply Model operator. 164
Figure 5.27 A performance vector for the customer churn data set. 165
Figure 5.28 Adding a subprocess to the main process window. 166
Figure 5.29 A subprocess for data preprocessing. 167
Figure 5.30 Creating and saving a decision tree model. 168
Figure 5.31 Reading and applying a saved model. 169
Figure 5.32 An Excel file stores model predictions. 169
Figure 5.33 Testing a model using cross-validation. 170
Figure 5.34 A subprocess to read and filter customer churn data. 171
Figure 5.35 Nested subprocesses for cross-validation. 171
Figure 5.36 Performance vector for a decision tree tested using cross-validation. 172
Figure 5.37 Subprocess for the Tree to Rules operator. 174
Figure 5.38 Building a model with the Tree to Rules operator. 174
Figure 5.39 Rules generated by the Tree to Rules operator. 175
Figure 5.40 Performance vector for the customer churn data set. 175
Figure 5.41 A process design for rule induction. 176
Figure 5.42 Adding the Discretize by Binning operator. 177
Figure 5.43 Covering rules for customer churn data. 177
List of Figures ◾ xxi
Figure 5.44 Performance vector for the covering rules of Figure 5.43. 178
Figure 5.45 Process design for subgroup discovery. 179
Figure 5.46 Subprocess design for subgroup discovery. 179
Figure 5.47 Rules generated by the Subgroup Discovery operator. 180
Figure 5.48 Ten rules identifying likely churn candidates. 181
Figure 5.49 Generating association rules for the credit card promotion database. 182
Figure 5.50 Preparing data for association rule generation. 183
Figure 5.51 Interface for listing association rules. 184
Figure 5.52 Association rules for the credit card promotion database. 184
Figure 5.53 Market basket analysis template. 185
Figure 5.54 The pivot operator rotates the example set. 186
Figure 5.55 Association rules for the Market Basket Analysis template. 186
Figure 5.56 Process design for clustering gamma-ray burst data. 188
Figure 5.57 A partial clustering of gamma-ray burst data. 189
Figure 5.58 Three clusters of gamma-ray burst data. 189
Figure 5.59 Decision tree illustrating a gamma-ray burst clustering. 190
Figure 5.60 A descriptive form of a decision tree showing a clustering
of gamma-ray burst data. 190
Figure 5.61 Benchmark performance for nearest neighbor classification. 192
Figure 5.62 Main process design for nearest neighbor classification. 192
Figure 5.63 Subprocess for nearest neighbor classification. 193
Figure 5.64 Forward selection subprocess for nearest neighbor classification. 193
Figure 5.65 Performance vector when forward selection is used for choosing
attributes. 194
Figure 5.66 Unsupervised clustering for attribute evaluation. 197
Figure 6.1 A seven-step KDD process model. 200
Figure 6.2 The Acme credit card database. 203
Figure 6.3 A process model for detecting outliers. 205
Figure 6.4 Two outlier instances from the diabetes patient data set. 206
xxii ◾ List of Figures
Figure 6.5 Ten outlier instances from the diabetes patient data set. 207
Figure 7.1 Components for supervised learning. 222
Figure 7.2 A normal distribution. 225
Figure 7.3 Random samples from a population of 10 elements. 226
Figure 7.4 A process model for comparing three competing models. 239
Figure 7.5 Subprocess for comparing three competing models. 240
Figure 7.6 Cross-validation test for a decision tree with maximum depth = 5. 240
Figure 7.7 A matrix of t-test scores. 241
Figure 7.8 ANOVA comparing three competing models. 241
Figure 7.9 ANOVA operators for comparing nominal and numeric attributes. 242
Figure 7.10 The grouped ANOVA operator comparing class and maximum heart
rate. 243
Figure 7.11 The ANOVA matrix operator for the cardiology patient data set. 243
Figure 7.12 A process model for creating a lift chart. 244
Figure 7.13 Preprocessing the customer churn data set. 245
Figure 7.14 Output of the Apply Model operator for the customer churn data set. 245
Figure 7.15 Performance vector for customer churn. 246
Figure 7.16 A Pareto lift chart for customer churn. 247
Figure 8.1 A fully connected feed-forward neural network. 254
Figure 8.2 The sigmoid evaluation function. 257
Figure 8.3 A 3 × 3 Kohonen network with two input-layer nodes. 260
Figure 8.4 Connections for two output-layer nodes. 266
Figure 9.1 Graph of the XOR function. 272
Figure 9.2 XOR training data. 273
Figure 9.3 Satellite image data. 274
Figure 9.4 Weka four graphical user interfaces (GUIs) for XOR training. 275
Figure 9.5 Backpropagation learning parameters. 276
Figure 9.6 Architecture for the XOR function. 278
Figure 9.7 XOR training output. 278
List of Figures ◾ xxiii
Figure 10.17 Green and red have been removed from the satellite image data set. 305
Figure 10.18 Correlation matrix for the satellite image data set. 306
Figure 10.19 Neural network model for predicting customer churn. 307
Figure 10.20 Preprocessing the customer churn data. 308
Figure 10.21 Cross-validation subprocess for customer churn. 308
Figure 10.22 Performance vector for customer churn. 309
Figure 10.23 Process for creating and saving a neural network model. 309
Figure 10.24 Process model for reading and applying a neural network model. 310
Figure 10.25 Neural network output for predicting customer churn. 310
Figure 10.26 SOM process model for the cardiology patient data set. 312
Figure 10.27 Clustered instances of the cardiology patient data set. 312
Figure 11.1 RapidMiner’s naïve Bayes operator. 325
Figure 11.2 Subprocess for applying naïve Bayes to customer churn data. 326
Figure 11.3 Naïve Bayes Distribution Table for customer churn data. 326
Figure 11.4 Naïve Bayes performance vector for customer churn data. 327
Figure 11.5 Life insurance promotion by gender. 328
Figure 11.6 Naïve Bayes model with output attribute = LifeInsPromo. 329
Figure 11.7 Predictions for the life insurance promotion. 329
Figure 11.8 Hyperplanes separating the circle and star classes. 330
Figure 11.9 Hyperplanes passing through their respective support vectors. 331
Figure 11.10 Maximal margin hyperplane separating the star and circle classes. 335
Figure 11.11 Loading the nine instances of Figure 11.8 into the Explorer. 338
Figure 11.12 Invoking SMO model. 339
Figure 11.13 Disabling data normalization/standardization. 339
Figure 11.14 The SMO-created MMH for the data shown in Figure 11.8. 340
Figure 11.15 Applying mySVM to the cardiology patient data set. 341
Figure 11.16 Normalized cardiology patient data. 342
Figure 11.17 Equation of the MMH for the cardiology patient data set. 342
Figure 11.18 Actual and predicted output for the cardiology patient data. 343
List of Figures ◾ xxv
Figure 11.19 Performance vector for the cardiology patient data. 343
Figure 11.20 A linear regression model for the instances of Figure 11.8. 345
Figure 11.21 Main process window for applying RapidMiner’s linear regression
operator to the gamma-ray burst data set. 346
Figure 11.22 Subprocess windows for the Gamma Ray burst experiment. 346
Figure 11.23 Linear regression—actual and predicted output for the gamma-ray
burst data set. 347
Figure 11.24 Summary statistics and the linear regression equation for the
gamma-ray burst data set. 347
Figure 11.25 Scatterplot diagram showing the relationship between t90 and t50. 348
Figure 11.26 Performance vector resulting from the application of linear
regression to the gamma-ray burst data set. 348
Figure 11.27 A generic model tree. 349
Figure 11.28 The logistic regression equation. 351
Figure 12.1 A Cobweb-created hierarchy. 363
Figure 12.2 Applying EM to the gamma-ray burst data set. 366
Figure 12.3 Removing correlated attributes from the gamma-ray burst data set. 367
Figure 12.4 An EM clustering of the gamma-ray burst data set. 367
Figure 12.5 Summary statistics for an EM clustering of the gamma-ray burst data set. 368
Figure 12.6 Decision tree representing a clustering of the gamma-ray burst data set. 368
Figure 12.7 The decision tree of Figure 12.6 in descriptive form. 369
Figure 12.8 Classes of the sensor data set. 370
Figure 12.9 Generic object editor allows us to specify the number of clusters. 370
Figure 12.10 Classes to clusters summary statistics. 371
Figure 12.11 Unsupervised genetic clustering. 372
Figure 13.1 A process model for extracting historical market data. 380
Figure 13.2 Historical data for XIV. 381
Figure 13.3 Time-series data with numeric output. 382
Figure 13.4 Time-series data with categorical output. 383
Figure 13.5 Time-series data for processing with RapidMiner. 383
xxvi ◾ List of Figures
xxix
xxx ◾ List of Tables
Data mining is the process of finding interesting patterns in data. The objective of data
mining is to use discovered patterns to help explain current behavior or to predict future
outcomes. Several aspects of the data mining process can be studied. These include
A single book cannot concentrate on all areas of the data mining process. Although
we furnish some detail about all aspects of data mining and knowledge discovery, our
primary focus is centered on model building and testing, as well as on interpreting and
validating results.
OBJECTIVES
I wrote the text to facilitate the following student learning goals:
• Understand what data mining is and how data mining can be employed to solve real
problems
• Recognize whether a data mining solution is a feasible alternative for a specific
problem
• Step through the knowledge discovery process and write a report about the results of
a data mining session
• Know how to apply data mining software tools to solve real problems
• Apply basic statistical and nonstatistical techniques to evaluate the results of a data
mining session
xxxi
xxxii ◾ Preface
• Recognize several data mining strategies and know when each strategy is appropriate
• Develop a comprehensive understanding of how several data mining techniques
build models to solve problems
• Develop a general awareness about the structure of a data warehouse and how a data
warehouse can be used
• Understand what online analytical processing (OLAP) is and how it can be applied
to analyze data
• Chapter 5 is all about data mining using RapidMiner Studio, a powerful open-source
and code-free version of RapidMiner’s commercial product. RapidMiner uses a
drag and drop workflow paradigm for building models to solve complex problems.
RapidMiner’s intuitive user interface, visualization capabilities, and assortment of
operators for preprocessing and mining data are second to none.
• This edition covers what are considered to be the top 10 data mining algorithms
(Wu and Kumar, 2009). Nine of the algorithms are used in one or more tutorials.
• Tutorials have been added for attribute selection, dealing with imbalanced data, out-
lier analysis, time-series analysis, and mining textual data.
• Over 90% of the tutorials are presented using both Weka and RapidMiner. This
allows readers maximum flexibility for their hands-on data mining experience.
INTENDED AUDIENCE
I developed most of the material for this book while teaching a one-semester data mining
course open to students majoring or minoring in business or computer science. In writing
this text, I directed my attention toward four groups of individuals:
CHAPTER FEATURES
I take the approach that model building is both an art and a science best understood from
the perspective of learning by doing. My view is supported by several features found within
the pages of the text. The following is a partial list of these features.
• Simple, detailed examples. I remove much of the mystery surrounding data mining
by presenting simple, detailed examples of how the various data mining techniques
build their models. Because of its tutorial nature, the text is appropriate as a self-study
guide as well as a college-level textbook for a course about data mining and knowl-
edge discovery.
• Overall tutorial style. All examples in Chapters 4, 5, 9, and 10 are tutorials. Selected
sections in Chapters 6, 7, 11, 12, 13, and 14 offer easy-to-follow, step-by-step tutorials
xxxiv ◾ Preface
for performing data analytics. All selected section tutorials are highlighted for easy
differentiation from regular text.
• Data sets for data mining. A variety of data sets from business, medicine, and science
are ready for data mining.
• Key term definitions. Each chapter introduces several key terms. A list of definitions
for these terms is provided at the end of each chapter.
• Review questions ask basic questions about the concepts and content found
within each chapter. The questions are designed to help determine if the reader
understands the major points conveyed in each chapter.
• Data mining questions require the reader to use one or several data mining tools
to perform data mining sessions.
CHAPTER CONTENT
The ordering of the chapters and the division of the book into separate parts is based
on several years of experience in teaching courses on data mining. Section I introduces
material that is fundamental to understanding the data mining process. The presenta-
tion is informal and easy to follow. Basic data mining concepts, strategies, and tech-
niques are introduced. Students learn about the types of problems that can be solved
with data mining.
Once the basic concepts are understood, Section II provides the tools for knowledge
discovery with detailed tutorials taking you through the knowledge discovery process.
The fact that data preprocessing is fundamental to successful data mining is empha-
sized. Also, special attention is given to formal data mining evaluation techniques.
Section III is all about neural networks. A conceptual and detailed presentation is offered
for feed-forward networks trained with backpropagation learning and self-organizing
maps for unsupervised clustering. Section III contains several tutorials for neural network
learning with Weka and RapidMiner.
Section IV focuses on several specialized techniques. Topics of current interest such as
time-series analysis, textual data mining, imbalanced and streaming data, as well as Web-
based data mining are described.
Preface ◾ xxxv
• Chapter 1 offers an overview of data analytics and all aspects of the data mining pro-
cess. Special emphasis is placed on helping the student determine when data mining
is an appropriate problem-solving strategy.
• Chapter 2 presents a synopsis of several common data mining strategies and tech-
niques. Basic methods for evaluating the outcome of a data mining session are described.
• Chapter 3 details a decision tree algorithm, the Apriori algorithm for producing asso-
ciation rules, a covering rule algorithm, the K-means algorithm for unsupervised
clustering, and supervised genetic learning. Tools are provided to help determine
which data mining techniques should be used to solve specific problems.
INSTRUCTOR SUPPLEMENTS
The following supplements are provided to help the instructor organize lectures and write
examinations:
• PowerPoint slides. Each figure and table in the text is part of a PowerPoint presenta-
tion. These slides are also offered in PDF format.
• A second set of slides containing the screenshots seen as you work through the
tutorials in Chapters 4 through 14.
• All RapidMiner processes used in the tutorials, demonstrations, and end-of-chapter
exercises are readily available together with simple installation instructions.
• Test questions. Several test questions are provided for each chapter.
• Answers to selected exercises. Answers are given for most of the end-of-chapter
exercises.
• Lesson planner. The lesson planner contains ideas for lecture format and points for
discussion. The planner also provides suggestions for using selected end-of-chapter
exercises in a laboratory setting.
Please note that these supplements are available to qualified instructors only. Contact
your CRC sales representative or get help by visiting https://www.crcpress.com/contactus
to access this material. Supplements will be updated as needed.
Preface ◾ xxxvii
• Cover the following sections to gain enough knowledge to understand the tutorials
presented in later chapters.
• If Weka is your choice, at a minimum, work through Sections 4.1, 4.2, and 4.7 of
Chapter 4.
• If you are focusing on RapidMiner, cover at least Sections 5.1 and 5.2 of Chapter 5.
• Here is a summary of the tutorials given in Chapters 6, 7, 11, 12, 13, and 14.
• Chapter 6: RapidMiner is used to provide a tutorial on outlier analysis.
• Chapter 7: Tutorials are presented using RapidMiner’s T-Test and ANOVA opera-
tors for comparing model performance.
• Chapter 11: Both models are used for tutorials highlighting naive Bayes classifier
and support vector machines.
• Chapter 12: RapidMiner and Weka are used to illustrate unsupervised clustering
with the EM (Expectation Maximization) algorithm.
• Chapter 13: Both RapidMiner and Weka are employed for time-series analysis.
RapidMiner is used for a tutorial on textual data mining. Weka is employed for
a tutorial on ROC curves. RapidMiner is used to give an example of ensemble
learning.
xxxviii ◾ Preface
• Chapter 14: Tutorials are given for creating simple and multidimensional MS
Excel pivot tables.
• Chapter 9 is about neural networks using Weka. Chapter 10 employs RapidMiner
to cover the same material. There are advantages to examining at least some of the
material in both chapters. Weka’s neural network function is able to mine data hav-
ing a numeric output attribute, and RapidMiner’s self-organizing map operator can
perform dimensionality reduction as well as unsupervised clustering.
I am indebted to my editor Randi Cohen for the confidence she placed in me and for allow-
ing me the freedom to make critical decisions about the content of the text. I am very grate-
ful to Dr. Mark Polczynski and found his constructive comments to be particularly helpful
during revisions of the manuscript. Finally, I am most deeply indebted to my wife Suzanne
for her extreme patience, helpful comments, and consistent support.
xxxix
Author
xli
I
Data Mining Fundamentals
1
Another Random Scribd Document
with Unrelated Content
Prediction of coming events was practiced by the priests in North
America, as it was elsewhere. They persuaded the multitude, says
Charlevoix, that they suffered from ecstatic transports. During these
conditions, they said that their spirits gave them a large
acquaintance with remote things, and with the future (N. F., vol. iii.
p. 347). Moreover, they practiced magic, and with such effect that
Charlevoix felt himself compelled to ascribe their performances to
their alliance with the devil. They even pretended to be born in a
supernatural manner, and found believers ready to think that only by
some sort of enchantment and illusion had they formerly imagined
that they had come into the world like other people. When they
went into the state of ecstasy, they resembled the Pythoness on the
tripod; they assumed tones of voice and performed actions which
seemed beyond human capacity. On these occasions they suffered
so much that it was hard to induce them, even by handsome
payment, thus to yield themselves to the spirit. So often did they
prophesy truly, that Charlevoix can only resort again to his
hypothesis of a real intercourse between them and the "father of
seduction and of lies," who manifested his connection with them by
telling them the truth. Thus, a lady named Madame de Marson, by
no means an "esprit faible," was anxious about her husband, who
was commanding at a French outpost in Acadia, and who had stayed
away beyond the time fixed for his return. A native woman, having
ascertained the reason of her trouble, told her not to be distressed,
for that her husband would return on a certain day at a certain hour,
wearing a grey hat. Seeing that the lady did not believe in her, she
returned on the day and at the hour named, and asked her if she
would not come to meet her husband. After much pressing, she
induced the lady to accompany her to the bank of the river. Scarcely
had they arrived, when M. de Marson appeared in a canoe, wearing
a grey hat upon his head. The writer was informed of this fact by
Madame de Marson's son-in-law, at that time Governor-General of
the French dominions in America, who had heard it from herself (N.
F., vol. iii. p. 359-363). The priests of the Tartars are also their
diviners. They predict eclipses, and announce lucky and unlucky
days for all sorts of business (Bergeron, Voyage de Rubruquis, ch.
47).
Among the Buddhist priesthood of Thibet, there is a class of
Lamas who are astrologers, distinguished by a peculiar dress, and
making it their business to tell fortunes, exorcise evil spirits, and so
forth. The astrologers "are considered to have intercourse with
Sadag," a spirit who is supposed to be "lord of the ground," in which
bodies are interred, and who, along with other spirits, requires to be
pacified by charms and rites known only to these priests. To prevent
them from injuring the dead, the relations offer a price in cattle or
money to Sadag; and the astrologers, when satisfied with the
amount, undertake the necessary conjuration (B. T., pp. 156, 271).
In the Old Testament, this class of unofficial priests is mentioned
with the reprobation inspired by rivalry. The Hebrew legislator is at
one with the Roman Senate in his desire to expel them from the
land. "There shall not be found among you any one that ... useth
divination, or an observer of times, or an enchanter, or a witch, or a
charmer, or a consultor with familiar spirits, or a wizard, or a
necromancer. For all that do these things are an abomination unto
the Lord: and because of these abominations the Lord thy God doth
drive them out from before thee" (Deut. xviii. 10-12). The very
prohibition evinces the existence of the objects against whom it is
aimed; and proves that, along with the recognized worship of
Jehovah, there existed an unrecognized resort to practices which the
sterner adherents of that worship would not permit.
In addition to their claim to be in possession of special means of
ascertaining the occult causes of phenomena (as in illness), and of
special contrivances for penetrating the future (as in astrology or
fortune-telling), priesthoods pretend to a more direct inspiration
from on high, qualifying them either to announce the will of their
god on exceptional occasions, or to intimate his purpose in matters
of more ordinary occurrence. This inspiration was granted to the
native North American priests at the critical age of puberty, "It was
revealed to its possessor by the character of the visions he perceived
at the ordeal he passed through on arriving at puberty; and by the
northern nations was said to be the manifestation of a more potent
personal spirit than ordinary. It was not a faculty, but an inspiration;
not an inborn strength, but a spiritual gift" (M. N. W., p. 279). So in
India; among the several meanings of the word Brahman, is that of
a person "elected by special divine favor to receive the gift of
inspiration" (O. S. T., vol. i. p. 259). The missionary Turner, who has
an eye for parallels, observes, among other just reflections, that "the
way in which the Samoan priests declared that the gods spoke by
them, strikingly reminds us of the mode by which God of old made
known his will to man by the Hebrew prophets" (N. Y., p. 349).
Although the Levites were said to be the Lord's, and to have been
hallowed by him instead of all the first-born of Israel, yet it does not
appear that they were in general endowed with any high order of
inspiration. The high-priest no doubt received communications from
God by the Urim and Thummim. Priests were also the judges whom
the Lord chose, and whose sentence in court was to be obeyed on
penalty of death; but the inspiration that was fitted to guide the
Israelites was supplied not so much by them as by the prophets, a
kind of supplementary priesthood of which the members, sometimes
priests, sometimes consecrated by other prophets, were as a rule
unconsecrated, deriving their appointment directly from Jehovah.
While, therefore, it was attained in a somewhat unusual way, the
general need of an inspired order was supplied no less perfectly
among the Israelites than elsewhere. Christian priests enjoy two
kinds of inspiration. In the first place, they are inspired specially
when assembled in general councils, to declare the truth in matters
of doctrine, or in other words, to issue supplementary revelations; in
the second place, they are inspired generally to remit or retain
offenses, their sentence being—according to the common doctrine of
Catholics and Episcopalian Protestants—always ratified in the Court
above.
Consistently with this exalted conception of their authority, priestly
orders threaten punishment to offenders, and announce the future
destiny of souls. Thus the Mexican priests warned their penitents
after confession not to fall again into sin, holding out the prospect of
the torments of hell if they should neglect the admonition (A. M.,
vol. v, p. 370). The priests in some parts of Africa know the fate of
each soul after death, and can say whether it has gone to God or to
the evil spirit (G. d. M., p. 335).
Sometimes the priests are held to be protected against injury by
the especial care of heaven. To take away a Brahman's wife is an
offense involving terrible calamities, while kings who restore her to
the Brahman enjoy "the abundance of the earth" (0. S. T., vol. i. p.
257). A king who should eat a Brahman's cow is warned in solemn
language of the dreadful consequences of such conduct, both in this
world and the next (Ibid., vol. i. p. 285). The sacred volumes declare
that "whenever a king, fancying himself mighty, seeks to devour a
Brahman, that kingdom is broken up, in which a Brahman is
oppressed" (Ibid., vol. i. p. 287). "No one who has eaten a
Brahman's cow continues to watch (i.e., to rule) over a country." The
Indian gods, moreover, "do not eat the food offered by a king who
has no ... Purohita," or domestic chaplain (A. B., p. 528). The
murder of a king who had honored and enriched the Buddhist
priesthood, is said to have entailed the destruction of the power and
strength of the kingdom of Thibet, and to have extinguished the
happiness and welfare of its people (G. O. M., p. 362). And Jewish
history affords abundant instances of the manner in which the
success or glory of the rulers was connected, by the sacerdotal class,
with the respect shown towards themselves as the ministers of
Jehovah, and with the rigor evinced in persecuting or putting down
the ministers of every other creed. That the same bias has been
betrayed by the Christian priesthood and their adherents in the
interpretation of history needs no proof.
The presence of a priest or priests at important rites is held to be
indispensable by all religions. With the negroes visited by Oldendorp,
the priest was in requisition at burials; for he only could help the
soul to get to God, and keep off the evil spirit who would seek to
obtain possession of it (G. d. M., p. 327). "For most of the
ceremonies" (in Thibet) "the performance by a Lama is considered
indispensable to its due effect; and even where this is not so, the
efficacy of the rite is increased by the Lama's assistance" (B. T., p.
247). Much the same thing may be said here. For certain
ceremonies, such as confirmation, the administration of the
sacrament, the conduct of divine service on Sundays, the priest is a
necessary official. For others, such as marriage, the majority of the
people prefer to employ him, and no doubt believe that "the efficacy
of the rite is increased" by the fact that he reads the words of the
service. Nor is this surprising when we consider that, until within
very recent times, no legitimate child could be produced in England
without the assistance of a priest.
Not only is the ecclesiastical caste required to render religious rites
acceptable to the deity, but they are often endowed with the
attribute of ability to modify the course of nature. Tanna, one of the
Fiji group, "there are rain-makers and thunder-makers, and fly and
musquito makers, and a host of other 'sacred men;'" and in another
island "there is a rain-making class of priests" (N. Y., pp. 89, 428). In
Christian countries all priests are rain-makers, the reading of prayers
for fine or wet weather being a portion of their established duties.
Naturally, the members of a class whose functions are of this high
value to the community enjoy great power, are regarded as
extremely sacred, and above all, are well rewarded. First, as to the
power they enjoy. This is accorded to them alike by savage tribes
and by cultivated Europeans. According to Brinton, all North
American tribes "appear to have been controlled" by secret societies
of priests. "Withal," says the same authority, "there was no class of
persons who so widely and deeply influenced the culture, and
shaped the destiny of the Indian tribes, as their priests" (M. N. W., p.
285). Over the negroes of the Caribbean Islands the priests and
priestesses exercised an almost unlimited dominion, being regarded
with the greatest reverence. No negro would have ventured to
transgress the arrangements made by a priest (G. d. M., p. 327). On
the coast of Guinea there exists, or existed, an institution by which
certain women became priestesses; and such women, even though
slaves before, enjoyed, on receiving this dignity, a high position and
even exercised absolute authority precisely in the quarter where it
must have been sweetest to their minds, namely, over their
husbands (D. C. G., p. 363). Writing of the Talapoins in Siam,
Gervaise says, that they are exempted from all public charges; they
salute nobody, while everybody prostrates himself before them; they
are maintained at the public expense, and so forth (H. N. S.,
troisième partie, chs. 5, 6). Of the enormous power wielded by the
clerical order in Europe, especially during the Middle Ages, it is
unnecessary to speak. The humiliation of Theodosius by Ambrose
was one of the most conspicuous, as it was one of the most
beneficent, exercises of their extensive rights.
Secondly, the sanctity attached to their persons is usually
considerable, and may often, to ambitious minds, afford a large
compensation for the loss (if such be required) of some kinds of
secular enjoyment. The African priestesses just mentioned are "as
much respected as the priest, or rather more," and call themselves
by the appellation of "God's children." When certain Buddhist
ecclesiastics were executed for rebellion in Ceylon, the utmost
astonishment was expressed by the people at the temerity of the
king in so treating "such holy and reverend persons. And none
heretofore," adds the reporter of the fact, "have been so served;
being reputed and called sons of Boddon" (H. R. C., p. 75), or
Buddha; a title exactly corresponding to that of God's children
bestowed upon the priestesses. In Siam the "Talapoins," or priests,
are of two kinds: secular, living in the world; and regular, living in
the forest without intercourse with men. There is no limit to the
veneration given by the Siamese to these last, whom they look upon
as demigods (H. N. S., troisième partie, p. 184). "The Brahman
caste," according to the sacred books of the Hindus, "is sprung from
the gods" (O. S. T., vol. i. p. 21); and the exceptional honor always
accorded to them is in harmony with this theory of their origin. The
title "Reverend," man to be revered, given to the clergy in Europe,
implies the existence, at least originally, of a similar sentiment of
respect.
Lastly, the services of priests are generally well rewarded, and
they themselves take every care to encourage liberality towards their
order. Payment is made to them either in the shape of direct
remuneration, or in that of exceptional pecuniary privileges, or in
that of exemptions from burdens. Direct remuneration may be, and
often is, given in the shape of a fixed portion abstracted from the
property of the laity for the benefit of the clergy. Such are the tithes
bestowed by law upon the latter among the Jews, the Parsees, and
the Christians. Or, direct remuneration may consist in fees for
services rendered, and in voluntary gifts. Such fees and gifts are
always represented by the priesthood as highly advantageous to the
givers. If the relatives of a deceased Parsee do not give the priest
who officiates at the funeral four new robes, the dead will appear
naked before the throne of God at the resurrection, and will be put
to shame before the whole assembly (Av., vol. ii. p. xli.; iii. p. xliv).
Moreover, those Parsees who wish to live happily, and have children
who will do them honor, must pay four priests, who during three
days and three nights perform the Yasna for them (Z. A., vol. ii. p.
564). In Thibet there is great merit in consecrating a domestic
animal to a certain god, the animal being after a certain time
"delivered to the Lamas, who may eat it" (B. T., p. 158). Giving alms
to the monks is a duty most sedulously inculcated by Buddhism, and
the Buddhist writings abound in illustrations of the advantages
derived from the practice. Similar benefits accrue to the clergy from
the custom, prevailing in Ceylon, of making offerings in the temples
for recovery from sickness; for when the Singhalese have left their
gift on the altar, "the priest presents it with all due ceremony to the
god; and after its purpose is thus served, very prudently converts it
to his own use" (A I. C., p. 205). Of the Levites it is solemnly
declared in Deuteronomy that they have "no part nor inheritance
with Israel," and that "the Lord is their inheritance." But "the Lord" is
soon seen to be a very substantial inheritance indeed. From those
that offer an ox or a sheep the priests are to receive "the shoulder,
the two cheeks, and the maw;" while the first-fruits of corn, wine,
and oil, and the first of the sheep's fleeces are to be given to them
(Deut. xviii. 1-5). Moreover, giving to the priest is declared to be the
same thing as giving to the Lord (Num. v. 8). A similar notion,
always fostered by ecclesiastical influence, has led to the vast
endowments bestowed by pious monarchs and wealthy individuals
upon the Christian clergy.
Occasionally, the priests enjoy exemptions from the taxes, or other
burdens levied upon ordinary people. A singular instance of this is
found in the privilege of the Parsee priests, of not paying their
doctors (J. A., vol. ii. p. 555). Large immunities used to be enjoyed
by ecclesiastics among ourselves, especially that of exemption from
the jurisdiction of the ordinary courts of law.
While the life of a priest often entails certain privations, he is
nevertheless frequently sustained by the thought that there is merit
in the sacrifices he makes. Thus, it is held by a Buddhist authority,
that the merit obtained by entering the spiritual order is very great;
and that his merit is immeasurable who either permits a son, a
daughter, or a slave, to enter it, or enters it himself (W. u. T., p.
107).
Priesthoods may either be hereditary or selected. The Brahmins in
India, and the Levites in Judæa, are remarkable types of hereditary,
the Buddhist and the Christian clergy of selected, sacerdotal orders.
Curious modifications of the hereditary principle were found among
the American Indians. Thus, "among the Nez Percés of Oregon," the
priestly office "was transmitted in one family from father to son and
daughter, but, always with the proviso that the children at the proper
age reported dreams of a satisfactory character." The Shawnees
"confined it to one totem:" but just as the Hebrew prophets need
not be Levites, "the greatest of their prophets ... was not a member
of this clan." The Cherokees "had one family set apart for the
priestly office," and when they "abused their birthright" and were all
massacred, another family took their places. With another tribe, the
Choctaws, the office of high-priest remained in one family, passing
from father to son; "and the very influential piaches of the Carib
tribes very generally transmitted their rank and position to their
children." A more important case of hereditary priesthood is that of
the Incas of Peru, who monopolized the highest offices both in
Church and State. "In ancient Anahuac" there existed a double
system of inheritance and selection. The priests of Huitzilopochtli,
"and perhaps a few other gods," were hereditary; and the high-
priest of that god, towards whom the whole order was required to
observe implicit obedience, was the "hereditary pontifex maximus."
But the rest were dedicated to ecclesiastical life from early
childhood, and were carefully educated for the profession (M. N. W.,
p. 281-291).
Christianity entirely abandoned the hereditary principle prevalent
among its spiritual ancestors, the Jews, and selected for its ministers
of religion those who felt, or professed to feel, an internal vocation
for this career. Doubtless this is the most effectual plan for securing
a powerful priesthood. Those who belong to it have their heart far
more thoroughly in their work than can possibly be the case when it
falls to them by right of birth. Just the most priestly-minded of the
community become priests; and a far greater air of zeal and of
sanctity attaches to an order thus maintained, than to one of which
many of the members possess no qualification but that of family,
tribe, or caste.
Nothing can be more irrational than the denunciation of priests
and priestcraft which is often indulged in by Liberal writers and
politicians. If it be true that priests have shown considerable
cunning, it is also true that the people have fostered that cunning by
credulity. And if the clergy have put forth very large pretensions to
inspiration, divine authority, and hidden knowledge, it is equally the
fact that the laity have demanded such qualifications at their hands.
An order can scarcely be blamed if it seeks to satisfy the claims
which the popular religion makes upon it. Enlightenment from
heaven has in all ages and countries been positively demanded.
Sacrifices have always had to be made; and when it was found more
convenient to delegate the function of offering them to a class apart,
that class naturally established ritualistic rules of their own, and as
naturally asserted (and no doubt believed) that all sacrifices not
offered according to these rules were displeasing to God. And they
could not profess the inspiration which they were expected to
manifest without also requiring obedience to divine commands.
Priests are, in fact, the mere outcome of religious belief as it
commonly exists; and partly minister to that belief by deliberate
trickery, partly share it themselves, and honestly accept the
accredited view of their own lofty commission.
Divine inspiration leads by a very logical process to infallibility. A
Church founded on revelation needs living teachers to preserve the
correct interpretation of that revelation. Without such living
teachers, revealed truth itself becomes (as it always has done
among Protestants) an occasion of discord and of schism. But the
interpreters of revelation in their turn must be able to appeal to
some sole and supreme authority, as the arbiter between varying
opinions, and the guide to be followed through all the intricacies of
dogma. Nowhere can such an arbiter and such a guide be found
more naturally than in the head of the Church himself. If God speaks
to mankind through his Church, it is only a logical conclusion that
within that Church there must be one through whom he speaks with
absolute certainty, and whose prophetic voice must therefore be
infallible. There cannot be a more consistent application of the
general theory of priesthood; and there is no more fatal sign for the
prospects of Christianity than the inability of many of its supporters
to accept so useful a doctrine, and the thoughtless indignation of
some among them against the single Church which has had the
wisdom to proclaim it.
CHAPTER V.
HOLY PERSONS.
Although for the ordinary and regular communications from the
divine Being to man the established priesthoods might suffice, yet
occasions arise when there is need of a plenipotentiary with higher
authority and more extensive powers. What is required of these
exceptional ambassadors is not merely to repeat the doctrines of the
old religion, but to establish a new one. In other words, they are the
original founders of the great religions of the world. Of such
founders there is but a very limited number.
Beginning with China, and proceeding from East to West, we find
six:—
Section I.—Confucius.[11]
The life of the prophet of China is not eventful. It has neither the
charm of philosophic placidity and retirement from the world which
belongs to that of Laò-tsé, nor the romantic interest of the more
varied careers of Sakyamuni, Christ, or Mahomet. For Confucius,
though a philosopher, did not object, indeed rather desired, to take
some share in the government of his country, but his wishes
received very little gratification. Rulers refused to acquiesce in his
principles of administration, and he was compelled to rely for their
propagation mainly on the oral instruction imparted to his disciples.
His life, therefore, bears to some extent the aspect of a failure,
though for this appearance he himself is not to blame. Another
cause, which somewhat diminishes the interest we might otherwise
take in him, is his excessive attention to proprieties, ceremonies, and
rites. We cannot but feel that a truly great man, even in China,
would have emancipated himself from the bondage of such trifles.
Nevertheless, after all deductions are made, enough remains to
render the career and character of Confucius deserving of attention,
and in many respects of admiration.
Descended from a family which had formerly been powerful and
noble, but was now in comparatively modest circumstances, he was
born in b.c. 551, his father's name being Shuh-leang Heih, and his
mother's Ching-Tsae. The legends related of his nativity I pass over
for the present. His father, who was an old man when he was born,
died when the child was in his third year; and his mother in b.c. 528.
At nineteen, Confucius was married; and at twenty-one he came
forward as a teacher. Disciples attached themselves to him, and
during his long career as a philosopher, we find him constantly
attended by some faithful friends, who receive all he says with
unbounded deference, and propose questions for his decision as to
an authority against whom there can be no appeal. The maxims of
Confucius did not refer solely to ethics or to religion; they bore
largely upon the art of government, and he was desirous if possible
of putting them in actual practice in the administration of public
affairs. China, however, was in a state of great confusion in his days;
there were rebellions and wars in progress: and the character of the
rulers from whom he might have obtained employment was such,
that he could not, consistently with the high standard of honor on
which he always acted, accept favors at their hands. One of them
proposed to grant him a town with its revenues; but Confucius said:
"A superior man will only receive reward for services which he has
done. I have given advice to the duke Ting (see below), but he has
not obeyed it, and now he would endow me with this place! very far
is he from understanding me" (C. C., vol. i., Prolegomena, p. 68). In
the year 500 the means were at length put within his reach of
carrying his views into practice. He was made "chief magistrate of a
town" in the state of Loo; and this first appointment was followed by
that of "assistant-superintendent of works," and subsequently by
that of "minister of crime." In this office he is said to have put an
end to crime altogether; but Dr. Legge rightly warns us against
confiding in the "indiscriminating eulogies" of his disciples. A more
substantial service attributed to him is that of procuring the
dismantlement of two fortified towns which were the refuge of
dangerous and warlike chiefs. But his reforming government was
brought to an end after a few years by the weakness of his
sovereign, duke Ting, who was captivated by a present of eighty
beautiful and accomplished girls, and one hundred and twenty
horses, from a neighboring State. Engrossed by this present, the
duke neglected public affairs, and the philosopher felt bound to
resign.
We need not follow him during the long wanderings through
various parts of China which followed upon this disappointment.
After traveling from State to State for many years, he returned in his
sixty-ninth year to Loo, but not to office. In the year 478 his sad and
troubled life was closed by death.
Our information respecting the character of Confucius is ample.
From the book which Dr. Legge has entitled the "Confucian
Analects," a collection of his sayings made (as he believes) by the
disciples of his disciples, we obtain the most minute particulars both
as to his personal habits and as to the nature of his teaching. The
impression derived from these accounts is that of a gentle, virtuous,
benevolent, and eminently honorable man; a man who, like
Socrates, was indifferent to the reward received for his tuition,
though not refusing payment altogether; who would never sacrifice
a single principle for the sake of his individual advantage; yet who
was anxious, if possible, to benefit the kingdom by the
establishment of an administration penetrated with those ethical
maxims which he conceived to be all-important. Yet, irreproachable
as his moral character was, there is about him a deficiency of that
bold originality which has characterized the greatest prophets of
other nations. Sakyamuni revolted against the restrictions of caste
which dominated all minds in India. Jesus boldly claimed for moral
conduct a rank far superior to that of every ceremonial obligation,
even those which were held the most sacred by his countrymen.
Mahomet, morally far below the Chinese sage, evinced a far more
independent genius by his attack on the prevalent idolatry of Mecca.
Confucius did nothing of this kind. His was a mind which looked back
longingly to antiquity, and imagined that it discovered in the ancient
rulers and the ancient modes of action, the models of perfection
which all later times should strive to follow. Nor was this all. He was
so profoundly under the influence of Chinese ways of thinking, as to
attach an almost ludicrous importance to a precise conformity to
certain rules of propriety, and to regard the exactitude with which
ceremonies were performed as matter of the highest concern. In
fact, he could not emancipate himself from the traditions of his
country; and his principles would have resulted rather in making his
followers perfect Chinamen than perfect men.
A far more serious charge is indeed brought against him by Dr.
Legge—that of insincerity (C. C., vol. i.—Prolegomena— p. 101). I
hesitate to impugn the opinion of so competent a scholar; yet the
evidence he has produced does not seem to me sufficient to sustain
the indictment. Granting that he gave an unwelcome visitor the
excuse of sickness, which was untrue, still, as we are ignorant of the
reasons which led him to decline seeing the person in question, we
cannot estimate the force of the motives that induced him to put
forward a plea in conformity with the polite customs of his country.
It does not appear, moreover, that he practiced an intentional deceit.
And though on one occasion he may have violated an oath extorted
by rebels who had him in their power, therein acting wrongly (as I
think), it is always an open question how far promises made under
such circumstances are binding on the conscience. Whatever
failings, however, it may be necessary to admit, there can be no
question of the preëminent purity alike of his life and doctrine. His is
a character which, be its imperfections what they may, we cannot
help loving; and there have been few, indeed, who would not have
been benefited by the attempt to reach even that standard of virtue
which he held up to the admiration of his disciples.
A few quotations from the works in which his words and actions
are preserved, will illustrate these remarks. In the tenth Book of the
Analects (C. C., vol. i. p. 91-100), his manners, his garments, his
mode of behavior under various circumstances, are elaborately
described. There are not many personages in history of whom we
have so minute a knowledge. We learn that "in his village" he
"looked simple and sincere, and as if he were not able to speak." His
reverence for his superiors seems to have been profound. "When the
prince was present, his manner displayed respectful uneasiness; it
was grave, but self-possessed." When going to an audience of the
prince, "he ascended the dais, holding up his robe with both his
hands, and his body bent; holding in his breath also, as if he dared
not breathe. When he came out from the audience (the italics, here
and elsewhere, are in Legge), as soon as he had descended one
step, he began to relax his countenance, and had a satisfied look.
When he had got to the bottom of the steps, he advanced rapidly to
his place, with his arms like wings, and on occupying it, his manner
still showed respectful uneasiness." He was rather particular about
his food, rejecting meat unless "cut properly," and with "its proper
sauce."
Whatever he might be eating, however, "he would offer a little of
it in sacrifice." "When any of his friends died, if the deceased had no
relations who could be depended on for the necessary offices, he
would say, 'I will bury him.'" "In bed, he did not lie like a corpse."
And it is satisfactory to learn of one who was such a respecter of
formalities, that "at home he did not put on any formal deportment."
Notwithstanding this, he does not appear to have been on very
intimate terms with his son, to whom he is reported to have said
that unless he learned "the odes" he would not be fit to converse
with; and that unless he learned "the rules of propriety" his
character could not be established. The disciple, who was informed
by the son himself that he had never heard from his father any other
special doctrine, was probably right in concluding that "the superior
man maintains a distant reserve towards his son" (Lun Yu, xvi. 13).
But with his beloved disciples Confucius was on terms of
affectionate intimacy which does not seem to have been marred by
"the rules of propriety." For the death of one of them at least he
mourned so bitterly as to draw down upon himself the expostulation
of those who remained (Ibid., xi. 9). The picture of the Master,
accompanied at all times by his faithful friends, who hang upon his
lips, and eagerly gather up his every utterance, is on the whole a
pleasant one. "Do you think, my disciples," he asks, "that I have any
concealments? I conceal nothing from you. There is nothing that I
do which is not shown to you, my disciples;—that is my way" (Ibid.,
vii. 23). And with all the homage he is constantly receiving,
Confucius is never arrogant. He never speaks like a man who wishes
to enforce his views in an authoritative style on others; never
threatens punishment either here or hereafter to those who dissent
from him.
"There were four things," his disciples tell us, "from which the
Master was entirely free. He had no foregone conclusions, no
arbitrary predeterminations, no obstinacy, and no egoism" (Lun Yu,
ix. 4). And his conduct is entirely in harmony with this statement. It
is as a learner, rather than a teacher, that he regards himself. "The
Master said, 'When I walk along with two others, they may serve me
as my teachers. I will select their good qualities, and follow them;
their bad qualities, and avoid them'" (Ibid., vii. 21). Or again: "The
sage and the man of perfect virtue, how dare I rank myself with
them? It may simply be said of me, that I strive to become such
without satiety, and teach others without weariness" (Ibid., vii. 33).
"In letters I am perhaps equal to other men, but the character of the
superior man, carrying out in his conduct what he professes, is what
I have not yet attained to" (Ibid., vii. 32).
Notwithstanding this modesty, there are traces—few indeed, but
not obscure—of that conviction of a peculiar mission which all great
prophets have entertained, and without which even Confucius would
scarcely have been ranked among them. The most distinct of these
is the following passage:—"The Master was put in fear in K'wang. He
said, 'After the death of king Wan, was not the cause of truth lodged
here in me? If Heaven had wished to let this cause of truth perish,
then I, a future mortal, should not have got such a relation to that
cause. While Heaven does not let the cause of truth perish, what can
the people of K'wang do to me?'" (Lun Yu, ix. 5). These remarkable
words would be conclusive, if they stood alone. But they do not
stand alone. In another place we find him thus lamenting the pain of
being generally misunderstood, which is apt to be so keenly felt by
exalted and sensitive natures. "The Master said, 'Alas! there is no
one that knows me.' Tse-kung said, 'What do you mean by thus
saying—that no one knows you?' The Master replied, 'I do not
murmur against Heaven. I do not grumble against men. My studies
lie low, and my penetration rises high. But there is Heaven;—that
knows me!'" (Ibid., xiv. 37). Men might reject his labors and despise
his teaching, but he would complain neither against Heaven nor
against them. If he was not known by men, he was known by
Heaven, and that was enough. On another occasion, "the Master
said, 'Heaven produced the virtue that is in me, Hwan T'uy—what
can he do to me?'"[12]
These passages are the more remarkable, because Confucius was
not in the ordinary sense a believer in God. That is, he never,
throughout his instructions, says a single word implying
acknowledgment of a personal Deity; a Creator of the world; a Being
whom we are bound to worship as the author of our lives and the
ruler of our destinies. He has even been suspected of omitting from
his edition of the Shoo-king and the She-king everything that could
support the comparatively theistic doctrine of his contemporary, Laò-
tsé (By V. von Strauss, T. T. K., p. xxxviii). That his high respect for
antiquity would have permitted such a procedure is, to say the least,
very improbable; and Dr. Legge is no doubt right in acquitting him of
any willful suppression of, or addition to, the ancient articles of
Chinese faith (C. C., vol. i. Prolegomena, p. 99). For our present
purpose it is enough to note that he avoided all discussion on the
higher problems of religion; and contented himself with speaking,
and that but rarely, of a vague, and hardly personal Being which he
called Heaven. Thus, in a book attributed (perhaps erroneously) to
his grandson, he is reported as saying, "Sincerity is the very way of
Heaven" (Chung Yung, xx. 18). Of king Woo and the duke of Chow,
two ancient worthies, he says: "By the ceremonies of the sacrifices
to Heaven and Earth they served God" (where he seems to
distinguish between Heaven and God, whom I believe he never
mentions but here); "and by the ceremonies of the ancestral temple
they sacrificed to their ancestors. He who understands the
ceremonies of the sacrifices to Heaven and Earth, and the meaning
of the several sacrifices to ancestors, would find the government of
a kingdom as easy as to look into his palm" (Ibid., xix. 6).
Elsewhere, he remarks that "he who is greatly virtuous will be sure
to receive the appointment of heaven" (Ibid., xvii. 5). Again:
"Heaven, in the production of things, is surely bountiful to them,
according to their qualities" (Ibid., xvii. 3). Nothing very definite can
be gathered from these passages, as to his opinions concerning the
nature of the power of which he spoke thus obscurely. Yet it would
be rash to find fault with him on that account. His language may
have been, and in all probability was, the correct expression of his
feelings. His mind was not of the dogmatic type; and if he does not
teach his disciples any very intelligible principles concerning spiritual
matters, it is simply because he is honestly conscious of having none
to teach.
There are, indeed, indications which might be taken to imply the
existence of an esoteric doctrine. "To those," he says, "whose talents
are above mediocrity, the highest subjects may be announced. To
those who are below mediocrity, the highest subjects may not be
announced" (Lun Yu, vi. 19). We are further told that Tsze-kung
said, "the Master's personal displays of his principles, and ordinary
descriptions of them may be heard. His discourses about man's
nature, and the way of Heaven, cannot be heard" (Ibid., v. 12). This
last passage appears to mean that they were not open to the
indiscriminate multitude, nor perhaps to all of the disciples. But we
may reasonably suppose that the intimate friends who recorded his
sayings were considered by him to be above mediocrity, and were
the depositaries of all he had to tell them on religious matters.
Yet this, little as it was, may not always have been rightly
understood. Once, for example, he says to a disciple, "Sin, my
doctrine is that of an all-pervading unity." This is interpreted by the
disciple (in the Master's absence) to mean only that his doctrine is
"to be true to the principles of our nature, and the benevolent
exercise of them to others" (Ibid., iv. 15). I can hardly believe that
Confucius would have taught so simple a lesson under so obscure a
figure; and it is possible that the reserve that he habitually practiced
with regard to his religious faith may have prevented a fuller
explanation. "The subjects on which the Master did not talk were—
extraordinary things, feats of strength, disorder, and spiritual beings"
(Lun Yu, vii. 20). And although, in the Doctrine of the Mean (a work
which is perhaps less authentic than the Analects) we find him
discoursing freely on spiritual beings, which, he says, "abundantly
display the powers that belong to them" (Chung Yung, 16), there are
portions of the Analects which confirm the impression that he did
not readily venture into these extra-mundane regions. Heaven itself,
he once pointed out to an over-curious disciple, preserves an
unbroken silence (Lun Yu, xvii. 19). Interrogated "about serving the
spirits of the dead," he gave this striking answer: "While you are not
able to serve men, how can you serve their spirits?" And when "Ke
Loo added, 'I venture to ask about death?' he was answered, 'While
you do not know life, how can you know about death?'" (Ibid., xi.
11). Another instance of a similar reticence is presented by his
conduct during an illness. "The Master being very sick, Tsze-Loo
asked leave to pray for him. He said, 'May such a thing be done?'
Tsze-Loo replied, 'It may. In the prayers it is said, Prayer has been
made to the spirits of the upper and lower worlds.' The Master said,
'My praying has been for a long time'" (Ibid., vii. 34). I am unable to
see "the satisfaction of Confucius with himself," which Dr. Legge
discovers in this reply. To me it appears simply to indicate the devout
attitude of his mind, which is evinced by many other passages in his
conversation. In short, though we may complain of the indefinite
character of the faith he taught, and wish that he had expressed
himself more fully, there can scarcely be a doubt that Confucius had
a deeply religious mind; and that he looked with awe and reverence
upon that power which he called by the name of "Heaven," which
controlled the progress of events, and would not suffer the cause of
truth to perish altogether.
It is true, however, that he confined himself chiefly, and indeed
almost entirely, to moral teaching. His main object undoubtedly was
to inculcate upon his friends, and if possible to introduce among the
people at large, those great principles of ethics which he thought
would restore the virtue and well-being of ancient times. Those
principles are aptly summarized in the following verse: "The duties
of universal obligation are five, and the virtues wherewith they are
practiced are three. The duties are those between sovereign and
minister, between father and son, between husband and wife,
between elder brother and younger, and those belonging to the
intercourse of friends. Those five are the duties of universal
obligation. Knowledge, magnanimity, and energy, these three are the
virtues universally binding; and the means by which they carry the
duties into practice is singleness" (Chung Yung, xx. 7). In the
Analects, "Gravity, generosity of soul, sincerity, earnestness, and
kindness," are said to constitute perfect virtue (Lun Yu, xvii. 6).
It is as an earnest and devoted teacher, both by example and by
precept, of these and other virtues, that Confucius must be judged.
And in order to assist the formation of such a judgment, let us take
his doctrine of Reciprocity, to which I shall return in another place.
"Tsze-kung asked, saying, 'Is there one word which may serve as a
rule of practice for all one's life?' The Master said, 'Is not Reciprocity
such a word? What you do not want done to yourself, do not do to
others'" (Lun Yu, xv. 23). On a kindred topic he thus delivered his
opinion: "Some one said, 'What do you say concerning the principle
that injury should be recompensed with kindness?' The Master said,
'With what, then, will you recompense kindness? Recompense injury
with justice, and recompense kindness with kindness'" (Ibid., xiv.
26).
If in the above sentence he may be thought to fall short of the
highest elevation, there are some among his apothegms, the point
and excellence of which have, perhaps, never been surpassed. Take
for instance these:—"The superior man is catholic and no partizan.
The mean man is a partizan and not catholic." "Learning without
thought is labor lost; thought without learning is perilous" (Ibid., ii.
14, 15). Or these:—"I will not be afflicted at men's not knowing me;
I will be afflicted that I do not know men" (Ibid., i. 16). "A scholar,
whose mind is set on truth, and who is ashamed of bad clothes and
bad food, is not fit to be discoursed with" (Ibid., iv. 9). "The superior
man is affable, but not adulatory; the mean is adulatory, but not
affable" (Ibid., xiii. 23). "Where the solid qualities are in excess of
accomplishments, we have rusticity; where the accomplishments are
in excess of the solid qualities, we have the manners of a clerk.
When the accomplishments and solid qualities are equally blended,
we then have the man of complete virtue" (Lun Yu, vi. 16). Lastly, I
will quote one which, with a slight change of terms, might have
emanated from the pen of Thomas Carlyle: "There are three things
of which the superior man stands in awe:—He stands in awe of the
ordinances of heaven; he stands in awe of great men; he stands in
awe of the words of sages. The mean man does not know the
ordinances of heaven, and consequently does not stand in awe of
them. He is disrespectful to great men. He makes sport of the words
of sages" (Ibid., xvi. 8).
These, and various other recorded sayings, go far to explain, if not
to justify, the unbounded admiration of his faithful follower, Tsze-
kung: "Our Master cannot be attained to, just in the same way as
the heavens cannot be gone up to by the steps of a stair. Were our
Master in the position of the prince of a State, or the chief of a
family, we should find verified the description which has been given
of a sage's rule:—he would plant the people, and forthwith they
would be established; he would lead them on, and forthwith they
would follow him; he would make them happy, and forthwith
multitudes would resort to his dominions; he would stimulate them,
and forthwith they would be harmonious. While he lived, he would
be glorious. When he died, he would be bitterly lamented. How is it
possible for him to be attained to?" (Ibid., xix. 25.)
Section II.—Laò-tsé.[13]
ebookgate.com