Skip to content
alirezarezvani avatar

Senior Data Scientist

Structured guide for A/B tests, feature pipelines, model evaluation, and difference-in-differences analysis in Python.

CCM score
68 of 100
skills.sh installs
1K
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four workflows: A/B test design and analysis, feature engineering pipelines, model training and evaluation, and difference-in-differences causal estimation
  • Includes runnable functions for sample sizing, two-proportion z-tests, cross-validated scoring, MLflow logging, and OLS DiD with HC3 errors
  • Enforces checklists such as pre-start sample sizing, user-level randomisation, a sample ratio mismatch check, and fitting transformers on train data only
  • Designed for analysts who need to set up or read an experiment, judge whether a change caused a lift, or assess a classifier's quality

Install

$ npx -y skills add alirezarezvani/claude-skills --skill senior-data-scientist -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Senior Data Scientist

World-class senior data scientist skill for production-grade AI/ML/Data systems.

Core Workflows

1. Design an A/B Test

import numpy as np
from scipy import stats

def calculate_sample_size(baseline_rate, mde, alpha=0.05, power=0.8):
    """
    Calculate required sample size per variant.
    baseline_rate: current conversion rate (e.g. 0.10)
    mde: minimum detectable effect (relative, e.g. 0.05 = 5% lift)
    """
    p1 = baseline_rate
    p2 = baseline_rate * (1 + mde)
    effect_size = abs(p2 - p1) / np.sqrt((p1 * (1 - p1) + p2 * (1 - p2)) / 2)
    z_alpha = stats.norm.ppf(1 - alpha / 2)
    z_beta = stats.norm.ppf(power)
    n = ((z_alpha + z_beta) / effect_size) ** 2
    return int(np.ceil(n))

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Senior Data Scientist

More Data Science & Analytics