You are on page 1of 53

Forecasting Principles and Practice 2nd

Edition Rob J. Hyndman


Visit to download the full and correct content document:
https://textbookfull.com/product/forecasting-principles-and-practice-2nd-edition-rob-j-h
yndman/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...

Forecasting Principles and Practice Athanasopoulos

https://textbookfull.com/product/forecasting-principles-and-
practice-athanasopoulos/

Nonprofit Management Principles and Practice Michael J.


Worth

https://textbookfull.com/product/nonprofit-management-principles-
and-practice-michael-j-worth/

Sustainability Principles and Practice 2nd Edition


Margaret Robertson

https://textbookfull.com/product/sustainability-principles-and-
practice-2nd-edition-margaret-robertson/

Orthodontics principles and practice 2nd Edition


Basavaraj Subhashchandra Phulari

https://textbookfull.com/product/orthodontics-principles-and-
practice-2nd-edition-basavaraj-subhashchandra-phulari/
Oncologic Emergency Medicine Principles and Practice
2nd Edition Knox H. Todd

https://textbookfull.com/product/oncologic-emergency-medicine-
principles-and-practice-2nd-edition-knox-h-todd/

Drought Early Warning and Forecasting: Theory and


Practice 1st Edition Chris Funk

https://textbookfull.com/product/drought-early-warning-and-
forecasting-theory-and-practice-1st-edition-chris-funk/

Solid State Physics: Principles and Modern Applications


2nd Edition John J. Quinn

https://textbookfull.com/product/solid-state-physics-principles-
and-modern-applications-2nd-edition-john-j-quinn/

Principles and Practice of Lacrimal Surgery 2nd Edition


Mohammad Javed Ali (Eds.)

https://textbookfull.com/product/principles-and-practice-of-
lacrimal-surgery-2nd-edition-mohammad-javed-ali-eds/

Brain Based Learning and Education Principles and


Practice 2nd Edition Yi-Yuan Tang

https://textbookfull.com/product/brain-based-learning-and-
education-principles-and-practice-2nd-edition-yi-yuan-tang/
Forecasting:
Principles and Practice
Rob J Hyndman and George Athanasopoulos
Monash University, Australia

Preface
Welcome to our online textbook on
forecasting.

This textbook is intended to provide a


comprehensive introduction to
forecasting methods and to present
enough information about each
method for readers to be able to use
them sensibly. We don’t attempt to
give a thorough discussion of the
theoretical details behind each
method, although the references at
the end of each chapter will ll in
many of those details.

The book is written for three


audiences: (1) people nding
themselves doing forecasting in
business when they may not have had
any formal training in the area; Paperback Kindle Ebook
(2) undergraduate students studying
business; (3) MBA students doing a forecasting elective. We use it ourselves for a
third-year subject for students undertaking a Bachelor of Commerce or a
Bachelor of Business degree at Monash University, Australia.
For most sections, we only assume that readers are familiar with introductory
statistics, and with high-school algebra. There are a couple of sections that also
require knowledge of matrices, but these are agged.

At the end of each chapter we provide a list of “further reading”. In general,


these lists comprise suggested textbooks that provide a more advanced or
detailed treatment of the subject. Where there is no suitable textbook, we
suggest journal articles that provide more information.

We use R throughout the book and we intend students to learn how to forecast
with R. R is free and available on almost every operating system. It is a
wonderful tool for all statistical analysis, not just for forecasting. See the Using
R appendix for instructions on installing and using R.

All R examples in the book assume you have loaded the fpp2 package, available
on CRAN, using library(fpp2) . This will automatically load several other
packages including forecast and ggplot2, as well as all the data used in the book.
We have used v2.3 of the fpp2 package and v8.3 of the forecast package in
preparing this book. These can be installed from CRAN in the usual way. Earlier
versions of the packages will not necessarily give the same results as those
shown in this book.

We will use the ggplot2 package for all graphics. If you want to learn how to
modify the graphs, or create your own ggplot2 graphics that are di erent from
the examples shown in this book, please either read the ggplot2 book (Wickham,
2016), or do the ggplot2 course on the DataCamp online learning platform.

There is also a DataCamp course based on this book which provides an


introduction to some of the ideas in Chapters 2, 3, 7 and 8, plus a brief glimpse
at a few of the topics in Chapters 9 and 11.

The book is di erent from other forecasting textbooks in several ways.

It is free and online, making it accessible to a wide audience.


It uses R, which is free, open-source, and extremely powerful software.
The online version is continuously updated. You don’t have to wait until the
next edition for errors to be removed or new methods to be discussed. We
will update the book frequently.
There are dozens of real data examples taken from our own consulting
practice. We have worked with hundreds of businesses and organisations
helping them with forecasting issues, and this experience has contributed
directly to many of the examples given here, as well as guiding our general
philosophy of forecasting.
We emphasise graphical methods more than most forecasters. We use
graphs to explore the data, analyse the validity of the models tted and
present the forecasting results.

Changes in the second edition

The most important change in edition 2 of the book is that we have restricted
our focus to time series forecasting. That is, we no longer consider the problem
of cross-sectional prediction. Instead, all forecasting in this book concerns
prediction of data at future times using observations collected in the past.

We have also simpli ed the chapter on exponential smoothing, and added new
chapters on dynamic regression forecasting, hierarchical forecasting and
practical forecasting issues. We have added new material on combining
forecasts, handling complicated seasonality patterns, dealing with hourly, daily
and weekly data, forecasting count time series, and we have many new
examples. We have also revised all existing chapters to bring them up-to-date
with the latest research, and we have carefully gone through every chapter to
improve the explanations where possible, to add newer references, to add more
exercises, and to make the R code simpler.

Helpful readers of the earlier versions of the book let us know of any typos or
errors they had found. These were updated immediately online. No doubt we
have introduced some new mistakes, and we will correct them online as soon as
they are spotted. Please continue to let us know about such things.

Happy forecasting!

Rob J Hyndman and George Athanasopoulos

April 2018
This online version of the book was last updated on 5 September 2018.
The print version of the book (available from Amazon) was last updated on
8 May 2018.

Bibliography

Wickham, H. (2016). ggplot2: Elegant graphics for data analysis (2nd ed).
Springer. [Amazon]
Chapter 1 Getting started

Forecasting has fascinated people for thousands of years, sometimes being


considered a sign of divine inspiration, and sometimes being seen as a criminal
activity. The Jewish prophet Isaiah wrote in about 700 BC

Tell us what the future holds, so we may know that you are gods.
(Isaiah 41:23)

One hundred years later, in ancient Babylon, forecasters would foretell the
future based on the distribution of maggots in a rotten sheep’s liver. By 300 BC,
people wanting forecasts would journey to Delphi in Greece to consult the
Oracle, who would provide her predictions while intoxicated by ethylene
vapours. Forecasters had a tougher time under the emperor Constantine, who
issued a decree in AD357 forbidding anyone “to consult a soothsayer, a
mathematician, or a forecaster … May curiosity to foretell the future be
silenced forever.” A similar ban on forecasting occurred in England in 1736
when it became an o ence to defraud by charging money for predictions. The
punishment was three months’ imprisonment with hard labour!

The varying fortunes of forecasters arise because good forecasts can seem
almost magical, while bad forecasts may be dangerous. Consider the following
famous predictions about computing.

I think there is a world market for maybe ve computers. (Chairman of IBM,


1943)
Computers in the future may weigh no more than 1.5 tons. (Popular
Mechanics, 1949)
There is no reason anyone would want a computer in their home. (President,
DEC, 1977)

The last of these was made only three years before IBM produced the rst
personal computer. Not surprisingly, you can no longer buy a DEC computer.
Forecasting is obviously a di cult activity, and businesses that do it well have a
big advantage over those whose forecasts fail.
In this book, we will explore the most reliable methods for producing forecasts.
The emphasis will be on methods that are replicable and testable, and have been
shown to work.
1.1 What can be forecast?

Forecasting is required in many situations: deciding whether to build another


power generation plant in the next ve years requires forecasts of future
demand; scheduling sta in a call centre next week requires forecasts of call
volumes; stocking an inventory requires forecasts of stock requirements.
Forecasts can be required several years in advance (for the case of capital
investments), or only a few minutes beforehand (for telecommunication
routing). Whatever the circumstances or time horizons involved, forecasting is
an important aid to e ective and e cient planning.

Some things are easier to forecast than others. The time of the sunrise tomorrow
morning can be forecast precisely. On the other hand, tomorrow’s lotto numbers
cannot be forecast with any accuracy. The predictability of an event or a quantity
depends on several factors including:

1. how well we understand the factors that contribute to it;


2. how much data are available;
3. whether the forecasts can a ect the thing we are trying to forecast.

For example, forecasts of electricity demand can be highly accurate because all
three conditions are usually satis ed. We have a good idea of the contributing
factors: electricity demand is driven largely by temperatures, with smaller
e ects for calendar variation such as holidays, and economic conditions.
Provided there is a su cient history of data on electricity demand and weather
conditions, and we have the skills to develop a good model linking electricity
demand and the key driver variables, the forecasts can be remarkably accurate.

On the other hand, when forecasting currency exchange rates, only one of the
conditions is satis ed: there is plenty of available data. However, we have a
limited understanding of the factors that a ect exchange rates, and forecasts of
the exchange rate have a direct e ect on the rates themselves. If there are well-
publicised forecasts that the exchange rate will increase, then people will
immediately adjust the price they are willing to pay and so the forecasts are
self-ful lling. In a sense, the exchange rates become their own forecasts. This is
an example of the “e cient market hypothesis”. Consequently, forecasting
whether the exchange rate will rise or fall tomorrow is about as predictable as
forecasting whether a tossed coin will come down as a head or a tail. In both
situations, you will be correct about 50% of the time, whatever you forecast. In
situations like this, forecasters need to be aware of their own limitations, and
not claim more than is possible.

Often in forecasting, a key step is knowing when something can be forecast


accurately, and when forecasts will be no better than tossing a coin. Good
forecasts capture the genuine patterns and relationships which exist in the
historical data, but do not replicate past events that will not occur again. In this
book, we will learn how to tell the di erence between a random uctuation in
the past data that should be ignored, and a genuine pattern that should be
modelled and extrapolated.

Many people wrongly assume that forecasts are not possible in a changing
environment. Every environment is changing, and a good forecasting model
captures the way in which things are changing. Forecasts rarely assume that the
environment is unchanging. What is normally assumed is that the way in which
the environment is changing will continue into the future. That is, a highly
volatile environment will continue to be highly volatile; a business with
uctuating sales will continue to have uctuating sales; and an economy that
has gone through booms and busts will continue to go through booms and busts.
A forecasting model is intended to capture the way things move, not just where
things are. As Abraham Lincoln said, “If we could rst know where we are and
whither we are tending, we could better judge what to do and how to do it”.

Forecasting situations vary widely in their time horizons, factors determining


actual outcomes, types of data patterns, and many other aspects. Forecasting
methods can be simple, such as using the most recent observation as a forecast
(which is called the naïve method), or highly complex, such as neural nets and
econometric systems of simultaneous equations. Sometimes, there will be no
data available at all. For example, we may wish to forecast the sales of a new
product in its rst year, but there are obviously no data to work with. In
situations like this, we use judgmental forecasting, discussed in Chapter 4. The
choice of method depends on what data are available and the predictability of
the quantity to be forecast.
1.2 Forecasting, planning and goals

Forecasting is a common statistical task in business, where it helps to inform


decisions about the scheduling of production, transportation and personnel, and
provides a guide to long-term strategic planning. However, business forecasting
is often done poorly, and is frequently confused with planning and goals. They
are three di erent things.

Forecasting
is about predicting the future as accurately as possible, given all of the
information available, including historical data and knowledge of any future
events that might impact the forecasts.

Goals
are what you would like to have happen. Goals should be linked to forecasts
and plans, but this does not always occur. Too often, goals are set without
any plan for how to achieve them, and no forecasts for whether they are
realistic.

Planning
is a response to forecasts and goals. Planning involves determining the
appropriate actions that are required to make your forecasts match your
goals.

Forecasting should be an integral part of the decision-making activities of


management, as it can play an important role in many areas of a company.
Modern organisations require short-term, medium-term and long-term
forecasts, depending on the speci c application.

Short-term forecasts
are needed for the scheduling of personnel, production and transportation.
As part of the scheduling process, forecasts of demand are often also
required.

Medium-term forecasts
are needed to determine future resource requirements, in order to purchase
raw materials, hire personnel, or buy machinery and equipment.
Long-term forecasts
are used in strategic planning. Such decisions must take account of market
opportunities, environmental factors and internal resources.

An organisation needs to develop a forecasting system that involves several


approaches to predicting uncertain events. Such forecasting systems require the
development of expertise in identifying forecasting problems, applying a range
of forecasting methods, selecting appropriate methods for each problem, and
evaluating and re ning forecasting methods over time. It is also important to
have strong organisational support for the use of formal forecasting methods if
they are to be used successfully.
1.3 Determining what to forecast

In the early stages of a forecasting project, decisions need to be made about


what should be forecast. For example, if forecasts are required for items in a
manufacturing environment, it is necessary to ask whether forecasts are needed
for:

1. every product line, or for groups of products?


2. every sales outlet, or for outlets grouped by region, or only for total sales?
3. weekly data, monthly data or annual data?

It is also necessary to consider the forecasting horizon. Will forecasts be


required for one month in advance, for 6 months, or for ten years? Di erent
types of models will be necessary, depending on what forecast horizon is most
important.

How frequently are forecasts required? Forecasts that need to be produced


frequently are better done using an automated system than with methods that
require careful manual work.

It is worth spending time talking to the people who will use the forecasts to
ensure that you understand their needs, and how the forecasts are to be used,
before embarking on extensive work in producing the forecasts.

Once it has been determined what forecasts are required, it is then necessary to
nd or collect the data on which the forecasts will be based. The data required
for forecasting may already exist. These days, a lot of data are recorded, and the
forecaster’s task is often to identify where and how the required data are stored.
The data may include sales records of a company, the historical demand for a
product, or the unemployment rate for a geographic region. A large part of a
forecaster’s time can be spent in locating and collating the available data prior
to developing suitable forecasting methods.
1.4 Forecasting data and methods

The appropriate forecasting methods depend largely on what data are available.

If there are no data available, or if the data available are not relevant to the
forecasts, then qualitative forecasting methods must be used. These methods
are not purely guesswork—there are well-developed structured approaches to
obtaining good forecasts without using historical data. These methods are
discussed in Chapter 4.

Quantitative forecasting can be applied when two conditions are satis ed:

1. numerical information about the past is available;


2. it is reasonable to assume that some aspects of the past patterns will
continue into the future.

There is a wide range of quantitative forecasting methods, often developed


within speci c disciplines for speci c purposes. Each method has its own
properties, accuracies, and costs that must be considered when choosing a
speci c method.

Most quantitative prediction problems use either time series data (collected at
regular intervals over time) or cross-sectional data (collected at a single point in
time). In this book we are concerned with forecasting future data, and we
concentrate on the time series domain.

Time series forecasting

Examples of time series data include:

Daily IBM stock prices


Monthly rainfall
Quarterly sales results for Amazon
Annual Google pro ts
Anything that is observed sequentially over time is a time series. In this book,
we will only consider time series that are observed at regular intervals of time
(e.g., hourly, daily, weekly, monthly, quarterly, annually). Irregularly spaced
time series can also occur, but are beyond the scope of this book.

When forecasting time series data, the aim is to estimate how the sequence of
observations will continue into the future. Figure 1.1 shows the quarterly
Australian beer production from 1992 to the second quarter of 2010.

Figure 1.1: Australian quarterly beer production: 1992Q1–2010Q2, with two


years of forecasts.

The blue lines show forecasts for the next two years. Notice how the forecasts
have captured the seasonal pattern seen in the historical data and replicated it
for the next two years. The dark shaded region shows 80% prediction intervals.
That is, each future value is expected to lie in the dark shaded region with a
probability of 80%. The light shaded region shows 95% prediction intervals.
These prediction intervals are a useful way of displaying the uncertainty in
forecasts. In this case the forecasts are expected to be accurate, and hence the
prediction intervals are quite narrow.
The simplest time series forecasting methods use only information on the
variable to be forecast, and make no attempt to discover the factors that a ect
its behaviour. Therefore they will extrapolate trend and seasonal patterns, but
they ignore all other information such as marketing initiatives, competitor
activity, changes in economic conditions, and so on.

Time series models used for forecasting include decomposition models,


exponential smoothing models and ARIMA models. These models are discussed
in Chapters 6, 7 and 8, respectively.

Predictor variables and time series forecasting

Predictor variables are often useful in time series forecasting. For example,
suppose we wish to forecast the hourly electricity demand (ED) of a hot region
during the summer period. A model with predictor variables might be of the
form

ED=f (current temperature, strength of economy, population,

time of day, day of week, error).

The relationship is not exact — there will always be changes in electricity


demand that cannot be accounted for by the predictor variables. The “error”
term on the right allows for random variation and the e ects of relevant
variables that are not included in the model. We call this an explanatory model
because it helps explain what causes the variation in electricity demand.

Because the electricity demand data form a time series, we could also use a time
series model for forecasting. In this case, a suitable time series forecasting
equation is of the form

EDt+1 = f (EDt , EDt−1 , EDt−2 , EDt−3 , … , error),

where t is the present hour, t + 1 is the next hour, t − 1 is the previous hour,
t − 2 is two hours ago, and so on. Here, prediction of the future is based on past
values of a variable, but not on external variables which may a ect the system.
Again, the “error” term on the right allows for random variation and the e ects
of relevant variables that are not included in the model.

There is also a third type of model which combines the features of the above two
models. For example, it might be given by
EDt+1 = f (EDt , current temperature, time of day, day of week, error).

These types of “mixed models” have been given various names in di erent
disciplines. They are known as dynamic regression models, panel data models,
longitudinal models, transfer function models, and linear system models
(assuming that f is linear). These models are discussed in Chapter 9.

An explanatory model is useful because it incorporates information about other


variables, rather than only historical values of the variable to be forecast.
However, there are several reasons a forecaster might select a time series model
rather than an explanatory or mixed model. First, the system may not be
understood, and even if it was understood it may be extremely di cult to
measure the relationships that are assumed to govern its behaviour. Second, it is
necessary to know or forecast the future values of the various predictors in order
to be able to forecast the variable of interest, and this may be too di cult. Third,
the main concern may be only to predict what will happen, not to know why it
happens. Finally, the time series model may give more accurate forecasts than
an explanatory or mixed model.

The model to be used in forecasting depends on the resources and data available,
the accuracy of the competing models, and the way in which the forecasting
model is to be used.
1.5 Some case studies

The following four cases are from our consulting practice and demonstrate
di erent types of forecasting situations and the associated problems that often
arise.

Case 1

The client was a large company manufacturing disposable tableware such as


napkins and paper plates. They needed forecasts of each of hundreds of items
every month. The time series data showed a range of patterns, some with trends,
some seasonal, and some with neither. At the time, they were using their own
software, written in-house, but it often produced forecasts that did not seem
sensible. The methods that were being used were the following:

1. average of the last 12 months data;


2. average of the last 6 months data;
3. prediction from a straight line regression over the last 12 months;
4. prediction from a straight line regression over the last 6 months;
5. prediction obtained by a straight line through the last observation with
slope equal to the average slope of the lines connecting last year’s and this
year’s values;
6. prediction obtained by a straight line through the last observation with
slope equal to the average slope of the lines connecting last year’s and this
year’s values, where the average is taken only over the last 6 months.

They required us to tell them what was going wrong and to modify the software
to provide more accurate forecasts. The software was written in COBOL, making
it di cult to do any sophisticated numerical computation.

Case 2

In this case, the client was the Australian federal government, who needed to
forecast the annual budget for the Pharmaceutical Bene t Scheme (PBS). The
PBS provides a subsidy for many pharmaceutical products sold in Australia, and
the expenditure depends on what people purchase during the year. The total
expenditure was around A$7 billion in 2009, and had been underestimated by
nearly $1 billion in each of the two years before we were asked to assist in
developing a more accurate forecasting approach.

In order to forecast the total expenditure, it is necessary to forecast the sales


volumes of hundreds of groups of pharmaceutical products using monthly data.
Almost all of the groups have trends and seasonal patterns. The sales volumes
for many groups have sudden jumps up or down due to changes in what drugs
are subsidised. The expenditures for many groups also have sudden changes due
to cheaper competitor drugs becoming available.

Thus we needed to nd a forecasting method that allowed for trend and


seasonality if they were present, and at the same time was robust to sudden
changes in the underlying patterns. It also needed to be able to be applied
automatically to a large number of time series.

Case 3

A large car eet company asked us to help them forecast vehicle re-sale values.
They purchase new vehicles, lease them out for three years, and then sell them.
Better forecasts of vehicle sales values would mean better control of pro ts;
understanding what a ects resale values may allow leasing and sales policies to
be developed in order to maximise pro ts.

At the time, the resale values were being forecast by a group of specialists.
Unfortunately, they saw any statistical model as a threat to their jobs, and were
uncooperative in providing information. Nevertheless, the company provided a
large amount of data on previous vehicles and their eventual resale values.

Case 4

In this project, we needed to develop a model for forecasting weekly air


passenger tra c on major domestic routes for one of Australia’s leading
airlines. The company required forecasts of passenger numbers for each major
domestic route and for each class of passenger (economy class, business class
and rst class). The company provided weekly tra c data from the previous six
years.
Air passenger numbers are a ected by school holidays, major sporting events,
advertising campaigns, competition behaviour, etc. School holidays often do not
coincide in di erent Australian cities, and sporting events sometimes move
from one city to another. During the period of the historical data, there was a
major pilots’ strike during which there was no tra c for several months. A new
cut-price airline also launched and folded. Towards the end of the historical
data, the airline had trialled a redistribution of some economy class seats to
business class, and some business class seats to rst class. After several months,
however, the seat classi cations reverted to the original distribution.
1.6 The basic steps in a forecasting task

A forecasting task usually involves ve basic steps.

Step 1: Problem de nition.


Often this is the most di cult part of forecasting. De ning the problem
carefully requires an understanding of the way the forecasts will be used,
who requires the forecasts, and how the forecasting function ts within the
organisation requiring the forecasts. A forecaster needs to spend time
talking to everyone who will be involved in collecting data, maintaining
databases, and using the forecasts for future planning.

Step 2: Gathering information.


There are always at least two kinds of information required: (a) statistical
data, and (b) the accumulated expertise of the people who collect the data
and use the forecasts. Often, it will be di cult to obtain enough historical
data to be able to t a good statistical model. In that case, the judgmental
forecasting methods of Chapter 4 can be used. Occasionally, old data will be
less useful due to structural changes in the system being forecast; then we
may choose to use only the most recent data. However, remember that good
statistical models will handle evolutionary changes in the system; don’t
throw away good data unnecessarily.

Step 3: Preliminary (exploratory) analysis.


Always start by graphing the data. Are there consistent patterns? Is there a
signi cant trend? Is seasonality important? Is there evidence of the presence
of business cycles? Are there any outliers in the data that need to be
explained by those with expert knowledge? How strong are the relationships
among the variables available for analysis? Various tools have been
developed to help with this analysis. These are discussed in Chapters 2 and 6.

Step 4: Choosing and tting models.


The best model to use depends on the availability of historical data, the
strength of relationships between the forecast variable and any explanatory
variables, and the way in which the forecasts are to be used. It is common to
compare two or three potential models. Each model is itself an arti cial
construct that is based on a set of assumptions (explicit and implicit) and
usually involves one or more parameters which must be estimated using the
known historical data. We will discuss regression models (Chapter 5),
exponential smoothing methods (Chapter 7), Box-Jenkins ARIMA models
(Chapter 8), Dynamic regression models (Chapter 9), Hierarchical
forecasting (Chapter 10), and several advanced methods including neural
networks and vector autoregression in Chapter 11.

Step 5: Using and evaluating a forecasting model.


Once a model has been selected and its parameters estimated, the model is
used to make forecasts. The performance of the model can only be properly
evaluated after the data for the forecast period have become available. A
number of methods have been developed to help in assessing the accuracy of
forecasts. There are also organisational issues in using and acting on the
forecasts. A brief discussion of some of these issues is given in Chapter 3.
When using a forecasting model in practice, numerous practical issues arise
such as how to handle missing values and outliers, or how to deal with short
time series. These are discussed in Chapter 12.
1.7 The statistical forecasting perspective

The thing we are trying to forecast is unknown (or we would not be forecasting
it), and so we can think of it as a random variable. For example, the total sales
for next month could take a range of possible values, and until we add up the
actual sales at the end of the month, we don’t know what the value will be. So
until we know the sales for next month, it is a random quantity.

Because next month is relatively close, we usually have a good idea what the
likely sales values could be. On the other hand, if we are forecasting the sales for
the same month next year, the possible values it could take are much more
variable. In most forecasting situations, the variation associated with the thing
we are forecasting will shrink as the event approaches. In other words, the
further ahead we forecast, the more uncertain we are.

We can imagine many possible futures, each yielding a di erent value for the
thing we wish to forecast. Plotted in black in Figure 1.2 are the total
international visitors to Australia from 1980 to 2015. Also shown are ten possible
futures from 2016–2025.
Figure 1.2: Total international visitors to Australia (1980-2015) along with ten
possible futures.

When we obtain a forecast, we are estimating the middle of the range of possible
values the random variable could take. Often, a forecast is accompanied by a
prediction interval giving a range of values the random variable could take with
relatively high probability. For example, a 95% prediction interval contains a
range of values which should include the actual future value with probability
95%.

Instead of plotting individual possible futures as shown in Figure 1.2, we usually


show these prediction intervals instead. The plot below shows 80% and 95%
intervals for the future Australian international visitors. The blue line is the
average of the possible future values, which we call the point forecasts.

Figure 1.3: Total international visitors to Australia (1980–2015) along with


10-year forecasts and 80% and 95% prediction intervals.

We will use the subscript t for time. For example, yt will denote the observation
at time t. Suppose we denote all the information we have observed as and we
want to forecast yt . We then write yt | meaning “the random variable yt given
what we know in ”. The set of values that this random variable could take,
along with their relative probabilities, is known as the “probability
distribution” of yt | . In forecasting, we call this the forecast distribution.

When we talk about the “forecast”, we usually mean the average value of the
forecast distribution, and we put a “hat” over y to show this. Thus, we write the
forecast of yt as y
^ , meaning the average of the possible values that yt could take
t

^ to refer to the median (or


given everything we know. Occasionally, we will use y t

middle value) of the forecast distribution instead.

It is often useful to specify exactly what information we have used in calculating


the forecast. Then we will write, for example, y
^t|t−1 to mean the forecast of yt

taking account of all previous observations (y1 , … , yt−1 ). Similarly, y


^
T +h|T

means the forecast of yT +h taking account of y1 , … , yT (i.e., an h-step forecast


taking account of all observations up to time T ).
1.8 Exercises

1. For cases 3 and 4 in Section 1.5, list the possible predictor variables that
might be useful, assuming that the relevant data are available.

2. For case 3 in Section 1.5, describe the ve steps of forecasting in the context
of this project.
1.9 Further reading

Armstrong (2001) covers the whole eld of forecasting, with each chapter
written by di erent experts. It is highly opinionated at times (and we don’t
agree with everything in it), but it is full of excellent general advice on
tackling forecasting problems.
Ord, Fildes, & Kourentzes (2017) is a forecasting textbook covering some of
the same areas as this book, but with a di erent emphasis and not focused
around any particular software environment. It is written by three highly
respected forecasters, with many decades of experience between them.

Bibliography

Armstrong, J. S. (Ed.). (2001). Principles of forecasting: A handbook for


researchers and practitioners. Kluwer Academic Publishers. [Amazon]

Ord, J. K., Fildes, R., & Kourentzes, N. (2017). Principles of business forecasting
(2nd ed.). Wessex Press Publishing Co. [Amazon]
Chapter 2 Time series graphics

The rst thing to do in any data analysis task is to plot the data. Graphs enable
many features of the data to be visualised, including patterns, unusual
observations, changes over time, and relationships between variables. The
features that are seen in plots of the data must then be incorporated, as much as
possible, into the forecasting methods to be used. Just as the type of data
determines what forecasting method to use, it also determines what graphs are
appropriate. But before we produce graphs, we need to set up our time series in
R.
2.1 ts objects

A time series can be thought of as a list of numbers, along with some


information about what times those numbers were recorded. This information
can be stored as a ts object in R.

Suppose you have annual observations for the last few years:

Year Observation
2012 123
2013 39
2014 78
2015 52
2016 110

We turn this into a ts object using the ts() function:

y <- ts(c(123,39,78,52,110), start=2012)

If you have annual data, with one observation per year, you only need to provide
the starting year (or the ending year).

For observations that are more frequent than once per year, you simply add a
frequency argument. For example, if your monthly data is already stored as a
numerical vector z , then it can be converted to a ts object like this:

y <- ts(z, start=2003, frequency=12)

Almost all of the data used in this book is already stored as ts objects. But if
you want to work with your own data, you will need to use the ts() function
before proceeding with the analysis.

Frequency of a time series

The “frequency” is the number of observations before the seasonal pattern


repeats.1 When using the ts() function in R, the following choices should be
used.
Data frequency
Annual 1
Quarterly 4
Monthly 12
Weekly 52

Actually, there are not 52 weeks in a year, but 365.25/7 = 52.18 on average,
allowing for a leap year every fourth year. But most functions which use ts
objects require integer frequency.

If the frequency of observations is greater than once per week, then there is
usually more than one way of handling the frequency. For example, data with
daily observations might have a weekly seasonality (frequency= 7) or an annual
seasonality (frequency= 365.25). Similarly, data that are observed every minute
might have an hourly seasonality (frequency= 60), a daily seasonality
(frequency= 24 × 60 = 1440), a weekly seasonality (frequency
= 24 × 60 × 7 = 10080) and an annual seasonality (frequency
= 24 × 60 × 365.25 = 525960). If you want to use a ts object, then you need
to decide which of these is the most important.

In chapter 11 we will look at handling these types of multiple seasonality,


without having to choose just one of the frequencies.

1. This is the opposite of the de nition of frequency in physics, or in Fourier


analysis, where this would be called the “period”.↩
2.2 Time plots

For time series data, the obvious graph to start with is a time plot. That is, the
observations are plotted against the time of observation, with consecutive
observations joined by straight lines. Figure 2.1 below shows the weekly
economy passenger load on Ansett Airlines between Australia’s two largest
cities.

autoplot(melsyd[,"Economy.Class"]) +
ggtitle("Economy class passengers: Melbourne-Sydney") +
xlab("Year") +
ylab("Thousands")

Figure 2.1: Weekly economy passenger load on Ansett Airlines.

We will use the autoplot() command frequently. It automatically produces an


appropriate plot of whatever you pass to it in the rst argument. In this case, it
recognises melsyd[,"Economy.Class"] as a time series and produces a time plot.

The time plot immediately reveals some interesting features.


Another random document with
no related content on Scribd:
being greatest among them, who can afford to eat [18]Rice all the
Year round. Kid and Fowl, they have a few, and were all the
domestick Animals I saw.
Remark 4. On the Negroes here, their Clothing, Customs and
Religion.
The Men are well-limbed, clean Fellows; flattish-nosed, and many
with Exomphalos’s; the Effect of bad Midwifry, or straining in their
Infancy to walk; for they are never taught, but creep upon a Matt on
all Fours, till they have Strength to erect themselves; and
notwithstanding this, are seldom distorted. These do not circumcise,
but the Slaves brought from the Northward are frequently so;
perhaps from bordering on Morocco.
The Women are not nigh so well shaped as the Men: Childing, and
their Breasts always pendulous, stretches them to so unseemly a
Length and Bigness, that some, like the Ægyptians, I believe, could
suckle over their Shoulders. Their being imployed in all Labour,
makes them robust; for such as are not Gromettas, work hard in
Tillage, make Palm-Oil, or spin Cotton; and when they are free from
such work, the idle Husbands put them upon breading and fetishing
out their Wool, they being prodigious proud and curious in this sort of
Ornament; and keep them every day, for many hours together, at it.
Their Houses are low, little Hutts, not quite so bad as many in
Yorkshire, built with wooden Stockades set in the ground, in a round
or square form, thatched with Straw; they are swept clean every day;
and for Furniture, have a Matt or two to lie down upon; two or three
earthen or wooden Dishes, and Stools, with a Spoon, all of their own
making. They are idle, principally from want of Arts and domestick
Employments: for as I observed, they are so cautious of planting too
much, and wasting their Labour, that they are really improvident;
smoaking all day in long Reed-Pipes together; unplagued with To-
morrow, or the Politicks of Europe.
Whole Towns shift their Habitations, either when they do not like
their Neighbours, or have more Conveniency somewhere else; soon
clearing Ground enough for what Building and Culture they purpose.
Seignior Joseph, a Christian Negro of this Place, has lately with his
People left a clean, well-built Town, and removed further up the
River. Their Huts are mostly orbicular, forming a spacious square
Area in the middle, and in this, the doors paved with Cockle-Shells;
two or three Crosses erected, and round about, Lime-trees, Papais,
Plantanes, Pine-apples, and a few Bee-hives; the latter made out of
pieces of old Trees, three foot long, hollowed and raised on two
Poles.
In the middle of the Area was a great Curiosity, a large Tree with
500 hanging Nests at least upon it; this is a small familiar Bird, that
builds thus about their Towns, upon the extreme slenderest Twigs,
hanging like Fruit, and declares the Wisdom of Instinct, since it’s
designed a Security for their Young, against Monkeys, Parrots,
Squirrels, &c. Creatures of Prey, whose Weight cannot there be
supported.
Anointing their Body and Limbs with Palm-Oil, is a daily Practice
with both Sexes; some use [19]Civet, but all cast a strong,
disagreeable Smell; this mending it much like as melted Tallow is by
a Perfumer’s Shop.
Palaavers are their Courts of Judicature, where the principal or
elderly Men amongst them meet in a Ring or under a Lodge, to settle
the Differences that arise amongst themselves, or with the Factories;
the frequentest are in relation to Trade. Each salutes the other at
meeting, by a Bend of the Elbow, and raising his Hand to his Face.
When they have heard what each Party has to say, they determine
by Vote, who has the Reason of the thing on their side, and so
punish, or acquit. For Fornication, the Party (whether Man or
Woman) is sold for a Slave. If a white Man lies with another’s Slave,
he is bound to redeem her at a current Price. On a Charge of
Murder, Adultery, or if there can be any other more heinous Crime
among them, the suspected Person must drink of a red Water his
Judges prepare; which is called, purging the Criminal: that is, if the
suspected be of ill Life, or had Envy to the deceased, so that the
Surmizes against him are strong, though they want positive
Evidence; they will give him so much of that Liquor as shall kill him;
but if inclined to spare him, they politickly give less, or make it
weaker, whereby his Innocence appears the better to the Friends
and Relations of the deceased.
Panyarring, is a Term for Man-stealing along the whole Coast:
Here it’s used also, for stealing any thing else; and by Custom (their
Law) every Man has a right to seize of another at any Conveniency,
so much as he can prove afterwards, at the Palaaver-Court, to have
been defrauded of, by any body in the same place he was cheated.
Dancing is the Diversion of their Evenings: Men and Women make
a Ring in an open part of the Town, and one at a time shews his Skill
in antick Motions and Gesticulations, yet with a great deal of Agility,
the Company making the Musick by clapping their hands together
during the time, helped by the louder noise of two or three Drums
made of a hollowed piece of Tree, and covered with Kid-Skin.
Sometimes they are all round in a Circle laughing, and with uncouth
Notes, blame or praise somebody in the Company.
During our stay at this Port, we paid a Visit to Seignior Joseph,
about nine miles up the River. The Reason of his leaving the other
Town, he told me was, the frequent Palaavers he was engaged in,
on account of Differences between his People and the Grimattoes,
and the great Expence he was at, in so near a Neighbourhood with
the English. He has been in England and Portugal; at the last place
he was baptized, and took in that christian Erudition that he
endeavours to propagate. He has built a little Oratory for his
People’s Devotions; erected a Cross; taught several of his Kindred
Letters, dispersing among them little Romish Prayer-Books, and
many of them are known by Christian Names. Those of the Country
not yet initiated, never have but one. Mousi, or Moses; Yarrat, and
Cambar, are very common Names to the Men; Baulee, and Kibullee,
to the Women. Others take the Cognomen from their Disposition;
Lion, Lamb, Bear, Hog, &c. like our Danish Ancestors. Seignior
Joseph, who is very communicative, tells me, to the extent of his
knowledge, the People are cleanly, of good Temper, and docible; all
wishing some Missionaries would think their Conversion and Wants
worth regarding: But the Poverty of their Country will probably keep
them a long time from that Benefit. There is no Invitation in a barren
Soil, scarce of Provisions and Necessaries, Danger of wild Beasts a
mile from Home (especially Wolves;) and about their Houses, Rats,
Snakes, Toads, Musquitoes, Centipes, Scorpions, Lizards, and
innumerable Swarms of Ants, a white, black, and red sort, that build
to 8 or 9 Foot high, dig up the Foundation of their Houses in two or
three Years, or turn a Chest of Cloaths to Dust (if not watched) in as
many Weeks. This Christian Negro, by the Advantage of Trade, has
in some measure removed the Wants of his own Family (his Towns;)
they are tolerably stocked with Guinea Hens, Fish, and Venison;
while the Country fifty miles off, he says, have little to feed on but
Honey, and Manyoco Root. He received us in a Europæan Dress
(Gown, Slippers, Cap, &c.) and sent his Canoos out to shew us the
Diversion of chasing the Manatea; they brought one ashore in two
hours time, and we had stewed, roast, and boiled, with a clean
Table-cloth, Knives and Forks, and Variety of Wines and strong Beer,
for our Entertainment. The Flesh of this Creature was white, and not
fishy; but very tough, and seasoned high (as are all their Dishes)
with Ochre, Malaguetta, and Bell-pepper.
His Kinswomen came into the Room after we had dined, and to
them other Neighbours, saluting those of their own Colour, one by
one, by making a Bend of their right Elbow, so that the Hand comes
nigh the Mouth; the other to whom she addresses, is in the same
Posture, and mixing their Thumbs and middle Fingers, they snap
them gently off, and retreat with a small Quaker-like Obeysance,
decently and without Hurry or Laugh. They shewed likewise much
good-nature towards one another, in dividing two or three Biskets,
and half a Pint of Citron Water (we brought) into twenty Parts, rather
than any one should miss a Taste. In conclusion, Seignior Joseph
saw us to the Boat, and took leave with the same Complaisance he
had treated us.
The Religion here, if it may be called such, is their Veneration to
Gregries: Every one keeps in his House, in his Canoo, or about his
Person, something that he highly reverences, and that he imagines
can, and does defend him from Miscarriage, in the nature our
Country-Folks do Charms, but with more Fear: And these things are
very various; either a cleaved piece of Wood, a Bundle of peculiar
little Sticks or Bones, a Monkey’s Skull, or the like. To these, every
Family has now and then a Feast, inviting one another; but of this
more, under the Word Fetish.
The GRAIN and MALAGUETTA Coasts.
We left Sierraleon and were joined by our Consort the Weymouth,
May 1, from Gambia; we found upon Conference, that both Ships
had like to have ended their Voyage at these first Ports: She had run
on a Sand in that River, wringing three Days and Nights in a Tide’s
way, with great difficulty getting off: We, at Sierraleon letting in Water
to the Ship one Evening, had forgot the Plug, till we had 5 or 6 Foot
Water in the Hold.
The Company’s Presents, we understood by them, were received
well there by the King of Barra, and he has given the Factors leave
to build a Fortification at Gilliflee, a Town commanded by a Woman,
about 15 Miles up the River; made a Duchess by Captain
Passenger, from whence the Custom I believe has been taken up, of
distinguishing the most deserving Fellows at trading Towns by the
Titles of Knights, Colonels, and Captains, which they are very proud
of. This Duchess of Gilliflee has become very much the Factory’s
Friend there, and gives all possible Assistance in their Settlement.
Cape St. Mary’s, or the Starboard Entrance of that River, they
found no Cannibals, as commonly reported among Sailors; but a
civilized People, with whom they wooded their Ship.
On the 4th we were off Cape Monte, and next day Montzerado,
both high Lands; the former appearing in a double, the latter with a
single Hommock; the Country trenching from them, low and woody;
about 35 Fathom Water 3 Leagues from Shore. From the latter,
came off a Canoo with the Cabiceer, Captain John Hee,
distinguished by an old Hat, and Sailor’s Jackett with a greater
number of thick brass Rings on his Fingers and Toes, than his
Attendants. He seemed shy of entering the Ship, apprehending a
Panyarring; his Town’s People having often suffered by the
Treachery of Ships, and they as often returned it, sometimes with
Cruelty, which has given rise to the Report of their being Savages
and Cannibals at several places; very unlikely any where, because
they could not part with their Slaves, which are but few, if they had
this Custom, nor could they have any Trade or Neighbours: Their
Fears would make them shun their Enemies (the rest of Mankind)
and all Correspondence totally cease.
The Fetish they brought off, on this dangerous Voyage, was a
Bundle of small, black Sticks, like a hundred of Sparrowgrass put
into a Bag, knit of Silk-grass, and hanging over one of their
Shoulders, seeming to place a Security and Confidence in it; for I
would have handled and tasted it, but found it put them in a Fright,
saying, to deter me, You didee, you kicatavoo, (i. e.) if you eat, you
die presently.
The mutual Distrust between us, made their present Business only
begging old Breeches, Shirts, Rags, Biskett, and whatever else they
saw, parting in some hurry, and calling to one another for that end, in
a Note like what Butchers use in driving Cattle. They have plenty of
Milhio, Rice, Yamms, and Salt hereabouts.
We found in our coasting by Bashau, and other trading Towns, the
same Fears subsisting, coming off every day in their Canoos, and
then at a stand whether they should enter: The boldest would
sometimes come on board, bringing Rice, Malaguetta, and Teeth,
but staying under Fear and Suspicion. Here we may take these
Observations.
1. Canoos are what are used through the whole Coast for
transporting Men and Goods. Each is made of a single Cotton-tree,
chizelled and hollowed into the shape of a Boat; some of them 8 or
10 Foot broad, carrying twenty Rowers. The Negroes do not row one
way and look another, but all forward, and standing at their Paddles,
they dash together with dexterity, and if they carry a Cabiceer,
always sing; a Mark of Respect.
2. Cabiceers are the principal of the trading Men at all Towns; their
Experience, or Courage having given them that Superiority: All Acts
of Government in their several Districts, are by their Votes.
They came off to us with some English Title and Certificate; the
Favour of former Traders to them, for their Honesty and good
Service; and were they done with Caution, might be of use to Ships
as they succeed in the Trade: Whereas now they contain little Truth,
being done out of Humour, and learn them only to beg or steal with
more Impudence.
3. The Negrish Language alters a little in sailing, but as they are
Strangers to Arts, &c. restrained to a few Words, expressive of their
Necessities: This I think, because in their Meetings they are not
talkative; In their Trading the same Sound comes up often; and their
Songs, a Repetition of six Words a hundred times.
Some Negrish Words.
Didee, Eat. Attee, ho, How do you?
Malafia, } Dashee, a Present.
Govina, } Ivory. Kickatavoo, Killed, or Dead.
Malembenda, Rice. Tossu, Be gone.
Cockracoo, Fowl. Yarra, Sick.
Praam, Good. Fabra, Come.
Nino, Sleep. Brinnee, White Man.
Sam sam, all one. Bovinee, Black Man.
Acquidera, Agreed. Soquebah, Gone, lost.
Oura, Very well. Tongo, Man’s Privities.
Tomy, Arse-clout. Bombo, Woman’s.

Lastly, the Dress common to both Sexes every where, is the Tomy,
or Arse-clout, and the pleating or breading of their Wooll. The Arse-
clout the Women tie about their Hips, and falls half way down their
Thigh all round; but the Men bring it under their Twist, and fasten just
upon the girdling part behind. Both take great delight in twisting the
Wool of their Heads into Ringlets, with Gold or Stones, and bestow a
great deal of Time and Genius in it.
The Women are fondest of what they call Fetishing, setting
themselves out to attract the good Graces of the Men. They carry a
Streak round their Foreheads, of white, red, or yellow Wash, which
being thin, falls in lines before it dries. Others make Circles with it,
round the Arms and Bodies, and in this frightful Figure, please. The
Men, on the other side, have their Ornaments consist in Bracelets; or
Manilla’s, about their Wrists and Ancles, of Brass, Copper, Pewter, or
Ivory; the same again on their Fingers and Toes: a Necklace of
Monkey’s Teeth, Ivory Sticks in their Ears, with a broad head. Most
of them have one, two, or more of these Ornaments, and have an
Emulation in the number and use of them.
When the Nakedness, Poverty and Ignorance of these Species of
Men are considered; it would incline one to think it a bettering their
Condition, to transport them to the worst of Christian Slavery; but as
we find them little mended in those respects at the West-Indies, their
Patrons respecting them only as Beasts of Burthen; there is rather
Inhumanity in removing them from their Countries and Families; here
they get Ease with their spare Diet; the Woods, the Fruits, the
Rivers, and Forests, with what they produce, is equally the property
of all. By Transfretation they get the brown Bread, without the
Gospel: together, as Mr. Baxter observed, they might be good Fare,
but hard Work and Stripes without it, must be allowed an unpleasant
Change. They are fed, it’s true, but with the same Diet and Design
we do Horses; and what is an aggravating Circumstance, they have
a Property in nothing, not even in their Wives and Children. No
wonder then, Men under this View, or worse Apprehensions, should
be prompted with Opportunity frequently to sacrifice the Instruments
of it.
SESTHOS.
We anchored before Sesthos, or Sesthio, May 10th, a Place where
most of our windward Slave-ships stop to buy Rice, exchanged at
about 2s. per Quintal. The River is about half the breadth of the
Thames; a narrow Entrance only for Boats on the starboard Side,
between two Rocks, which, on great Swells and Winds, make the
shooting of it dangerous; the rest of the breadth being choaked with
Sands.
The Town is large, and built after a different Model from those we
have left; they run them up (square or round) four Foot from the
Earth; at that height, is the first and chief Room, to sit, talk, or sleep
in, lined with matted Rinds of Trees, supported with Stockades, and
in the middle of it, a Fire-place for Charcoal, that serves a double
Purpose; driving off Insects and Vermine, and drying their Rice and
Indian Corn. Of the upper Loft they make a Store-house, that runs up
pyramidal 30 foot; making the Town at distance, appear like a
number of Spires, each standing singly.
This, and every Town hereabouts, had a Palaaver-Room, a publick
Place of meeting for the People to council, and transact the Business
of the Society: They are large, and built something like our Lodges
for Carts, open, 4 foot from the Ground; then a Stage to sit, rafted
and well covered against Rain and Sun-shine. Here they meet
without distinction; King and Subject, smoaking from Morning to
Night. At this Place, it is common to bring your Traffick; brass Pans,
pewter Basins, Powder, Shot, old Chests, &c. and exchange for
Rice, Goats and Fowls. Two or three Pipes, a Charge of Powder, or
such a Trifle, buys a Fowl. A 2 pound Basin buys a Goat; and I
purchased two for an old Chest, with a Lock to it. Such a piece of
Mechanism I found a Rarity, and brought all the Country down to
admire. A Watch still encreased their Wonder; and making Paper
speak (as they call it) is a Miracle.
They bring their written Certificates hinted above, and when you
tell them the Contents, or they are made Messengers of Notes
between English Ships, they express the utmost Surprize at such
sort of Knowledge and Intercourse; it infinitely exceeds their
Understanding, and impresses a superior and advantageous Idea of
the Europeans.
The King who commands here has the Name of Pedro; he lives
about five Miles up the River, a Sample of Negro Majesty.
As there is a Dashee expected before Ships can wood and water
here; it was thought expedient to send the Royal Perquisite up by
Embassy (a Lieutenant and Purser) who being in all respects equal
to the Trust, were dismissed with proper Instructions, and being
arrived at the King’s Town, they were ushered or thrust in by some of
the Courtiers into the common Palaaver-Room (to wait the King’s
dressing, and coming from his Palace) his publick Audience being
ever in the Presence of the People. After waiting an hour, King Pedro
came attended by a hundred naked Nobles, all smoaking, and a
Horn blowing before them. The King’s Dress was very antick: He had
a dirty, red Bays Gown on, chequer’d with patch-work of other
Colours, like a Jack pudding, and a Fellow to bear the Train, which
was a narrow Slip of Culgee tacked to the bottom of the Gown. He
had an old black full-bottom’d Wig, uncombed; an old Hat not half big
enough, and so set considerably behind the Fore-top, that made his
meagre Face like a Scare-crow; coarse Shoes and Stockings,
unbuckled and unty’d, and a brass Chain of 20lib. at least about his
Neck.
To this Figure of a Man, our modern Embassadors in their Holiday
Suits, fell on their Knees, and might have continued there till this
time, for what Pedro cared: He was something surprized indeed, but
took it for the Fashion of their Country, and so kept making instant
Motions for the Dashee. This brought them from their Knees, as the
proper Attitude for presenting it; consisting in a trading Gun, two
pieces of salt Ship-beef, a Cheese, a Bottle of Brandy, a Dozen of
Pipes, and two Dozen of Congees. But Pedro, who understood the
Present better than the Bows, did not seem pleased when he saw it;
not for any defect in the Magnificence, but they were such things as
he had not present Occasion for; asking some of their Clothes and to
take those back again, particularly their Breeches, sullied a little with
kneeling in the Spittle: But on a Palaaver with his Ministers, the
Present was accepted, and the Officers dismissed back with a Glass
of Palm-Wine and Attee, ho, (the common way of Salutation with
Thumbs and Fingers mixed, and snapping off.)
To smooth the King into a good Opinion of our Generosity, we
made it up to his Son, Tom Freeman; who, to shew his good-nature,
came on board uninvited, bringing his Flagelet, and obliging us with
some wild Notes. Him we dress’d with an edg’d Hat, a Wig, and a
Sword, and gave a Patent upon a large Sheet of Parchment,
creating him Duke of Sesthos, affixing all our Hands, and the
Impress of a Butter mark on Putty.
This was taken so kindly by the Father, that he sent us a couple of
Goats in return, and his younger Son Josee for further Marks of our
Favour; whom we dignified also, on a small Consideration, with the
Title of Prince of Baxos. Several indeed had been titled, but none so
eminently, as by Patent, before; which procured us the entire good-
will of the King; suffering us at any time to hawl our Searn in the
River, where we catched good store of Mullets, Soles, Bump noses,
and Rock-fish; and to go up to their Villages unmolested.
In one of these Towns, some others of us paid a Visit to his
Majesty, whom we found at a Palace built as humble as a Hog-sty;
the entrance was narrow like a Port-hole, leading into what we may
call his Court-Yard, a slovenly little Spot, and two or three Hutts in it,
which I found to be the Apartment of his Women. From this we
popped through another short Portico, and discovered him on the left
hand, upon a place without his House, raised like a Taylor’s Shop-
board, and smoaking with two or three old Women, (the favourite
Diversion of both Sexes.) His Dress and Figure, with the novelty of
ours, created mutual Smiles which held a few Minutes, and then we
took leave with the Attee, ho.
From his Town we went to two others still farther up the River; at
one of them was a bright yellow-colour’d Man, and being curious to
know his Original, were informed (if we interpret their Signs and
Language right) that he came from a good distance in the Country,
where were more. Captain Bullfinch Lamb, and others, have since
told me, they had seen several; Mr. Thompson, that he saw one at
Angola, and another at Madagascar; a great Rarity, and as
perplexing to account for, as the black Colour.
Exomphalos’s are very common among the Negroes here. I saw
also one squint-ey’d; another without a Nose; and another with a
Hair Lip; Blemishes rare among them. Circumcision is used pretty
much; not as a religious Symbol, but at the Humour of the Parent,
who had found a Conveniency in it.
The Diet is Rice, Potatoes, Yacoes or Indian Corn, Parsly, and
other Vegetables; the Cultivation of which, and their domestick
Affairs, are all imposed on the Women.
In general may be observed, they are exceeding cowardly, like
other Countries undisciplined; a whole Town running away from a
Boat with white Men. Thievish on their own Dunghills; none of them
seeming to have any Notion of it as a Crime, and quarrel only about
a Share of what is stole. So lazy, that Scores of them will attend our
Searn for a Bisket, or the Distribution of such small Fish as are
thrown by; for tho’ their Waters afford great Plenty, they want the
Means or Inclination to catch them; chusing rather to loiter and jump
about the Sands, or play at round Holes, than endeavour to get Food
for themselves.
Cape A P O L L O N I A .
From Sesthos, we reached in two or three Days Cape Palma;
weighed Anchor from Jaque a Jaques, the 28th; from Bassau, the
30th; Assmee, the 31st; and anchored here the 6th of June. In this
part of our Sailing may be observed,
1. That the Land from Sierraleon, excepting two or three Capes,
and that about Drewin, appears low, and the first Land you see (as
the Irishman says) is Trees; runs very streight without Bays or Inlets,
which makes it difficult to distinguish, and impossible for us to land
safely at; the Surff breaking all along to a great height, by means of a
continued Swell from a vast Southern Ocean; a Sea which the
Natives only understand, and can push their Canoos through. This
seems a natural Prohibition to Strangers, and whence it follows in
respect to Trade, that Ships are obliged to send their Boats with
Goods near Shore, where the Natives meet them, and barter for
Slaves, Gold, and Ivory; for at many places a Grandee Shippee (as
they call it) affrights them, and they will venture then, as I imagine
they can swim.
2. The Ground is very tough, our Consort and we losing three
Anchors in heaving a Purchase; we stopping at Nights for fear of
over-shooting Places of Trade.
3. We find pretty equal Soundings, about 14 Fathom Water, a
League from Shore, unless at one noted place, a Lusus Naturæ,
called the bottomless Pit, 7 Leagues below Jaque a Jaques, where
the Depth is all at once unfathomable, and about three Miles over.
The great Sir Is. Newton, in his calculating the Force of Gravity,
says, Bodies decrease in their Weight, and Force of their Fall, in the
Proportion of the Squares of Distance from the Center; so that a Tun
at the Surface of the Earth would weigh but ¼ of a Tun, removed
one Semi-Diameter of the Earth higher; and at three Semi-
Diameters, but the 1/16 of a Tun. In like manner their Velocities of
Descent decrease: A Body at the Surface which would fall 16 foot in
a Second, at 12000 Miles high, or three Semi-Diameters, would fall
only 1/16, or one Foot in a Second; but at all given Distances,
something, &c.
Now, according to this Rule, heaving a Lead in great depths of
Water, the Velocity should increase with the descent or sinking of it;
since in the Progress of Gravity, the falling Body in every space of
Time receives a new Impulse, and continually acting, the same
Gravity super-adds a new Velocity; so that at the end of two
Seconds, to be double what it was at the end of the first, and so on,
which here the Weight of the super-incumbent Medium should still
more accelerate. Yet a Lead-line is drawn out perceptibly slower at
the second, than the first hundred Fathoms: But perhaps this
proceeds from the increasing quantity of Line to be drawn with it, not
so equally apt to demerge, and a Nisus in all Bodies of Water, from
below upwards, contrary to Gravity.
4. The Winds were more Southerly than above, checking the
Land-Breeze, which obtaining brings strong unwholesome Smells
from the Mangroves.
5. Their Diet being very slovenly, and much of a piece in this
Track, I shall here entertain you with two or three of their Dishes.
Slabbersauce is made of Rice and Fish, a Fowl, a Kid, or
Elephant’s Flesh, the better for being on the stink. They boil this with
a good quantity of Ochre and Palm-Oil, and is accounted a royal
Feast.
A Dog is a Rarity with some: Our Master had a little Boy-Slave of
eight years of Age, in exchange for one. At other Places, Monkeys
are a very common Diet.
Bomini is Fish dried in the Sun without Salt; stinking, they put it in
a Frying-pan with Palm-Oil, then mixed with boiled Rice, snatch it up
greedily with their Fingers.
Black Soupee is a favourite Dish, as well at our Factories, as
among the Negroes; we make it of Flesh or Fowl, stew’d sweet, with
some uncommon tasted Herbs; but the ascendant Taste is Pepper,
Ochre, and Palm-Oil. At first I thought it disagreeable, but Custom
reconciled it as the best in the Country: Men’s way of Diet being
certainly a principal Reason why in all places some of Land and Sea-
animals are approved or rejected; liked in one Country, and detested
in another.
To return to Jaque a Jaques; we met there the Robert of Bristol,
Captain Harding, who sailed from Sierraleon before us, having
purchased thirty Slaves, whereof Captain Tomba mentioned there
was one; he gave us the following melancholly Story. That this
Tomba, about a Week before, had combined with three or four of the
stoutest of his Country-men to kill the Ship’s Company, and attempt
their Escapes, while they had a Shore to fly to, and had near
effected it by means of a Woman-Slave, who being more at large,
was to watch the proper Opportunity. She brought him word one
night that there were no more than five white Men upon the Deck,
and they asleep, bringing him a Hammer at the same time (all the
Weapons that she could find) to execute the Treachery. He
encouraged the Accomplices what he could, with the Prospect of
Liberty, but could now at the Push, engage only one more and the
Woman to follow him upon Deck. He found three Sailors sleeping on
the Fore-castle, two of which he presently dispatched, with single
Strokes upon the Temples; the other rouzing with the Noise, his
Companions seized; Tomba coming soon to their Assistance, and
murdering him in the same manner. Going aft to finish the work, they
found very luckily for the rest of the Company, that these other two of
the Watch were with the Confusion already made awake, and upon
their Guard, and their Defence soon awaked the Master underneath
them, who running up and finding his Men contending for their Lives,
took a Hand-spike, the first thing he met with in the Surprize, and
redoubling his Strokes home upon Tomba, laid him at length flat
upon the Deck, securing them all in Irons.
The Reader may be curious to know their Punishment: Why,
Captain Harding weighing the Stoutness and Worth of the two
Slaves, did, as in other Countries they do by Rogues of Dignity, whip
and scarify them only; while three others, Abettors, but not Actors,
nor of Strength for it, he sentenced to cruel Deaths; making them
first eat the Heart and Liver of one of them killed. The Woman he
hoisted up by the Thumbs, whipp’d, and slashed her with Knives,
before the other Slaves till she died.
From this Ship we learned also, that the inland Country who had
suffered by the Panyarrs of the Cobelohou and Drewin People, have
lately been down, and destroyed the Towns, and the Trade is now at
a stand; and perhaps the Consciousness of this Guilt increases their
Fears of us. The Ceremony of contracting Friendship and Trade, is
dropping a little salt-water into the Eye, or taking it into their Mouth,
and spurting out again; which must be answer’d, or no Trade will
follow.
At Cape Apollonia, the Natives are of a jet black, very lively and
bold, accustomed to Trade, and better fetished than their
Neighbours; have cleaner and larger Tomys, wear Amber Beads,
Copper Rings, Cowrys, and their Wooll twisted in numberless little
Rings and Tufts, with bits of Shell, Straw, or Gold twisted in them.
They have all a Dagger † cut in their Cheek, and often in other Parts
of their Body: A Custom preserved among a few, down to the Gold
Coast. The Romans and Goths, when possessed of Barbary,
exempted the Christians from Tribute; and to know them, engraved a
+ upon their Cheeks; but this seems too distant for any Analogy with
theirs. All we learn is, its being a very ancient Custom, and
distinguishes them from the Country, who they Panyarr and sell for
Slaves, naked at 4 oz. per Head; allowing 100 per Cent. on Goods,
they cost at a medium 8l. Sterling. The Cabiceers, out of this,
demand a due of 20s. and the Palaaver-Man 10s. whence I
conjecture they are more regularly trained to Panyarring or thieving,
than the Towns we have past.
There is a great deal of Ground cleared about this Cape, and
sown with Indian Corn; first brought among the Negroes, it’s said, by
the Portuguese.
Cabo T R E S P U N T A S .
We stopped a few Hours at Axim in our Passage from Apollonia, and
anchored here June 7, most Ships doing it for the Conveniency of
watering, more difficultly supplied at any parts above. It is called
Three Points, from that number of Headlands that jutt one without
the other; within the innermost is a commodious Bay, nigh the
watering-place. John Conny, who is the principal Cabiceer, exacts a
Duty from all Ships, of an Ounce of Gold, for this Privilege; and
sends off a Servant with his Commission, a large Gold-headed
Cane, engraved John Conny, to demand it. Our Neglect herein, with
some opprobrious Treatment of the Agent, occasioned John Conny
next day to come down with a Posse and seize our Water casks
ashore, carrying away ten or a dozen of our Men Prisoners to his
Town. The Officer among them endeavouring to distinguish to John
the Difference of a King’s Ship from others, got his Head broke: John
(who understood English enough to swear) saying, by G—— me
King here, and will be paid not only for my Water, but the Trouble
has been given me in collecting it. Drink on, says he to the Sailors,
(knocking out the Head of a Half-Anchor of Brandy,) and eat what my
House affords; I know your part is to follow Orders. John, after some
trouble in negotiating, accepted in recompence, six Ounces of Gold,
and an Anchor of Brandy.
His Town stands about three Miles Westward of the watering-
place; large, and as neatly raftered and built, as most of our North or
West small Country Villages. Every Man his Coco-trees round the
House, and in the Streets (such as they are) sit People to sell the
Nuts, Limes, Soap, Indian Corn, and what is a great part of their
Food, Canky, the Work of the Women. It is made of Indian Corn,
after this manner; they pound it in a Mortar for some time, then
malaxing it with Water and Palm-Wine, they grind it still finer with a
Mull upon a great Stone, which every House almost has at the Door
for that purpose; baked or boiled in Cakes, it makes a hearty and
well-tasted Bread.
The Danish (or, as they say, the Brandenburghers) Fort was on an
adjacent Hill, of four or five Bastions, and could mount fifty Guns.
The Garison, when in being, probably taught the Natives the way of
marketing, observed only where the Factories are; but being some
few years since relinquished by them, it’s now in John Conny’s
possession, and has raised up some Contests and Palaavers with
the Dutch: for they pretending a Title of Purchase, sent a Bomb-
Vessel and two or three Frigates last Year, to demand a Surrendry;
but John being a bold and subtle Fellow, weighing their Strength,
answer’d, that he expected some Instrument should be shewed him
to confirm the Brandenburghers Sale; and even with that (says he) I
can see no Pretence but to the Guns, the Brick, and Stone of the
Building, for the Ground was not theirs to dispose of. They have paid
me Rent for it, (continues he) and since they have thought fit to
remove, I do not design to tenant it out to any other white Men while
I live. This sort of Palaaver nettled the Dutch; they threw in some
Bombs and Shot; and heating more with Rage and Brandy, very
rashly landed forty of their Men under the Command of a Lieutenant
to attack the Town: They fired once without any Damage, and then
John at the Head of his Men, rushing from under the Cover of the
Houses, outnumbred and cut them in pieces; paving the entrance of
his Palace soon after, with their Skulls.
This Advantage made him very rusty, upon what he called his
Dues from every body, tho’ just in Trade; and when we had returned
to a good Understanding, my self, with some other of our Officers
paid him a Visit: Our landing was dangerous, the Southerly Winds
making so great a Surff, nor could we do it by our own Boats, but
Canoos of his sending, paying an Accy for the Service; they count
the Seas, and know when to paddle safely on or off. John himself
stood on the Shore to receive us, attended with a Guard of twenty or
thirty Men under bright Arms, who conducted us to his House; a
Building pretty large, and raised from the Materials of the Fort. It
ascends with a double Stone Stair-case without, of twelve Steps; on

You might also like