Data Engineering formula sheet
Every key data engineering formula on one printable page, with symbols and SI units. Save it as a PDF for revision.
- Data transfer time: calculator
- Storage estimate: calculator
- Event throughput: calculator
- Sample size (survey / A-B test): calculator
- Unix timestamp converter: calculator
- Bits and bytes: 1 byte = 8 bits; 1 kB = 10³ B, 1 KiB = 2¹⁰ B
- Transfer time: t = size × 8 / (bandwidth × efficiency)
- Storage: S = rows × bytes/row × days × replication / compression
- Throughput: B = events/s × bytes/event × 8 (bit/s)
- Sample size (proportion): n = z² · p(1 − p) / E²
- Mean, variance, standard deviation: x̄ = Σx/n, s² = Σ(x − x̄)² / (n − 1)
- Standard error of the mean: SE = s / √n
- z-score: z = (x − μ) / σ
- Pearson correlation: r = Σ(x − x̄)(y − ȳ) / √[Σ(x − x̄)² Σ(y − ȳ)²]
- Linear regression: b = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)², a = ȳ − b·x̄
- Bayes' theorem: P(A|B) = P(B|A) · P(A) / P(B)
- Classification metrics: precision = TP/(TP + FP), recall = TP/(TP + FN), F1 = 2PR/(P + R)
- Bloom filter false-positive rate: p ≈ (1 − e^(−kn/m))^k (k hashes, n items, m bits)
- Partitions needed: partitions ≥ target throughput / throughput per partition