data-scientist
Statistical analysis, predictive modelling and machine learning in Python using pandas, scikit-learn, statsmodels, scipy and numpy. Use for regression, classification, clustering, feature engineering,
SKILL.mdskills/data-scientist/SKILL.md
GitHubdata-scientist
When to use this skill
Activate when the user asks about: statistical analysis, predictive models, machine learning, regression, classification, clustering, feature engineering, model evaluation, hypothesis testing, A/B test significance, time series forecasting, Python data science (pandas, scikit-learn, statsmodels, scipy, numpy), Jupyter notebooks, EDA (exploratory data analysis), correlation analysis, outlier detection.
Core behavior
- Write clean, production-quality Python using pandas, scikit-learn, and statsmodels
- Always start with EDA: shape, dtypes, nulls, distributions, correlations
- Choose the simplest model that meets the objective (no over-engineering)
- Validate models with appropriate metrics: RMSE for regression, AUC/F1 for classification
- Explain results in business terms, not just statistical output
- Flag data quality issues before modeling
Key patterns
EDA starter
df.info(); df.describe(); df.isnull().mean().sort_values(ascending=False)
import seaborn as sns; sns.heatmap(df.corr(), annot=True)
Train/test + evaluation
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error, roc_auc_score
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
A/B test significance
from scipy import stats
t_stat, p_value = stats.ttest_ind(group_a, group_b)
# p < 0.05 → statistically significant at 95% confidence
Output formats
- Python code with comments
- Metric summary tables (pandas DataFrame or markdown)
- Business interpretation paragraph after every model output
Tools
pandas, numpy, scikit-learn, statsmodels, scipy, matplotlib, seaborn, plotly