configuring-experiment-rollout
यह क्या करती है
यह स्किल वेरिएंट का बँटवारा तय करती है, जैसे 50/50, और उन उपयोगकर्ताओं का हिस्सा भी जो प्रयोग में आते हैं। यह उन लोगों के लिए है जो चाहते हैं कि उनके टेस्ट का ट्रैफ़िक सुरक्षित और निष्पक्ष ढंग से सेट हो।
कब इस्तेमाल करें
- ✓जब आप कंट्रोल और टेस्ट वेरिएंट के बीच बँटवारा चुनना चाहें।
- ✓जब कोई रोलआउट प्रतिशत माँगे और आपको उसका मतलब जानना हो।
- ✓जब आप 80/20 जैसा असमान बँटवारा सोच रहे हों और पूर्वाग्रह से बचना चाहें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/configuring-experiment-rollout/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा प्रयोग 50/50 बँटवारे के साथ सेट कीजिए और उसे 25 प्रतिशत उपयोगकर्ताओं तक रोल आउट कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह डिफ़ॉल्ट रूप से बराबर बँटवारे की सलाह देती है, और कुल रोलआउट को समायोजित करती है ताकि कितना ट्रैफ़िक एक्सपोज़ हो, यह नियंत्रित रहे। यह असमान बँटवारे से होने वाले पूर्वाग्रह की चेतावनी भी देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Configuring experiment rollout
This skill answers: Who sees what variant?
Recommended approach: equal split + adjust rollout percentage
In most cases, experiments work best with an equal split. If you want to limit exposure to the test variant, adjust the rollout percentage instead.
Why equal splits are better:
- Equal splits maximize statistical power — each variant has the same sample size
- Equal splits balance traffic and thus reach significance faster
- Increasing user exposure throughout the experiment through increasing rollout is clean (changing split mid-experiment can cause users to switch variants, which is bad for user experience and data quality)
Always default to an equal split unless the user explicitly requests otherwise.
When an uneven split is required
Uneven splits combined with the default "Exclude from analysis" handling can introduce bias. If the experiment observes multi-variant users (users exposed to more than one variant) then those are dropped asymmetrically — the smaller variant loses a larger fraction of its assignments. If those users behave differently from the rest, the smaller variant's metrics will be skewed.
The right mitigation depends on experiment state:
- Pre-launch, or live but with few exposures so far — use an equal split and reduce the overall rollout. Achieves the same test-variant exposure without the bias and preserves statistical power. See the disambiguation question below.
- Live experiment with significant exposures — switch multivariate handling to "First seen
variant". Changing the split mid-run reassigns users across variants (anti-pattern; see
"Changing rollout on a running experiment" below). Switching handling instead keeps everyone in
their original variant and avoids the asymmetric exclusion. See
configuring-experiment-analyticsfor how to set this. Note that "first seen" handling can introduce other biases, but it's preferable to mid-run reassignment.
The two rollout controls
There are two separate controls that determine who sees what.
Both live on the linked feature flag, sent through the feature_flag object in the flag's own shape (not the deprecated parameters keys).
1. Variant split (feature_flag.filters.multivariate.variants)
How users inside the experiment are distributed across variants.
- Array of
{key, name, rollout_percentage}, where therollout_percentagevalues must sum to 100 - Minimum 2 variants, maximum 20
- No specific variant key is required — the analysis baseline defaults to the variant keyed
"control"when present, else the first variant - Default: control 50% / test 50%
If the user says "A/B/C test" without naming keys, key the baseline "control" (the convention) and create additional variants for the others; if they ask for specific keys, use them as-is with the baseline first.
2. Overall rollout (feature_flag.filters.groups[0].rollout_percentage)
What percentage of all users enter the experiment at all, sent as a single rollout group: groups: [{ "properties": [], "rollout_percentage": N }].
Default: 100%.
Users not included are excluded entirely: they don't see any variant and are not part of the analysis.
Where these are sent
Both controls live inside feature_flag.filters:
{
"feature_flag": {
"filters": {
"multivariate": {
"variants": [
{ "key": "control", "name": "Control", "rollout_percentage": 50 },
{ "key": "test", "name": "Test", "rollout_percentage": 50 }
]
},
"groups": [{ "properties": [], "rollout_percentage": 100 }]
}
}
}
filters may also carry aggregation_group_type_index (to run the experiment on a group type rather than individual users) and payloads (JSON-encoded strings keyed by variant key).
On a running experiment, any flag-config change must also send update_feature_flag_params: true, otherwise the API rejects the update before it reaches the flag (see "Changing rollout on a running experiment").
How they interact
These two controls multiply:
| Overall rollout | Variant split | % seeing test | % in analysis |
|---|---|---|---|
| 100% | 50/50 | 50% | 100% |
| 100% | 75/25 control/test | 25% | 100% |
| 50% | 50/50 | 25% | 50% |
| 25% |
अक्सर पूछे जाने वाले सवाल
बराबर बँटवारा क्यों?
बराबर बँटवारे में हर वेरिएंट का नमूना आकार समान रहता है, जिससे टेस्ट जल्दी निर्णायक नतीजे तक पहुँचता है।
क्या टेस्ट के दौरान बँटवारा बदल सकता हूँ?
बेहतर है कि न बदलें। उपयोगकर्ता वेरिएंट बदल सकते हैं, जिससे उनका अनुभव और डेटा की गुणवत्ता दोनों प्रभावित होते हैं।
असमान बँटवारा जोखिम भरा क्यों है?
कई वेरिएंट देखने वाले उपयोगकर्ता असमान रूप से हटते हैं, जिससे छोटे वेरिएंट के नतीजे विकृत हो सकते हैं।
जानकारी
लेखक का मूल विवरण
Configures the rollout shape of a PostHog experiment — the variant split (50/50, 80/20, A/B/C ratios), the overall rollout percentage that gates how many users enter the experiment, and the disambiguation when a percentage like "roll out to 25%" could mean either. Use when the user mentions a rollout percentage, variant split, or traffic distribution; gives a ratio like 60/40, 70/30, or 80/20; asks "who sees the test variant?"; wants to increase, decrease, or change the rollout or split on a draft or running experiment; weighs equal vs uneven splits; or proposes a mid-experiment split change (
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6876
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।