Python Charts
    • Matplotlib 63 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 17 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 1 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • CUPAC in Python: Use a Machine Learning Model to Reduce A/B Test Variance
    A/B Testing

    CUPAC in Python: Use a Machine Learning Model to Reduce A/B Test Variance

    Implement CUPAC in Python: train a gradient boosting model on a past cohort, use its prediction as the CUPED covariate, and see how much narrower the A/B test interval gets than with CUPED or linear regression.

    Nov 26, 2026
    ab testing experimentation cupac cuped variance reduction gradient boosting scikit-learn confidence interval
  • CUPED in Python: Reduce A/B Test Variance with a Pre-Experiment Covariate
    A/B Testing

    CUPED in Python: Reduce A/B Test Variance with a Pre-Experiment Covariate

    Implement CUPED in Python: adjust an A/B test metric with pre-experiment data to shrink confidence intervals, check it against OLS, and see how much variance you can remove.

    Nov 25, 2026
    ab testing experimentation cuped variance reduction statsmodels confidence interval regression adjustment

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy