Leanpub Header

Skip to main content

Visual Maths for ML: Information Theory

Measure uncertainty. Compare predictions.

Visual Maths for ML: Information Theory
This book is 100% completeLast updated on 2026-10-19

Measure uncertainty. Compare predictions. Annotated diagrams and worked examples. Includes PDF and EPUB.

Minimum price

$7.00

$7.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
About

About

About the Book

Measure uncertainty. Compare predictions. Build intuition through annotated diagrams, small worked examples and step-by-step explanations.

WHAT YOU WILL LEARN

1. Probability and information

Probability reports, next-token predictions, weighted averages, exponentials, logarithms and fractional powers.

2. Surprisal and units

Information as negative log probability; bits versus nats; why independent-event information adds and how rare events carry more information.

3. Entropy and coding

Expected surprisal, worked entropy calculations, binary entropy and its maximum, and prefix codes as a way to represent outcomes.

4. Score a prediction

Cross-entropy, observed-label negative log-likelihood, products of likelihoods and average log loss; comparing probability forecasts.

5. Compare distributions

KL divergence, its relationship to cross-entropy and entropy, why direction matters, and the consequence of assigning zero probability to possible outcomes.

6. Information shared by variables

Joint entropy, conditional entropy and mutual information, with a small weather dataset and step-by-step calculations.

7. Use information in ML

Decision-tree information gain, perplexity for predictions, and the reconstruction-plus-KL objective in a variational autoencoder.

8. Check understanding

Calibration, interpreting probability quality, worked numerical examples and practice that connects the measures.

WHAT IS INCLUDED

34-page PDF: a cover plus 33 illustrated lesson pages. A fixed-layout EPUB preserves the same visual pages and includes navigation. The lesson text is embedded in images and does not reflow; phones may require zooming.

A free opening-lesson PDF lets you preview the teaching style before buying.

WHO IT IS FOR

Readers who want a visual, example-led introduction or refresher. Follow the calculations and practice checks at your own pace.

Pramod Kumar Tyagi · www.bitmonkey.ai

© 2026 Bitmonkey IT Services Pvt Ltd. All rights reserved.

Share this book

Author

About the Author

Pramod Tyagi

Pramod Kumar Tyagi is an AI and digital architect with more than 20 years of experience designing and scaling enterprise technology platforms. He is the founder of Bitmonkey IT Services Pvt Ltd, where his work spans AI products, digital transformation and interactive AI/ML education.

Previously, Pramod served as Principal Architect and Head of Enterprise Integration & AI Centre of Excellence at NTT DATA Services. His experience includes AI and machine learning, cloud architecture, data platforms and intelligent automation across banking, payments, healthcare, retail and supply chain.

He holds an MS in Aerospace Engineering from the Indian Institute of Science (IISc), Bangalore, and is a TOGAF-certified solution architect.

His illustrated books use annotated diagrams, worked examples and practical scenarios to help readers build intuition for programming and the mathematics behind machine learning.

Explore his work at www.bitmonkey.ai.

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub