Foundations of Analytics & AI
Use of AI-Assisted Tools
The initial draft of this textbook was written by the author. Subsequent revisions and refinements were supported by digital writing tools, including large language models and grammar-support software, such as Grammarly, Gemini, ChatGPT, and various markdown, text and Python linters. These tools were used to assist with organization, revision, and clarity of exposition. All conceptual content, interpretations, examples, and pedagogical decisions remain the responsibility of the author, who reviewed, edited, and verified all material for accuracy and coherence.
Welcome
Foundations of Analytics & AI is a modular, evolving textbook designed to introduce the core ideas, computational tools, and analytical workflows that underpin modern data-driven decision-making. The text integrates conceptual understanding with hands-on examples. Including:
- Explanations of key concepts
- Demonstrations and worked Python examples
- Short conceptual notes to reinforce essential ideas
- Mini-labs that integrate skills into complete workflows
The book is structured so readers can progress linearly or for those with some experience, navigate directly to topics of interest.
How This Textbook Is Organized
The material is grouped into three major parts: foundational concepts → computational skills → applied machine learning and AI methods.
Part I — Conceptual Foundations of Analytics & AI
These chapters develop the core ideas that unify analytics, machine learning, and AI systems. They are concept-only and require no coding background.
- Chapter 1 — What Is Analytics and AI?
- Chapter 2 — AI Systems: Data, Models, and Logic
- Chapter 3 — Data Pipelines & Decision Frameworks
Part II — Python & Data Foundations
These chapters introduce programming concepts and data skills used throughout modern analytics and AI practice.
They combine explanation with practical Python examples.
- Chapter 4 — Python Execution Foundations
- Chapter 5 — Python Basics: Data, Control, Functions
- Chapter 6 — Working with Tabular Data in Pandas
- Chapter 7 — JSON and APIs for Data Access
- Chapter 8 — Simulation and Synthetic Data
- Chapter 9 — Visualization: From Data to Insight
Readers already familiar with Python may skim or skip based on experience.
Part III — Machine Learning & Applied AI
(Chapters appear as they are completed.)
Each chapter in this part will integrate:
- Conceptual Foundations
- Python Implementation
- Interpretation & Diagnostics
- Mini-Labs
Planned topics include:
- Supervised learning
- Regression and classification
- Model evaluation and diagnostics
- Overfitting and the bias–variance tradeoff
- ML pipelines
- Unsupervised learning and clustering
- PCA and dimensionality reduction
- Neural networks and deep learning
- Convolutional networks
- Large Language Models (LLMs)
- Retrieval-Augmented Generation (RAG)
As chapters are released, links will appear here.
Practical Guides
Task-oriented reference pages that support installation, configuration, and technical troubleshooting.
- Using the Terminal or PowerShell
- Installing Python,
uv, and VS Code
- Using Google Colab
- Optional: Stabilizing VS Code Updates
Learning Philosophy
This textbook is built around two reinforcing goals:
AI Literacy
Understanding how analytical and AI systems are structured, why they behave as they do, and how they influence decision-making.
Practical Capabilities
Developing the ability to implement real analytical workflows using Python, diagnostic tools, and modern data processing libraries.
Accessing Code and Data
All example code and supporting data for the text are provided in organized folders:
code/— downloadable Python scripts and examples
data/— datasets used in demonstrations and mini-labs
Download the full repository or browse files individually.
Copyright and Use
© 2026 Joel Davis. This work,including all text, figures, and diagrams, may be used, shared, adapted, remixed, and redistributed for any purpose, including commercial use. No permission is required. Attribution is appreciated but not required. This content is provided as-is, without warranty.
This work is dedicated to the public domain under the Creative Commons CC0 1.0 Universal license.
Welcome to Foundations of Analytics & AI.
Have fun!