About AIbyExamples
AIbyExamples is a free, open educational ebook that teaches the essentials of Artificial Intelligence through clear writing and hands-on code. Most AI resources are either too theoretical or too shallow. This book sits in the middle: enough theory to understand why, and enough code to understand how.
Our mission
Make artificial intelligence approachable by pairing every concept with a small piece of code you can actually run.
Who it is for
Students, developers, and curious professionals who want a practical, no-fluff introduction to modern AI.
How to use it
Read a chapter, run its snippets, then tweak them. Breaking working examples is the fastest way to learn.
What you will learn
Introduction to Artificial Intelligence
What AI really is, a short history of the field, and where it shows up in the products you use every day.
Statistics & Probability Foundations
The essential math behind AI — descriptive statistics, probability, distributions, and hypothesis testing with hands-on Python examples.
Machine Learning Basics
The core vocabulary of ML: features, labels, training, and the difference between supervised and unsupervised learning — with runnable examples.
Neural Networks Fundamentals
How artificial neurons work, how layers stack into networks, and how training with backpropagation actually adjusts the weights.
Practical Code Examples
Copy-paste-ready Python examples for classification, image recognition, text sentiment, and calling a modern language model.
Natural Language Processing
How computers understand, generate, and translate human language — from tokenization to transformers.
Computer Vision
Teaching machines to see — from pixel grids to image classification, object detection, and real-world applications.
Generative AI & Large Language Models
The technology behind ChatGPT, image generators, and the new wave of creative AI — how it works and how to use it responsibly.
Start your journey
The whole book takes about 45 minutes to read — and much longer to master. Begin whenever you are ready.
Read Chapter 1