Λογότυπο Experimental Design Ds

Experimental Design Ds

Κοινότητα
Tibsfox
experimental-design-ds

A/B testing, randomization, sample size calculation, confounding control, and causal inference for data science. Covers the full experimental lifecycle from hypothesis formulation through power analysis, randomization strategies, blocking, factorial designs, sequential testing, and the potential outcomes framework for causal claims. Use when designing experiments, planning A/B tests, calculating sample sizes, or reasoning about causation from data.

Επισκόπηση

ΕκδότηςTibsfox
Αποθετήριοgsd-skill-creator
Όνομα δεξιότηταςexperimental-design-ds
Αστέρια
70
Διακλαδώσεις
9
Συνοδευτικά αρχεία
Μόνο οδηγίες
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό Tibsfox. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Experimental Design Ds στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/experimental-design-ds
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/data-science/experimental-design-ds .claude/skills/experimental-design-ds
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Experimental Design Ds σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Experimental Design Ds μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Experimental Design Ds δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Experimental Design for Data Science

Experimental design is the discipline of collecting data so that the analysis can answer the intended question. Ronald Fisher, working at the Rothamsted agricultural station in the 1920s, formalized the three pillars -- randomization, replication, and blocking -- that remain the foundation of every modern experiment, from clinical trials to A/B tests on websites. This skill covers experimental design from the data scientist's perspective: planning experiments, ensuring valid causal inference, and avoiding the pitfalls that invalidate conclusions.

Agent affinity: fisher (experimental design, ANOVA), tukey (exploratory analysis of experimental results), benjamin (ethical review of experiments)

Concept IDs: data-hypothesis-testing, data-confidence-intervals, data-probability-basics, data-sampling-methods

Fisher's Three Pillars

1. Randomization

Random assignment of experimental units to treatment groups ensures that any observed difference is either due to the treatment or due to chance -- not due to confounders. Without randomization, the groups may differ systematically in ways that bias the result.

Mechanism: Each unit is assigned to treatment or control by a random process (coin flip, random number generator). This does not guarantee balance -- it guarantees that imbalances are random and quantifiable by probability theory.

Why it works: Randomization breaks the association between treatment assignment and all potential confounders, both observed and unobserved. No observational adjustment method can do this for unobserved confounders.

2. Replication

Multiple experimental units per group. Replication serves two purposes:

  • Statistical power: More units means smaller standard errors and greater ability to detect real effects.
  • Generalizability: Results from one unit might be idiosyncratic. Results replicated across many units are more convincing.

Replication is not repetition. Measuring the same unit 10 times is repetition (estimates measurement error). Measuring 10 different units is replication (estimates treatment effect variability).

3. Blocking

Grouping experimental units by a known source of variability and randomizing within blocks. If you know that males and females respond differently to a treatment, block by sex and randomize within each block. This reduces unexplained variance and increases power.

Blocking vs. stratification: Same concept, different fields. Blocking is the experimental design term (Fisher); stratification is the sampling term.

The Experimental Lifecycle

StageGoalKey decisions
1. HypothesisDefine what you want to learnPrimary hypothesis, secondary hypotheses, directional vs. two-sided
2. Metric selectionDefine how you will measure the effectPrimary metric, guardrail metrics, sensitivity metrics
3. Power analysisDetermine required sample sizeMinimum detectable effect, significance level, power
4. DesignChoose experimental structureCompletely randomized, blocked, factorial, sequential
5. RandomizationAssign units to groupsSimple, stratified, cluster randomization
6. ExecutionRun the experimentMonitor for implementation errors, compliance
7. AnalysisTest the hypothesisPre-specified analysis plan, intention-to-treat
8. InterpretationDraw conclusionsEffect size, confidence interval, practical significance

A/B Testing

The Basic Framework

An A/B test is the simplest randomized experiment: two groups (A = control, B = treatment), one intervention, one primary metric.

Steps:

  1. Define the metric (conversion rate, revenue per user, time on page).
  2. Define the minimum detectable effect (MDE) -- the smallest change worth detecting.
  3. Calculate sample size using power analysis.
  4. Randomize users into A and B.
  5. Run until the pre-specified sample size is reached.
  6. Analyze using the pre-specified test (t-test, chi-squared, Mann-Whitney).
  7. Report the effect size with a confidence interval.

Sample Size Calculation

For a two-sample test of proportions (e.g., conversion rates):

n = (Z_{alpha/2} + Z_beta)^2 * (p_1 * (1 - p_1) + p_2 * (1 - p_2)) / (p_1 - p_2)^2

Where:

  • Z_{alpha/2} = critical value for significance level (1.96 for alpha = 0.05, two-sided)
  • Z_beta = critical value for power (0.84 for power = 0.80)
  • p_1 = baseline conversion rate
  • p_2 = expected conversion rate under treatment

Key insight: Sample size scales with the inverse square of the effect size. Detecting a 1% improvement requires 4x the sample size of detecting a 2% improvement. This is why small effects in large populations require enormous experiments.

Common A/B Testing Pitfalls

PitfallProblemFix
PeekingChecking results before full sample size; inflates false positive rateUse sequential testing methods or commit to fixed horizon
Multiple comparisonsTesting many metrics inflates family-wise errorBonferroni correction, FDR control, or pre-specify one primary metric
Network effectsOne user's treatment affects another user's outcome (social platforms)Cluster randomization (randomize by geographic region or social cluster)
Novelty/primacy effectsUsers react differently to new features initiallyRun experiments long enough for the effect to stabilize (2-4 weeks)
Sample ratio mismatchUnequal assignment ratios indicate implementation bugsCheck actual vs. expected ratio before analyzing results
Simpson's paradoxAggregate result reverses when stratified by a confounderPre-stratify or check for compositional changes across groups

Randomization Strategies

StrategyDescriptionUse when
SimpleCoin flip per unitDefault; works for large samples
StratifiedRandomize within strata of important covariatesKnown prognostic factors (age, gender, etc.)
ClusterRandomize groups (classrooms, hospitals, regions)Treatment applies at group level or interference between individuals
AdaptiveAdjust allocation probabilities based on interim resultsClinical trials with ethical constraints (avoid allocating to inferior arm)
SwitchbackSame unit alternates between treatment and control over timeMarketplace experiments where user-level randomization causes interference

Factorial Designs

Full Factorial

Test all combinations of multiple factors simultaneously. A 2x2 factorial with factors A and B has four groups: (control, control), (A, control), (control, B), (A, B).

Advantages:

  • Tests each factor with the full sample (not half).
  • Tests interactions: does the effect of A depend on B?
  • More efficient than running separate experiments for each factor.

Disadvantage: Number of groups grows exponentially with factors. 5 factors with 2 levels each = 32 groups.

Fractional Factorial

When full factorial is too expensive, run a carefully chosen subset of combinations. Aliasing (confounding) of high-order interactions is the trade-off. Use when interactions are expected to be small relative to main effects.

Causal Inference

The Fundamental Problem

We want to know the causal effect of treatment on an individual: Y(treatment) - Y(control). But we can only observe one of these -- the counterfactual is always missing. This is the fundamental problem of causal inference (Holland, 1986).

Potential Outcomes Framework

For each unit i, define:

  • Y_i(1) = outcome if treated
  • Y_i(0) = outcome if not treated
  • Individual causal effect = Y_i(1) - Y_i(0) (unobservable for any single unit)
  • Average Treatment Effect (ATE) = E[Y(1) - Y(0)] (estimable with randomization)

Randomization makes the treatment assignment independent of potential outcomes, so: ATE = E[Y | treated] - E[Y | control]

This is why randomization enables causal claims and observation alone does not.

Observational Causal Methods

When experiments are impossible, these methods attempt causal inference from observational data. All require untestable assumptions:

MethodAssumptionUse when
Regression adjustmentAll confounders are measured and includedKnown, measurable confounders
Propensity score matchingTreatment assignment is ignorable given observed covariatesObservational data with rich covariate information
Instrumental variablesAn instrument affects treatment but not outcome directlyNatural experiments (lottery assignment, geographic boundaries)
Difference-in-differencesParallel trends in absence of treatmentPolicy changes affecting one group but not another
Regression discontinuityTreatment assigned by a threshold on a continuous variableProgram eligibility cutoffs (test scores, age)

Critical caution: Observational causal methods are approximations. They can reduce confounding but cannot eliminate it. Always prefer a randomized experiment when feasible and ethical.

Confounding

A confounder is a variable that influences both the treatment assignment and the outcome, creating a spurious association:

  • Example: Ice cream sales and drowning deaths are correlated because both are caused by hot weather (the confounder).
  • In experiments: Randomization eliminates confounding by design.
  • In observational studies: Must identify and adjust for confounders. Missing a confounder biases the estimated effect.

Directed Acyclic Graphs (DAGs)

DAGs are the modern tool for reasoning about confounding, mediation, and collider bias:

  • Confounder: X <- C -> Y. Adjust for C.
  • Mediator: X -> M -> Y. Do NOT adjust for M if you want the total effect of X.
  • Collider: X -> C <- Y. Do NOT adjust for C; adjusting opens a spurious path.

Draw the DAG before deciding what to control for. The adjustment set is determined by the causal structure, not by statistical significance.

Sequential Testing

The Problem with Peeking

Fixed-horizon tests (e.g., "run until n = 10,000") have a Type I error rate of alpha (e.g., 5%) when analyzed once at the end. Checking the results every day inflates the error rate dramatically -- 26% false positive rate with daily checks over 30 days at alpha = 0.05.

Solutions

MethodHow it worksTrade-off
Group sequential (O'Brien-Fleming, Pocock)Pre-specify interim analysis times with adjusted alpha spendingSlightly larger sample size; requires planning
Always-valid p-valuesConstruct p-values that are valid at any stopping timeMore conservative; wider confidence intervals
Bayesian sequentialUpdate posterior continuously; stop when posterior probability exceeds thresholdRequires prior specification; more complex analysis

Common Mistakes

MistakeWhy it failsFix
No pre-registrationPost-hoc hypothesis selection inflates false positives (p-hacking)Write the analysis plan before seeing the data
Underpowered experimentCannot detect real effects; waste of resourcesPower analysis before running
Confusing statistical and practical significancep < 0.05 with a tiny effect size is not actionableReport effect size and confidence interval alongside p-value
Treating observational data as experimentalCannot make causal claims without randomizationUse causal inference methods and state assumptions
Stopping early because "it looks significant"Inflated false positive rateUse sequential testing methods
Ignoring multiple comparisonsTesting 20 metrics at alpha = 0.05 expects 1 false positiveBonferroni, Holm, or Benjamini-Hochberg correction

Cross-References

  • fisher agent: Experimental design specialist. Primary agent for power analysis, randomization plans, and ANOVA.
  • tukey agent: Exploratory analysis of experimental results -- residual analysis, effect visualization, outlier investigation.
  • benjamin agent: Ethical review of experimental designs -- informed consent, equity, stopping rules for harmful treatments.
  • statistical-modeling skill: Regression and ANOVA methods used to analyze experimental data.
  • ethics-governance skill: Ethical frameworks for human subjects research, consent, and algorithmic experimentation.
  • machine-learning-foundations skill: Cross-validation as the ML analog of experimental replication.

References

  • Fisher, R. A. (1935). The Design of Experiments. Oliver and Boyd.
  • Rubin, D. B. (1974). "Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies." Journal of Educational Psychology, 66(5), 688-701.
  • Holland, P. W. (1986). "Statistics and Causal Inference." Journal of the American Statistical Association, 81(396), 945-960.
  • Imbens, G. W. & Rubin, D. B. (2015). Causal Inference for Statistics, Social, and Biomedical Sciences. Cambridge University Press.
  • Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing. Cambridge University Press.
  • Pearl, J. (2009). Causality. 2nd edition. Cambridge University Press.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Experimental Design Ds;

A/B testing, randomization, sample size calculation, confounding control, and causal inference for data science. Covers the full experimental lifecycle from hypothesis formulation through power analysis, randomization strategies, blocking, factorial designs, sequential testing, and the potential outcomes framework for causal claims. Use when designing experiments, planning A/B tests, calculating sample sizes, or reasoning about causation from data.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Experimental Design Ds στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Experimental Design Ds είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Experimental Design Ds στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/experimental-design-ds. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Experimental Design Ds;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Experimental Design Ds;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Experimental Design Ds με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Experimental Design Ds;

Δημοσιεύεται στο GitHub από τον λογαριασμό Tibsfox. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο garrytan

Landing Report

garrytan
ΚοινότηταΔημοφιλής

Πίνακας ελέγχου ουράς μόνο για ανάγνωση για αποστολή με επίγνωση του χώρου εργασίας. (gstack)

19.9K
133.5K
Αρχεία: 1
Προβολή
Λογότυπο garrytan

Gstack Openclaw Ceo Review

garrytan
ΚοινότηταΔημοφιλής

Χρησιμοποιήστε το όταν σας ζητείται να αξιολογήσετε ένα σχέδιο, να αμφισβητήσετε μια πρόταση, να κάνετε αξιολόγηση CEO, να εντοπίσετε αδύναμα σημεία σε μια προσέγγιση, να διευρύνετε τη σκέψη για το εύρος του έργου ή να αποφασίσετε αν πρέπει να επεκταθεί ή να περιοριστεί το σχέδιο.

19.9K
133.5K
Οδηγίες
Προβολή
Λογότυπο JuliusBrussee

Caveman Stats

JuliusBrussee
ΚοινότηταΔημοφιλής

Εμφανίζει την καταγεγραμμένη χρήση token για output και cache reads, καθώς και την απόδοση λειτουργίας για την τρέχουσα συνεδρία Claude Code, ή εντοπίζει την εγγενή αναφορά χρήσης του host. Ενεργοποίηση: /caveman-stats.

6.2K
106.3K
Οδηγίες
Προβολή
Λογότυπο pytorch

Ci Metrics

pytorch
ΟργανισμόςΔημοφιλής

Υποβάλετε ερωτήματα σχετικά με το PyTorch CI, το GitHub Actions, το HUD, το Grafana και τις μετρικές υποδομής. Χρησιμοποιήστε τη δεξιότητα όταν οι χρήστες ρωτούν για τη διάρκεια του CI, αποτυχημένες εργασίες, χρόνους αναμονής στην ουρά, τάσεις ροών εργασίας, κατάσταση των runners, δεδομένα πινάκων ελέγχου ή μετρικές υποδομής του PyTorch.

31K
103.6K
Αρχεία: 1
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇