Professional Documents
Culture Documents
Fundamentals Of Machine Learning For Predictive Data Analytics Algorithms full chapter pdf docx
Fundamentals Of Machine Learning For Predictive Data Analytics Algorithms full chapter pdf docx
https://ebookmass.com/product/introduction-to-algorithms-for-
data-mining-and-machine-learning-yang/
https://ebookmass.com/product/introduction-to-algorithms-for-
data-mining-and-machine-learning-xin-she-yang/
https://ebookmass.com/product/machine-learning-for-signal-
processing-data-science-algorithms-and-computational-statistics-
max-a-little/
https://ebookmass.com/product/big-data-analytics-introduction-to-
hadoop-spark-and-machine-learning-raj-kamal/
Machine Learning with Python for Everyone (Addison
Wesley Data & Analytics Series) 1st Edition, (Ebook
PDF)
https://ebookmass.com/product/machine-learning-with-python-for-
everyone-addison-wesley-data-analytics-series-1st-edition-ebook-
pdf/
https://ebookmass.com/product/demystifying-big-data-machine-
learning-and-deep-learning-for-healthcare-analytics-pradeep-n-
sandeep-kautish-sheng-lung-peng/
https://ebookmass.com/product/ebook-pdf-data-mining-and-
predictive-analytics-2nd-edition/
https://ebookmass.com/product/advances-in-subsurface-data-
analytics-traditional-and-physics-based-machine-learning-
shuvajit-bhattacharya/
https://ebookmass.com/product/machine-learning-for-biometrics-
concepts-algorithms-and-applications-cognitive-data-science-in-
sustainable-computing-partha-pratim-sarangi/
4.3 Standard Approach: The ID3 Algorithm
4.3.1 A Worked Example: Predicting Vegetation Distributions
4.4 Extensions and Variations
4.4.1 Alternative Feature Selection and Impurity Metrics
4.4.2 Handling Continuous Descriptive Features
4.4.3 Predicting Continuous Targets
4.4.4 Tree Pruning
4.4.5 Model Ensembles
4.5 Summary
4.6 Further Reading
4.7 Exercises
5 Similarity-based Learning
5.1 Big Idea
5.2 Fundamentals
5.2.1 Feature Space
5.2.2 Measuring Similarity Using Distance Metrics
5.3 Standard Approach: The Nearest Neighbor Algorithm
5.3.1 A Worked Example
5.4 Extensions and Variations
5.4.1 Handling Noisy Data
5.4.2 Efficient Memory Search
5.4.3 Data Normalization
5.4.4 Predicting Continuous Targets
5.4.5 Other Measures of Similarity
5.4.6 Feature Selection
5.5 Summary
5.6 Further Reading
5.7 Epilogue
5.8 Exercises
6 Probability-based Learning
6.1 Big Idea
6.2 Fundamentals
6.2.1 Bayes’ Theorem
6.2.2 Bayesian Prediction
6.2.3 Conditional Independence and Factorization
6.3 Standard Approach: The Naive Bayes Model
6.3.1 A Worked Example
8
6.4 Extensions and Variations
6.4.1 Smoothing
6.4.2 Continuous Features: Probability Density Functions
6.4.3 Continuous Features: Binning
6.4.4 Bayesian Networks
6.5 Summary
6.6 Further Reading
6.7 Exercises
7 Error-based Learning
7.1 Big Idea
7.2 Fundamentals
7.2.1 Simple Linear Regression
7.2.2 Measuring Error
7.2.3 Error Surfaces
7.3 Standard Approach: Multivariable Linear Regression with Gradient Descent
7.3.1 Multivariable Linear Regression
7.3.2 Gradient Descent
7.3.3 Choosing Learning Rates and Initial Weights
7.3.4 A Worked Example
7.4 Extensions and Variations
7.4.1 Interpreting Multivariable Linear Regression Models
7.4.2 Setting the Learning Rate Using Weight Decay
7.4.3 Handling Categorical Descriptive Features
7.4.4 Handling Categorical Target Features: Logistic Regression
7.4.5 Modeling Non-linear Relationships
7.4.6 Multinomial Logistic Regression
7.4.7 Support Vector Machines
7.5 Summary
7.6 Further Reading
7.7 Exercises
8 Evaluation
8.1 Big Idea
8.2 Fundamentals
8.3 Standard Approach: Misclassification Rate on a Hold-out Test Set
8.4 Extensions and Variations
8.4.1 Designing Evaluation Experiments
8.4.2 Performance Measures: Categorical Targets
9
8.4.3 Performance Measures: Prediction Scores
8.4.4 Performance Measures: Multinomial Targets
8.4.5 Performance Measures: Continuous Targets
8.4.6 Evaluating Models after Deployment
8.5 Summary
8.6 Further Reading
8.7 Exercises
10
A.2 Descriptive Statistics for Categorical Features
A.3 Populations and Samples
A.4 Data Visualization
A.4.1 Bar Plots
A.4.2 Histograms
A.4.3 Box Plots
Bibliography
List of Figures
List of Tables
Index
11
Preface
In writing this book our target was to deliver an accessible, introductory text on the
fundamentals of machine learning, and the ways that machine learning is used in practice
to solve predictive data analytics problems in business, science, and other organizational
contexts. As such, the book goes beyond the standard topics covered in machine learning
books and also covers the lifecycle of a predictive analytics project, data preparation, feature
design, and model deployment.
The book is intended for use on machine learning, data mining, data analytics, or
artificial intelligence modules on undergraduate and post-graduate computer science,
natural and social science, engineering, and business courses. The fact that the book
provides case studies illustrating the application of machine learning within the industry
context of data analytics also makes it a suitable text for practitioners looking for an
introduction to the field and as a text book for industry training courses in these areas.
The design of the book is informed by our many years of experience in teaching
machine learning, and the approach and material in the book has been developed and road-
tested in the classroom. In writing this book we have adopted the following guiding
principles to make the material accessible:
1. Explain the most important and popular algorithms clearly, rather than overview the
full breadth of machine learning. As teachers we believe that giving a student deep
knowledge of the core concepts underpinning a field provides them with a solid basis
from which they can explore the field themselves. This sharper focus allows us to
spend more time introducing, explaining, illustrating and contextualizing the
algorithms that are fundamental to the field, and their uses.
2. Informally explain what an algorithm is trying to do before presenting the technical
formal description of how it does it. Providing this informal introduction to each
topic gives students a solid basis from which to attack the more technical material.
Our experience with teaching this material to mixed audiences of undergraduates,
post-graduates and professionals has shown that these informal introductions enable
students to easily access the topic.
3. Provide complete worked examples. In this book we have presented complete
workings for all examples, because this enables the reader to check their
understanding in detail.
12
Structure of the Book
When teaching a technical topic, it is important to show the application of the concepts
discussed to real-life problems. For this reason, we present machine learning within the
context of predictive data analytics, an important and growing industry application of
machine learning. The link between machine learning and data analytics runs through
every chapter in the book. In Chapter 1 we introduce machine learning and explain the role
it has within a standard data analytics project lifecycle. In Chapter 2 we provide a
framework for designing and constructing a predictive analytics solution, based on machine
learning, that meets a business need. All machine-learning algorithms assume a dataset is
available for training, and in Chapter 3 we explain how to design, construct, and quality
check a dataset before using it to a build prediction model.
Chapters 4, 5, 6, and 7 are the main machine learning chapters in the book. Each of
these chapters presents a different approach to machine learning: Chapter 4, learning
through information gathering; Chapter 5, learning through analogy; Chapter 6, learning
by predicting probable outcomes; and Chapter 7, learning by searching for solutions that
minimize error. All of these chapters follow the same two part structure
Part 1 presents an informal introduction to the material presented in the chapter,
followed by a detailed explanation of the fundamental technical concepts required to
understand the material, and then a standard machine learning algorithm used in
that learning approach is presented, along with a detailed worked example.
Part 2 of each chapter explains different ways that the standard algorithm can be
extended and well-known variations on the algorithm.
The motivation for structuring these technical chapters in two parts is that it provides a
natural break in the chapter material. As a result, a topic can be included in a course by just
covering Part 1 of a chapter (‘Big Idea’, fundamentals, standard algorithm and worked
example); and then—time permitting—the coverage of the topic can be extended to some
or all of the material in Part 2. Chapter 8 explains how to evaluate the performance of
prediction models, and presents a range of different evaluation metrics. This chapter also
adopts the two part structure of standard approach followed by extensions and variations.
Throughout these technical chapters the link to the broader predictive analytics context is
maintained through detailed and complete real-world examples, along with references to
the datasets and/or papers that the examples are based on.
The link between the broader business context and machine learning is most clearly
seen in the case studies presented in Chapters 9 (predicting customer churn) and 10 (galaxy
classification). In particular, these case studies highlight how a range of issues and tasks
beyond model building—such as business understanding, problem definition, data
gathering and preparation, and communication of insight—are crucial to the success of a
predictive analytics project. Finally, Chapter 11 discusses a range of fundamental topics in
machine learning and also highlights that the selection of an appropriate machine learning
approach for a given task involves factors beyond model accuracy—we must also match the
characteristics of the model to the needs of the business.
13
How to Use this Book
Through our years of teaching this material we have developed an understanding of what is
a reasonable amount of material to cover in a one-semester introductory module and on
two-semester more advanced modules. To facilitate the use of the book in these different
contexts, the book has been designed to be modular—with very few dependencies between
chapters. As a result, a lecturer using this book can plan their course by simply selecting the
sections of the book they wish to cover and not worry about the dependencies between the
sections. When presented in class, the material in Chapters 1, 2, 9, 10 and 11 typically take
two to three lecture hours to cover; and the material in Chapters 3, 4, 5, 6, 7, 8 normally
take four to six lecture hours to cover.
In Table 1 we have listed a number of suggested course plans targeting different
contexts. All of these courses include Chapter 1 (Machine Learning for Predictive Data
Analytics) and Chapter 11 (The Art of Machine Learning for Predictive Data Analytics).
The first course listed (M.L. short deep) is designed to be a one-semester machine learning
course with a focus on giving the students a deep understanding of two approaches to
machine learning, along with an understanding of the correct methodology to use when
evaluating a machine learning model. In our suggested course we have chosen to cover all of
Chapters 4 (Information-based Learning) and 7 (Error-based Learning). However, Chapter
5 (Similarity-based Learning) and/or 6 (Probability-based Learning) could be used instead.
The M.L. short deep is also an ideal course plan for a short (1 week) professional training
course. The second course (M.L. short broad) is another one-semester machine learning
course. Here, however, the focus is on covering a range of machine learning approaches
and, again, evaluation is covered in detail. For a longer two-semester machine learning
course (M.L. long) we suggest covering data preparation (Section 3.6), all the machine
learning chapters, and the evaluation chapter.
There are contexts, however, where the focus of a course is not primarily on machine
learning. We also present to course paths that focus on the context of predictive data
analytics. The course P.D.A short defines a one-semester course. This course gives students
an introduction to predictive data analytics, a solid understanding of how machine learning
solutions should be designed to meet a business need, insight into how prediction models
work and should be evaluated, and includes one of the case studies. The P.D.A short is also
an ideal course plan for a short (1 week) professional training course. If there is more time
available then P.D.A long expands on the P.D.A. short course so that students gain a deeper
and broader understanding of machine learning, and also includes the second case study.
14
Online Resources
The website:
www.machinelearningbook.com
provides access to a wide range of material that supports the book. This material includes:
lecture slides, the complete set of images used in the book, video lectures based on the
book, code samples, and an errata list (hopefully short). Worked solutions for all end of
chapter exercises are available. For questions that are not marked with an ✻ a solutions
manual is available from the book website. Solutions for those questions that are marked
with an ✻ are contained in an instructors manual available from MIT Press on request.
15
Acknowledgements
We knew when we began writing this book that it would take a huge amount of work to
complete. We underestimated, however, the amount of support we would need and receive
from other people. We are delighted to take this opportunity to acknowledge these
contributions to the book. We would like to thank our colleagues and students for the help
and patience they extended to us over the last few years. We would also like to thank the
staff at MIT Press, particularly Marie Lufkin Lee, and our copy editor Melanie Mallon. We
are also very grateful to the two anonymous reviewers who provided insightful and helpful
comments on an early draft of the manuscript. Each of us has also been fortunate to have
the support of close friends and family which was invaluable in completing the book.
John would like to thank Robert Ross, Simon Dobnik, Josef van Genabith, Alan Mc
Donnell, Lorraine Byrne, and all his friends from basketball. He would also like to thank
his parents (John and Betty) and his sisters, without their support he would not have gotten
past long-division and basic spelling. Finally, he would like to acknowledge and thank
Aphra, this book would not have been started without her inspiration and would not have
been completed without her patience.
Brian would like to thank his parents (Liam and Roisín) and family for all of their
support, and acknowledge Pádraig Cunningham and Sarah Jane Delany who opened his
eyes to machine learning.
Aoife would like to thank her parents (Michael and Mairead) and family, and all of the
people who have supported her through her career—especially the much valued customers
of The Analytics Store who give her data to play with!
Table 1
Suggested course syllabi.
16
17
Notation
In this section we provide a short overview of the technical notation used throughout this
book.
18
Notational Conventions
Throughout this book we discuss the use of machine learning algorithms to train prediction
models based on datasets. The following list explains the notation used to refer to different
elements in a dataset. Figure 1[xix] illustrates the key notation using a simple sample dataset.
Figure 1
How the notation used in the book relates to the elements of a dataset.
19
Datasets
The symbol denotes a dataset.
A dataset is composed of n instances, (d1, t1) to (dn, tn), where d is a set of m
descriptive features and t is a target feature.
A subset of a dataset is denoted using the symbol with a subscript to indicate the
definition of the subset. For example, f=l represents the subset of instances from the
dataset where the feature f has the value l.
20
Vectors of Features
Lowercase boldface letters refer to a vector of features. For example, d denotes a
vector of descriptive features for an instance in a dataset, and q denotes a vector of
descriptive features in a query.
21
Instances
Subscripts are used to index into a list of instances.
xi refers to the ith instance in a dataset.
di refers to the descriptive features of the ith instance in a dataset.
22
Individual Features
Lowercase letters represent a single feature (e.g., f, a, b, c …).
Square brackets [] are used to index into a vector of features (e.g., d [j] denotes the
value of the jth feature in the vector d).
t represents the target feature.
23
Individual Features in a Particular Instance
di [j] denotes the value of the jth descriptive feature of the ith instance in a dataset.
ai refers to the value for feature a of the ith instance in a dataset.
ti refers to the value of the target feature of the ith instance in a dataset
24
Indexes
Typically i is used to index instances in a dataset, and j is used to index features in a
vector.
25
Models
We use to refer to a model.
w refers to a model parameterized by a parameter vector w.
w(d) refers to the output of a model parameterized by parameters w for
descriptive features d.
26
Set Size
Vertical bars | | refer to counts of occurrences (e.g., |a = l| represents the number of
times that a = l occurs in a dataset).
27
Feature Names and Feature Values
We use a specific typography when referring to a feature by name in the text (e.g.,
POSITION, CREDITRATING, and CLAIM AMOUNT).
For categorical features, we use a specific typography to indicate the levels in the
domain of the feature when referring to a feature by name in the text (e.g., center, aa,
and soft tissue).
28
Notational Conventions for Probabilities
For clarity there are some extra notational conventions used in Chapter 6[247] on
probability.
29
Generic Events
Uppercase letters denote generic events where an unspecified feature (or set of
features) is assigned a value (or set of values). Typically we use letters from the end of
the alphabet—e.g., X, Y, Z—for this purpose.
We use subscripts on uppercase letters to iterate over events. So, Σi P(Xi) should be
interpreted as summing over the set of events that are a complete assignment to the
features in X (i.e., all the possible combinations of value assignments to the features in
X).
30
Named Features
Features explicitly named in the text are denoted by the uppercase initial letters of
their names. For example, a feature named MENINGITIS is denoted by M.
31
Events Involving Binary Features
Where a named feature is binary, we use the lowercase initial letter of the name of the
feature to denote the event where the feature is true and the lowercase initial letter
preceded by the ¬ symbol to denote the event where it is false. So, m will represent
the event MENINGITIS = true, and ¬m will denote MENINGITIS = false.
32
Events Involving Non-Binary Features
We use lowercase letters with subscripts to iterate across values in the domain of a
feature.
So Σi P(mi) = P(m) + P(¬m).
In situations where a letter, for example X, denotes a joint event, then Σi P(Xi) should
be interpreted as summing over all the possible combinations of value assignments to
the features in X.
33
Probability of an Event
The probability that the feature f is equal to the value v is written P(f = v).
34
Probability Distributions
We use bold notation P() to distinguish a probability distribution from a probability
mass function P().
We use the convention that the first element in a probability distribution vector is
the probability for a true value. For example, the probability distribution for a binary
feature, A, with a probability of 0.4 of being true would be written as P(A) =< 0.4,
0.6 >.
35
Another random document with
no related content on Scribd:
Lauderdale having succeeded in removing his formidable
antagonist, from thenceforth for a number of years almost solely
directed Scottish affairs. The Presbyterians, who believed that he
was secretly attached to their cause, anticipated better days under
his protection; but ambition was his master-passion, and to it he was
prepared to sacrifice all his early attachments and principles. While
religion appeared the only road to power in the state, he had been
foremost in the ranks of the covenanters; and, by the warmth of his
professions, and the consistency of his conduct, had gained the
confidence of those who were sincerely devoted to the cause; but
when the path of preferment on Charles’s restoration struck off in an
opposite direction, he deserted to the prelates, and evinced the
sincerity of his change by at once forsaking his sobriety of manners,
and apostatizing from his form of religion; and, as he understood well
the principles he betrayed, and at one time certainly had strong
convictions of their truth, his opposition was proportionably
inveterate, and he became outrageously furious at whatever tended
to remind him of his former “fanaticism.”
BOOK IV.
37. “Through excessive blood-letting and other detestable means used by his
wicked physician, Doctor Bates, who they say was hired either to poison or
distract him, and partly through melancholy, he had in a manner wholly lost
his memory.” Kirkton’s Hist. p. 170. Mr C. K. Sharpe, the editor, thinks his
mental imbecility was occasioned in some measure by fear, and quotes a
passage from one of Lord Middleton’s letters to Primrose. “He pretends to
have lost his memory,” &c. “He is the most timorous person ever I did see in
my life,” &c. Note. But it was not to be expected that Middleton would allude
in the most distant manner to any thing that could be supposed to
countenance in the least the then general belief.
Mr James Kirkton, author of the “History of the Church of
Scotland,” who visited him, says—“I spake with him in prison, and
though he was sometimes under great heaviness, yet he told me he
could never doubt his own salvation, he had so often seen God’s
face in the house of prayer.” As he approached his end, he grew
more composed; and, on the night previous to his execution, having
been favoured with a few hours’ profound and refreshing sleep, he
awoke in the full possession of his vigorous powers, his memory
returned, and he experienced in an extraordinary degree the strong
consolations of the gospel, expressing his assurance of being
clothed with a white robe, and having a new song of praise put into
his lips, even salvation to our God, which sitteth upon the throne,
and to the Lamb!
Before noon, he dined with great cheerfulness, hoping to sup in
heaven, and drink of the blood of the vine fresh and new in his
father’s kingdom. After spending some time in secret prayer, he left
the prison about two o’clock, attended by his friends in mourning, full
of holy confidence and courage, but perfectly composed and serene.
As he proceeded to the cross, where a high gibbet was erected, he
repeatedly requested the prayers of the people; and there being
some disturbance on the street when he ascended the scaffold, he
said with great composure—“I entreat you, quiet yourselves a little,
till this dying man deliver his last words among you,” and requested
them not to be offended that he used a paper to refresh his memory,
being so much wasted by long sickness and the malice of
physicians. He then read audibly, first from the one side and then
from the other, a short speech that he had hurriedly written—what he
had composed at length and intended for his testimony having been
taken from him. It commenced with a general confession of his sins
and shortcomings in prosecuting the best pieces of work and service
to the Lord and to his generation, and that through temptation he had
been carried to so great a length, in compliance with the late
usurpers, after having so seriously and frequently made professions
of aversion to their way; “for all which,” he added, “as I seek God’s
mercy in Christ Jesus, so I desire that the Lord’s people may, from
my example, be the more stirred up to watch and pray that they
enter not into temptation.”
He then bare record to the glory of God’s free grace and of his
reconciled mercy through Christ Jesus—left “an honest testimony to
the whole covenanted work of reformation”—and expressed his lively
expectation of God’s gracious and wonderful renewing and reviving
all his former great interests in these nations, particularly Scotland—
yea, dear Scotland! He recommended his poor afflicted wife and
children to the choicest blessings of God and the prayers and
favours of his servants—prayed for repentance and forgiveness to
his enemies—for the king, and blessings upon him and his posterity,
that they might be surrounded with good and faithful councillors, and
follow holy and wise councils to the glory of God and the welfare of
the people. He concluded by committing himself, soul and body, his
relations, friends, the sympathizing and suffering witnesses of the
Lord, to his choice mercies and service in earth and heaven, in time
and through eternity:—“All which suits, with all others which he hath
at any time by his spirit moved and assisted me to make, and put up
according to his will, I leave before the throne, and upon the Father’s
merciful bowels, the Son’s mediating merits, and the Holy Spirit’s
compassionating groans, for now and for ever!”
After he had finished reading, he prayed with the greatest fervour
and humility, thus beginning his supplication—“Abba! Abba! Father,
Father, accept this thy poor sinful servant, coming unto thee through
the merits of Jesus Christ.” Then he took leave of his friends, and
again, at the foot of the ladder, prayed in a perfect rapture, being
now near the end of that sweet work he had been so much
employed about, and felt so much sweetness in through life. No
ministers were allowed to be with him, but his God abundantly
supplied his every want. On account of his weakness, he required
help to ascend the ladder. Having reached the top, he cried with a
loud voice—“I beseech you all who are the people of God not to
scorn at suffering for the interest of Christ, or stumble at any thing of
this kind falling out in these days. Be encouraged to suffer for him,
for I assure you, in the name of the Lord, he will bear your charges!”
This he repeated again while the rope was putting about his neck,
forcibly adding—“The Lord hath graciously comforted me.” Then
asking the executioner if he was ready to do his office, and being
answered that he was, he gave the signal, and was turned off, crying
—“Pray! pray! praise! praise!” His death was almost without a
struggle.
Sir Archibald Johnston, Lord Warriston, was an early, zealous, and
distinguished covenanter, and bore a conspicuous part in all the
remarkable transactions of the times, from 1638 till the Restoration.
The only blemish which his enemies could affix to his character was,
what he himself lamented, his accepting office under the usurpers,
after having previously so violently opposed this in others, when yet
every prospect of restoring the Stuart family seemed hopeless, and
when numbers of his countrymen and of his judges themselves had
submitted to a tolerant commonwealth, that did not burden the
conscience with unnecessary oaths, or require any compliances
which might not, in the circumstances of the case, have been
considered venial, if not justifiable. His talents for business were of
the first order. His eloquence was ready, and his judgment clear. He
was prompt and intrepid in action, and adhered steadily to his
Presbyterian principles, notwithstanding his officiating under a liberal
government of a different persuasion—conduct we now allow to be
not incompatible with integrity. His piety was ardent, and, amid a life
of incessant activity, he managed to spare a larger portion of time for
private devotion than many of more sequestered habits. He
habitually lived near to God, and died in the full assurance of hope.
Parliament having sat upwards of three months, rose on the 9th of
October. Even during its sitting, the council never intermitted their
oppressive acts; and, so far was this branch of the legislature from
interfering to check their immoderate abuse of power, that they had
shown themselves upon every occasion the willing instruments of
their oppression, ready when called upon to legitimate without a
murmur their foulest usurpations. On the other hand, the executive
acted as the humble tools of the prelates, ready to support their most
arrogant assumptions or gratify their cowardly and cruel revenge. St
Andrews, the primate’s seat, first required to be thoroughly cleansed;
and all who would not countenance the archbishop in his treachery,
were of necessity removed as unwelcome remembrancers of his
former profession. Mr James Wood, principal of the Old College,
pious, learned, and assiduous in his duty, who had been an intimate
friend and companion of Sharpe’s, and one of the many excellent
men who had been his dupes, was, on the 23d of July, summoned
before the council and required to show by what authority he came
to be principal. Without being suffered to offer any remarks, when he
acknowledged “that he was called by the Faculty of the College at
the recommendation of the usurpers,” the place was declared
vacant, and he was commanded to confine himself within the city of
Edinburgh till further orders.
Yet such was the estimation in which he was held, that his enemy,
though by falsehood, endeavoured to shelter his apostacy under the
shadow of his name. Not long after this, when Mr Wood was on his
deathbed, March 1664, and greatly weakened by disease, Sharpe
called once or twice upon him; and he having said, as a dying man in
the immediate view of eternity, that he was taken up about greater
business than forms of church government, and that he was far more
concerned about his personal interest in Christ than about any
external ordinance, Sharpe took occasion to spread a report that he
had said Presbyterian government was a matter of no consequence,
and no man should trouble himself about it, which coming to the
sufferer’s ears, he emitted a declaration before witnesses of his
unshaken attachment to Presbytery as an ordinance of God, and so
precious that a true Christian is obliged to lay down his life for the
profession thereof, if the Lord should see meet to put him to his trial.
Along with Mr Wood, a great number of ministers from every
quarter of the country, were removed from their charges, some
confined to Edinburgh, others banished beyond the river Ness—all
forbid to preach the gospel under the threatening of severer
penalties. Heavy were the complaints of the clergy; the ministers
refused to attend their synods, and the people persisted in
neglecting their sermons. The council, therefore, appointed “the
Lords Archbishops of St Andrews and Glasgow, the Marquis of
Montrose, the Lord Secretary and Register, to wait on the Lord
Commissioner, his Grace, to think on a general course what shall be
done, as well anent those ministers that were admitted before 1649,
and carry themselves disobediently to the laws of the kingdom, as
those who were admitted since.” While the committee were
deliberating, the evil increased; and, on the 30th of the same month,
six of the west country ministers were before the council to answer
the heavy charge of “convocating great multitudes of his majesty’s
subjects for hearing their factious and seditious sermons, to the
great scandal of religion and prejudice of the government of the
church.” To shorten their labours, however, and probably upon a
report of the archbishops and their assistants, a most harassing and
contradictory act was passed, commanding all “outted” ministers,
under pain of sedition, i.e. being processed criminally, to remove
themselves and their families twenty miles from the bounds of their
own parishes, six miles from every cathedral, and three miles from
every royal burgh, thus depriving them of any means of support they
might have derived from their own industry or that of their families, in
the only places of trade or traffic, and scattering them among
strangers, far from the bounty or assistance of their friends. But as
one “outted” minister only could reside in one parish, the act,
besides, involved an alternative of death or apostacy; for the whole
of Scotland could not have accommodated the sufferers, and no
relaxation could be obtained but from the privy council or the bishop
of the diocese. The older ministers, who still continued to preach, but
withdrew from the synods, were now to be treated as contemners of
his majesty’s authority.
To enforce their acts, the privy council ordered the Earl of
Linlithgow to send as many troops to Kirkcudbright as, with those
already there, would make up the number of eightscore footmen with
their officers in that district. Sir Robert Fleming was directed to
march two squads of his majesty’s life-guards to the west, and to
station one in Paisley and the other in Kilmarnock. The object of
these military missionaries was to episcopalize the refractory south
and west, by collecting the fines and compelling subjection to the
bishops and their curates. Sir James Turner, who had signalized
himself by his zeal in fighting for the covenant, was singled out to
superintend the pious service in the south, which he performed so
much to the satisfaction of his employers, that, on the 24th of
November, a letter of thanks was recommended to be written him
“for his care and pains taken in seeing the laws anent church
government receive due obedience.” The excesses which were
committed under sanction of these orders and commendations, were
never attempted to be justified, though the parties afterwards
mutually endeavoured to shift the blame from themselves. When it
was deemed necessary to make the General the scape-goat, it was
asserted that he had exceeded his instructions; but he averred, and
with greater probability of truth, that he had not even acted up to
their tenor.[38] The exactions were enormous; and, as the fines for
non-attendance were generally appropriated by the soldiers, they
were summarily levied, and not unfrequently to far more than the
legal amount. The process against non-conformists, in places where
there were Episcopalian incumbents, was short. The curates were
the accusers—the officers of the army, or sometimes even private
sentinels, the judges—no proof was required—and no excuse was
received, except money. If a tenant or householder were unwilling or
unable to pay, a party was quartered upon him, till ten times the
value of the fine was taken, and he was ruined, or, as they termed it,
“eaten up;”[39] then, after every thing else was gone, the household
furniture and clothes of the poor defaulters were distrained and sold
for a trifle.
38. “Sometimes not exceeding a sixth part, seldom a halfe.” Turner’s Memoirs, p.
114.
The soldiery employed in this execrable work, were the lowest and
most abandoned characters, who readily copied the example of their
officers—measured their loyalty by their licentiousness, and
considered that they served the king in proportion as they annoyed
the Whigs. Religion was the object of their ridicule. In the pious
hamlets where they quartered, family worship was interrupted by
mockery or violence; and “The Cottar’s Saturday Night,” not only
treated with derision, but punished as a violation of the laws of the
land! Upon the Sabbath, the day peculiarly devoted by the
covenanters to holy rest, and the quiet performance of their sacred
duties—for the covenanters made conscience of the moral obligation
of the Sabbath—a scene of dismay and distress hitherto unknown
was commonly exhibited; and the day to which they had in other
times looked forward as the glory of the week, was now dreaded as
the signal of their renewed torments. Multitudes were brutally driven
to church, or dragged as felons to prison; and hesitation or
remonstrance provoked only additional insult or blows. Lists of the
parishioners were no longer kept for assisting the minister in his
labours of love, but were handed over to the troopers, with directions
for them to visit the families, and to catechise them upon their
principles of loyalty and their practice of obedience to their parsons.
After sermon, the roll was called by the curate, when all absent
without leave were delivered up as deserters to the mercy of the
military. At churches where the old Presbyterian ministers were yet
allowed to remain—for a few still continued to preach at their peril, or
through the interest of some influential person—the outrage and
confusion were indescribable. As they were generally crowded, the
forsaken bishops and their underlings were enraged, and the
soldiers were instigated to additional violence. Their custom was to
allow a congregation peaceably to assemble, while they sat
carousing in some alehouse nigh at hand, till public worship was
nearly over; then they sallied forth inflamed with liquor, and, taking
possession of the church-doors or churchyard-gates, obliged the
people, whom they only suffered to pass out one at a time, to answer
upon oath whether they belonged to the parish; if they did not,
although their own parish had no minister of any kind, they were
instantly fined at the pleasure of the soldiers; and if they had no
money, or not so much as would satisfy them, their Bibles were
seized, and they were stripped of their coats if men, or their plaids if
women; so that a party returning from such an expedition, appeared
like a parcel of villanous camp-followers, after an engagement,
returning from a battle-field, laden with the spoils of the wounded
and slain.
To such an extent had these plunderings been carried, that even
the privy council found it necessary to interfere. Towards the end of
the year, they issued an explanation of their former acts, and
restricted the exactions of the soldiery, “allenarly to the penalty of
twenty shillings Scots, from every person who staid from their parish
churches on the Sabbath days.”[40]
40. Three of the prelates died in course of the past year. Bishop Mitchell of
Aberdeen, who was succeeded by Burnet; Sydeserf, who was succeeded in
the bishopric of Orkney by Mr Andrew Honeyman, formerly minister of St
Andrews; and Archbishop Fairfoul of Glasgow, who was succeeded in the
arch-episcopate by Bishop Burnet of Aberdeen, Dr Scougall being appointed
to that see.