Hi, I'm Vivek ๐Ÿ‘‹

Data Science & Deep Learning enthusiast. I write about R, Python, Haskell, and Julia โ€” with code examples you can run right here in the browser, no setup required.

Latest posts

View all โ†’

Beyond Accuracy: Classification Metrics and Class Imbalance in MLJ.jl

Why accuracy lies on imbalanced data, and how precision, recall, F1, ROC-AUC, and precision-recall curves tell the real story โ€” built up from the math and implemented in Julia with MLJ.jl, on a synthetic churn dataset with a known, verified answer.

  • julia
  • mlj
  • machine-learning
  • classification
  • statistics

A Practical Guide to Sampling Methods, in R and Julia

Simple random, systematic, stratified, and cluster sampling, plus the bootstrap โ€” explained with the math, implemented in both R and Julia, and checked with a Monte Carlo simulation that shows exactly why stratified sampling wins and cluster sampling doesn't.

  • statistics
  • r
  • julia
  • data-science
  • sampling

A/B Testing and Statistical Significance, Explained With a Simulation

What a p-value actually means, why 'statistically significant' isn't the same as 'real,' and why peeking at your A/B test results early quietly wrecks your false-positive rate โ€” demonstrated with a runnable Monte Carlo simulation, not just formulas.

  • statistics
  • python
  • data-science
  • a-b-testing
  • experimentation