Zekun Blog

Building and evaluating AI-powered products, agent systems, and local-first developer tools.

Visualization Cheat Sheet

A quick reference for efficient data visualization

Created by Zekun Wang Based on Storytelling With Data Download: PDF version

If home-field advantage exists, how much of an impact does it have on winning the World Series?

Probability and Statistical Inference - 04

Introduction In team sports, the term home advantage – also called home ground, home field, home-field advantage, home court, home-court advantage, defender’s advantage or home-ice advantage – ...

How often does the better team win the World Series?

Probability and Statistical Inference - 03

First, import the package. library(tidyverse) Introduction The World Series is the annual championship series of Major League Baseball (MLB) in North America, contested since 1903 between th...

What’s the difference between Absolute Error and Relative Error?

Probability and Statistical Inference - 02

Absolute error and relative error are calculated in slightly different ways, but that small difference leads to an important change in interpretation. Absolute error is influenced by sample size, w...

Roulette Simulation

Probability and Statistical Inference - 01

Background Roulette is a casino game named after the French word meaning little wheel. In the game, players may choose to place bets on either a single number, various groupings of numbers, the...