Get Foundations of Data Science with Python 1st Edition John M. Shea PDF ebook with Full Chapters Now
Get Foundations of Data Science with Python 1st Edition John M. Shea PDF ebook with Full Chapters Now
com
https://ebookname.com/product/foundations-of-data-science-
with-python-1st-edition-john-m-shea/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookname.com/product/data-science-from-scratch-first-
principles-with-python-1st-edition-joel-grus/
ebookname.com
https://ebookname.com/product/managing-your-biological-data-with-
python-1st-edition-via/
ebookname.com
https://ebookname.com/product/data-visualization-with-python-and-
javascript-scrape-clean-explore-transform-your-data-1st-edition-kyran-
dale/
ebookname.com
https://ebookname.com/product/the-healthy-body-handbook-a-total-guide-
to-the-prevention-and-treatment-of-sports-injuries-1st-edition-david-
saidoff/
ebookname.com
The Pursuit of Excellence Through Education 1st Edition
Michel Ferrari
https://ebookname.com/product/the-pursuit-of-excellence-through-
education-1st-edition-michel-ferrari/
ebookname.com
https://ebookname.com/product/not-quite-the-diplomat-home-truths-
about-world-affairs-first-edition-chris-patten/
ebookname.com
https://ebookname.com/product/nothing-to-be-frightened-of-julian-
barnes/
ebookname.com
https://ebookname.com/product/grassroots-coalitions-and-state-policy-
change-organizing-for-immigrant-health-care-1st-edition-margaret-a-
post/
ebookname.com
https://ebookname.com/product/hyperbolic-dynamics-and-brownian-motion-
an-introduction-jacques-franchi/
ebookname.com
Creating Christian Granada Society and Religious Culture
in an Old World Frontier City 1492 1600 1st Edition David
Coleman
https://ebookname.com/product/creating-christian-granada-society-and-
religious-culture-in-an-old-world-frontier-city-1492-1600-1st-edition-
david-coleman/
ebookname.com
Foundations of Data
Science with Python
Foundations of Data Science with Python introduces readers to the fundamentals of data science, includ-
ing data manipulation and visualization, probability, statistics, and dimensionality reduction. This book
is targeted toward engineers and scientists, but it should be readily understandable to anyone who knows
basic calculus and the essentials of computer programming. It uses a computational-first approach to data
science: the reader will learn how to use Python and the associated data-science libraries to visualize,
transform, and model data, as well as how to conduct statistical tests using real data sets. Rather than rely-
ing on obscure formulas that only apply to very specific statistical tests, this book teaches readers how to
perform statistical tests via resampling; this is a simple and general approach to conducting statistical tests
using simulations that draw samples from the data being analyzed. The statistical techniques and tools are
explained and demonstrated using a diverse collection of data sets to conduct statistical tests related to
contemporary topics, from the effects of socioeconomic factors on the spread of the COVID-19 virus to
the impact of state laws on firearms mortality.
This book can be used as an undergraduate textbook for an Introduction to Data Science course or to
provide a more contemporary approach in courses like Engineering Statistics. However, it is also intended
to be accessible to practicing engineers and scientists who need to gain foundational knowledge of data
science.
Key Features:
• Applies a modern, computational approach to working with data
• Uses real data sets to conduct statistical tests that address a diverse set of contemporary issues
• Teaches the fundamentals of some of the most important tools in the Python data-science stack
• Provides a basic, but rigorous, introduction to Probability and its application to Statistics
• Offers an accompanying website that provides a unique set of online, interactive tools to help the
reader learn the material
John M. Shea, PhD is a Professor in the Department of Electrical and Computer Engineering at the Uni-
versity of Florida, where he has taught classes on stochastic methods, data science, and wireless com-
munications for over 20 years. He earned his PhD in Electrical Engineering from Clemson University in
1998 and later received the Outstanding Young Alumni award from the Clemson College of Engineering
and Science. Dr. Shea was co-leader of Team GatorWings, which won the Defense Advanced Research
Project Agency’s (DARPA’s) Spectrum Collaboration Challenge (DARPA’s fifth Grand Challenge) in 2019.
He received the Lifetime Achievement Award for Technical Achievement from the IEEE Military Com-
munications Conference (MILCOM) and is a two-time winner of the Ellersick Award from the IEEE Com-
munications Society for the Best Paper in the Unclassified Program of MILCOM. He has been an editor
for IEEE Transactions on Wireless Communications, IEEE Wireless Communications magazine, and IEEE
Transactions on Vehicular Technology.
Chapman & Hall/CRC
The Python Series
About the Series
Python has been ranked as the most popular programming language, and it is widely used in education and
industry. This book series will offer a wide range of books on Python for students and professionals. Titles
in the series will help users learn the language at an introductory and advanced level, and explore its many
applications in data science, AI, and machine learning. Series titles can also be supplemented with Jupyter
notebooks.
Python Packages
Tomas Beuzen and Tiffany-Anne Timbers
John M. Shea
Designed cover image: © Agnes Shea
MATLAB is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does
not warrant the accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB
software or related products does not constitute endorsement or sponsorship by The MathWorks of a
particular pedagogical approach or particular use of the MATLAB software.
First edition published 2024
by CRC Press
2385 NW Executive Center Drive, Suite 320, Boca Raton FL 33431
Reasonable efforts have been made to publish reliable data and information, but the author and publisher
cannot assume responsibility for the validity of all materials or the consequences of their use. The authors
and publishers have attempted to trace the copyright holders of all material reproduced in this publica-
tion and apologize to copyright holders if permission to publish in this form has not been obtained. If any
copyright material has not been acknowledged please write and let us know so we may rectify in any future
reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, trans-
mitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter
invented, including photocopying, microfilming, and recording, or in any information storage or retrieval
system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.com or
contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-
8400. For works that are not available on CCC please contact [email protected]
Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used
only for identification and explanation without intent to infringe.
DOI: 10.1201/9781003324997
Publisher’s note: This book has been prepared from camera-ready copy provided by the authors.
For Tucker, Charlotte, and Amelia—
Acknowledgments xi
Preface xiii
1 Introduction 1
1.1 Who is this book for? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Why learn data science from this book? . . . . . . . . . . . . . . . . . . . . 1
1.3 What is data science? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 What data science topics does this book cover? . . . . . . . . . . . . . . . . 5
1.5 What data science topics does this book not cover? . . . . . . . . . . . . . 6
1.6 Extremely Brief Introduction to Jupyter and Python . . . . . . . . . . . . . 6
1.7 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 Introduction to Probability 77
4.1 Outcomes, Sample Spaces, and Events . . . . . . . . . . . . . . . . . . . . . 77
4.2 Relative Frequencies and Probabilities . . . . . . . . . . . . . . . . . . . . . 78
4.3 Fair Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.4 Axiomatic Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4.5 Corollaries to the Axioms of Probability . . . . . . . . . . . . . . . . . . . . 94
4.6 Combinatorics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
4.7 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
vii
viii Contents
Index 485
Taylor & Francis
Taylor & Francis Group
http://taylorandfrancis.com
Acknowledgments
I want to thank the many people who helped make this book possible.
My love and thanks go to my wife, Jill, for twenty-five years of love and friendship;
this book would not be possible without the wonderful family and home we have created
together. I love that we can enjoy quiet times at home or adventures together all over the
world. This book is better because of your careful editing.
To my children, Tucker, Charlotte, and Amelia: I treasure every moment with you,
whether it is trading funny memes, solving the New York Times crossword puzzle, battling
at Ping Pong, running our family 5Ks, trying to guess the winner of Survivor, reading to-
gether, or just working side-by-side on the couch.
I thank my parents, Larry and Agnes Shea, for their unwavering love and support. Mom,
you are missed every day.
I have been inspired by too many dedicated engineering educators to list them all. I
have to especially thank my Ph.D. advisor, Dr. Michael Pursley, for mentoring me on how
to conduct research, how to teach, and how to write technically. Thank you to Dr. John
Harris, who convinced me to develop the data-science course on which this book is based.
Thank you to Dr. Catia Silva, who was my co-instructor for one of the semesters teaching
the data-science course.
Several students provided feedback on the book, including Caleb Bowyer, Walter Acosta,
Cortland Bailey, Brennan Borchert, Alexander Braun, Patrick Craig, Justin Nagovskiy,
Allison Neil, Michael Russo, Dieter Steinhauser, Phillip Thompson, and Marisa Younger.
xi
Taylor & Francis
Taylor & Francis Group
http://taylorandfrancis.com
Preface
This book is an introduction to the foundations of data science, including loading and
manipulating data, data visualization, statistics, probability, and dimensionality reduction.
This book is targeted toward engineers and scientists, but it should be easily accessible
to anyone who knows basic calculus and the essentials of computer programming. By
leveraging this background knowledge, this book fits a unique niche in the books on data
science and statistics:
• This book applies a modern, computational approach to work with data.
In particular, it uses simulations (an approach called resampling) to answer statistical
questions.
– Many books on statistics (especially those for engineers) teach students how to
answer statistical questions using only analytical approaches that many learners
find difficult to understand. Most learners can easily understand how resampling
works, in contrast to some arcane formula.
• This book uses real data sets and addresses contemporary issues.
– Many statistics books use contrived examples that are small enough to print in
a book and work with using a calculator, but this results in data sets that are
unrealistic and uninteresting. The computational approach used in this book allows
the use of data sets from across the web to conduct statistical tests on topics from
the effects of socioeconomic factors on the spread of the COVID-19 virus to the
impact of state firearm laws on firearm mortality.
• This book provides a basic, but rigorous, introduction to probability and its
application to statistics.
– Some of the other books that use the resampling approach to statistics omit the
mathematical foundations because they are targeted toward a broader audience
who may not have the rigorous mathematical background of engineers and scien-
tists.
xiii
xiv Preface
• This book shows how to work with some of the most important tools in the
Python data-science stack, including:
– NumPy for working with vectors and matrices, as well as many types of numerical
functions,
– SciPy for working with random distributions and conducting statistical tests,
– Pandas for loading, manipulating, and summarizing data,
– Matplotlib for plotting data, and
– scikit-learn for accessing standard data sets and for advanced statistical process-
ing.
• This book was co-written with a book that covers linear algebra and its
application to data science using Python and NumPy.
fdsp.net/intro,
which can also be accessed using this QR code:
Credits: The image at the top of this page is made using the Wee People font made by
ProPublica: https://github.com/propublica/weepeople. Inspired by a Tweet by Matthew
Kay: https://twitter.com/mjskay/status/1519156106588790786.
1
Introduction
Welcome to Foundations of Data Science with Python! This chapter provides an introduction
to the book and its place in the field of data science. It then provides a brief introduction
to some of the tools that are used throughout the book. By the end of this book, you
will learn how to analyze and interpret data, formulate hypotheses about the data, perform
statistical tests, and communicate your findings accurately and effectively.
DOI: 10.1201/9781003324997-1 1
2 Introduction
• This approach is more general than the traditional approach. It does not rely
on the data coming from specific probability distributions, and the same simulation can
be used to generate frequentist or Bayesian statistics.
Interactive flashcards and self-assessment quizzes are provided throughout the book
to help learners master the material and check their understanding. The entire set of
interactive materials can be accessed on the book’s website at fdsp.net.
The interactive materials use spaced repetition to help readers retain knowledge as they
progress through the book. Starting with Chapter 2, the interactive chapter reviews also
give a random subset of review problems from earlier chapters. Research shows that spaced
repetition improves the retention of material.
Each chapter of the book ends with “take-aways” that help summarize the important
points from the chapter and address issues that may be topics of questions in data science
interviews.
Definition
data
Collections of measurements, characteristics, or facts about a group.
Definition
data science
The process of extracting meaning from data.
Definition
data points
A collection of one or more pieces of information collected about a single
individual or entity.
Definitions
variables
Particular characteristics, measurements, or facts that make up a data point.
features
Individual pieces of information in a data set. While variables typically
represent unprocessed or raw data, features can include both variables and
processed versions of the variables.
In the machine-learning (ML) literature, the term feature is often used for both raw
and processed data, especially if the data are used as the input for some ML process.
Until Chapter 12, we will primarily work with existing data sets and refer to the pieces of
information that make up the data points as variables. In Chapter 13, we will consider how
to transform data to create new features.
Variables and features may be either quantitative or qualitative:
Definitions
quantitative data
Numeric data. Quantitative data may be either discrete (such as the number
of people in a family) or continuous (such as grade point average).
qualitative data
Non-numeric data. Qualitative variables are generally non-numeric categories
that data may belong to (such as hair color). Some categories may have an
order associated with them, but the order does not imply a numeric nature
to the categories. For example, a survey question may have responses from
Strongly Disagree to Strongly Agree.
• height
• weight
• yearly income
• college GPA
• wind speed
• population
• blood type
As engineers and scientists, our goal is to make sense of the world and to use what we
learn to take action. Data science applies computational tools and mathematical methods
to process and transform data for the purpose of better understanding what the data can
(and cannot!) tell us about the world.
Data scientists often start with a research question:
Definition
research question
A question that can be answered using research, including data collection
and analysis.
For instance:
• How fast was the COVID-19 coronavirus spreading when it first became prevalent in
the United States in the Spring of 2020?
One of the goals of a data scientist is to take broad research questions and translate
them into questions that can be answered using data. One set of criteria (from Designing
Clinical Research by Hulley, Cummings, Browner, Grady, and Newman) has the acronym
FINER, which stands for Feasible, Impactful, Novel, Ethical, and Relevant.
In this book, I have tried to address these issues by working with existing data sets to
answer questions that are important and timely. For instance, here are some ways that the
questions above may be reformulated so that they can be answered with data:
• Instead of “Does more education translate to more wealth?”, a data scientist may ask a
more specific question, such as “For people in the United States, does post-baccalaureate
education increase median net family wealth?”.
• Instead of “Do gun laws affect firearm mortality?”, a data scientist may ask “Are state
permitless-carry laws associated with a difference in average firearm mortality rates?”.
• Instead of “Is the climate changing?”, a data scientist may ask “Has the average annual
temperature in Miami, FL increased over the past 40 years?”.
• In assessing the rate of spread of the COVID-19 virus, the data scientist may ask “Was
the number of cases growing exponentially in March of 2020? If so, what was the
exponential growth rate?”.
What data science topics does this book cover? 5
Terminology review
FIGURE 1.1
Data science topics covered in this book.
Data science is a very broad topic. Data scientists use many different tools to make
sense of data, from databases to advanced ML algorithms. This book focuses on some of
the fundamental tools used to create meaning from data, and I have tried to introduce skills
and tools that will be useful to engineers and scientists in other contexts. The main topics
covered in this book are shown in Fig. 1.1 and described below:
• Simulation is used to emulate random phenomena and to carry out statistical tests.
• Visualization is used to transform data into graphical forms that help reveal trends in
the data or tell a story about the data.
• Data manipulation is the process by which data is loaded and prepared for analysis.
• Statistics is used to determine whether observations made from the data are meaningful
or could just be attributed to randomness in the data.
• Probability is used to create mathematical models for random phenomena; these mod-
els can be used to develop optimal estimators and make optimal decisions.
6 Introduction
Throughout this book, I use two key tools to enable this computational approach:
• Python is a versatile programming language that has a rich set of libraries that support
data science activities.
1.5 What data science topics does this book not cover?
This book focuses on the foundations of data science, and there are many important topics
that could not be included. In particular, a prospective reader should know that:
• This is not a machine learning book. In particular, this book does not cover neural
networks at all.
• This book assumes that the reader knows the basics of linear algebra and how to work
with vectors and matrices in NumPy. However, I wrote this book simultaneously with
another book called Introduction to Linear Algebra for Data Science with Python that
provides the necessary background on linear algebra.
• This book does not cover many practical aspects of working with data, such as using
databases to retrieve and store data. Nor does it provide much coverage of different
approaches to “cleaning” data, such as dealing with missing or mislabeled data.
• This book does not provide comprehensive coverage of the libraries that are used, such
as NumPy, Pandas, and scikit-learn; rather, it focuses on showing how to use these
libraries for some foundational data science techniques.
• This book does not address many important issues related to the ethics of data science.
On the website for this book (fdsp.net), I provide a list of suggested “Next Steps” that
include books and online materials that address these important topics.
your computer’s operating system. You may also have to select a version of Python. This
book is based on Python 3, which means that any version of Python that starts with the
number 3 should work with the code included in this book. For instance, as of May 2023,
the Anaconda distribution included Python version 3.10.
WARNING
After downloading, install Anaconda however you usually install software(for instance,
by double-clicking on the downloaded file). Anaconda will install Python and many useful
modules for data science, as well as Jupyter notebook and JupyterLab.
Note:
The term “Jupyter notebook” refers to a file format (with .ipynb extension), while
“Jupyter Notebook” (with a capital N) refers to an application with a web interface
to work with those files. To help avoid confusion, I will write Jupyter notebook file
or simply notebook whenever referring to such a file, and we will use JupyterLab as
the web application for opening and working with such files.
As of January 2023, JupyterLab “is the next-generation web-based user interface for
Project Jupyter”. (from https://jupyterlab.readthedocs.io/en/stable/). The Jupyter Note-
book application offers a simple interface for working with notebooks and a limited number
of other file types. JupyterLab has a more sophisticated interface and can include many
different components, such as consoles, terminals, and various editors. The interface for
working with notebooks is similar in both, and most users will be able to use either one
interchangeably.
FIGURE 1.2
Example directory structure for organizing files for working through the examples and
exercises in this book.
We will use the file “jupyter-intro.ipynb”, which is available on this book’s website at:
https://www.fdsp.net/notebooks/jupyter-intro.ipynb
If your browser displays the notebook as text, you will need to tell it to save it as a
file. You can usually do this by right-clicking or control-clicking in the browser window and
choosing to save the page as a file. For instance, in Safari 14, choose the “Save Page As…”
menu item. Be sure to name your file with a .ipynb ending.
Hint: If your file was saved to your default Downloads folder, be sure to move it to an
appropriate folder in your data-science folder to keep things organized!
2) Start JupyterLab.
JupyterLab can be started from the Anaconda-Navigator program that is installed with
the Anaconda distribution. Start Anaconda-Navigator, scroll to find JupyterLab, and then
click the Launch button under JupyterLab. JupyterLab should start up in your browser.
Alternative for command-line users: From the command prompt, you can start Jupyter-
Lab by typing jupyter lab (provided the Anaconda bin directory is on the command line
search path). Because setting this up is specialized to each operating system and command
shell, the details are omitted. However, details of how to set up the path for Anaconda can
be found at many sites online.
Your JupyterLab should open to a view that looks something like the one in Fig. 1.3.
WARNING
If you have used JupyterLab before, it may not look like this – it will
pick up where you left off!
FIGURE 1.3
The JupyterLab interface.
indicates that the file browser is selected. For this book, we will use the left
sidebar only to access the file browser.
3. The main work area is to the right of the left sidebar. The main work area will
usually show whatever document you are working on. However, if you have not
opened any document yet, it will show you different types of notebooks that you
can open and other tools that you can access. To start a completely new Jupyter
notebook file that can run Python 3 code, you could click on the Python 3 icon
under Notebooks. For now, you do not need to do that.
Detailed documentation for JupyterLab is available at
https://jupyterlab.readthedocs.io/.
Use the file browser in the left sidebar of JupyterLab to navigate to the downloaded file.
If the file browser is not already showing your files, click on the folder icon (on the very
left-hand side of the window) to switch to it.
Navigation using the file browser should be similar to navigating in most file selection
boxes:
After spending two days devoted to the care of the wounded, and
the burial of the dead, the fort was blown up and completely
destroyed, the rifle pits levelled, and a hundred wagons which had
been captured, were burnt. On the 18th, General McClernand
embarked with the main body of his troops, and proceeded down the
Arkansas river to Napoleon, where a conference was held with
General Grant and Admiral Porter, and future operations were
planned.
Meantime an expedition of light-draught steamers, under
Lieutenant-Commander J. G. Walker, and a body of troops led by
General Gorman, had proceeded up the White river, and captured
the towns of Des Arc and Duval’s Bluff.
General McArthur’s corps of General Grant’s army, left Memphis
on the 20th of January on transports, and landed at Young’s Point,
on the west side of the river, about nine miles above Vicksburg. Here
the greater part of the fleet was concentrated; and on the 2d of
February, General Grant arrived, and assumed command of the
army. At this point a canal had been commenced by General
Williams, previous to the unsuccessful attack on Vicksburg the year
before, for the purpose of effecting a passage for vessels across the
peninsula in front of Vicksburg out of range of the enemy’s guns.
The attack on Vicksburg, from up the river, had demonstrated the
strength of its defensive works on the north, and convinced General
Grant that they were too strong to be carried without a very heavy
loss. The first step for him to accomplish, therefore, was the
transportation of his army below the city, in order to make an attack
from the south. The passage by the river was too hazardous to be
attempted. The formidable batteries on the river front at Vicksburg
were capable of destroying all the transports. Work was therefore
recommenced on the canal. While this work was in progress, the
river continued to rise rapidly, and great labor was required to keep
the water out of the canal, and also out of the camps of the laborers
and soldiers. In addition, the rain was incessant, and the magnitude
of the work was, from these causes, greatly increased. The earth
taken out of the excavation was placed on the west side, and thus
formed an embankment or levee, which it was supposed would
prevent the water from flooding the country.
While a portion of General Grant’s forces were employed in cutting
the canal at Young’s Point, their commander, firmly intent on
accomplishing the great enterprise before him, was industriously
employed in the prosecution of other plans, which might be
consummated in the event of a failure in the canal at the peninsula. A
channel was cut from the Mississippi into Lake Providence, on the
west side of the Mississippi, and another into the Cold Water river on
the eastern bank, by way of the Yazoo Pass.
While these operations were in progress, a daring enterprise was
undertaken by Colonel Charles E. Ellet, commander of the ram
steamer Queen of the West, by which he hoped to destroy a
formidable rebel steamer called the City of Vicksburg, then lying
under the guns of the fortifications at that place.
The Queen of the West had been previously provided with all the
arrangements deemed necessary to insure the complete success of
the dangerous undertaking. Three hundred bales of cotton had been
procured further up the river and placed on board, particularly about
the machinery, in order to save her from any serious injury by shot
and shell from the rebel batteries. Rear-Admiral Porter had given
orders that she should proceed down to Vicksburg, destroy the rebel
steamboat City of Vicksburg, lying opposite the city, and then run
past the lower rebel batteries. The Colonel was directed to keep close
to the right bank going down, to have all his lights on board
extinguished—as it was intended that she should run the gauntlet in
the darkness—and having safely passed the batteries, to anchor
below the mouth of the canal and there wait for further orders.
The Colonel started with the ram from above the bend at half past
four o’clock in the morning. It was about six o’clock, just as the sun
was rising, when the ram rounded the point of land lying opposite
Vicksburg. She had only men enough on board to work her, it having
been arranged that the remainder of the crew would cross the point
of land and get on board of her below after she had passed the
batteries. When rounding the point she was distinctly seen by the
rebels. They immediately opened a heavy fire from several of their
batteries, which crowned the crests of the bluffs about the city. The
Queen slowly and steadily proceeded down the river under a heavy
fire from those batteries, until she reached a point opposite the spot
where the steamboat City of Vicksburg was lying. Colonel Ellet saw
that the steamboat was lying in almost the same position as was the
rebel ram Arkansas when he ran into her with the Queen of the West.
If the rebel steamboat should be struck as the ram was running down
the river, the prow, instead of penetrating her, would be inclined to
glance, and the full force of the blow would thus be lost. Wishing to
make the shock as effective as possible, when the ram had reached
the proper position the Colonel turned her partly around, so as to
face the city, and then made across the river straight for the fated
steamboat. The rebels, who had crowded on the banks, scampered
off in the most affrighted manner from the shore, and sought safety
in the city. The ram still went steadily on to the execution of her
destructive errand. She struck the rebel steamboat forward of the
wheel-house; but at the moment of collision the current caught the
stern of the ram and swung her round so rapidly that nearly all the
momentum of the blow was lost. To set the rebel steamboat on fire
was part of the arrangement. That portion of the programme was
intrusted to Sergeant J. H. Campbell. He was directed to fire the
forward guns, loaded with combustible balls saturated with
turpentine. As the ram swung round he was ordered to fire them.
Just at that moment a 64-pound shot from one of the rebel batteries
came crashing into the barricade of cotton near him; but the brave
Sergeant did not hesitate a moment in the execution of the order.
The guns were fired, a tremendous blaze was vomited forth from
them, and the rebel steamboat was in flames.
About the same time the ram was found to be on fire. A shell from
shore had set her on fire near the starboard wheel, while the
discharge of the guns with the combustible balls had fired the cotton
on her bow. Both steamboats were thus ablaze at the same time. The
flames spread rapidly on both vessels. The smoke from the front of
the ram rushed into her engine-room and threatened to suffocate the
engineers. Those on board the rebel steamboat did all they could do
to extinguish the flames on their boat. This they soon accomplished.
Colonel Ellet had intended to strike the rebel steamboat in the stern,
and thus finish the work of demolition; but the spreading flames on
the Queen of the West made it necessary for him to attend to the
safety of his own vessel. He therefore ran down stream, and set all
hands on board at work extinguishing the flames. Though the cotton
had been wet before starting, the fire was extending rapidly, and
several burning bales were thrown overboard in order to save the
ram. She then anchored below the mouth of the canal, where she
awaited further orders.
All this time, both when approaching the city and leaving it, the
rebel batteries were blazing away at the Queen of the West with light
and heavy guns. It was a very exciting scene. About one hundred and
twenty shots were fired from the batteries; but the ram was struck
only twelve times, and sustained no material injury.
The Queen of the West now proceeded down the Mississippi, and
when below Natchez, burned three small rebel steamers, the Moro,
Berwick Bay, and A. W. Baker, laden with stores for the army at
Vicksburg. After cruising for two weeks in the Atchafalaya, the Red
river, and other tributaries of the Mississippi, inflicting serious injury
on the rebel commerce, and capturing several vessels, she finally
ventured up the Black river, and captured the rebel steamer Era. She
proceeded to Fort Taylor, some fifty miles from the mouth of the
river, where she grounded on a bar, exposed to the fire of the guns of
the fort, and her crew was compelled to abandon the vessel, which
fell into the hands of the enemy. Captain Ellet and most of the men
succeeded in reaching the Era, and effected their escape.
On the 30th of April General Grant, with the three selected corps
de armeé, viz.:—the Thirteenth, General McClernand; the Fifteenth,
General Sherman, and the Seventeenth, General McPherson, crossed
from the Louisiana side of the Mississippi river and landed at
Boulinsburg.
The total number of killed in the fleet was twenty-six, and the
wounded fifty-four.
The bombardment was terrific, the gunboat men exhibiting a
coolness, courage and determination which it seemed nothing could
resist. The rebels stood bravely to their guns, but the steady and
heavy fire of the iron-clads drove them again and again. All the boats
were struck repeatedly; but the Tuscumbia was the only one
materially damaged. She had her hogchains cut away, and was
otherwise so badly damaged that it was deemed advisable to remove
her from the scene of action.
Finding it useless to protract the contest when the object to be
attained could be reached by another way, the gunboats moved out of
range and prepared to run the blockade at night. The usual
precautions were taken to prevent casualties, and each gunboat
carried all the troops it could conveniently accommodate. The
transports were filled with troops, and all the barges crowded—so
eager were the soldiers to take part in the exciting scene. The
gunboats started first, and were subjected to a severe fire, for it was
almost as bright as midday; the moon shining from a cloudless sky.
When the transports appeared the concentrated fire of the rebel
batteries was directed to them; but none of the vessels were disabled.
The Cheeseman had six or seven horses killed by the explosion of a
shell; but no lives were lost, as far as heard from.
General Grant was aboard a tug during the fight, and directed the
movement of troops, under cover of the gunboat fire. The forces
landed at Bayou Pierre.
BOMBARDMENT OF HAINES’ BLUFF.
For a long time Colonel Grierson’s ambition had been to lead the
cavalry force under his charge into the enemy’s country. At last he
received an intimation from General Grant’s headquarters that his
desire would be gratified. Colonel Grierson commanded the First
brigade of cavalry under General Grant. This force had been for some
time occupying Lagrange, Tenn., which is a small town on the
Memphis and Charleston railroad, about fifty miles east of the city of
Memphis, and four miles west of the junction of the Mississippi and
Charleston railroads. When Colonel Grierson first received
permission to move with his force into Mississippi, one of the chief
objects of the expedition was to cut off the means of communication
between the rebel army of the West, and that of General Bragg, then
in Middle Tennessee; but when the expedition was once begun, it
branched off into many unthought-of directions, and ended in being
one of the most brilliant, as well as important feats of the war.
On the morning of the 17th of April, Colonel Grierson received
orders from General Grant to move his force out on the Ripley road;
accordingly, his brigade, consisting of the Sixth Illinois cavalry,
commanded by Lieutenant-Colonel Loomis; the Seventh Illinois
cavalry, Colonel Edward Prince; and the Second Iowa cavalry,
Colonel Edward Hatch, obeying the directions they had received,
bivouacked for the night on a plantation a few miles northwest of the
town of Ripley. During the night five guerrillas were captured by the
Union men. On the morning of the next day the march began; the
main body of Colonel Grierson’s men proceeded in a southerly
direction, while one regiment, the Second Iowa, crossed the
Tallahatchie, and went in a southeasterly direction. On both sides of
the river the enemy’s pickets were posted in all directions,
endeavoring to prevent the Union soldiers from crossing, and there
was constant skirmishing between them and the rebels. The pickets
were constantly driven in; and an attempt to fire the bridge at New
Albany was prevented by the rapid movements of Grierson’s men. At
the close of the day the Union troops had accomplished their
contemplated march, and were stationed as follows: the Sixth and
Seventh Illinois regiments were encamped on a plantation a few
miles south of New Albany, and the Second Iowa about four miles
east of the same place. The Second Iowa, during the night, repulsed a
severe attack of the enemy. On the morning of the 19th, Colonel
Grierson dispersed his troops in various directions, with a view to
mislead the enemy, and cause him to suppose that the main object of
the expedition was to break up the various military organizations in
that part of the country. Accordingly, one detachment marched to
the eastward, another moved back toward New Albany, and a third
marched northwest towards King’s Bridge; and the enemy was thus
completely puzzled and in total ignorance of the real destination of
the Union forces.
Colonel Grierson himself, with the main body of his command,
marched in a southerly direction, and were subsequently joined by
the remainder of the force, when they took the road to Pontotoc.
There they met a detachment of the rebels, who fled before them,
after the exchange of a few shots, and were hotly pursued, and driven
through the town. Their entire camp equipage was captured, and a
large store of salt, which was destroyed. The march was then
continued till about eight o’clock at night, and the men encamped at
a point on the road leading to Houston, a few miles south of the
Pontotoc. At an early hour on the following morning the reveille was
sounded. Major Lull of the Second Iowa, with about one hundred
and fifty picked men, and one piece of artillery, was then sent back to
Lagrange in charge of all the prisoners and captured property which
had been taken from the rebels, in order that the force might be
relieved of all incumbrance, and the enemy made to suppose that
Colonel Grierson was retracing his steps.
At five o’clock on the morning of the 21st, Colonel Hatch was
ordered with his command to proceed up the Columbus road, and
destroy as much of the Mobile and Ohio railroad as was possible; and
to attack Columbus These orders were successfully carried out; and
Colonel Hatch, with the troops under his command returned to
Lagrange, and thus aided in still further deceiving General Chalmers
(who was in command of the rebels at this point) in regard to the
movements of Colonel Grierson.
In the mean time the remainder of the Union forces had continued
their march, and reached Starkville, where they captured and
destroyed a rebel mail which had arrived; and set fire to and utterly
destroyed one of the finest tanneries in the country, which they
reached after continuing their march for five miles in a southerly
direction.
On the following day, the 22d, the march was not only
disagreeable, as the men were often compelled to swim their horses
through streams and lead them over blind marshes, but extremely
perilous; for often horse and rider would sink into the marsh
together, and though the men escaped with life, the hapless animals
often disappeared and were lost. With unparalleled fortitude the men
pushed on; and at ten o’clock the next morning they reached
Philadelphia, Miss. At this place the mail was taken from the post-
office, and destroyed, but nothing else was injured in any way.
On the following day the march was vigorously prosecuted. A
battalion was sent by the Southern railroad to Decatur and Newton,
where they were joined the same night by the main body, under
Colonel Grierson. Two trains of cars were captured at Newton, laden
with every description of commissary stores, and a large quantity of
ammunition and loaded shell. All were destroyed, and the
locomotives rendered unfit for any further service. The march was
then resumed, and continued till the 25th, when a halt was made at a
plantation a few miles west of Montrose, the men having fired every
bridge which they passed on the way. From this place the route was
slightly changed, and the cavalry pressed on in a more southerly
direction.
At Raleigh they halted for the night, and a scout who had been sent
out to cut the telegraph wires on the Southern railroad between Lake
Station and Jackson, was met by the enemy, and questioned as to the
whereabouts of Grierson’s men. The rebels were then on the direct
road to the camp, and not more than fourteen miles distant; but the
scout, with admirable self-possession, parried their questions, and
succeeded in misleading them as to the position of the Union troops,
and then escaped and hastened back to camp in time to give
information of the enemy’s proximity. Colonel Grierson immediately
moved his men across Leaf river, and destroyed the bridge to prevent
the rebels following and attacking him in the rear. They then
marched on to Westville, and swam their horses across Reaul river,
at a point ten miles from Westville. The advance, under Colonel
Prince, had by this time reached Hazlehurst station, where they
captured a train of forty cars,—four of which were filled with shell
and ammunition, and the remainder with commissary stores. As the
march continued, the cavalry came upon a team carrying a 32-pound
Parrot gun, which was then on its way to Fort Gibson. The piece was
captured and spiked. Two detachments from the main body had been
doing serious damage to the rebels, burning cars, water tanks, and a
great deal of other property.
At early dawn on the 28th, the advance moved upon Brookhaven,
and entered the town so suddenly that two hundred rebels were
taken prisoners, before they had recovered from their surprise at
finding themselves confronted with Union soldiers. At Gallatin a
camp of instruction, said to have been one of the most beautiful and
extensive in the State, was utterly destroyed. After leaving Gallatin,
the Union cavalry encountered a rebel cavalry force under Colonel
Garland, and a skirmish occurred, in which the enemy suffered
severely in killed, wounded, and prisoners. Two clever feints,
menacing Port Gibson and Natchez, deceived the enemy again, and
the main body marched straight forward to Brookhaven, which was
already occupied by Colonel Grierson’s advance.
On the 30th, the whole force left Brookhaven, and proceeded to
Bogue Cluto Station, destroying every bridge on the way. At the
station, fifteen freight cars, which were standing on the track,
partially loaded, were fired, and utterly destroyed. From that point to
Summit a rapid march was performed, and there twenty-five freight
cars were reduced to ashes. Information was sent to Colonel Grierson
that a regiment of rebel cavalry was rapidly moving toward Wassitta,
and they were discovered at Wall’s bridge on the Tickfaw, by a
detachment of Union cavalry, who dashed in upon them, and killing
and wounding a large number, put the rest to flight. Colonel
Grierson’s loss was one killed and five wounded.
The march again continued, at first east of the Tickfaw, and then
changing again continued directly south, marching through woods,
lanes and by-roads, and struck a road which led directly from Clinton
to Osyka. There the cavalry came most unexpectedly upon the Ninth
Tennessee cavalry regiment, which was posted in a strong defile
guarding the bridges across the Tickfaw river. A sharp skirmish
ensued, in which the enemy’s pickets were captured, and the
regiment driven back with great loss. The cavalry then crossed the
river at Edward’s bridge, where they were met by Garland’s rebel
cavalry, which they put to flight with a single battalion of the Sixth
Illinois, and two guns of the battery, without even halting the
column. It was clearly perceived now that the rebels were sending
out forces in all directions to intercept the march of Colonel
Grierson’s troops.
At midnight the Amite river was crossed, over which there was but
one bridge; and the National troops were just in time to escape a
heavy column of infantry and artillery which had been sent to
intercept them. They moved on to Sandy creek, where Hughes’
cavalry, under Lieutenant-Colonel Wilburn, were encamped, and
reached that point at dawn of day. The rebel camp, completely
surprised, was in no condition to make a successful resistance, and a
large number of the enemy were taken prisoners; the camp,
consisting of one hundred and fifty tents, was destroyed, together
with a great quantity of ammunition, guns, public and private stores,
books, papers, and public documents. A large number of horses were
captured also; and the cavalry then took the road to Baton Rouge,
and on the way surprised Stuart’s cavalry at Commite river, and took
prisoner forty men with their arms and horses.
On the morning of the 1st of May, the commander at Baton Rouge
was startled by the intelligence of the close proximity of Grierson’s
cavalry, and sent out two companies under Captain Godfrey, to meet
and welcome them. The troops entered the city at three o’clock in the
afternoon, amid cheers and shouts of welcome that rent the air, and
echoed along the hills toward Port Hudson. Thus in less than sixteen
days this heroic cavalry force had marched over six hundred miles,
over marshes and rivers, endangering their lives for whole days at
every mile they traversed. The last twenty-eight hours’ march was
performed without either rest or food to men or horses. The loss to
Colonel Grierson’s command during the whole journey was three
killed, seven wounded, five sick and left upon the route, and nine
men missing. Of the enemy, over one hundred were killed and
wounded; five hundred taken prisoners (many of them officers);
from fifty to sixty miles of railroad and telegraph wire destroyed, and
three thousand stand of arms, together with army stores and
government property, captured and destroyed—making in all a loss
to the rebels of over three million dollars.
BATTLE OF RAYMOND, MISS.
May 12, 1863.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com