• 📖 Cover
  • Contents

Contents

Contents

Tap any chapter to start reading.

Chapter 0 Basics of Python

Variables, strings, booleans, if/else, loops, and functions — assumes zero prior coding experience.

Chapter 1 Python Essentials

Lists, list comprehension, pandas Series, NumPy arrays, SciPy distributions, and Matplotlib plotting.

Chapter 2 DataFrames

Load, explore, select, modify, plot. Missing values, standardization, time series methods.

Chapter 3 Linear Regression

CAPM, Fama–French, inference, train/test, residual diagnostics, multiple regression on real pharmacy profit data.

Chapter 4 Clustering

K-Means, hierarchical clustering, customer segmentation, Forbes financial case study.


How to read this book

Every Python code block in this book runs live in your browser. Click into any cell, edit it, press the ▶ Run button, and see the output. The Python engine downloads once on the first chapter — after that, everything is instant.

Tips for self-study
  • Read in order if you’re new to programming — each chapter builds on the last.
  • Edit the code cells. Break things on purpose. That’s how you learn.
  • If a chapter feels long, take a break. Bookmark the page (it remembers where you are).
  • Skip nothing in Chapters 0 and 1 — they are the foundation.

← Back to Cover

 

Prof. Xuhu Wan · HKUST ISOM · Intro to Business Analytics